package com.brilliance.isc.esb.model.ejs;


import com.brilliance.isc.esb.model.ErrorData;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.ArrayList;
import java.util.List;

/**
 * seg06 根据客户号查询账号和币种对外响应对象
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ResSeg06 extends ErrorData {

    /**
     * 对象名称
     */
    public String objnam;

    /**
     * 交易结果[0,7]
     */
    public String JIAYJG;

    /**
     * 错误代码[0,7]
     */
    public String ERRORCODE;

    /**
     * 错误描述[0，200]
     */
    public String ERRORMESSAGE;

    /**
     * 账号币种信息
     */
    public List<ItemAcctList> AcctList = new ArrayList<>();

    public static class ItemAcctList{

        /**
         * 账号信息
         */
        public String AcctNo;

        /**
         * 币种
         */
        public String CUR;

    }

    public ResSeg06() {
    }

    public ResSeg06(String objnam, String JIAYJG, String ERRORCODE, String ERRORMESSAGE, List<ItemAcctList> acctList) {
        this.objnam = objnam;
        this.JIAYJG = JIAYJG;
        this.ERRORCODE = ERRORCODE;
        this.ERRORMESSAGE = ERRORMESSAGE;
        AcctList = acctList;
    }
}
