feat(subscription): add VIP renewal price notice
This commit is contained in:
@@ -12,6 +12,7 @@ export interface FirstRechargeOfferView {
|
||||
badgeText: string;
|
||||
title: string;
|
||||
subtitle: string;
|
||||
renewalNotice: string | null;
|
||||
}
|
||||
|
||||
export function canChooseSubscriptionPayChannel(
|
||||
@@ -159,6 +160,7 @@ export function getDefaultSubscriptionPlanId(input: {
|
||||
|
||||
export function getFirstRechargeOfferView(input: {
|
||||
isFirstRecharge: boolean;
|
||||
subscriptionType: SubscriptionType;
|
||||
vipPlans: readonly VipOfferPlanView[];
|
||||
coinPlans: readonly CoinsOfferPlanView[];
|
||||
}): FirstRechargeOfferView | null {
|
||||
@@ -176,5 +178,9 @@ export function getFirstRechargeOfferView(input: {
|
||||
title: "First Recharge Offer",
|
||||
subtitle:
|
||||
"Your first recharge price is already applied. No code needed.",
|
||||
renewalNotice:
|
||||
input.subscriptionType === "vip"
|
||||
? "First month 50% off. Renews at the regular price from the second month."
|
||||
: null,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user