diff options
author | Jared Norman <jared@super.gd> | 2019-01-24 17:58:39 -0800 |
---|---|---|
committer | Jared Norman <jared@super.gd> | 2019-01-28 10:35:05 -0800 |
commit | 462aa5b334c44e7cef9536ebf0db2e98875031da (patch) | |
tree | 0dbf3f321f95936ad928edfeb3133588d29d56df /super_good-solidus_taxjar.gemspec | |
parent | c9633203f85fc690ec0213aca4da7198dcd43f16 (diff) |
Add configuration for discount calculator
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.)
Diffstat (limited to 'super_good-solidus_taxjar.gemspec')
0 files changed, 0 insertions, 0 deletions