/* tslint:disable */
/* eslint-disable */
/**
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document:
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

import type { Configuration } from '../configuration';
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
import globalAxios from 'axios';
// Some imports not used depending on template conditions
// @ts-ignore
import {
  DUMMY_BASE_URL,
  assertParamExists,
  setApiKeyToObject,
  setBasicAuthToObject,
  setBearerAuthToObject,
  setOAuthToObject,
  setSearchParams,
  serializeDataIfNeeded,
  toPathString,
  createRequestFunction
} from '../common';
// @ts-ignore
import {
  BASE_PATH,
  COLLECTION_FORMATS,
  type RequestArgs,
  BaseAPI,
  RequiredError,
  operationServerMap
} from '../base';
// @ts-ignore
import type { KamiApiCardRedeemJdV1AccountAddReq } from '../models';
// @ts-ignore
import type { KamiApiCardRedeemJdV1AccountGetRes } from '../models';
// @ts-ignore
import type { KamiApiCardRedeemJdV1AccountListRes } from '../models';
// @ts-ignore
import type { KamiApiCardRedeemJdV1AccountStatusReq } from '../models';
// @ts-ignore
import type { KamiApiCardRedeemJdV1AccountUpdateReq } from '../models';
// @ts-ignore
import type { KamiApiCardRedeemJdV1OrderListRes } from '../models';
// @ts-ignore
import type { KamiApiCardRedeemJdV1PlaceOrderReq } from '../models';
// @ts-ignore
import type { KamiApiCardRedeemJdV1PlaceOrderRes } from '../models';
/**
 * CkApi - axios parameter creator
 * @export
 */
