taxjar / taxjar-java

Sales Tax API Client for Java
https://developers.taxjar.com/api/reference/?java
MIT License
13 stars 7 forks source link

Add support for order-level exemptions via `exemption_type` param #17

Closed ScottRudiger closed 5 years ago

ScottRudiger commented 5 years ago

This change introduces an optional exemption_type parameter for:

The allowable values are: government, wholesale, other, and non_exempt.

With the exception of non_exempt, a request with one of these values indicates a transaction that is fully-exempt at the order level.

When also using the existing optional customer_id parameter, an exemption_type value of non_exempt specifies that a transaction belonging to an otherwise exempt customer be processed as taxable.

With the exception of non_exempt, when usage of the customer_id param qualifies the transaction as exempt, the customer's exemption type would be applied, rather than the exemption_type submitted in the request.