Skip to content

feat: add promo code functionality#888

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

feat: add promo code functionality#888
Dobrunia wants to merge 19 commits into
masterfrom
feat/promo-code

Conversation

@Dobrunia

@Dobrunia Dobrunia commented Jun 12, 2026

Copy link
Copy Markdown
Member

feat: add promo code functionality for tariff plans, including preview and application logic, and update related components and API integration
Снимок экрана — 2026-06-12 в 20 54 59
Снимок экрана — 2026-06-12 в 20 55 29
Снимок экрана — 2026-06-12 в 21 02 35

…w and application logic, and update related components and API integration
@codex-assistant codex-assistant Bot marked this pull request as ready for review June 12, 2026 11:46
@codex-assistant

Copy link
Copy Markdown

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

Dobrunia added 13 commits June 12, 2026 16:12
…nused lines, updating parameter descriptions, and enhancing styling for promo buttons and pricing display
…, updating schema and API queries to support detailed promo information
…refining benefitType to align with updated promo code logic
…codes, updating schema, API, and components for improved validation and response handling
…s, modifying schema, API, and components for enhanced validation and response handling
…tatements and improving readability in calculatePromoCodePlanPrice function
…d descriptions for payment processing mutations and refining promo data interface
const amount = data.isCardLinkOperation ? AMOUNT_FOR_CARD_VALIDATION : data.plan.monthlyCharge;
const amount = data.isCardLinkOperation
? AMOUNT_FOR_CARD_VALIDATION
: (data.chargeAmount ?? data.promo?.finalAmount ?? data.plan.monthlyCharge);

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.

explain when all 3 cases can happen

Dobrunia added 5 commits June 17, 2026 19:09
…ethods and promo discount application in comments
…s and emits, and improve focus handling on mount
…utdated types, enhancing interfaces, and updating related components for improved clarity and functionality
…ing modules for improved consistency and clarity
…eamline payment amount logic in PaymentDetailsDialog for improved understanding of payment processing
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