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

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

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

/**
 * @author zhouhanwei
 * @create 2023/11/10 11:09
 */
@Data
public class AutoDeductionReqDTO {

    private Long id;

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

    /**
     * 自动扣款是否开启（0：未开启，1开启）
     */
    @ApiModelProperty(name = "autoDeductionEnable", value = "自动扣款是否开启（0：未开启，1开启）")
    @NotBlank(message = "自动扣款状态不能为空")
    private String autoDeductionEnable;

    /**
     * 自动扣款设置金额
     */
    @ApiModelProperty(name = "autoDeductionCost", value = "自动扣款设置金额")
    private Long autoDeductionCost;
}
