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

import com.brilliance.mda.runtime.mda.util.Decimals;
import com.brilliance.mda.support.jakson.serialize.BigDecimalSerializeRate;
import com.brilliance.mda.support.jakson.serialize.DecimalLength;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import lombok.Data;

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

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


@Data
@ApiModel
public class ClmcbeVo {

    //Limit Type

    private  String limtyp = NULLSTR;
    //Req.Type1

    private  String reqtyp1 = NULLSTR;
    //业务币种

    private  String cur = NULLSTR;
    //业务发生额
    @JsonSerialize(using = BigDecimalSerializeRate.class)
    @DecimalLength(value = 2)
    private BigDecimal cbeamt = Decimals.ZERO_SCALE2;
    //额度币种

    private  String limcur = NULLSTR;
    //额度发生额
    @JsonSerialize(using = BigDecimalSerializeRate.class)
    @DecimalLength(value = 2)
    private  BigDecimal limcbeamt = Decimals.ZERO_SCALE2;
    //额度日期

    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date credat;
    //客户编号

    private  String ptyextkey = NULLSTR;
    //客户名称

    private  String ptynam = NULLSTR;
    //业务编号

    private  String ownref = NULLSTR;
    //合同保证金比例
    @JsonSerialize(using = BigDecimalSerializeRate.class)
    @DecimalLength(value = 6)
    private  BigDecimal ccvbl = Decimals.ZERO_SCALE6;
    //保证金余额
    @JsonSerialize(using = BigDecimalSerializeRate.class)
    @DecimalLength(value = 2)
    private  BigDecimal ccvamt = Decimals.ZERO_SCALE2;
    //额度类型

    private  String limvar = NULLSTR;
    //额度编号

    private  String dgzylimref = NULLSTR;
    //额度发生额
    @JsonSerialize(using = BigDecimalSerializeRate.class)
    @DecimalLength(value = 2)
    private  BigDecimal ckcbeamt = Decimals.ZERO_SCALE2;
    //Req.Type2

    private  String reqtyp2 = NULLSTR;
    //业务余额
    @JsonSerialize(using = BigDecimalSerializeRate.class)
    @DecimalLength(value = 2)
    private  BigDecimal comamt = Decimals.ZERO_SCALE2;

    public void reset() {

    }
}
