/* tslint:disable */ /* eslint-disable */ /** * TwitchGameApi * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) * * OpenAPI spec version: 1.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ import globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; // Some imports not used depending on template conditions // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base'; import { CreateShopItemModel } from '../models'; import { ShopItemModel } from '../models'; /** * ShopApi - axios parameter creator * @export */ export const ShopApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @param {number} itemId * @param {*} [options] Override http request option. * @throws {RequiredError} */ shopItemsBuyItemIdPost: async (itemId: number, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined if (itemId === null || itemId === undefined) { throw new RequiredError('itemId','Required parameter itemId was null or undefined when calling shopItemsBuyItemIdPost.'); } const localVarPath = `/Shop/Items/Buy/{itemId}` .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {number} itemId * @param {CreateShopItemModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ shopItemsItemIdPatch: async (itemId: number, body?: CreateShopItemModel, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'itemId' is not null or undefined if (itemId === null || itemId === undefined) { throw new RequiredError('itemId','Required parameter itemId was null or undefined when calling shopItemsItemIdPatch.'); } const localVarPath = `/Shop/Items/{itemId}` .replace(`{${"itemId"}}`, encodeURIComponent(String(itemId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {CreateShopItemModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ shopItemsPost: async (body?: CreateShopItemModel, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/Shop/Items`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; const needsSerialization = (typeof body !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json'; localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || ""); return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {string} type * @param {*} [options] Override http request option. * @throws {RequiredError} */ shopItemsTypeGet: async (type: string, options: AxiosRequestConfig = {}): Promise => { // verify required parameter 'type' is not null or undefined if (type === null || type === undefined) { throw new RequiredError('type','Required parameter type was null or undefined when calling shopItemsTypeGet.'); } const localVarPath = `/Shop/Items/{type}` .replace(`{${"type"}}`, encodeURIComponent(String(type))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {string} [mPaymentId] * @param {number} [pfPaymentId] * @param {string} [paymentStatus] * @param {string} [itemName] * @param {string} [itemDescription] * @param {string} [amountGross] * @param {string} [amountFee] * @param {string} [amountNet] * @param {string} [customStr1] * @param {string} [customStr2] * @param {string} [customStr3] * @param {string} [customStr4] * @param {string} [customStr5] * @param {number} [customInt1] * @param {number} [customInt2] * @param {number} [customInt3] * @param {number} [customInt4] * @param {number} [customInt5] * @param {string} [nameFirst] * @param {string} [nameLast] * @param {string} [emailAddress] * @param {number} [merchantId] * @param {string} [signature] * @param {string} [token] * @param {string} [billingDate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ shopPayFastNotificationPostForm: async (mPaymentId?: string, pfPaymentId?: number, paymentStatus?: string, itemName?: string, itemDescription?: string, amountGross?: string, amountFee?: string, amountNet?: string, customStr1?: string, customStr2?: string, customStr3?: string, customStr4?: string, customStr5?: string, customInt1?: number, customInt2?: number, customInt3?: number, customInt4?: number, customInt5?: number, nameFirst?: string, nameLast?: string, emailAddress?: string, merchantId?: number, signature?: string, token?: string, billingDate?: string, options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/Shop/PayFastNotification`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new FormData(); if (mPaymentId !== undefined) { localVarFormParams.append('m_payment_id', mPaymentId as any); } if (pfPaymentId !== undefined) { localVarFormParams.append('pf_payment_id', pfPaymentId as any); } if (paymentStatus !== undefined) { localVarFormParams.append('payment_status', paymentStatus as any); } if (itemName !== undefined) { localVarFormParams.append('item_name', itemName as any); } if (itemDescription !== undefined) { localVarFormParams.append('item_description', itemDescription as any); } if (amountGross !== undefined) { localVarFormParams.append('amount_gross', amountGross as any); } if (amountFee !== undefined) { localVarFormParams.append('amount_fee', amountFee as any); } if (amountNet !== undefined) { localVarFormParams.append('amount_net', amountNet as any); } if (customStr1 !== undefined) { localVarFormParams.append('custom_str1', customStr1 as any); } if (customStr2 !== undefined) { localVarFormParams.append('custom_str2', customStr2 as any); } if (customStr3 !== undefined) { localVarFormParams.append('custom_str3', customStr3 as any); } if (customStr4 !== undefined) { localVarFormParams.append('custom_str4', customStr4 as any); } if (customStr5 !== undefined) { localVarFormParams.append('custom_str5', customStr5 as any); } if (customInt1 !== undefined) { localVarFormParams.append('custom_int1', customInt1 as any); } if (customInt2 !== undefined) { localVarFormParams.append('custom_int2', customInt2 as any); } if (customInt3 !== undefined) { localVarFormParams.append('custom_int3', customInt3 as any); } if (customInt4 !== undefined) { localVarFormParams.append('custom_int4', customInt4 as any); } if (customInt5 !== undefined) { localVarFormParams.append('custom_int5', customInt5 as any); } if (nameFirst !== undefined) { localVarFormParams.append('name_first', nameFirst as any); } if (nameLast !== undefined) { localVarFormParams.append('name_last', nameLast as any); } if (emailAddress !== undefined) { localVarFormParams.append('email_address', emailAddress as any); } if (merchantId !== undefined) { localVarFormParams.append('merchant_id', merchantId as any); } if (signature !== undefined) { localVarFormParams.append('signature', signature as any); } if (token !== undefined) { localVarFormParams.append('token', token as any); } if (billingDate !== undefined) { localVarFormParams.append('billing_date', billingDate as any); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = localVarFormParams; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ shopSpinTheWheelTicketsGet: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/Shop/SpinTheWheelTickets`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ shopTapTokensGet: async (options: AxiosRequestConfig = {}): Promise => { const localVarPath = `/Shop/TapTokens`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, 'https://example.com'); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const query = new URLSearchParams(localVarUrlObj.search); for (const key in localVarQueryParameter) { query.set(key, localVarQueryParameter[key]); } for (const key in options.params) { query.set(key, options.params[key]); } localVarUrlObj.search = (new URLSearchParams(query)).toString(); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash, options: localVarRequestOptions, }; }, } }; /** * ShopApi - functional programming interface * @export */ export const ShopApiFp = function(configuration?: Configuration) { return { /** * * @param {number} itemId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shopItemsBuyItemIdPost(itemId: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await ShopApiAxiosParamCreator(configuration).shopItemsBuyItemIdPost(itemId, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {number} itemId * @param {CreateShopItemModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shopItemsItemIdPatch(itemId: number, body?: CreateShopItemModel, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await ShopApiAxiosParamCreator(configuration).shopItemsItemIdPatch(itemId, body, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {CreateShopItemModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shopItemsPost(body?: CreateShopItemModel, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await ShopApiAxiosParamCreator(configuration).shopItemsPost(body, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {string} type * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shopItemsTypeGet(type: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>> { const localVarAxiosArgs = await ShopApiAxiosParamCreator(configuration).shopItemsTypeGet(type, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {string} [mPaymentId] * @param {number} [pfPaymentId] * @param {string} [paymentStatus] * @param {string} [itemName] * @param {string} [itemDescription] * @param {string} [amountGross] * @param {string} [amountFee] * @param {string} [amountNet] * @param {string} [customStr1] * @param {string} [customStr2] * @param {string} [customStr3] * @param {string} [customStr4] * @param {string} [customStr5] * @param {number} [customInt1] * @param {number} [customInt2] * @param {number} [customInt3] * @param {number} [customInt4] * @param {number} [customInt5] * @param {string} [nameFirst] * @param {string} [nameLast] * @param {string} [emailAddress] * @param {number} [merchantId] * @param {string} [signature] * @param {string} [token] * @param {string} [billingDate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shopPayFastNotificationPostForm(mPaymentId?: string, pfPaymentId?: number, paymentStatus?: string, itemName?: string, itemDescription?: string, amountGross?: string, amountFee?: string, amountNet?: string, customStr1?: string, customStr2?: string, customStr3?: string, customStr4?: string, customStr5?: string, customInt1?: number, customInt2?: number, customInt3?: number, customInt4?: number, customInt5?: number, nameFirst?: string, nameLast?: string, emailAddress?: string, merchantId?: number, signature?: string, token?: string, billingDate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await ShopApiAxiosParamCreator(configuration).shopPayFastNotificationPostForm(mPaymentId, pfPaymentId, paymentStatus, itemName, itemDescription, amountGross, amountFee, amountNet, customStr1, customStr2, customStr3, customStr4, customStr5, customInt1, customInt2, customInt3, customInt4, customInt5, nameFirst, nameLast, emailAddress, merchantId, signature, token, billingDate, options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shopSpinTheWheelTicketsGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await ShopApiAxiosParamCreator(configuration).shopSpinTheWheelTicketsGet(options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shopTapTokensGet(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>> { const localVarAxiosArgs = await ShopApiAxiosParamCreator(configuration).shopTapTokensGet(options); return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url}; return axios.request(axiosRequestArgs); }; }, } }; /** * ShopApi - factory interface * @export */ export const ShopApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { return { /** * * @param {number} itemId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shopItemsBuyItemIdPost(itemId: number, options?: AxiosRequestConfig): Promise> { return ShopApiFp(configuration).shopItemsBuyItemIdPost(itemId, options).then((request) => request(axios, basePath)); }, /** * * @param {number} itemId * @param {CreateShopItemModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shopItemsItemIdPatch(itemId: number, body?: CreateShopItemModel, options?: AxiosRequestConfig): Promise> { return ShopApiFp(configuration).shopItemsItemIdPatch(itemId, body, options).then((request) => request(axios, basePath)); }, /** * * @param {CreateShopItemModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shopItemsPost(body?: CreateShopItemModel, options?: AxiosRequestConfig): Promise> { return ShopApiFp(configuration).shopItemsPost(body, options).then((request) => request(axios, basePath)); }, /** * * @param {string} type * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shopItemsTypeGet(type: string, options?: AxiosRequestConfig): Promise>> { return ShopApiFp(configuration).shopItemsTypeGet(type, options).then((request) => request(axios, basePath)); }, /** * * @param {string} [mPaymentId] * @param {number} [pfPaymentId] * @param {string} [paymentStatus] * @param {string} [itemName] * @param {string} [itemDescription] * @param {string} [amountGross] * @param {string} [amountFee] * @param {string} [amountNet] * @param {string} [customStr1] * @param {string} [customStr2] * @param {string} [customStr3] * @param {string} [customStr4] * @param {string} [customStr5] * @param {number} [customInt1] * @param {number} [customInt2] * @param {number} [customInt3] * @param {number} [customInt4] * @param {number} [customInt5] * @param {string} [nameFirst] * @param {string} [nameLast] * @param {string} [emailAddress] * @param {number} [merchantId] * @param {string} [signature] * @param {string} [token] * @param {string} [billingDate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shopPayFastNotificationPostForm(mPaymentId?: string, pfPaymentId?: number, paymentStatus?: string, itemName?: string, itemDescription?: string, amountGross?: string, amountFee?: string, amountNet?: string, customStr1?: string, customStr2?: string, customStr3?: string, customStr4?: string, customStr5?: string, customInt1?: number, customInt2?: number, customInt3?: number, customInt4?: number, customInt5?: number, nameFirst?: string, nameLast?: string, emailAddress?: string, merchantId?: number, signature?: string, token?: string, billingDate?: string, options?: AxiosRequestConfig): Promise> { return ShopApiFp(configuration).shopPayFastNotificationPostForm(mPaymentId, pfPaymentId, paymentStatus, itemName, itemDescription, amountGross, amountFee, amountNet, customStr1, customStr2, customStr3, customStr4, customStr5, customInt1, customInt2, customInt3, customInt4, customInt5, nameFirst, nameLast, emailAddress, merchantId, signature, token, billingDate, options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shopSpinTheWheelTicketsGet(options?: AxiosRequestConfig): Promise> { return ShopApiFp(configuration).shopSpinTheWheelTicketsGet(options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shopTapTokensGet(options?: AxiosRequestConfig): Promise> { return ShopApiFp(configuration).shopTapTokensGet(options).then((request) => request(axios, basePath)); }, }; }; /** * ShopApi - object-oriented interface * @export * @class ShopApi * @extends {BaseAPI} */ export class ShopApi extends BaseAPI { /** * * @param {number} itemId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ShopApi */ public async shopItemsBuyItemIdPost(itemId: number, options?: AxiosRequestConfig) : Promise> { return ShopApiFp(this.configuration).shopItemsBuyItemIdPost(itemId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} itemId * @param {CreateShopItemModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ShopApi */ public async shopItemsItemIdPatch(itemId: number, body?: CreateShopItemModel, options?: AxiosRequestConfig) : Promise> { return ShopApiFp(this.configuration).shopItemsItemIdPatch(itemId, body, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {CreateShopItemModel} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ShopApi */ public async shopItemsPost(body?: CreateShopItemModel, options?: AxiosRequestConfig) : Promise> { return ShopApiFp(this.configuration).shopItemsPost(body, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} type * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ShopApi */ public async shopItemsTypeGet(type: string, options?: AxiosRequestConfig) : Promise>> { return ShopApiFp(this.configuration).shopItemsTypeGet(type, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} [mPaymentId] * @param {number} [pfPaymentId] * @param {string} [paymentStatus] * @param {string} [itemName] * @param {string} [itemDescription] * @param {string} [amountGross] * @param {string} [amountFee] * @param {string} [amountNet] * @param {string} [customStr1] * @param {string} [customStr2] * @param {string} [customStr3] * @param {string} [customStr4] * @param {string} [customStr5] * @param {number} [customInt1] * @param {number} [customInt2] * @param {number} [customInt3] * @param {number} [customInt4] * @param {number} [customInt5] * @param {string} [nameFirst] * @param {string} [nameLast] * @param {string} [emailAddress] * @param {number} [merchantId] * @param {string} [signature] * @param {string} [token] * @param {string} [billingDate] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ShopApi */ public async shopPayFastNotificationPostForm(mPaymentId?: string, pfPaymentId?: number, paymentStatus?: string, itemName?: string, itemDescription?: string, amountGross?: string, amountFee?: string, amountNet?: string, customStr1?: string, customStr2?: string, customStr3?: string, customStr4?: string, customStr5?: string, customInt1?: number, customInt2?: number, customInt3?: number, customInt4?: number, customInt5?: number, nameFirst?: string, nameLast?: string, emailAddress?: string, merchantId?: number, signature?: string, token?: string, billingDate?: string, options?: AxiosRequestConfig) : Promise> { return ShopApiFp(this.configuration).shopPayFastNotificationPostForm(mPaymentId, pfPaymentId, paymentStatus, itemName, itemDescription, amountGross, amountFee, amountNet, customStr1, customStr2, customStr3, customStr4, customStr5, customInt1, customInt2, customInt3, customInt4, customInt5, nameFirst, nameLast, emailAddress, merchantId, signature, token, billingDate, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ShopApi */ public async shopSpinTheWheelTicketsGet(options?: AxiosRequestConfig) : Promise> { return ShopApiFp(this.configuration).shopSpinTheWheelTicketsGet(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ShopApi */ public async shopTapTokensGet(options?: AxiosRequestConfig) : Promise> { return ShopApiFp(this.configuration).shopTapTokensGet(options).then((request) => request(this.axios, this.basePath)); } }