package com.crm.rely.backend.model.entity.finance.withdraw;

import com.crm.rely.backend.core.entity.base.BaseAddEntity;
import com.crm.rely.backend.model.constant.PayConstants;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class FinanceWithdrawBaseAddEntity extends BaseAddEntity {

    /**
     * 用户id
     */
    private Long customId;

    /**
     * 出金账号
     */
//    @NotNull(message = PayConstant.PAY_LOGIN_NOT_EMPTY)
    private Long login;
    /**
     * 出金金额
     */
    @NotNull(message = PayConstants.PAY_REMIT_AMOUNT_NOT_EMPTY)
    @Min(value = 0, message = PayConstants.PAY_REMIT_AMOUNT_NOT_EMPTY)
    private BigDecimal amount;

    private String payType;

    private String channelType;

    private String bankCode;

    private String currency;

    private String transformCurrency;

    private Long cId;

    private Long salesId;

    private String extParam;

    private String callbackMq;

    private String email;

    private String emailCode;


    private BigDecimal fixedRate;
    private BigDecimal fixedRateAmount;

}
