diff options
author | Jared Norman <jared@super.gd> | 2019-01-30 13:14:58 -0800 |
---|---|---|
committer | Jared Norman <jared@super.gd> | 2019-01-30 13:19:10 -0800 |
commit | 054a25e9da909242fef25770c31678c251621573 (patch) | |
tree | 91d4efe2b32378886af45eba0a7eda6c983d8768 /lib/super_good/solidus_taxjar/api.rb | |
parent | 8f3744abd7f06da848856136a7888c2b01b40ee5 (diff) |
Extract address lookup params as well
Diffstat (limited to 'lib/super_good/solidus_taxjar/api.rb')
-rw-r--r-- | lib/super_good/solidus_taxjar/api.rb | 8 |
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 |