summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2019-05-28 16:03:20 -0700
committerJared Norman <jared@super.gd>2019-05-28 16:03:20 -0700
commita3272ab16bf1597949fd300cf60743ffe172081f (patch)
tree3495e61da0a3ee630432a5eade9f18e910b2846b
parent858bed3f5bec55b8e2257073aa566764da16f1f8 (diff)
v0.14.0v0.14.0
-rw-r--r--CHANGELOG.md2
-rw-r--r--lib/super_good/solidus_taxjar/version.rb2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5997526..ac142a7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,8 @@
## master
+## v0.14.0
+
- Added `SuperGood::SolidusTaxJar.taxable_order_check` option which can be set to a proc that receives the order and will prevent actual tax calculation from occurring if it returns false. If your app has introduced a method like `Spree::Order#complimentary?`, you could avoid trying to compute taxes on complimentary orders by doing the following in an initializer:
```ruby
SuperGood::SolidusTaxJar.taxable_order_check = ->(order) { order.complimentary? }
diff --git a/lib/super_good/solidus_taxjar/version.rb b/lib/super_good/solidus_taxjar/version.rb
index ba7d931..445c5d4 100644
--- a/lib/super_good/solidus_taxjar/version.rb
+++ b/lib/super_good/solidus_taxjar/version.rb
@@ -1,5 +1,5 @@
module SuperGood
module SolidusTaxJar
- VERSION = "0.13.0"
+ VERSION = "0.14.0"
end
end