package com.brilliance.isc.bo;

import com.brilliance.mda.runtime.mda.util.Decimals;
import com.brilliance.isc.common.json.BigDecimalSerialize;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;

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;


/**
* TABLE:lsb:LSB - Limit System Balance
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Lga {

        private String inr = NULLSTR;

        //INR of related LGB record
        private String lgbinr = NULLSTR;

        //Currency of Used Amount
        private String usecur = NULLSTR;

        //Used Amount
        @JsonSerialize(using = BigDecimalSerialize.class)
        private  BigDecimal useamt  = Decimals.ZERO_SCALE3;

        //Currency of Pending Amount
        private String naccur = NULLSTR;

        //Pending Amount
        @JsonSerialize(using = BigDecimalSerialize.class)
        private  BigDecimal nacamt  = Decimals.ZERO_SCALE3;

        //Date of Last Re-evaluation
        @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
        private Date xrfdat = NULLDATE;

}