summaryrefslogtreecommitdiff
path: root/lib/super_good/solidus_taxjar/api.rb
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2019-01-30 17:39:42 -0800
committerJared Norman <jared@super.gd>2019-01-30 17:39:42 -0800
commitee7286c6d17641bbcc340e3e4b5e6f9e89737c6a (patch)
treeca9d1e01dde2eb7f6b75a585169a5c22ad269032 /lib/super_good/solidus_taxjar/api.rb
parent7293c1309c0534db6c8de031ef15a4a4601f1982 (diff)
Add support for deleting order transactions
Diffstat (limited to 'lib/super_good/solidus_taxjar/api.rb')
-rw-r--r--lib/super_good/solidus_taxjar/api.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/super_good/solidus_taxjar/api.rb b/lib/super_good/solidus_taxjar/api.rb
index 45a32b7..61fecae 100644
--- a/lib/super_good/solidus_taxjar/api.rb
+++ b/lib/super_good/solidus_taxjar/api.rb
@@ -28,6 +28,10 @@ module SuperGood
taxjar_client.update_order APIParams.transaction_params(order)
end
+ def delete_transaction_for(order)
+ taxjar_client.delete_order order.number
+ end
+
private
attr_reader :taxjar_client