新增功能 -- 产品订阅 年度/月度
This commit is contained in:
32
src/main/java/com/ai/da/model/dto/ProductPurchaseDTO.java
Normal file
32
src/main/java/com/ai/da/model/dto/ProductPurchaseDTO.java
Normal file
@@ -0,0 +1,32 @@
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import javax.validation.constraints.NotBlank;
|
||||
|
||||
@Data
|
||||
@ApiModel("购买产品DTO")
|
||||
public class ProductPurchaseDTO {
|
||||
|
||||
@ApiModelProperty("购买数量")
|
||||
private int quantity;
|
||||
|
||||
// http://example.com
|
||||
@NotBlank(message = "return url cannot be empty")
|
||||
@ApiModelProperty("购买完成后返回页面地址")
|
||||
private String returnUrl;
|
||||
|
||||
@NotBlank(message = "product name cannot be empty")
|
||||
@ApiModelProperty("产品名 CreditsPurchase || Subscription")
|
||||
private String productName;
|
||||
|
||||
@ApiModelProperty("Month || Year")
|
||||
private String subscribeType;
|
||||
|
||||
@ApiModelProperty("是否自动续订 one_time || recurring")
|
||||
private Boolean autoRenewal;
|
||||
|
||||
private String refId;
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.ai.da.model.dto;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class SubscriptionEmailParamsDTO {
|
||||
// 用户名
|
||||
private String username;
|
||||
|
||||
// t_payment_info id(每次支付对于用户来说是一笔新订单)
|
||||
private String orderId;
|
||||
|
||||
// 订单支付创建日期
|
||||
private String createDate;
|
||||
|
||||
// 购买数量
|
||||
private String quantity;
|
||||
|
||||
// 费用
|
||||
private String totalFee;
|
||||
|
||||
// 当前订阅开始时间
|
||||
private String lastOrderDate;
|
||||
|
||||
// 当前订阅结束时间
|
||||
private String endOfPrepaidTerm;
|
||||
|
||||
// 付款方式
|
||||
private String paymentMethod;
|
||||
|
||||
// 订阅Id
|
||||
private String subscriptionId;
|
||||
|
||||
// 订阅方式
|
||||
private String subscriptionType;
|
||||
|
||||
// 订阅开始时间
|
||||
private String startDate;
|
||||
|
||||
// 下一个支付日期
|
||||
private String nextPayDate;
|
||||
|
||||
// 下次付款时间(reminder)
|
||||
private String renewalTime;
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user