package com.crm.rely.backend.core.pojo.table;

import com.crm.rely.backend.core.pojo.BaseApproveTable;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by max on 2020/8/7.
 */
@Data
@Entity
@Table(name = "finance_agent_withdraw")
public class FinanceAgentWithdrawTable extends BaseApproveTable {

    private Long agentId;

    private Long cId;

    /**
     * 流水号
     */
    private String serial;

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

    /**
     * 用户名称
     */
    private String name;
    private String areaCode;
    private String phone;
    /**
     * 出金账号平台
     */
    private String platform;
    /**
     * 出金账号
     */
    private Long login;
    /**
     * 出金交易账号类型
     */
    private Long loginType;
    /**
     * 出金金额
     */
    private BigDecimal amount;

    private String currency;
    /**
     * 出金汇率
     */
    private BigDecimal rate;
    /**
     * 出金实际金额
     */
    private BigDecimal transformAmount;
    /**
     * 出金实际货币类型
     */
    private String transformCurrency;
    /**
     * 通道流水号(id)
     */
    private String channelSerial;

    private Integer callbackStatus;

    private Integer withdrawStatus;

    private BigDecimal withdrawAmount;

    private String withdrawCurrency;

    private String withdrawTicket;

    private Integer operationType;

    private String payType;

    private String bankCode;

    private String address;

    private String message;

    private String bankUname;

    private String bankCardNum;

    private String bankName;

    private String bankBranchName;

    private String bankAddr;

    private String customBankCode;

    private String swiftCode;

    private String bankFront;

    private String bankBack;

    private String agencyNo;

    private String cvv;

    private String expiryMonth;

    private String expiryYear;


    //下面为出金通道配置信息 作为记录

    private String remitChannelType;
    private String remitChannelCode;

    private String remitChannelName;

    private String remitChannelEnName;

    private String remitChannelRequestUrl;

    private String remitChannelCurrency;

    private String remitChannelIcon;

    private String remitChannelEnIcon;

    private String remitChannelIntroduce;

    private String remitChannelEnIntroduce;

    private Integer salesStatus;

    private Integer salesSettingLevel;

    private String addressProve;

    private String cpf;

    private Long salesId;

    private Integer submitStatus;

    private Date submitTime;

    private String country;

    private String actualPayType;

    private String externalUserId;

    private Integer authStatus;

    private String applicantId;

    private String kycVerifyUrl;

    private Integer realVerify;

    private Date callbackTime;

}
