Skip to content

feat: define Adjustment and AppliedAdjustment types#25

Merged
lukTS merged 1 commit into
mainfrom
feat/adjustment-types
May 31, 2026
Merged

feat: define Adjustment and AppliedAdjustment types#25
lukTS merged 1 commit into
mainfrom
feat/adjustment-types

Conversation

@lukTS
Copy link
Copy Markdown
Owner

@lukTS lukTS commented May 31, 2026

What

Define TypeScript types for price adjustments (discounts and surcharges).

Changes

  • Add Adjustment type (name, type: 'percentage' | 'fixed', value)
  • Add AppliedAdjustment type extending Adjustment with calculated amount
  • Add optional adjustments field to PricingRuleConfig
  • Add adjustments and adjusted fields to CalculationResult
  • JSDoc comments for all new fields

Closes #20

- Add Adjustment type (name, type, value)
- Add AppliedAdjustment type with calculated amount
- Add optional adjustments field to PricingRuleConfig
- Add adjustments and adjusted fields to CalculationResult

Closes #20
@lukTS lukTS added this to the v0.2.0 milestone May 31, 2026
@lukTS lukTS self-assigned this May 31, 2026
@lukTS lukTS added the enhancement New feature or request label May 31, 2026
@lukTS lukTS merged commit 2ae294f into main May 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Define Adjustment type

1 participant