Skip to content

feat(billing): implement promo code functionality#657

Open
Dobrunia wants to merge 7 commits into
masterfrom
feat/promo-code
Open

feat(billing): implement promo code functionality#657
Dobrunia wants to merge 7 commits into
masterfrom
feat/promo-code

Conversation

@Dobrunia

Copy link
Copy Markdown
Member

feat(billing): implement promo code functionality and update related types

@github-actions github-actions Bot marked this pull request as ready for review June 12, 2026 11:48
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for adding a description — the PR is now marked as Ready for Review.

Comment thread src/billing/types/paymentData.ts Outdated
Comment on lines +64 to +88
promoCodeId?: string;
/**
* Applied promo code value
*/
promoCodeValue?: string;
/**
* Promo benefit type
*/
benefitType?: 'grant_plan' | 'percent_discount' | 'amount_discount' | 'fixed_price';
/**
* Plan price before promo
*/
originalAmount?: number;
/**
* Final price after promo
*/
finalAmount?: number;
/**
* Actual discount amount
*/
discountAmount?: number;
/**
* UTM parameters captured when promo was applied
*/
promoUtm?: Utm;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

lets wrap it with "promo" property. Also, maybe promo.id is enough?

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