package com.jeequan.jeepay.model;

import com.jeequan.jeepay.core.model.applyment.PaywayFee;
import lombok.Data;

import java.util.Map;

/**
 * 一个用户/服务商的标准费率信息
 *
 * @author deng
 * @since 2024/5/7
 */
@Data
public class RateConfigSimple {

    private String isvNo;

    private String isvName;

    private String ifCode;

    private String ifName;

    private Integer range;

    private String mccCode;

    private String name;

    private String infoId;

    private String infoType;

    private String infoName;

    /**
     * 自己的费率
     */
    private Map<String, PaywayFee> self;

    /**
     * 自己的默认费率，主要针对商户
     */
    private Map<String, PaywayFee> selfDef;

    /**
     * 下级代理默认费率
     */
    private Map<String, PaywayFee> subAgentDef;

    /**
     * 下级商户默认费率
     */
    private Map<String, PaywayFee> subMchDef;

    /**
     * 商户最大费率，用于限制下级代理商户的费率
     */
    private Map<String, PaywayFee> mchMax;
}
