package com.brilliance.isc.vo.domlc;

import com.brilliance.isc.common.vo.BizInfoVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

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 DidBizInfoVo extends BizInfoVo {

    //支取类型 dnfmod.zhqtyp
    private String zhqtyp;
    //电证标识
    private String elcflg;
    //报文类型
    private String msgtyp;

    private String rmbflg;

    private String sndmsg;

    private String rejhnd;

    private String fromflg;

    /**
     * GRP\REC\NOMTOP Amount Tolerance - Positive
     */
    private int nomtop;

    /**
     * 是否接受修改标识 litdla.ameflg
     */
    private String ameflg;

    /**
     * GRP\REC\OPNDAT //Date L/C Opened/Issued
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date opndat = NULLDATE;

    /**
     * GRP\REC\CREDAT Date of Creation Opening or Registry
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date credat = NULLDATE;

    /**
     * GRP\REC\STTTENDAT
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date stttendat = NULLDATE;

    /**
     * GRP\REC\MATDAT
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date matdat = NULLDATE;

    /**
     * GRP\REC\EXPDAT//Date of Expiry
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date expdat = NULLDATE;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date newexpdat;

    //是否代开信用证 DIDGRP\REC\DKFLG
    private String dkflg = NULLSTR;

    private String avbby = NULLSTR;

    private int tenmaxday = -1;

    //Reference GRP\REC\ownref
    private String ownref = NULLSTR;


    private String msgtxt = NULLSTR;

    private String jscyjg = NULLSTR;

    //自由格式报文类型
    private String typsel = NULLSTR;

    //fremsg相关
    private String sndmt;
    private String msgrol = NULLSTR;
    private String ccrol = NULLSTR;
    private String reldir = NULLSTR;
    private String fulmt = NULLSTR;
    private String relmt = NULLSTR;

    private String guaflg = NULLSTR;
}
