summaryrefslogtreecommitdiff
path: root/lib/super_good/solidus_taxjar/api.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/super_good/solidus_taxjar/api.rb')
-rw-r--r--lib/super_good/solidus_taxjar/api.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/super_good/solidus_taxjar/api.rb b/lib/super_good/solidus_taxjar/api.rb
index 1392a47..d52a4a4 100644
--- a/lib/super_good/solidus_taxjar/api.rb
+++ b/lib/super_good/solidus_taxjar/api.rb
@@ -17,13 +17,7 @@ module SuperGood
end
def tax_rates_for(address)
- taxjar_client.rates_for_location(
- address.zipcode,
- street: address.address1,
- city: address.city,
- state: address&.state&.abbr || address.state_name,
- country: address.country.iso
- )
+ taxjar_client.rates_for_location(*APIParams.address_params(address))
end
private