package com.brilliance.isc.bo;

import com.brilliance.mda.runtime.mda.util.Decimals;
import com.brilliance.isc.common.vo.AbstractCommonVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
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
@JsonIgnoreProperties(ignoreUnknown = true)
public class Huidan extends AbstractCommonVo {
    //Internal Unique ID of  huidan
    private String inr = NULLSTR;

    //Internal Unique ID of TRN
    private String trninr = NULLSTR;

    //Object Type of Associated Contract Optional
    private String objtyp = NULLSTR;

    //Object INR of Associated Contract Optional
    private String objinr = NULLSTR;

    //国结业务编号
    private String ownref = NULLSTR;

    //核心业务编号
    private String yewubh = NULLSTR;

    //交易日期
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date jyriqi = NULLDATE;

    //客户名1
    private String kehum1 = NULLSTR;

    //客户名2
    private String kehum2 = NULLSTR;

    //�'�币1
    private String huobi1 = NULLSTR;

    //�'�币2
    private String huobi2 = NULLSTR;

    //�'�号1
    private String zh1hao = NULLSTR;

    //�'�号2
    private String zh2hao = NULLSTR;

    //交易前金额1
    private BigDecimal pream1  = Decimals.ZERO_SCALE3;

    //交易前金额2
    private  BigDecimal pream2  = Decimals.ZERO_SCALE3;

    //金额1
    private  BigDecimal jine1  = Decimals.ZERO_SCALE3;

    //金额2
    private  BigDecimal jine2  = Decimals.ZERO_SCALE3;

    //差额交割汇率
    private  BigDecimal cehulv  = Decimals.ZERO_SCALE6;

    //汇率1
    private  BigDecimal huilv1  = Decimals.ZERO_SCALE6;

    //近远端标志
    private String dqflag = NULLSTR;

    //是否生成回单
    private String isflag = NULLSTR;

    //回单面函模板种类
    private String huityp = NULLSTR;

    //对方客户类别
    private String dfkhlb = NULLSTR;

    //外管统计码
    private String waitjm = NULLSTR;

    //交易品种
    private String joyipz = NULLSTR;

    //业务品种
    private String yewupz = NULLSTR;
}
