新增功能 -- 产品订阅 年度/月度
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package com.ai.da.mapper.primary;
|
||||
|
||||
import com.ai.da.mapper.primary.entity.SubscriptionInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
public interface SubscriptionInfoMapper extends BaseMapper<SubscriptionInfo> {
|
||||
|
||||
}
|
||||
@@ -2,7 +2,9 @@ package com.ai.da.mapper.primary.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("t_payment_info")
|
||||
public class PaymentInfo extends BaseEntity{
|
||||
@@ -13,11 +15,15 @@ public class PaymentInfo extends BaseEntity{
|
||||
|
||||
private String paymentType;//支付类型
|
||||
|
||||
private String tradeType;//交易类型
|
||||
|
||||
private String tradeState;//交易状态
|
||||
|
||||
private Float payerTotal;//支付金额(元)
|
||||
|
||||
private String content;//通知参数
|
||||
|
||||
// 支付类型 new || renewal
|
||||
private String type;
|
||||
|
||||
// 当前支付是否已邮件通知 0 || 1
|
||||
private Integer notified;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
package com.ai.da.mapper.primary.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@Data
|
||||
@TableName("t_subscription_info")
|
||||
public class SubscriptionInfo extends BaseEntity{
|
||||
|
||||
private Long accountId;
|
||||
|
||||
private String orderNo;
|
||||
|
||||
// stripe || paypal 平台生成的id
|
||||
private String subscriptionId;
|
||||
|
||||
// month || year
|
||||
private String type;
|
||||
|
||||
// active || expired
|
||||
private String status = "active";
|
||||
|
||||
// 是否自动续订
|
||||
private byte autoRenewal = (byte)1;
|
||||
|
||||
// 支付方式
|
||||
private String paymentMethod;
|
||||
|
||||
// 如果是用卡支付,可以看到银行卡最后四位
|
||||
private String last4;
|
||||
|
||||
// 续订的下一个付款日
|
||||
private String nextPayDate;
|
||||
|
||||
// 当前订阅订单有效期开始时间
|
||||
private Long currentPeriodStart;
|
||||
|
||||
// 当前订阅订单有效期结束时间
|
||||
private Long currentPeriodEnd;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user