Skip to content

Commit

Permalink
more precise store location
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeholder committed Sep 15, 2023
1 parent 2fb436b commit 2cbe652
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Release Notes for Craft Commerce

## 2.1.0 - Unreleased

### Added
- Provided a more precise store location address to the Tax Jar API. ([#13](https://github.com/craftcms/commerce-taxjar/pull/13))

## 2.0.0 - 2022-05-04

### Added
Expand Down
2 changes: 2 additions & 0 deletions src/adjusters/TaxJar.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ private function _getOrderTaxData()
'to_country' => $this->_address->getCountryCode(),
'to_zip' => $this->_address->getPostalCode() ?? '',
'to_state' => $this->_address->getAdministrativeArea() ?? '',
'to_city' => $this->_address->getLocality() ?? '',
'to_street' => $this->_address->getAddressLine1() ?? '',
'shipping' => $this->_order->getTotalShippingCost(),
'line_items' => $lineItems,
]);
Expand Down

0 comments on commit 2cbe652

Please sign in to comment.