Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

FroeMic
Copy link
Contributor

@FroeMic FroeMic commented Sep 18, 2025

CleanShot 2025-09-18 at 18 15 47

Important

Adds feature to apply discount codes to active subscriptions via settings menu, with UI and backend support.

  • Behavior:
    • Adds BillingDiscountCodeButton component for entering discount codes in BillingDiscountView.
    • New mutation applyPromotionCode in cloudBillingRouter.ts to handle promotion code application.
    • Updates BillingService in stripeBillingService.ts to apply promotion codes to active subscriptions.
  • UI Components:
    • BillingDiscountCodeButton.tsx: Button and dialog for entering promotion codes.
    • BillingDiscountView.tsx: Integrates BillingDiscountCodeButton to allow code entry when no discounts are present.
  • Backend:
    • cloudBillingRouter.ts: Adds applyPromotionCode mutation for applying discount codes.
    • stripeBillingService.ts: Implements applyPromotionCode method to interact with Stripe API.
  • Utilities:
    • Adds subscription.update.discounts.add to IdempotencyKind in stripeIdempotencyKey.ts.

This description was created by Ellipsis for 5643897. You can customize this summary. It will automatically update as commits are pushed.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Sep 18, 2025
@FroeMic FroeMic enabled auto-merge September 18, 2025 16:34
@dosubot dosubot bot added the auto-merge This PR is set to be merged label Sep 18, 2025
@FroeMic FroeMic disabled auto-merge September 19, 2025 14:51
@dosubot dosubot bot removed the auto-merge This PR is set to be merged label Sep 19, 2025
@FroeMic FroeMic merged commit 700921f into main Sep 19, 2025
26 checks passed
@FroeMic FroeMic deleted the michael/lfe-6771 branch September 19, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant