package com.cool.store.request.fees;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 钱包支付Request
 * </p>
 *
 * @author wangff
 * @since 2026/1/30
 */
@Data
public class WalletPayRequest {
    @ApiModelProperty("门店id")
    @NotNull(message = "门店id不能为空")
    private Long shopId;

    @ApiModelProperty("费用类型code列表")
    @NotEmpty(message = "费用类型code列表不能为空")
    private List<String> expenseTypes;

    @ApiModelProperty("总金额")
    @Digits(integer = 10, fraction = 2, message = "金额整数位最多10位，小数位最多2位")
    @NotNull(message = "总金额不能为空")
    private BigDecimal amount;

    @ApiModelProperty("支付密码(sm3加密后字符串)")
    @NotBlank(message = "支付密码不能为空")
    private String payPwd;

}
