summaryrefslogtreecommitdiff
path: root/lib/super_good/solidus_taxjar.rb
diff options
context:
space:
mode:
authorandrea longhi <andrea@spaghetticode.it>2020-01-13 20:31:47 +0100
committerandrea longhi <andrea@spaghetticode.it>2020-01-14 11:10:04 +0100
commitc7bcc30f9aa142694e84195063a6093f428950b4 (patch)
treef887729c05e9868b32b9a2c1915d40d13412fdfe /lib/super_good/solidus_taxjar.rb
parent044bb66e25a440388431de27c67d437fe6cebfb6 (diff)
Add tax rate calculator class
This new calculator allows to retrieve tax rate information starting from a `Spree::Address` model. It shares some logic with the tax calculator, for example the ability to handle exceptions using `SolidusTaxJar.exception_handler` lambda.
Diffstat (limited to 'lib/super_good/solidus_taxjar.rb')
-rw-r--r--lib/super_good/solidus_taxjar.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/super_good/solidus_taxjar.rb b/lib/super_good/solidus_taxjar.rb
index 35d9155..1b1a4ac 100644
--- a/lib/super_good/solidus_taxjar.rb
+++ b/lib/super_good/solidus_taxjar.rb
@@ -7,6 +7,7 @@ require "super_good/solidus_taxjar/api_params"
require "super_good/solidus_taxjar/api"
require "super_good/solidus_taxjar/calculator_helper"
require "super_good/solidus_taxjar/tax_calculator"
+require "super_good/solidus_taxjar/tax_rate_calculator"
require "super_good/solidus_taxjar/discount_calculator"
module SuperGood