summaryrefslogtreecommitdiff
path: root/LICENSE.txt
diff options
context:
space:
mode:
authorJared Norman <jared@super.gd>2019-01-24 17:58:39 -0800
committerJared Norman <jared@super.gd>2019-01-28 10:35:05 -0800
commit462aa5b334c44e7cef9536ebf0db2e98875031da (patch)
tree0dbf3f321f95936ad928edfeb3133588d29d56df /LICENSE.txt
parentc9633203f85fc690ec0213aca4da7198dcd43f16 (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 'LICENSE.txt')
0 files changed, 0 insertions, 0 deletions