Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new NestedClassSet for configuring calculators #77

Merged
merged 1 commit into from
Nov 6, 2023

Conversation

mamhoff
Copy link
Contributor

@mamhoff mamhoff commented Nov 6, 2023

We have several actions, and several calculators. Not all calculators work for all actions (e.g. the DistributedAmountCalculator really only works for the AdjustLineItem action, and the Tiered ones don't work for AdjustLineItemQuantityGroups. Rather than creating a new configuration option for each calculator, let's use something like a Hash here.

@mamhoff mamhoff force-pushed the refactor-calculator-availability branch from d28e888 to dbd54fb Compare November 6, 2023 15:33
We have several actions, and several calculators. Not all calculators
work for all actions (e.g. the DistributedAmountCalculator really only
works for the AdjustLineItem action, and the `Tiered` ones don't work
for `AdjustLineItemQuantityGroups`. Rather than creating a new
configuration option for each calculator, let's use something like a
Hash here.
@mamhoff mamhoff force-pushed the refactor-calculator-availability branch from dbd54fb to 1d2c4b6 Compare November 6, 2023 15:33
Copy link
Collaborator

@davecandlescience davecandlescience left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@mamhoff mamhoff merged commit 14508c6 into main Nov 6, 2023
4 checks passed
@mamhoff mamhoff deleted the refactor-calculator-availability branch November 6, 2023 16:52
mamhoff added a commit that referenced this pull request Jul 1, 2024
…lity

Use new NestedClassSet for configuring calculators
mamhoff added a commit that referenced this pull request Oct 25, 2024
…lity

Use new NestedClassSet for configuring calculators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants