feat: subscription proration engine, pause/resume, metering, and intelligent retry#814
Merged
Ebuka321 merged 1 commit intoJul 26, 2026
Conversation
…gent retry (Smartdevs17#731, Smartdevs17#733, Smartdevs17#735, Smartdevs17#736) - Add backend proration service with mid-cycle changes, analytics, disputes, and configuration - Enhance client proration utils with hourly granularity, analytics, and change limits - Add subscription pause/resume with billing adjustment and PauseResumeScreen - Enhance metering service with real-time tracking, alerts, usage history, trends, analytics, and billing integration - Enhance metering store with usage history, trends, alerts, acknowledge, and analytics - Add intelligent retry scheduling with failure-type-aware delays and exponential backoff - Enhance dunning service with retry analytics, failure-type tracking, and configurable schedules - Enhance dunning store with retry history, analytics, and schedule configuration - Update billing interfaces with enhanced metering and dunning capabilities
Dev-sandy1
force-pushed
the
feat/proration-pause-metering-retry
branch
from
July 26, 2026 11:08
8b66743 to
76ecd45
Compare
|
@Dev-sandy1 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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.
Summary
backend/services/billing/proration.tswith mid-cycle changes, analytics, disputes, and per-plan configuration. Enhanced client proration utils with hourly granularity and change limits.PauseResumeScreen.tsxand subscription store actions for pause/resume with billing adjustment calculations, pause history, and analytics.meteringService.tsandmeteringStore.tswith real-time usage tracking, configurable alerts, usage history/trends, analytics dashboard data, and usage-based billing integration.dunningService.tsanddunningStore.tswith failure-type-aware retry scheduling, exponential backoff, retry analytics, and configurable retry schedules per failure type.Changes
New Files
backend/services/billing/proration.ts— Backend proration service (config, analytics, disputes, mid-cycle)src/screens/PauseResumeScreen.tsx— Pause/resume UI with duration picker and historyModified Files
src/utils/proration.ts— Added hourly proration, analytics, change limits, credit expirysrc/store/subscriptionStore.ts— Added pause/resume actions, PauseRecord, PauseAnalyticsbackend/services/billing/meteringService.ts— Full rewrite with history, trends, alerts, analytics, billingapp/stores/meteringStore.ts— Added usage history, trends, alert acknowledgment, analyticsbackend/services/billing/dunningService.ts— Added failure-type retry scheduling, analytics, configurable schedulessrc/store/dunningStore.ts— Added retry history, analytics, schedule configurationbackend/services/billing/interfaces.ts— Updated IMeteringService, IDunningService interfacesbackend/services/billing/index.ts— Exported new servicessrc/navigation/types.ts— Added PauseResume screen routeCloses
Closes #731
Closes #733
Closes #735
Closes #736