summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)Author
2019-04-11Bump to v0.11.0v0.11.0Jared Norman
2019-04-11Avoid sending 0 quantity line itemsJared Norman
2019-04-05Bump to v0.10.0v0.10.0Jared Norman
2019-04-05Make shipping amount calculator configurableJared Norman
Necessary if you need to factor in order level adjustments (boooooo) into your shipping amounts to make things add up correctly.
2019-03-24Bump to v0.9.1Jared Norman
2019-03-24Remove cache key hackJared Norman
This never actually worked as expected. While imperfect, use the order params directly will produce better results.
2019-03-24Bump to v0.9.0Jared Norman
2019-03-24Make cache duration configurableJared Norman
2019-03-24Make cache key configurableJared Norman
Some stores may want to more aggressively cache the responses, preferring fewer requests to more accurate results.
2019-03-24Sort config optionsJared Norman
I just like any list with more than half a dozen things to be sorted.
2019-03-20Bump to v0.8.0 and update changelogv0.8.0Jared Norman
2019-03-20Increase cache expiry timeJared Norman
2019-03-19Bump to v0.7.0, update CHANGELOG.mdJared Norman
2019-03-19Report full line item list for transactionsJared Norman
This sends the full list of line items in the order with their SKUs and tax codes when creating/updating transactions in TaxJar.
2019-03-14Bump VersionJuan Carlos Ruiz
2019-03-14Add guard clause for TaxLocation addressesJuan Carlos Ruiz
From Solidus Documentation: An order's tax_address can – through duck typing – be a Spree::TaxLocation instead of the shipping address. This adds a guard clause that validates if the tax_address is a TaxLocation, in this case we know that the address is incomplete.
2019-03-12Bump versionJuan Carlos Ruiz
2019-03-12Add incomplete_address? check methodJuan Carlos Ruiz
Solidus has deprecated the `empty?` method on https://github.com/solidusio/solidus/pull/1686 . This adds a private `incomplete_address?` method for avoid future problems and remove the deprecation warning in projects that uses this gem.
2019-02-06Provide Spree line items to label makerv0.6.0Jared Norman
2019-02-05Make labels customizable.Jared Norman
2019-02-05Make shipping tax label configurableJared Norman
2019-02-05Bump to v0.6.0Jared Norman
2019-02-05Introduce configurable taxable address checkv0.5.0Jared Norman
2019-02-05Move exception handler configurationJared Norman
2019-02-05Bump to v0.5.0Jared Norman
2019-02-01Bump to v0.4.0v0.4.0Jared Norman
2019-01-31Add ability to create refundsJared Norman
2019-01-30Add support for deleting order transactionsJared Norman
2019-01-30Add support for updating order transactionsJared Norman
2019-01-30Add ability to create order transactionsJared Norman
2019-01-30Extract address lookup params as wellJared Norman
2019-01-30Integrate APIParams classJared Norman
This removes the logic from the API class and moves all the calls to the order_params method to our new module.
2019-01-30Introduce class to handle param generationJared Norman
This leaves the API class to just be resonsible for calling the right methods on the TaxJar gem.
2019-01-28Bump to v0.3.0v0.3.0Jared Norman
2019-01-28Add test mode for disabling calculatorJared Norman
2019-01-28Use DiscountCalculator and fix duplicationJared Norman
There's no reason for both the TaxCalculator and the API to have nearly the same logic... so I unified that while was in there.
2019-01-28Add configuration for discount calculatorJared Norman
This allows stores to specify their own discount calculator in an initializer, by doing something like the following: SuperGood::SolidusTaxJar.discount_calculator = MyStore::CustomDiscountCalculator The class's constructor should take in a line item and have a #discount method that returns the discount amount (which should be a negative number.)
2019-01-28Introduce DiscountCalculatorJared Norman
This extracts the functionality of calculating the discount for a line item in the interest of making this behaviour configurable for stores that would like to factor in order level adjustments in some way.
2019-01-28Use correct value in cache keyJared Norman
2019-01-27Bump to v0.2.0v0.2.0Jared Norman
2019-01-23Bump versionv0.1.3Jared Norman
2019-01-23Handle situation where there are no line itemsJared Norman
TaxJar API is not keen on orders with no line items and will throw errors.
2019-01-23Add support for fetching tax rates by locationJared Norman
2019-01-22Bump versionv0.1.2Jared Norman
2019-01-22Use promo total instead of adjustment totalJared Norman
2019-01-22Bump versionv0.1.1Jared Norman
2019-01-22Make API URL configurableJared Norman
2019-01-21Handle errors gracefullyJared Norman
2019-01-21Cache requests for ten minutesJared Norman
2019-01-20Don't send amountJared Norman
It's not necessary because we're sending line items.