Skip to content

feat: subscription proration engine, pause/resume, metering, and intelligent retry#814

Merged
Ebuka321 merged 1 commit into
Smartdevs17:mainfrom
Dev-sandy1:feat/proration-pause-metering-retry
Jul 26, 2026
Merged

feat: subscription proration engine, pause/resume, metering, and intelligent retry#814
Ebuka321 merged 1 commit into
Smartdevs17:mainfrom
Dev-sandy1:feat/proration-pause-metering-retry

Conversation

@Dev-sandy1

Copy link
Copy Markdown
Contributor

Summary

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 history

Modified Files

  • src/utils/proration.ts — Added hourly proration, analytics, change limits, credit expiry
  • src/store/subscriptionStore.ts — Added pause/resume actions, PauseRecord, PauseAnalytics
  • backend/services/billing/meteringService.ts — Full rewrite with history, trends, alerts, analytics, billing
  • app/stores/meteringStore.ts — Added usage history, trends, alert acknowledgment, analytics
  • backend/services/billing/dunningService.ts — Added failure-type retry scheduling, analytics, configurable schedules
  • src/store/dunningStore.ts — Added retry history, analytics, schedule configuration
  • backend/services/billing/interfaces.ts — Updated IMeteringService, IDunningService interfaces
  • backend/services/billing/index.ts — Exported new services
  • src/navigation/types.ts — Added PauseResume screen route

Closes

Closes #731
Closes #733
Closes #735
Closes #736

…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
Dev-sandy1 force-pushed the feat/proration-pause-metering-retry branch from 8b66743 to 76ecd45 Compare July 26, 2026 11:08
@drips-wave

drips-wave Bot commented Jul 26, 2026

Copy link
Copy Markdown

@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! 🚀

Learn more about application limits

@Ebuka321
Ebuka321 merged commit 43f5612 into Smartdevs17:main Jul 26, 2026
1 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants