package com.brilliance.isc.bo.model;


import com.brilliance.mda.runtime.mda.util.Decimals;
import com.brilliance.isc.bo.Cbb;
import com.brilliance.isc.common.vo.BizInfoVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

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

/**
 *国内外汇贷款报送需要的 业务字段
 */

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class CfaecaBizInfo extends BizInfoVo{

    /**
     * 交易币种
     */
    private String maxcur = NULLSTR;

    /**
     * 交易金额
     */
    private BigDecimal maxamt = Decimals.ZERO_SCALE2;

    /**
     * 融资业务编号  TDR.OWNREF 或 BPD.OWNREF
     */
    String finownref = NULLSTR ;

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

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

    /**
     * 预收息金额  FINMOD.INTAMT
     */
    private BigDecimal intamt = Decimals.ZERO_SCALE2;

    /**
     * 执行利率  TRDGRP.REC.ACTRAT
     */
    private BigDecimal cfarat = Decimals.ZERO_SCALE6;

    /**
     * 还本付息金额  FINMOD.CBS.TOTINT
     */
    private BigDecimal totint = Decimals.ZERO_SCALE2;

    /**
     * 还本金额  FINMOD.CBS.CBE.AMT
     */
    private BigDecimal finamt = Decimals.ZERO_SCALE2;

    /**
     * 借据号 FINMOD.FINCOD
     */
    private String fincod =  NULLSTR;




}

