@circle-fin/circle-sdk
Version:
Node.js SDK for Circle API
193 lines (192 loc) • 14.1 kB
TypeScript
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from "axios";
import { Configuration } from "../configuration";
import { RequestArgs, BaseAPI } from "../base";
import { CheckoutSessionCreationRequest } from "../models";
import { CreateCheckoutSessionResponse } from "../models";
import { ExtendCheckoutSessionRequest } from "../models";
import { ExtendCheckoutSessionResponse } from "../models";
import { GetCheckoutSessionResponse } from "../models";
import { ListCheckoutSessionsResponse } from "../models";
/**
* CheckoutSessionsApi - axios parameter creator
* @export
*/
export declare const CheckoutSessionsApiAxiosParamCreator: (configuration?: Configuration) => {
/**
*
* @summary Create a checkout session
* @param {CheckoutSessionCreationRequest} [checkoutSessionCreationRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createCheckoutSession: (checkoutSessionCreationRequest?: CheckoutSessionCreationRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @summary Extend a checkout session
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {ExtendCheckoutSessionRequest} [extendCheckoutSessionRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
extendCheckoutSession: (id: string, extendCheckoutSessionRequest?: ExtendCheckoutSessionRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @summary Get a checkout session
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCheckoutSession: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
/**
*
* @summary List all checkout sessions
* @param {string} [from] Queries items created since the specified date-time (inclusive).
* @param {string} [to] Queries items created before the specified date-time (inclusive).
* @param {string} [pageBefore] A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next `n` items before the id, with `n` being specified by `pageSize`. The items will be returned in the natural order of the collection. The resource will return the first page if neither `pageAfter` nor `pageBefore` are specified. SHOULD NOT be used in conjuction with pageAfter.
* @param {string} [pageAfter] A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next `n` items after the id, with `n` being specified by `pageSize`. The items will be returned in the natural order of the collection. The resource will return the first page if neither `pageAfter` nor `pageBefore` are specified. SHOULD NOT be used in conjuction with pageBefore.
* @param {number} [pageSize] Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listCheckoutSessions: (from?: string, to?: string, pageBefore?: string, pageAfter?: string, pageSize?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
};
/**
* CheckoutSessionsApi - functional programming interface
* @export
*/
export declare const CheckoutSessionsApiFp: (configuration?: Configuration) => {
/**
*
* @summary Create a checkout session
* @param {CheckoutSessionCreationRequest} [checkoutSessionCreationRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createCheckoutSession(checkoutSessionCreationRequest?: CheckoutSessionCreationRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCheckoutSessionResponse>>;
/**
*
* @summary Extend a checkout session
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {ExtendCheckoutSessionRequest} [extendCheckoutSessionRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
extendCheckoutSession(id: string, extendCheckoutSessionRequest?: ExtendCheckoutSessionRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExtendCheckoutSessionResponse>>;
/**
*
* @summary Get a checkout session
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCheckoutSession(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCheckoutSessionResponse>>;
/**
*
* @summary List all checkout sessions
* @param {string} [from] Queries items created since the specified date-time (inclusive).
* @param {string} [to] Queries items created before the specified date-time (inclusive).
* @param {string} [pageBefore] A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next `n` items before the id, with `n` being specified by `pageSize`. The items will be returned in the natural order of the collection. The resource will return the first page if neither `pageAfter` nor `pageBefore` are specified. SHOULD NOT be used in conjuction with pageAfter.
* @param {string} [pageAfter] A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next `n` items after the id, with `n` being specified by `pageSize`. The items will be returned in the natural order of the collection. The resource will return the first page if neither `pageAfter` nor `pageBefore` are specified. SHOULD NOT be used in conjuction with pageBefore.
* @param {number} [pageSize] Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listCheckoutSessions(from?: string, to?: string, pageBefore?: string, pageAfter?: string, pageSize?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCheckoutSessionsResponse>>;
};
/**
* CheckoutSessionsApi - factory interface
* @export
*/
export declare const CheckoutSessionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
/**
*
* @summary Create a checkout session
* @param {CheckoutSessionCreationRequest} [checkoutSessionCreationRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createCheckoutSession(checkoutSessionCreationRequest?: CheckoutSessionCreationRequest, options?: any): AxiosPromise<CreateCheckoutSessionResponse>;
/**
*
* @summary Extend a checkout session
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {ExtendCheckoutSessionRequest} [extendCheckoutSessionRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
extendCheckoutSession(id: string, extendCheckoutSessionRequest?: ExtendCheckoutSessionRequest, options?: any): AxiosPromise<ExtendCheckoutSessionResponse>;
/**
*
* @summary Get a checkout session
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getCheckoutSession(id: string, options?: any): AxiosPromise<GetCheckoutSessionResponse>;
/**
*
* @summary List all checkout sessions
* @param {string} [from] Queries items created since the specified date-time (inclusive).
* @param {string} [to] Queries items created before the specified date-time (inclusive).
* @param {string} [pageBefore] A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next `n` items before the id, with `n` being specified by `pageSize`. The items will be returned in the natural order of the collection. The resource will return the first page if neither `pageAfter` nor `pageBefore` are specified. SHOULD NOT be used in conjuction with pageAfter.
* @param {string} [pageAfter] A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next `n` items after the id, with `n` being specified by `pageSize`. The items will be returned in the natural order of the collection. The resource will return the first page if neither `pageAfter` nor `pageBefore` are specified. SHOULD NOT be used in conjuction with pageBefore.
* @param {number} [pageSize] Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listCheckoutSessions(from?: string, to?: string, pageBefore?: string, pageAfter?: string, pageSize?: number, options?: any): AxiosPromise<ListCheckoutSessionsResponse>;
};
/**
* CheckoutSessionsApi - object-oriented interface
* @export
* @class CheckoutSessionsApi
* @extends {BaseAPI}
*/
export declare class CheckoutSessionsApi extends BaseAPI {
/**
*
* @summary Create a checkout session
* @param {CheckoutSessionCreationRequest} [checkoutSessionCreationRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CheckoutSessionsApi
*/
createCheckoutSession(checkoutSessionCreationRequest?: CheckoutSessionCreationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCheckoutSessionResponse, any>>;
/**
*
* @summary Extend a checkout session
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {ExtendCheckoutSessionRequest} [extendCheckoutSessionRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CheckoutSessionsApi
*/
extendCheckoutSession(id: string, extendCheckoutSessionRequest?: ExtendCheckoutSessionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ExtendCheckoutSessionResponse, any>>;
/**
*
* @summary Get a checkout session
* @param {string} id Universally unique identifier (UUID v4) of a resource.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CheckoutSessionsApi
*/
getCheckoutSession(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCheckoutSessionResponse, any>>;
/**
*
* @summary List all checkout sessions
* @param {string} [from] Queries items created since the specified date-time (inclusive).
* @param {string} [to] Queries items created before the specified date-time (inclusive).
* @param {string} [pageBefore] A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next `n` items before the id, with `n` being specified by `pageSize`. The items will be returned in the natural order of the collection. The resource will return the first page if neither `pageAfter` nor `pageBefore` are specified. SHOULD NOT be used in conjuction with pageAfter.
* @param {string} [pageAfter] A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next `n` items after the id, with `n` being specified by `pageSize`. The items will be returned in the natural order of the collection. The resource will return the first page if neither `pageAfter` nor `pageBefore` are specified. SHOULD NOT be used in conjuction with pageBefore.
* @param {number} [pageSize] Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof CheckoutSessionsApi
*/
listCheckoutSessions(from?: string, to?: string, pageBefore?: string, pageAfter?: string, pageSize?: number, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCheckoutSessionsResponse, any>>;
}