package com.brilliance.isc.bo;

import com.brilliance.mda.runtime.mda.util.Decimals;
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.NULLDATE;
import static com.brilliance.mda.runtime.mda.Constants.NULLSTR;


/**
* TABLE:lsm:LSM - Limit System Modifications
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Lsm {

        //Internal Unique ID Limit Modification
        private String inr = NULLSTR;

        //Owning Limit Request
        private String lsrinr = NULLSTR;

        //Originating Transaction
        private String trninr = NULLSTR;

        //Originating CBE Entry
        private String cbeinr = NULLSTR;

        //Release Status
        private String lsmflg = NULLSTR;

        //Maturity of the Limit Usage
        @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
        private Date matdat = NULLDATE;

        //Currency
        private String cur = NULLSTR;

        //Amount
        private  BigDecimal amt  = Decimals.ZERO_SCALE2;
}