summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-02-03v0.17.0v0.17.0Jared Norman
2020-02-03Merge pull request #19 from SuperGoodSoft/custom-order-paramsJared Norman
Add support for modifying order params
2020-02-03Add support for modifying order paramsJared Norman
2020-02-02v0.16.0v0.16.0Jared Norman
2020-01-22Merge pull request #18 from spaghetticode/spaghetticode/minor-fixesJared Norman
Remove unnecessary errors when validating address without country
2020-01-22Remove unnecessay safe navigatorandrea longhi
The safe navigator is not necessary here, as all other method calls on `address` don't have it.
2020-01-22Avoid raising unnecessary errors with incomplete addressandrea longhi
When validating addresses, it may happen that the address has no country, so trying to fetch the country ISO raises an unnecessary error. Using ruby safe navigation prevents this to happen. Of course, the address will still result invalid eventually.
2020-01-15Merge pull request #17 from spaghetticode/spaghetticode/tax-rate-calculatorJared Norman
Add tax rate calculator
2020-01-15Add changelog entry for TaxRateCalculatorandrea longhi
2020-01-14Update Travis configandrea longhi
2020-01-14Add brief calculators descriptions to READMEandrea longhi
2020-01-14Add tax rate calculator classandrea longhi
This new calculator allows to retrieve tax rate information starting from a `Spree::Address` model. It shares some logic with the tax calculator, for example the ability to handle exceptions using `SolidusTaxJar.exception_handler` lambda.
2020-01-14Add SolidusTaxJar::API#tax_rate_forandrea longhi
When calculating tax rates, the recommended endpoint from TaxJar support for live calculations is `/v2/taxes`, the same used for calculating order taxes, as it accounts for all factors like sourcing or nexus, while the `/v2/rates` endpoint will return the full combined rate for the queried location.
2020-01-14Add SolidusTaxJar::APIParams.tax_rate_address_paramsandrea longhi
This helper converts a `Spree::Address` to address params that can be used to retrieve the tax rate for that location.
2020-01-14Add generic default cache_key procandrea longhi
`SuperGood::SolidusTaxJar.cache_key` uses different `APIParams` methods for calculating cache keys for different models.
2020-01-14Add CalculatorHelper for sharing logicandrea longhi
This module includes helper methods that can be shared among different calculators.
2019-09-26Merge pull request #16 from TwoThreeSevenPlatform/masterJared Norman
Fixed the example of the error handler configuration
2019-09-26Fixed the example of the error handlerVictor Kinelev
2019-06-30Update README.mdJared Norman
2019-06-30Downgrade warningJared Norman
This is ready for primetime use, but missing documentation and some other things I want to include in v1.0.
2019-06-26v0.15.2v0.15.2Jared Norman
2019-06-26Add order number to params loggingJared Norman
Much easier to trace a request by doing this.
2019-06-25v0.15.1v0.15.1Jared Norman
2019-06-25Merge pull request #15 from SuperGoodSoft/loggingJared Norman
Logging!
2019-06-25Add logging to changelogJared Norman
2019-06-25Add loggingJared Norman
This will log the params sent to and responses received from TaxJar in order to facilitate debugging production issues.
2019-06-25Add option to control logging behaviourJared Norman
2019-06-25v0.15.0v0.15.0Jared Norman
2019-06-25Merge pull request #14 from SuperGoodSoft/better-cache-keyJared Norman
Make cache key a string
2019-06-25Make cache key a stringJared Norman
2019-05-28v0.14.0v0.14.0Jared Norman
2019-05-28Merge pull request #13 from SuperGoodSoft/feature/order-mattersJared Norman
Taxable Order Check
2019-05-28Add new order check to changelogJared Norman
2019-05-28Make use of taxable order checkJared Norman
This just uses the taxable order check configuration added in the parent commit to provide a hook to short circuit order tax checks.
2019-05-28Add configuration option for order tax checkJared Norman
This will allow apps to use properties of an order to determine whether an order is taxable.
2019-05-20v0.13.0v0.13.0Jared Norman
2019-05-13Merge pull request #12 from SuperGoodSoft/customer-supportJared Norman
Customer Support
2019-05-13Sort the rest of the thingsJared Norman
2019-05-13Fix wack indentationJared Norman
1-space?????
2019-05-13Send customer_id to TaxJar APIJared Norman
This is required to support per-customer exemptions through the TaxJar API.
2019-05-13Sort some thingsJared Norman
I like sorted things.
2019-04-24Bump to v0.12.0v0.12.0Jared Norman
2019-04-24More hacks to handle zero dollar ordersJared Norman
I have a plan for how to handle these better in v1.0 though!
2019-04-24Report no tax collected when order zeroed outJared Norman
2019-04-11Bump to v0.11.1v0.11.1Jared Norman
2019-04-11Merge pull request #11 from ↵Jared Norman
SuperGoodSoft/additional-order-level-adjustment-handling Avoid sending negative order totals
2019-04-11Avoid sending negative order totalsJared Norman
If an order is adjusted to zero, we don't want to subtract the tax from it... because that don't make no sense. A better solution that properly factors in order level adjustments will be coming eventually, this is just a hack to process some orders immediately.
2019-04-11Bump to v0.11.0v0.11.0Jared Norman
2019-04-11Merge pull request #10 from SuperGoodSoft/feature/empty-line-itemsJared Norman
Don't send line items with 0 quantity
2019-04-11Avoid sending 0 quantity line itemsJared Norman