summaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2019-02-05 10:51:08 -0800
committerJared Norman <jared@super.gd>2019-02-05 10:51:08 -0800
commit4f7bd65748a251e881cfdf54bab1b7513ada24da (patch)
treeca92088e25a3894e0aa29d1f09c9ace979d1db80 /CHANGELOG.md
parenta238148b1d66b9d5377b9c840b00b9e2ea4d4d7e (diff)
Introduce configurable taxable address checkv0.5.0
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 229a1a1..8471e12 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,3 +3,7 @@
## v0.5.0
- Moved exception handler configuration to `SuperGood::SolidusTaxJar.exception_handler` from `SuperGood::SolidusTaxJar::TaxCalculator.exception_handler`. Now all the configuration options are in the same place.
+- Added `SuperGood::SolidusTaxJar.taxable_address_check` option which can be set to a block that receives the address and will prevent actual tax calculator from occurring if it returns false. If your app has introduced a method like `Spree::Address#us?`, you could avoid trying to compute taxes on non-US orders by doing the following in an initializer:
+ ```ruby
+ SuperGood::SolidusTaxJar.taxable_address_check = ->(address) { address.us? }
+ ```