package com.brilliance.isc.vo.lg;

import com.brilliance.mda.runtime.mda.util.Decimals;
import com.brilliance.isc.common.transaction.vo.BaseTransactionVo;
import com.brilliance.isc.vo.CipmodVo;
import com.brilliance.isc.vo.TransOrderVo;
import com.brilliance.isc.vo.model.Ncdgrp;
import com.brilliance.isc.vo.model.Nidgrp;
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.NULLSTR;

@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class NitpseStoreVo extends BaseTransactionVo {
    private Nidgrp nidgrp;
    private Ncdgrp ncdgrp;
    private BigDecimal docamt = Decimals.ZERO_SCALE2;
    private String clsflg = NULLSTR;
    //预计核验日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date prechkdat;
    //是否需要核验
    private String ischktyp = NULLSTR;
    //端到端标识号
    private String oribusnum = NULLSTR;

    private String paypsb = NULLSTR;

    private  String clmrmbflg= NULLSTR;

    private  String cre732flg = NULLSTR;

    private String doccur;

    //报文类型   trnmod.swftyp
    private String swftyp;
    //跨境人民币清算模式  trnmod.cmtflg
    private String cmtflg;
    private CipmodVo cipmodVo;
    private TransOrderVo transOrderVo;

    @Override
    public void reset() {
        super.reset();
        if (nidgrp == null) {
            nidgrp = new Nidgrp();
        }
        if (ncdgrp == null) {
            ncdgrp = new Ncdgrp();
        }
    }
}
