feat: add promo code functionality#888
Open
Dobrunia wants to merge 19 commits into
Open
Conversation
…w and application logic, and update related components and API integration
|
Thanks for adding a description — the PR is now marked as Ready for Review. |
…e.json and yarn.lock
…nused lines, updating parameter descriptions, and enhancing styling for promo buttons and pricing display
…, updating schema and API queries to support detailed promo information
…rkspace admins and return calculated prices
…refining benefitType to align with updated promo code logic
…ponents to support promo discount display
…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
neSpecc
reviewed
Jun 17, 2026
| 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); |
Member
There was a problem hiding this comment.
explain when all 3 cases can happen
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat: add promo code functionality for tariff plans, including preview and application logic, and update related components and API integration


