diff options
author | Jared Norman <jared@super.gd> | 2020-02-03 21:19:40 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-03 21:19:40 -0800 |
commit | 218f64bdf4d65d6f1bd6ccca160171426159844a (patch) | |
tree | 30f880e756fb55cd23b5a334d748867d946b83e2 /CHANGELOG.md | |
parent | 8c4f7f0d034348620e18936fd043c5cd15b8e453 (diff) | |
parent | 2e37b40e08cc4f2dcb31bf0bb3c41fb213669065 (diff) |
Merge pull request #19 from SuperGoodSoft/custom-order-params
Add support for modifying order params
Diffstat (limited to 'CHANGELOG.md')
-rw-r--r-- | CHANGELOG.md | 18 |
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. |