package com.brilliance.isc.bo;

import java.util.*;
import java.math.BigDecimal;


import com.brilliance.mda.runtime.mda.*;
import static com.brilliance.mda.runtime.mda.Constants.*;
import com.brilliance.mda.runtime.mda.util.*;
import com.brilliance.isc.common.json.BigDecimalSerialize;
import com.brilliance.isc.common.vo.AbstractCommonVo;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;



/**
 * TABLE:eca:国内外汇货款－签约信息
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Eca extends AbstractCommonVo {

    //Internal Unique ID
    private String inr = NULLSTR;

    //Version
    private String ver = NULLSTR;

    //操作类型
    private String actiontype = NULLSTR;

    //删除原因
    private String actiondesc = NULLSTR;

    //国内外汇贷款编号
    private String dofoexlocode = NULLSTR;

    //债权人代码
    private String creditorcode = NULLSTR;

    //债务人代码
    private String debtorcode = NULLSTR;

    //债务人中文名称
    private String debtorname = NULLSTR;

    //国内外汇贷款类型
    private String dofoexlotype = NULLSTR;

    //转贷项目名称
    private String lenproname = NULLSTR;

    //转贷协议号
    private String lenagree = NULLSTR;

    //起息日
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date valuedate = NULLDATE;

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

    //贷款币种
    private String currence = NULLSTR;

    //签约金额
    @JsonSerialize(using = BigDecimalSerialize.class)
    private  BigDecimal contractamount  = Decimals.ZERO_SCALE2;

    //年化利率值 利率不能进行序列化，否则丢失小数位
    private  BigDecimal anninrate  = Decimals.ZERO_SCALE8;

    //备注
    private String remark = NULLSTR;

    //接口状态
    private String sta = NULLSTR;

    //INR of EBL
    private String eblinr = NULLSTR;

    //借据号
    private String fincod = NULLSTR;

    //核心交易流水号
    private String hxjyls = NULLSTR;

    //创建日期
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date credat = NULLDATE;



}

