package com.brilliance.isc.vo.derivative;

import com.brilliance.mda.runtime.mda.util.Decimals;
import com.brilliance.isc.common.vo.BizInfoVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

import static com.brilliance.mda.runtime.mda.Constants.NULLDATE;
import static com.brilliance.mda.runtime.mda.Constants.NULLSTR;

@Data
public class JsdBizInfoVo extends BizInfoVo {
    // JSD

    //买卖品种
    private String maimpz;
    //交割日
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date qixiri;
    //是否择期
    private String benzbz;
    //择期起始日期
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date qishrq;
    //大小额标志
    private String shfobz;
    //业务类型
    private String chlibz1;
    //到期日
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date daoqrq;
    //择期改期起始日期
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date chkrqi;
    //入账账户类型
    private String rzhtyp;
    //银行买入账号
    private String zha1zh;
    //出账账户类型
    private String czhtyp;
    //银行卖出账号
    private String zhangh;
    //买卖方向
    private String pngcfx;

    //支取类型 dnfmod.zhqtyp
    private String zhqtyp;

    //实占授信额度金额JSDGRP.REC.RELCREAMT
    private BigDecimal relcreamt  = Decimals.ZERO_SCALE3;

    //Date Closed JSDGRP.REC.CLSDAT
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date clsdat = NULLDATE;

    //风险缓释 JSDGRP.REC.rskmit
    private String rskmit = NULLSTR;

    //类型 \\LIAALL\\LIACCV\\DNFMOD\\CCVTYP
    private  String ccvtyp = NULLSTR;

    //是否融资担保公司JSDGRP.REC.rzdbflg
    private String rzdbflg = NULLSTR;

    /**
     * 结售汇类型
     */
    private String waitjm = "";

    /**
     * 对方客户类别 - 交易主体
     */
    private String dfkhlb = "";

    /**
     * 委托汇率
     */
    private BigDecimal weithl = BigDecimal.ZERO;

    //国际收支申报交易编码
    private String txcode = NULLSTR;
    //外汇局批件号/备案表号/业务编号
    private String regno = NULLSTR;
    // 优惠类型
    private String yohulx = NULLSTR;

    //银行买入�'�币
    private String huobdh = NULLSTR;

    //银行卖出�'�币
    private String dfhbdh = NULLSTR;

    //买入金额
    private  BigDecimal mairje  = Decimals.ZERO_SCALE3;

    //卖出金额
    private  BigDecimal maicje  = Decimals.ZERO_SCALE3;

    //交易成交汇率
    private  BigDecimal jqmrhl  = Decimals.ZERO_SCALE6;

    //授信额度实收比例
    private  BigDecimal relcrepct  = Decimals.ZERO_SCALE6;

}
