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("EcoMonth || Month || Year")
    private String subscribeType;

    @ApiModelProperty("是否自动续订 one_time || recurring")
    private Boolean autoRenewal;

    @ApiModelProperty("使用Alipay-HK时需要选择 ALIPAYHK || ALIPAYCN")
    private String wallet;

    @ApiModelProperty("优惠码")
    private String promotionCode;
}
