app/models/workarea/pricing/calculators/taxjar_tax_calculator.rb
# nexus regions defined in the Taxjar admin
nexus regions defined in the Taxjar admin
nexus regions defined in the Taxjar admin
def remote_nexus_regions
            md5 = Digest::MD5.hexdigest(Workarea::Taxjar.api_key)
            key = "taxjar_regions/#{md5}"
            Rails.cache.fetch(key, expires_in: Workarea.config.cache_expirations.taxjar_nexus) do
              Workarea::Taxjar.gateway.nexus_regions.map(&:region_code)
            end
          rescue
            []
          end
def remote_nexus_regions md5 = Digest :: MD5 . hexdigest ( Workarea :: Taxjar . api_key ) key = "taxjar_regions/#{md5}" Rails . cache . fetch ( key , expires_in : Workarea . config . cache_expirations . taxjar_nexus ) do Workarea :: Taxjar . gateway . nexus_regions . map ( & :region_code ) end rescue [ ] end
nexus regions defined in the Taxjar admin
nexus regions defined in the Taxjar admin