Stripe支付--添加推广码功能及相应佣金计算

This commit is contained in:
2025-04-15 10:22:45 +08:00
parent d6c869727a
commit 0ba28588da
17 changed files with 416 additions and 31 deletions

View File

@@ -0,0 +1,20 @@
package com.ai.da.model.dto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotNull;
@Data
public class CreateCouponDTO {
@ApiModelProperty("折扣率")
@NotNull(message = "Please set the percentOff")
private Float percentOff;
@ApiModelProperty("佣金比例")
@NotNull(message = "Please set the commissionRate.")
private Float commissionRate;
@ApiModelProperty("推广码到期时间 秒级时间戳")
private Long timestamp;
@ApiModelProperty("推广码最大使用次数")
private Long maxRedemptions;
}

View File

@@ -30,4 +30,7 @@ public class ProductPurchaseDTO {
@ApiModelProperty("使用Alipay-HK时需要选择 ALIPAYHK || ALIPAYCN")
private String wallet;
@ApiModelProperty("优惠码")
private String promotionCode;
}