Files
cfw-autumn/shared/models/cusModels/cusExpand.ts
John Yeo a005f6d879 refactor: separate subscriptions from customer cache
- Split subscription data into separate cache keys for better performance
- Updated cache utilities to handle subscriptions independently
- Modified Lua scripts to manage separate subscription cache entries
- Updated API models and expand logic for separated subscriptions
- Fixed test utilities to match new data structure

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 10:28:02 +00:00

27 lines
716 B
TypeScript

// Previous customer expand options for v1.2 of the API
export enum CusExpandV0 {
Invoices = "invoices",
TrialsUsed = "trials_used",
Rewards = "rewards",
Entities = "entities",
Referrals = "referrals",
PaymentMethod = "payment_method",
UpcomingInvoice = "upcoming_invoice",
}
// New customer expand options!
export enum CusExpand {
Invoices = "invoices",
TrialsUsed = "trials_used",
Rewards = "rewards",
Entities = "entities",
Referrals = "referrals",
PaymentMethod = "payment_method",
UpcomingInvoice = "upcoming_invoice",
// PlansPlan = "plans.plan",
SubscriptionsPlan = "subscriptions.plan",
ScheduledSubscriptionsPlan = "scheduled_subscriptions.plan",
BalancesFeature = "balances.feature",
}