package com.brilliance.isc.vo.manager;

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;


/**
* 额度修改实体类
*/
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class LgbEditVo {

        private String inr = NULLSTR;

        //Currency
        private String cur = NULLSTR;

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

        //Status
        private String sta = NULLSTR;

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

        //Limit Type
        private String typ = NULLSTR;

        //Party INR
        private String ptyinr = NULLSTR;

        //Party
        private String extkey = NULLSTR;

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

}