package com.ai.da.model.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;

@Data
@Schema(description = "购买产品DTO")
public class ProductPurchaseDTO {

    @Schema(description = "购买数量")
    private int quantity;

    // http://example.com
    @NotBlank(message = "return url cannot be empty")
    @Schema(description = "购买完成后返回页面地址")
    private String returnUrl;

    @NotBlank(message = "product name cannot be empty")
    @Schema(description = "产品名 CreditsPurchase || Subscription")
    private String productName;

    @Schema(description = "EcoMonth || Month || Year")
    private String subscribeType;

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

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

    @Schema(description = "优惠码")
    private String promotionCode;
}
