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

import com.brilliance.mda.runtime.mda.util.Decimals;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
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 IrpeleVo implements Serializable {

    //Internal Unique Id of Balance Entry
    private String inr = NULLSTR;

    //Object Type
    private String objtyp = NULLSTR;

    //Object INR
    private String objinr = NULLSTR;

    //Begin of Period incl.
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date begdat = NULLDATE;

    //End of Period excl.
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date enddat = NULLDATE;

    //Value Date
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date valdat = NULLDATE;

    //Currency
    private String cur = NULLSTR;

    //Amount
    private BigDecimal amt  = Decimals.ZERO_SCALE2;

    //Calculation Flag
    private String calflg = NULLSTR;
}
