summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2019-01-30 17:28:41 -0800
committerJared Norman <jared@super.gd>2019-01-30 17:28:41 -0800
commit7293c1309c0534db6c8de031ef15a4a4601f1982 (patch)
tree3246cc6069ddba5d2a402b381a7d3814bb81c336 /lib
parent1fdfaff9bef12831cace3f0661c2bb3209500220 (diff)
Add support for updating order transactions
Diffstat (limited to 'lib')
-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 301fba4..45a32b7 100644
--- a/lib/super_good/solidus_taxjar/api.rb
+++ b/lib/super_good/solidus_taxjar/api.rb
@@ -24,6 +24,10 @@ module SuperGood
taxjar_client.create_order APIParams.transaction_params(order)
end
+ def update_transaction_for(order)
+ taxjar_client.update_order APIParams.transaction_params(order)
+ end
+
private
attr_reader :taxjar_client