package com.brilliance.isc.common.rmbbop.entity;

import com.brilliance.mda.runtime.mda.util.Decimals;
import com.brilliance.isc.common.rmbbop.common.IAds;
import com.brilliance.isc.common.vo.AbstractCommonVo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;

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:tdb:支出信息
 */
@JsonIgnoreProperties(ignoreUnknown = true)
@Getter
@Setter
public class Tdb extends AbstractCommonVo implements IAds {

    //Internal Unique ID
    private String inr = NULLSTR;

    //Version
    private String ver = NULLSTR;

    //人行报送状态
    private String sta = NULLSTR;

    //业务主键
    private String levyno = NULLSTR;

    //操作类型
    private String opertype = NULLSTR;

    //变�'/撤销原因
    private String actiondesc = NULLSTR;

    //银行机构代码
    private String bankorgcode = NULLSTR;

    //付款人名称
    private String payername = NULLSTR;

    //付款人属性
    private String payerattr = NULLSTR;

    //付款人机构代码或身份证件号码
    private String payerorgcode = NULLSTR;

    //付款人帐号
    private String payeracct = NULLSTR;

    //收款人名称
    private String payeename = NULLSTR;

    //收款人常驻国家（地区）代码
    private String payeecountrycode = NULLSTR;

    //收款行行号
    private String recebankcode = NULLSTR;

    //收款人�'�户类型
    private String payeeaccttype = NULLSTR;

    //收款人�'�号
    private String payeeacct = NULLSTR;

    //总金额
    private BigDecimal allamt = Decimals.ZERO_SCALE2;

    //付款日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date payerdate = NULLDATE;

    //结算方式
    private String balancemode = NULLSTR;

    //付款币种
    private String payercny = NULLSTR;

    //是否退款
    private String ifrefund = NULLSTR;

    //原收入申报号码
    private String oriinclevyno = NULLSTR;

    //银行业务编号
    private String banktrano = NULLSTR;

    //支出明细信息
    private int paymentlist;

    //支出明细信息标识
    private String payflg = NULLSTR;

    //Initial Entity Code
    private String ownextkey = NULLSTR;

    //银行机构名称
    private String sbankname = NULLSTR;


}