using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AdapaySDK
{
    public class FreezeAccount
    {
        /**
         * 创建账户冻结对象
         *
         * @param requestParams  请求参数
         * @param merchantKey merchantKey
         * @return 账户冻结对象
         */
        public static Dictionary<string, Object> create(Dictionary<string, object> requestParams)
        {
            return AdapayRequest.requestAdapay(requestParams, APIUrlEnum.FREEZE_ACCOUNT_CREATE, null);
        }

        /**
         * 创建账户冻结对象
         *
         * @param requestParams  请求参数
         * @param merchantKey merchantKey
         * @return 账户冻结对象
         */
        public static Dictionary<string, Object> create(Dictionary<string, object> requestParams, string merchantKey)
        {
            return AdapayRequest.requestAdapay(requestParams, APIUrlEnum.FREEZE_ACCOUNT_CREATE, merchantKey);
        }

        /**
         * 查询账户冻结对象列表
         *
         * @param requestParams  请求参数
         * @param merchantKey merchantKey
         * @return 账户冻结对象
         */
        public static Dictionary<string, Object> queryList(Dictionary<string, object> requestParams)
        {
            return AdapayRequest.getRequestAdapay(requestParams, APIUrlEnum.FREEZE_ACCOUNT_LIST, null);
        }

        /**
         * 查询账户冻结对象列表
         *
         * @param requestParams  请求参数
         * @param merchantKey merchantKey
         * @return 账户冻结对象
         */
        public static Dictionary<string, Object> queryList(Dictionary<string, object> requestParams, string merchantKey)
        {
            return AdapayRequest.getRequestAdapay(requestParams, APIUrlEnum.FREEZE_ACCOUNT_LIST, merchantKey);
        }

    }
}
