mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
feat(premium): give failed renewals a billing-cycle grace period (#3066)
This commit is contained in:
1 parent
f5e32aed31
commit
dfdfffe5de
53 files changed
+1974
-1206
No files matched your search
@@ -41,6 +41,9 @@ export const UserPremiumTypes = {
|
||||
|
||||
export type UserPremiumType = ValueOf<typeof UserPremiumTypes>;
|
||||
|
||||
export const PREMIUM_GRACE_PERIOD_DAYS = 3;
|
||||
export const PREMIUM_PAYMENT_RECOVERY_GRACE_DAYS = {monthly: 7, yearly: 14} as const;
|
||||
|
||||
export const UserPremiumTypesDescriptions: Record<keyof typeof UserPremiumTypes, string> = {
|
||||
NONE: 'No premium subscription',
|
||||
SUBSCRIPTION: 'Active premium subscription',
|
||||
|
||||
Reference in new issue
Block a user