summaryrefslogtreecommitdiff
path: root/CHANGELOG.md
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2020-02-03 21:16:45 -0800
committerJared Norman <jared@super.gd>2020-02-03 21:16:45 -0800
commit2e37b40e08cc4f2dcb31bf0bb3c41fb213669065 (patch)
tree30f880e756fb55cd23b5a334d748867d946b83e2 /CHANGELOG.md
parent8c4f7f0d034348620e18936fd043c5cd15b8e453 (diff)
Add support for modifying order params
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r--CHANGELOG.md18
1 files changed, 18 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9284bff..a3036b4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,24 @@
## master
+- Added `SuperGood::SolidusTaxJar.custom_order_params` to allow for custom overrides to the parameters sent to TaxJar when calculating order taxes. For example, if you needed to send a custom nexus address you could do:
+ ```ruby
+ SuperGood::SolidusTaxJar.custom_order_params = ->(order) {
+ {
+ nexus_addresses: [
+ {
+ id: 'Main Location',
+ country: 'AU',
+ zip: 'NSW 2000',
+ city: 'Sydney',
+ street: '483 George St',
+ }
+ ]
+ }
+ }
+ ```
+ The callback receives the `Spree::Order` that the params are for and the return value can override existing values like the order's ID.
+
## v0.16.0
- Fix `#incomplete_address?` method to be friendly also to completely blank addresses.