diff options
author | Jared Norman <jared@super.gd> | 2019-01-30 17:15:37 -0800 |
---|---|---|
committer | Jared Norman <jared@super.gd> | 2019-01-30 17:15:37 -0800 |
commit | 1fdfaff9bef12831cace3f0661c2bb3209500220 (patch) | |
tree | f22b78268d69d2b0cee538a6d05dfdcd3025dc4e /lib/super_good/solidus_taxjar/api.rb | |
parent | 054a25e9da909242fef25770c31678c251621573 (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.rb | 4 |
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 |