diff options
author | Nicholas Van Doorn <vandoorn.nick@gmail.com> | 2021-02-24 14:51:18 -0800 |
---|---|---|
committer | Noah Silvera <noah@super.gd> | 2021-03-25 15:41:38 -0700 |
commit | f7a9ee1c939e2e1bb85e59b9dd1a32c751cfb492 (patch) | |
tree | d86dbe3c41571083b88729134556b869a85a1ac7 /lib/super_good | |
parent | 7ed6f05c68e51369407b0d2fdb54b9f7fd298483 (diff) |
Add nexus regions method to API
We want to start syncing nexus data from TaxJar to this extension. As
such we start by implementing an API call to fetch nexus regions from
TaxJar.
Future commits should offer path for users to persist this data in their
Solidus store.
Co-authored-by: Noah Silvera <noah@super.gd>
Co-authored-by: Adnan Abdulally <adnan.abdulally@printivity.com>
Diffstat (limited to 'lib/super_good')
-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 096994b..715eb5c 100644 --- a/lib/super_good/solidus_taxjar/api.rb +++ b/lib/super_good/solidus_taxjar/api.rb @@ -55,6 +55,10 @@ module SuperGood taxjar_client.validate_address ApiParams.validate_address_params(spree_address) end + def nexus_regions + taxjar_client.nexus_regions + end + private attr_reader :taxjar_client |