package com.jeequan.jeepay.core.model.rqrs.division;

import com.jeequan.jeepay.core.constants.CS;
import com.jeequan.jeepay.core.model.rqrs.AbstractMchAppRQ;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 分账账号 渠道余额提现
 *
 * @author terrfly
 *
 * @date 2022/05/11 10:46
 */
@Data
public class DivisionReceiverChannelBalanceCashoutRQ extends AbstractMchAppRQ {

    /** 分账接收者ID   **/
    @NotNull(message="分账接收者ID不能为空")
    private Long receiverId;

    /** 提现金额   **/
    @NotNull(message="提现金额不能为空")
    @Min(value = 1, message = "提现金额请大于1")
    private Long cashoutAmount;

    @Override
    public String apiName() {
        return CS.MCH_APP_API_ENUM.API_DIVISION_CHANNEL_CASHOUT;
    }

}
