TASK:Stripe订阅,添加月付(经济版)及相应费用、积分的更新
This commit is contained in:
@@ -13,19 +13,22 @@ import java.util.stream.Collectors;
|
||||
@Getter
|
||||
public enum CreditsEventsEnum {
|
||||
|
||||
PRICE("price","6"),
|
||||
PRICE("price","10"),
|
||||
// PRICE("price","1"),// for test
|
||||
// PRICE("price","0.1"),
|
||||
|
||||
BUY_CREDITS("Buy Credits","60"),
|
||||
BUY_CREDITS("Buy Credits","50"),
|
||||
// BUY_CREDITS("Buy Credits","10"),// for test
|
||||
|
||||
REFUND("Refund","60"),
|
||||
REFUND("Refund","50"),
|
||||
// BUY_CREDITS("Buy Credits","10"),
|
||||
|
||||
// 每月更新
|
||||
INIT_YEARLY("init_yearly", "6000"),
|
||||
INIT_MONTHLY("init_monthly", "5000"),
|
||||
INIT_YEARLY("init_yearly", "50000"),
|
||||
INIT_MONTHLY("init_monthly", "3500"),
|
||||
INIT_MONTHLY_ECO("init_monthly_eco", "500"),
|
||||
INIT_QUARTERLY("init_quarterly", "12000"),
|
||||
INIT_MONTHLY_EDU("init_monthly_edu", "3500"),
|
||||
INIT_TRIAL("init_trial", "100"),
|
||||
INIT_WEEKLY("init_weekly","6000"),
|
||||
RESET_YEAR_CREDITS("reset_year_credits","6000"),
|
||||
|
||||
@@ -7,13 +7,19 @@ import lombok.Getter;
|
||||
@AllArgsConstructor
|
||||
public enum ProductEnum {
|
||||
// 积分购买
|
||||
CreditsProduct("AiDA credits purchase", 6L),
|
||||
CreditsProduct("AiDA credits purchase", 10L, 60L),
|
||||
// 年度订阅
|
||||
AnnualSubscription("AiDA Annual Subscription", 5000L),
|
||||
// 月度订阅
|
||||
MonthlySubscription("AiDA Monthly Subscription", 500L),
|
||||
AnnualSubscription("AiDA Annual Subscription", 5000L, 50000L),
|
||||
// 月度订阅(订阅费500,每月3500 积分)
|
||||
MonthlySubscription("AiDA Monthly Subscription", 500L, 3500L),
|
||||
// 月度订阅 -- 经济实惠版 (订阅费100,每月500 积分)
|
||||
Eco_MonthlySubscription("AiDA Eco Monthly Subscription", 100L, 500L),
|
||||
// 季度订阅
|
||||
QuarterlySubscription("AiDA Quarterly Subscription", 1500L, 12000L),
|
||||
// 月度订阅 -- 教育版
|
||||
EDUMonthlySubscription("AiDA Edu Monthly Subscription", 200L, 3500L),
|
||||
// 测试
|
||||
DailySubscription("AiDA Daily Subscription", 5L),
|
||||
DailySubscription("AiDA Daily Subscription", 5L, 100L),
|
||||
;
|
||||
|
||||
/**
|
||||
@@ -22,4 +28,6 @@ public enum ProductEnum {
|
||||
private final String name;
|
||||
|
||||
private final Long price;
|
||||
|
||||
private final Long credits;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user