package com.yuchen.saas.payment.api.dto.wallet;

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

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author zhouhanwei
 * @create 2023/4/26 18:08
 */
@Data
public class CreateUserWalletRefundReqDTO {

    /**
     * 钱包账户id
     */
    @ApiModelProperty(name = "walletId", value = "钱包账户id")
    @NotNull(message = "钱包id不能为空")
    private Long walletId;

    /**
     * 钱包类型（1：平台钱包，2：渠道钱包）
     */
    @ApiModelProperty(name = "walletType", value = "钱包类型（1：平台钱包，2：渠道钱包）")
    @NotBlank(message = "钱包类型不能为空")
    private String walletType;

    /**
     * 退款金额
     */
    @ApiModelProperty(name = "walletRefundCost", value = "钱包可退款金额")
    @NotNull(message = "退款金额不能为空")
    //    @Range(min = 1, max = 50000, message = "退款金额请控制在500元以内")
    private Long refundCost;

    /**
     * 退款理由
     */
    @ApiModelProperty(name = "walletRefundReason", value = "退款理由")
    private String refundReason;
}
