summaryrefslogtreecommitdiff
path: root/lib/super_good/solidus_taxjar/api.rb
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2019-01-30 17:15:37 -0800
committerJared Norman <jared@super.gd>2019-01-30 17:15:37 -0800
commit1fdfaff9bef12831cace3f0661c2bb3209500220 (patch)
treef22b78268d69d2b0cee538a6d05dfdcd3025dc4e /lib/super_good/solidus_taxjar/api.rb
parent054a25e9da909242fef25770c31678c251621573 (diff)
Add ability to create 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 d52a4a4..301fba4 100644
--- a/lib/super_good/solidus_taxjar/api.rb
+++ b/lib/super_good/solidus_taxjar/api.rb
@@ -20,6 +20,10 @@ module SuperGood
taxjar_client.rates_for_location(*APIParams.address_params(address))
end
+ def create_transaction_for(order)
+ taxjar_client.create_order APIParams.transaction_params(order)
+ end
+
private
attr_reader :taxjar_client