package com.brilliance.isc.common.entmod.vo;

import com.brilliance.isc.common.vo.AbstractCommonVo;
import com.brilliance.isc.vo.model.EntinfVo;
import com.brilliance.mda.runtime.mda.util.Decimals;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

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

/**
 * 企业名录
 */
@Getter
@Setter
@JsonIgnoreProperties(ignoreUnknown = true)
public class EntmodVo extends AbstractCommonVo {

    private EntmodBizInfo rec;
    /**
     * 调用接口标识
     * X 表示已调用接口
     */
    private  String rtyflg = NULLSTR;
    /**
     * 校验标识
     * X 表示已校验企业名录
     */
    private  String chkflg = NULLSTR;
    //折美元金额
    private BigDecimal converamt = Decimals.ZERO_SCALE3;
    //企业代码
    private  String corpid = NULLSTR;
    //Transaction Type
    private  String mcttyp = NULLSTR;
    //External Key of Address
    private  String extkey = NULLSTR;
    //查询时�'
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date entdat;
    //业务币种
    private  String concur = NULLSTR;
    //业务金额
    private  BigDecimal conamt = Decimals.ZERO_SCALE3;
    //融资类型
    private  String fintyp = NULLSTR;
    //校验�'�号
    private  String acc = NULLSTR;
    //外管局�'�户性�'�
    private  String actcod = NULLSTR;
    //重新调用接口次数
    private  int rtynum;
    //企业名录按钮显示标志
    private  String visflg = NULLSTR;
    //Party Optional
    private  String ptyinr = NULLSTR;

    private String errorMsg;

    private EntinfVo entinf;

    @Override
    public void reset() {
        if (entinf == null) {
            entinf = new EntinfVo();
        }
        entinf.reset();
        if (rec == null) {
            rec = new EntmodBizInfo();
        }
        rec.reset();
    }
}
