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;

/**
 * 存款
 *
 * @author Administrator
 */
@Data
@Entity
@Table(name = "finance_deposit")
public class FinanceDepositTable extends BaseApproveTable {

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

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

    private Long cId;

    /**
     * 用户名称
     */
    private String name;
    /**
     * 入金账号平台
     */
    private String platform;
    /**
     * 入金账号
     */
    private Long login;

    private Long agentId;
    /**
     * 入金交易账号类型
     */
    private Long loginType;
    /**
     * 入金金额
     */
    private BigDecimal amount;
    /**
     * 入金账号类型
     */
    private String currency;

    /**
     * 换算出来的人民币
     */
    private BigDecimal cny;

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

    private Integer callbackStatus;

    private Date callbackTime;

    private Integer depositStatus;

    private String depositTicket;

    private Integer free;

    private BigDecimal depositAmount;

    private String depositCurrency;

    private Integer operationType;

    private String promoCode;
    /**
     * 过期时间
     */
    private Date expireTime;
    /**
     * 调用通道是使用的form或者是跳转的url
     */
    private String formUrl;

    private String payType;

    private String bankCode;

    private String voucherUrl;

    /**
     * 国家
     */
    private String country;

    /**
     * 国家中文名称
     */
    private String countryName;

    /**
     * 国家英文名称
     */
    private String countryEnName;

    //下面为入金通道配置信息 作为凭证

    private String remittanceChannelCode;

    private String remittanceChannelName;

    private String remittanceChannelEnName;

    private String remittanceChannelRequestUrl;

    private String remittanceChannelProperty;

    private String remittanceChannelCurrency;

    private String remittanceChannelIcon;

    private String remittanceChannelEnIcon;

    private String remittanceChannelIntroduce;

    private String remittanceChannelEnIntroduce;

    private Integer activityStatus;

    private String bankMsg;

    private String callbackData;

    private Integer activityPercentageGive;

    private Integer activityMidyearTenPercentGive;
    private Integer activityTwoPercentGive;
    private Integer activityGive;

    private String sourceCode;
    private String sourceName;
    private String sourceNameEn;

    private Long salesId;
}