export const CkApiAxiosParamCreator = function (configuration?: Configuration) {
  return {
    /**
     *
     * @summary 添加京东ck
     * @param {KamiApiCardRedeemJdV1AccountAddReq} [kamiApiCardRedeemJdV1AccountAddReq]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdAccountAddPost: async (
      kamiApiCardRedeemJdV1AccountAddReq?: KamiApiCardRedeemJdV1AccountAddReq,
      options: RawAxiosRequestConfig = {}
    ): Promise<RequestArgs> => {
      const localVarPath = `/api/cookieInfo/jd/account/add`;
      // use dummy base URL string because the URL constructor only accepts absolute URLs.
      const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
      let baseOptions;
      if (configuration) {
        baseOptions = configuration.baseOptions;
      }

      const localVarRequestOptions = {
        method: 'POST',
        ...baseOptions,
        ...options
      };
      const localVarHeaderParameter = {} as any;
      const localVarQueryParameter = {} as any;

      localVarHeaderParameter['Content-Type'] = 'application/json';

      setSearchParams(localVarUrlObj, localVarQueryParameter);
      let headersFromBaseOptions =
        baseOptions && baseOptions.headers ? baseOptions.headers : {};
      localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers
      };
      localVarRequestOptions.data = serializeDataIfNeeded(
        kamiApiCardRedeemJdV1AccountAddReq,
        localVarRequestOptions,
        configuration
      );

      return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions
      };
    },
    /**
     *
     * @summary 删除京东ck
     * @param {number} id
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdAccountDeleteDelete: async (
      id: number,
      options: RawAxiosRequestConfig = {}
    ): Promise<RequestArgs> => {
      // verify required parameter 'id' is not null or undefined
      assertParamExists('apiCookieInfoJdAccountDeleteDelete', 'id', id);
      const localVarPath = `/api/cookieInfo/jd/account/delete`;
      // use dummy base URL string because the URL constructor only accepts absolute URLs.
      const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
      let baseOptions;
      if (configuration) {
        baseOptions = configuration.baseOptions;
      }

      const localVarRequestOptions = {
        method: 'DELETE',
        ...baseOptions,
        ...options
      };
      const localVarHeaderParameter = {} as any;
      const localVarQueryParameter = {} as any;

      if (id !== undefined) {
        localVarQueryParameter['id'] = id;
      }

      setSearchParams(localVarUrlObj, localVarQueryParameter);
      let headersFromBaseOptions =
        baseOptions && baseOptions.headers ? baseOptions.headers : {};
      localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers
      };

      return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions
      };
    },
    /**
     *
     * @summary 获取京东ck
     * @param {number} id
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdAccountGetGet: async (
      id: number,
      options: RawAxiosRequestConfig = {}
    ): Promise<RequestArgs> => {
      // verify required parameter 'id' is not null or undefined
      assertParamExists('apiCookieInfoJdAccountGetGet', 'id', id);
      const localVarPath = `/api/cookieInfo/jd/account/get`;
      // use dummy base URL string because the URL constructor only accepts absolute URLs.
      const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
      let baseOptions;
      if (configuration) {
        baseOptions = configuration.baseOptions;
      }

      const localVarRequestOptions = {
        method: 'GET',
        ...baseOptions,
        ...options
      };
      const localVarHeaderParameter = {} as any;
      const localVarQueryParameter = {} as any;

      if (id !== undefined) {
        localVarQueryParameter['id'] = id;
      }

      setSearchParams(localVarUrlObj, localVarQueryParameter);
      let headersFromBaseOptions =
        baseOptions && baseOptions.headers ? baseOptions.headers : {};
      localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers
      };

      return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions
      };
    },
    /**
     *
     * @summary 获取京东ck列表
     * @param {number} current 页数
     * @param {ApiCookieInfoJdAccountListGetPageSizeEnum} pageSize 页码
     * @param {ApiCookieInfoJdAccountListGetStatusEnum} [status] 状态
     * @param {string} [name] 昵称
     * @param {string} [cookie] ck
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdAccountListGet: async (
      current: number,
      pageSize: ApiCookieInfoJdAccountListGetPageSizeEnum,
      status?: ApiCookieInfoJdAccountListGetStatusEnum,
      name?: string,
      cookie?: string,
      options: RawAxiosRequestConfig = {}
    ): Promise<RequestArgs> => {
      // verify required parameter 'current' is not null or undefined
      assertParamExists('apiCookieInfoJdAccountListGet', 'current', current);
      // verify required parameter 'pageSize' is not null or undefined
      assertParamExists('apiCookieInfoJdAccountListGet', 'pageSize', pageSize);
      const localVarPath = `/api/cookieInfo/jd/account/list`;
      // use dummy base URL string because the URL constructor only accepts absolute URLs.
      const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
      let baseOptions;
      if (configuration) {
        baseOptions = configuration.baseOptions;
      }

      const localVarRequestOptions = {
        method: 'GET',
        ...baseOptions,
        ...options
      };
      const localVarHeaderParameter = {} as any;
      const localVarQueryParameter = {} as any;

      if (current !== undefined) {
        localVarQueryParameter['current'] = current;
      }

      if (pageSize !== undefined) {
        localVarQueryParameter['pageSize'] = pageSize;
      }

      if (status !== undefined) {
        localVarQueryParameter['status'] = status;
      }

      if (name !== undefined) {
        localVarQueryParameter['name'] = name;
      }

      if (cookie !== undefined) {
        localVarQueryParameter['cookie'] = cookie;
      }

      setSearchParams(localVarUrlObj, localVarQueryParameter);
      let headersFromBaseOptions =
        baseOptions && baseOptions.headers ? baseOptions.headers : {};
      localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers
      };

      return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions
      };
    },
    /**
     *
     * @summary 修改京东ck状态
     * @param {KamiApiCardRedeemJdV1AccountStatusReq} [kamiApiCardRedeemJdV1AccountStatusReq]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdAccountStatusPut: async (
      kamiApiCardRedeemJdV1AccountStatusReq?: KamiApiCardRedeemJdV1AccountStatusReq,
      options: RawAxiosRequestConfig = {}
    ): Promise<RequestArgs> => {
      const localVarPath = `/api/cookieInfo/jd/account/status`;
      // use dummy base URL string because the URL constructor only accepts absolute URLs.
      const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
      let baseOptions;
      if (configuration) {
        baseOptions = configuration.baseOptions;
      }

      const localVarRequestOptions = {
        method: 'PUT',
        ...baseOptions,
        ...options
      };
      const localVarHeaderParameter = {} as any;
      const localVarQueryParameter = {} as any;

      localVarHeaderParameter['Content-Type'] = 'application/json';

      setSearchParams(localVarUrlObj, localVarQueryParameter);
      let headersFromBaseOptions =
        baseOptions && baseOptions.headers ? baseOptions.headers : {};
      localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers
      };
      localVarRequestOptions.data = serializeDataIfNeeded(
        kamiApiCardRedeemJdV1AccountStatusReq,
        localVarRequestOptions,
        configuration
      );

      return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions
      };
    },
    /**
     *
     * @summary 更新京东ck
     * @param {KamiApiCardRedeemJdV1AccountUpdateReq} [kamiApiCardRedeemJdV1AccountUpdateReq]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdAccountUpdatePut: async (
      kamiApiCardRedeemJdV1AccountUpdateReq?: KamiApiCardRedeemJdV1AccountUpdateReq,
      options: RawAxiosRequestConfig = {}
    ): Promise<RequestArgs> => {
      const localVarPath = `/api/cookieInfo/jd/account/update`;
      // use dummy base URL string because the URL constructor only accepts absolute URLs.
      const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
      let baseOptions;
      if (configuration) {
        baseOptions = configuration.baseOptions;
      }

      const localVarRequestOptions = {
        method: 'PUT',
        ...baseOptions,
        ...options
      };
      const localVarHeaderParameter = {} as any;
      const localVarQueryParameter = {} as any;

      localVarHeaderParameter['Content-Type'] = 'application/json';

      setSearchParams(localVarUrlObj, localVarQueryParameter);
      let headersFromBaseOptions =
        baseOptions && baseOptions.headers ? baseOptions.headers : {};
      localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers
      };
      localVarRequestOptions.data = serializeDataIfNeeded(
        kamiApiCardRedeemJdV1AccountUpdateReq,
        localVarRequestOptions,
        configuration
      );

      return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions
      };
    },
    /**
     *
     * @summary 获取订单列表
     * @param {number} current 页数
     * @param {ApiCookieInfoJdOrderListGetPageSizeEnum} pageSize 页码
     * @param {number} [cookieId] cookieId
     * @param {string} [cookie] cookie
     * @param {string} [status] 状态
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdOrderListGet: async (
      current: number,
      pageSize: ApiCookieInfoJdOrderListGetPageSizeEnum,
      cookieId?: number,
      cookie?: string,
      status?: string,
      options: RawAxiosRequestConfig = {}
    ): Promise<RequestArgs> => {
      // verify required parameter 'current' is not null or undefined
      assertParamExists('apiCookieInfoJdOrderListGet', 'current', current);
      // verify required parameter 'pageSize' is not null or undefined
      assertParamExists('apiCookieInfoJdOrderListGet', 'pageSize', pageSize);
      const localVarPath = `/api/cookieInfo/jd/order/list`;
      // use dummy base URL string because the URL constructor only accepts absolute URLs.
      const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
      let baseOptions;
      if (configuration) {
        baseOptions = configuration.baseOptions;
      }

      const localVarRequestOptions = {
        method: 'GET',
        ...baseOptions,
        ...options
      };
      const localVarHeaderParameter = {} as any;
      const localVarQueryParameter = {} as any;

      if (current !== undefined) {
        localVarQueryParameter['current'] = current;
      }

      if (pageSize !== undefined) {
        localVarQueryParameter['pageSize'] = pageSize;
      }

      if (cookieId !== undefined) {
        localVarQueryParameter['cookieId'] = cookieId;
      }

      if (cookie !== undefined) {
        localVarQueryParameter['cookie'] = cookie;
      }

      if (status !== undefined) {
        localVarQueryParameter['status'] = status;
      }

      setSearchParams(localVarUrlObj, localVarQueryParameter);
      let headersFromBaseOptions =
        baseOptions && baseOptions.headers ? baseOptions.headers : {};
      localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers
      };

      return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions
      };
    },
    /**
     *
     * @summary 下单
     * @param {KamiApiCardRedeemJdV1PlaceOrderReq} [kamiApiCardRedeemJdV1PlaceOrderReq]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdOrderPlaceOrderPost: async (
      kamiApiCardRedeemJdV1PlaceOrderReq?: KamiApiCardRedeemJdV1PlaceOrderReq,
      options: RawAxiosRequestConfig = {}
    ): Promise<RequestArgs> => {
      const localVarPath = `/api/cookieInfo/jd/order/placeOrder`;
      // use dummy base URL string because the URL constructor only accepts absolute URLs.
      const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
      let baseOptions;
      if (configuration) {
        baseOptions = configuration.baseOptions;
      }

      const localVarRequestOptions = {
        method: 'POST',
        ...baseOptions,
        ...options
      };
      const localVarHeaderParameter = {} as any;
      const localVarQueryParameter = {} as any;

      localVarHeaderParameter['Content-Type'] = 'application/json';

      setSearchParams(localVarUrlObj, localVarQueryParameter);
      let headersFromBaseOptions =
        baseOptions && baseOptions.headers ? baseOptions.headers : {};
      localVarRequestOptions.headers = {
        ...localVarHeaderParameter,
        ...headersFromBaseOptions,
        ...options.headers
      };
      localVarRequestOptions.data = serializeDataIfNeeded(
        kamiApiCardRedeemJdV1PlaceOrderReq,
        localVarRequestOptions,
        configuration
      );

      return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions
      };
    }
  };
};

/**
 * CkApi - functional programming interface
 * @export
 */
export const CkApiFp = function (configuration?: Configuration) {
  const localVarAxiosParamCreator = CkApiAxiosParamCreator(configuration);
  return {
    /**
     *
     * @summary 添加京东ck
     * @param {KamiApiCardRedeemJdV1AccountAddReq} [kamiApiCardRedeemJdV1AccountAddReq]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    async apiCookieInfoJdAccountAddPost(
      kamiApiCardRedeemJdV1AccountAddReq?: KamiApiCardRedeemJdV1AccountAddReq,
      options?: RawAxiosRequestConfig
    ): Promise<
      (axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>
    > {
      const localVarAxiosArgs =
        await localVarAxiosParamCreator.apiCookieInfoJdAccountAddPost(
          kamiApiCardRedeemJdV1AccountAddReq,
          options
        );
      const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
      const localVarOperationServerBasePath =
        operationServerMap['CkApi.apiCookieInfoJdAccountAddPost']?.[
          localVarOperationServerIndex
        ]?.url;
      return (axios, basePath) =>
        createRequestFunction(
          localVarAxiosArgs,
          globalAxios,
          BASE_PATH,
          configuration
        )(axios, localVarOperationServerBasePath || basePath);
    },
    /**
     *
     * @summary 删除京东ck
     * @param {number} id
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    async apiCookieInfoJdAccountDeleteDelete(
      id: number,
      options?: RawAxiosRequestConfig
    ): Promise<
      (axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>
    > {
      const localVarAxiosArgs =
        await localVarAxiosParamCreator.apiCookieInfoJdAccountDeleteDelete(
          id,
          options
        );
      const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
      const localVarOperationServerBasePath =
        operationServerMap['CkApi.apiCookieInfoJdAccountDeleteDelete']?.[
          localVarOperationServerIndex
        ]?.url;
      return (axios, basePath) =>
        createRequestFunction(
          localVarAxiosArgs,
          globalAxios,
          BASE_PATH,
          configuration
        )(axios, localVarOperationServerBasePath || basePath);
    },
    /**
     *
     * @summary 获取京东ck
     * @param {number} id
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    async apiCookieInfoJdAccountGetGet(
      id: number,
      options?: RawAxiosRequestConfig
    ): Promise<
      (
        axios?: AxiosInstance,
        basePath?: string
      ) => AxiosPromise<KamiApiCardRedeemJdV1AccountGetRes>
    > {
      const localVarAxiosArgs =
        await localVarAxiosParamCreator.apiCookieInfoJdAccountGetGet(
          id,
          options
        );
      const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
      const localVarOperationServerBasePath =
        operationServerMap['CkApi.apiCookieInfoJdAccountGetGet']?.[
          localVarOperationServerIndex
        ]?.url;
      return (axios, basePath) =>
        createRequestFunction(
          localVarAxiosArgs,
          globalAxios,
          BASE_PATH,
          configuration
        )(axios, localVarOperationServerBasePath || basePath);
    },
    /**
     *
     * @summary 获取京东ck列表
     * @param {number} current 页数
     * @param {ApiCookieInfoJdAccountListGetPageSizeEnum} pageSize 页码
     * @param {ApiCookieInfoJdAccountListGetStatusEnum} [status] 状态
     * @param {string} [name] 昵称
     * @param {string} [cookie] ck
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    async apiCookieInfoJdAccountListGet(
      current: number,
      pageSize: ApiCookieInfoJdAccountListGetPageSizeEnum,
      status?: ApiCookieInfoJdAccountListGetStatusEnum,
      name?: string,
      cookie?: string,
      options?: RawAxiosRequestConfig
    ): Promise<
      (
        axios?: AxiosInstance,
        basePath?: string
      ) => AxiosPromise<KamiApiCardRedeemJdV1AccountListRes>
    > {
      const localVarAxiosArgs =
        await localVarAxiosParamCreator.apiCookieInfoJdAccountListGet(
          current,
          pageSize,
          status,
          name,
          cookie,
          options
        );
      const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
      const localVarOperationServerBasePath =
        operationServerMap['CkApi.apiCookieInfoJdAccountListGet']?.[
          localVarOperationServerIndex
        ]?.url;
      return (axios, basePath) =>
        createRequestFunction(
          localVarAxiosArgs,
          globalAxios,
          BASE_PATH,
          configuration
        )(axios, localVarOperationServerBasePath || basePath);
    },
    /**
     *
     * @summary 修改京东ck状态
     * @param {KamiApiCardRedeemJdV1AccountStatusReq} [kamiApiCardRedeemJdV1AccountStatusReq]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    async apiCookieInfoJdAccountStatusPut(
      kamiApiCardRedeemJdV1AccountStatusReq?: KamiApiCardRedeemJdV1AccountStatusReq,
      options?: RawAxiosRequestConfig
    ): Promise<
      (axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>
    > {
      const localVarAxiosArgs =
        await localVarAxiosParamCreator.apiCookieInfoJdAccountStatusPut(
          kamiApiCardRedeemJdV1AccountStatusReq,
          options
        );
      const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
      const localVarOperationServerBasePath =
        operationServerMap['CkApi.apiCookieInfoJdAccountStatusPut']?.[
          localVarOperationServerIndex
        ]?.url;
      return (axios, basePath) =>
        createRequestFunction(
          localVarAxiosArgs,
          globalAxios,
          BASE_PATH,
          configuration
        )(axios, localVarOperationServerBasePath || basePath);
    },
    /**
     *
     * @summary 更新京东ck
     * @param {KamiApiCardRedeemJdV1AccountUpdateReq} [kamiApiCardRedeemJdV1AccountUpdateReq]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    async apiCookieInfoJdAccountUpdatePut(
      kamiApiCardRedeemJdV1AccountUpdateReq?: KamiApiCardRedeemJdV1AccountUpdateReq,
      options?: RawAxiosRequestConfig
    ): Promise<
      (axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>
    > {
      const localVarAxiosArgs =
        await localVarAxiosParamCreator.apiCookieInfoJdAccountUpdatePut(
          kamiApiCardRedeemJdV1AccountUpdateReq,
          options
        );
      const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
      const localVarOperationServerBasePath =
        operationServerMap['CkApi.apiCookieInfoJdAccountUpdatePut']?.[
          localVarOperationServerIndex
        ]?.url;
      return (axios, basePath) =>
        createRequestFunction(
          localVarAxiosArgs,
          globalAxios,
          BASE_PATH,
          configuration
        )(axios, localVarOperationServerBasePath || basePath);
    },
    /**
     *
     * @summary 获取订单列表
     * @param {number} current 页数
     * @param {ApiCookieInfoJdOrderListGetPageSizeEnum} pageSize 页码
     * @param {number} [cookieId] cookieId
     * @param {string} [cookie] cookie
     * @param {string} [status] 状态
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    async apiCookieInfoJdOrderListGet(
      current: number,
      pageSize: ApiCookieInfoJdOrderListGetPageSizeEnum,
      cookieId?: number,
      cookie?: string,
      status?: string,
      options?: RawAxiosRequestConfig
    ): Promise<
      (
        axios?: AxiosInstance,
        basePath?: string
      ) => AxiosPromise<KamiApiCardRedeemJdV1OrderListRes>
    > {
      const localVarAxiosArgs =
        await localVarAxiosParamCreator.apiCookieInfoJdOrderListGet(
          current,
          pageSize,
          cookieId,
          cookie,
          status,
          options
        );
      const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
      const localVarOperationServerBasePath =
        operationServerMap['CkApi.apiCookieInfoJdOrderListGet']?.[
          localVarOperationServerIndex
        ]?.url;
      return (axios, basePath) =>
        createRequestFunction(
          localVarAxiosArgs,
          globalAxios,
          BASE_PATH,
          configuration
        )(axios, localVarOperationServerBasePath || basePath);
    },
    /**
     *
     * @summary 下单
     * @param {KamiApiCardRedeemJdV1PlaceOrderReq} [kamiApiCardRedeemJdV1PlaceOrderReq]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    async apiCookieInfoJdOrderPlaceOrderPost(
      kamiApiCardRedeemJdV1PlaceOrderReq?: KamiApiCardRedeemJdV1PlaceOrderReq,
      options?: RawAxiosRequestConfig
    ): Promise<
      (
        axios?: AxiosInstance,
        basePath?: string
      ) => AxiosPromise<KamiApiCardRedeemJdV1PlaceOrderRes>
    > {
      const localVarAxiosArgs =
        await localVarAxiosParamCreator.apiCookieInfoJdOrderPlaceOrderPost(
          kamiApiCardRedeemJdV1PlaceOrderReq,
          options
        );
      const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
      const localVarOperationServerBasePath =
        operationServerMap['CkApi.apiCookieInfoJdOrderPlaceOrderPost']?.[
          localVarOperationServerIndex
        ]?.url;
      return (axios, basePath) =>
        createRequestFunction(
          localVarAxiosArgs,
          globalAxios,
          BASE_PATH,
          configuration
        )(axios, localVarOperationServerBasePath || basePath);
    }
  };
};

/**
 * CkApi - factory interface
 * @export
 */
export const CkApiFactory = function (
  configuration?: Configuration,
  basePath?: string,
  axios?: AxiosInstance
) {
  const localVarFp = CkApiFp(configuration);
  return {
    /**
     *
     * @summary 添加京东ck
     * @param {KamiApiCardRedeemJdV1AccountAddReq} [kamiApiCardRedeemJdV1AccountAddReq]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdAccountAddPost(
      kamiApiCardRedeemJdV1AccountAddReq?: KamiApiCardRedeemJdV1AccountAddReq,
      options?: RawAxiosRequestConfig
    ): AxiosPromise<object> {
      return localVarFp
        .apiCookieInfoJdAccountAddPost(
          kamiApiCardRedeemJdV1AccountAddReq,
          options
        )
        .then(request => request(axios, basePath));
    },
    /**
     *
     * @summary 删除京东ck
     * @param {number} id
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdAccountDeleteDelete(
      id: number,
      options?: RawAxiosRequestConfig
    ): AxiosPromise<object> {
      return localVarFp
        .apiCookieInfoJdAccountDeleteDelete(id, options)
        .then(request => request(axios, basePath));
    },
    /**
     *
     * @summary 获取京东ck
     * @param {number} id
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdAccountGetGet(
      id: number,
      options?: RawAxiosRequestConfig
    ): AxiosPromise<KamiApiCardRedeemJdV1AccountGetRes> {
      return localVarFp
        .apiCookieInfoJdAccountGetGet(id, options)
        .then(request => request(axios, basePath));
    },
    /**
     *
     * @summary 获取京东ck列表
     * @param {number} current 页数
     * @param {ApiCookieInfoJdAccountListGetPageSizeEnum} pageSize 页码
     * @param {ApiCookieInfoJdAccountListGetStatusEnum} [status] 状态
     * @param {string} [name] 昵称
     * @param {string} [cookie] ck
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdAccountListGet(
      current: number,
      pageSize: ApiCookieInfoJdAccountListGetPageSizeEnum,
      status?: ApiCookieInfoJdAccountListGetStatusEnum,
      name?: string,
      cookie?: string,
      options?: RawAxiosRequestConfig
    ): AxiosPromise<KamiApiCardRedeemJdV1AccountListRes> {
      return localVarFp
        .apiCookieInfoJdAccountListGet(
          current,
          pageSize,
          status,
          name,
          cookie,
          options
        )
        .then(request => request(axios, basePath));
    },
    /**
     *
     * @summary 修改京东ck状态
     * @param {KamiApiCardRedeemJdV1AccountStatusReq} [kamiApiCardRedeemJdV1AccountStatusReq]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdAccountStatusPut(
      kamiApiCardRedeemJdV1AccountStatusReq?: KamiApiCardRedeemJdV1AccountStatusReq,
      options?: RawAxiosRequestConfig
    ): AxiosPromise<object> {
      return localVarFp
        .apiCookieInfoJdAccountStatusPut(
          kamiApiCardRedeemJdV1AccountStatusReq,
          options
        )
        .then(request => request(axios, basePath));
    },
    /**
     *
     * @summary 更新京东ck
     * @param {KamiApiCardRedeemJdV1AccountUpdateReq} [kamiApiCardRedeemJdV1AccountUpdateReq]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdAccountUpdatePut(
      kamiApiCardRedeemJdV1AccountUpdateReq?: KamiApiCardRedeemJdV1AccountUpdateReq,
      options?: RawAxiosRequestConfig
    ): AxiosPromise<object> {
      return localVarFp
        .apiCookieInfoJdAccountUpdatePut(
          kamiApiCardRedeemJdV1AccountUpdateReq,
          options
        )
        .then(request => request(axios, basePath));
    },
    /**
     *
     * @summary 获取订单列表
     * @param {number} current 页数
     * @param {ApiCookieInfoJdOrderListGetPageSizeEnum} pageSize 页码
     * @param {number} [cookieId] cookieId
     * @param {string} [cookie] cookie
     * @param {string} [status] 状态
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdOrderListGet(
      current: number,
      pageSize: ApiCookieInfoJdOrderListGetPageSizeEnum,
      cookieId?: number,
      cookie?: string,
      status?: string,
      options?: RawAxiosRequestConfig
    ): AxiosPromise<KamiApiCardRedeemJdV1OrderListRes> {
      return localVarFp
        .apiCookieInfoJdOrderListGet(
          current,
          pageSize,
          cookieId,
          cookie,
          status,
          options
        )
        .then(request => request(axios, basePath));
    },
    /**
     *
     * @summary 下单
     * @param {KamiApiCardRedeemJdV1PlaceOrderReq} [kamiApiCardRedeemJdV1PlaceOrderReq]
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    apiCookieInfoJdOrderPlaceOrderPost(
      kamiApiCardRedeemJdV1PlaceOrderReq?: KamiApiCardRedeemJdV1PlaceOrderReq,
      options?: RawAxiosRequestConfig
    ): AxiosPromise<KamiApiCardRedeemJdV1PlaceOrderRes> {
      return localVarFp
        .apiCookieInfoJdOrderPlaceOrderPost(
          kamiApiCardRedeemJdV1PlaceOrderReq,
          options
        )
        .then(request => request(axios, basePath));
    }
  };
};

/**
 * CkApi - object-oriented interface
 * @export
 * @class CkApi
 * @extends {BaseAPI}
 */
export class CkApi extends BaseAPI {
  /**
   *
   * @summary 添加京东ck
   * @param {KamiApiCardRedeemJdV1AccountAddReq} [kamiApiCardRedeemJdV1AccountAddReq]
   * @param {*} [options] Override http request option.
   * @throws {RequiredError}
   * @memberof CkApi
   */
  public apiCookieInfoJdAccountAddPost(
    kamiApiCardRedeemJdV1AccountAddReq?: KamiApiCardRedeemJdV1AccountAddReq,
    options?: RawAxiosRequestConfig
  ) {
    return CkApiFp(this.configuration)
      .apiCookieInfoJdAccountAddPost(
        kamiApiCardRedeemJdV1AccountAddReq,
        options
      )
      .then(request => request(this.axios, this.basePath));
  }

  /**
   *
   * @summary 删除京东ck
   * @param {number} id
   * @param {*} [options] Override http request option.
   * @throws {RequiredError}
   * @memberof CkApi
   */
  public apiCookieInfoJdAccountDeleteDelete(
    id: number,
    options?: RawAxiosRequestConfig
  ) {
    return CkApiFp(this.configuration)
      .apiCookieInfoJdAccountDeleteDelete(id, options)
      .then(request => request(this.axios, this.basePath));
  }

  /**
   *
   * @summary 获取京东ck
   * @param {number} id
   * @param {*} [options] Override http request option.
   * @throws {RequiredError}
   * @memberof CkApi
   */
  public apiCookieInfoJdAccountGetGet(
    id: number,
    options?: RawAxiosRequestConfig
  ) {
    return CkApiFp(this.configuration)
      .apiCookieInfoJdAccountGetGet(id, options)
      .then(request => request(this.axios, this.basePath));
  }

  /**
   *
   * @summary 获取京东ck列表
   * @param {number} current 页数
   * @param {ApiCookieInfoJdAccountListGetPageSizeEnum} pageSize 页码
   * @param {ApiCookieInfoJdAccountListGetStatusEnum} [status] 状态
   * @param {string} [name] 昵称
   * @param {string} [cookie] ck
   * @param {*} [options] Override http request option.
   * @throws {RequiredError}
   * @memberof CkApi
   */
  public apiCookieInfoJdAccountListGet(
    current: number,
    pageSize: ApiCookieInfoJdAccountListGetPageSizeEnum,
    status?: ApiCookieInfoJdAccountListGetStatusEnum,
    name?: string,
    cookie?: string,
    options?: RawAxiosRequestConfig
  ) {
    return CkApiFp(this.configuration)
      .apiCookieInfoJdAccountListGet(
        current,
        pageSize,
        status,
        name,
        cookie,
        options
      )
      .then(request => request(this.axios, this.basePath));
  }

  /**
   *
   * @summary 修改京东ck状态
   * @param {KamiApiCardRedeemJdV1AccountStatusReq} [kamiApiCardRedeemJdV1AccountStatusReq]
   * @param {*} [options] Override http request option.
   * @throws {RequiredError}
   * @memberof CkApi
   */
  public apiCookieInfoJdAccountStatusPut(
    kamiApiCardRedeemJdV1AccountStatusReq?: KamiApiCardRedeemJdV1AccountStatusReq,
    options?: RawAxiosRequestConfig
  ) {
    return CkApiFp(this.configuration)
      .apiCookieInfoJdAccountStatusPut(
        kamiApiCardRedeemJdV1AccountStatusReq,
        options
      )
      .then(request => request(this.axios, this.basePath));
  }

  /**
   *
   * @summary 更新京东ck
   * @param {KamiApiCardRedeemJdV1AccountUpdateReq} [kamiApiCardRedeemJdV1AccountUpdateReq]
   * @param {*} [options] Override http request option.
   * @throws {RequiredError}
   * @memberof CkApi
   */
  public apiCookieInfoJdAccountUpdatePut(
    kamiApiCardRedeemJdV1AccountUpdateReq?: KamiApiCardRedeemJdV1AccountUpdateReq,
    options?: RawAxiosRequestConfig
  ) {
    return CkApiFp(this.configuration)
      .apiCookieInfoJdAccountUpdatePut(
        kamiApiCardRedeemJdV1AccountUpdateReq,
        options
      )
      .then(request => request(this.axios, this.basePath));
  }

  /**
   *
   * @summary 获取订单列表
   * @param {number} current 页数
   * @param {ApiCookieInfoJdOrderListGetPageSizeEnum} pageSize 页码
   * @param {number} [cookieId] cookieId
   * @param {string} [cookie] cookie
   * @param {string} [status] 状态
   * @param {*} [options] Override http request option.
   * @throws {RequiredError}
   * @memberof CkApi
   */
  public apiCookieInfoJdOrderListGet(
    current: number,
    pageSize: ApiCookieInfoJdOrderListGetPageSizeEnum,
    cookieId?: number,
    cookie?: string,
    status?: string,
    options?: RawAxiosRequestConfig
  ) {
    return CkApiFp(this.configuration)
      .apiCookieInfoJdOrderListGet(
        current,
        pageSize,
        cookieId,
        cookie,
        status,
        options
      )
      .then(request => request(this.axios, this.basePath));
  }

  /**
   *
   * @summary 下单
   * @param {KamiApiCardRedeemJdV1PlaceOrderReq} [kamiApiCardRedeemJdV1PlaceOrderReq]
   * @param {*} [options] Override http request option.
   * @throws {RequiredError}
   * @memberof CkApi
   */
  public apiCookieInfoJdOrderPlaceOrderPost(
    kamiApiCardRedeemJdV1PlaceOrderReq?: KamiApiCardRedeemJdV1PlaceOrderReq,
    options?: RawAxiosRequestConfig
  ) {
    return CkApiFp(this.configuration)
      .apiCookieInfoJdOrderPlaceOrderPost(
        kamiApiCardRedeemJdV1PlaceOrderReq,
        options
      )
      .then(request => request(this.axios, this.basePath));
  }
}

/**
 * @export
 */
export const ApiCookieInfoJdAccountListGetPageSizeEnum = {
  NUMBER_5: 5,
  NUMBER_10: 10,
  NUMBER_15: 15,
  NUMBER_20: 20,
  NUMBER_50: 50,
  NUMBER_100: 100
} as const;
export type ApiCookieInfoJdAccountListGetPageSizeEnum =
  (typeof ApiCookieInfoJdAccountListGetPageSizeEnum)[keyof typeof ApiCookieInfoJdAccountListGetPageSizeEnum];
/**
 * @export
 */
export const ApiCookieInfoJdAccountListGetStatusEnum = {
  Disable: 'disable',
  Normal: 'normal'
} as const;
export type ApiCookieInfoJdAccountListGetStatusEnum =
  (typeof ApiCookieInfoJdAccountListGetStatusEnum)[keyof typeof ApiCookieInfoJdAccountListGetStatusEnum];
/**
 * @export
 */
export const ApiCookieInfoJdOrderListGetPageSizeEnum = {
  NUMBER_5: 5,
  NUMBER_10: 10,
  NUMBER_15: 15,
  NUMBER_20: 20,
  NUMBER_50: 50,
  NUMBER_100: 100
} as const;
export type ApiCookieInfoJdOrderListGetPageSizeEnum =
  (typeof ApiCookieInfoJdOrderListGetPageSizeEnum)[keyof typeof ApiCookieInfoJdOrderListGetPageSizeEnum];
