UNPKG

@paciolan/cybersource-sdk

Version:
109 lines (108 loc) 4.53 kB
/** * CyberSource Merged Spec * All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html * * OpenAPI spec version: 0.0.1 * * * 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 { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { TssV2TransactionsPost201Response } from '../models'; import { V2SearchesBody } from '../models'; /** * SearchTransactionsApi - axios parameter creator * @export */ export declare const SearchTransactionsApiAxiosParamCreator: (configuration?: Configuration) => { /** * Create a search request. * @summary Create a Search Request * @param {V2SearchesBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSearch: (body: V2SearchesBody, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>; /** * Include the Search ID in the GET request to retrieve the search results. * @summary Get Search Results * @param {string} searchId Search ID. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSearch: (searchId: string, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>; }; /** * SearchTransactionsApi - functional programming interface * @export */ export declare const SearchTransactionsApiFp: (configuration?: Configuration) => { /** * Create a search request. * @summary Create a Search Request * @param {V2SearchesBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSearch(body: V2SearchesBody, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TssV2TransactionsPost201Response>>>; /** * Include the Search ID in the GET request to retrieve the search results. * @summary Get Search Results * @param {string} searchId Search ID. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSearch(searchId: string, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TssV2TransactionsPost201Response>>>; }; /** * SearchTransactionsApi - factory interface * @export */ export declare const SearchTransactionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Create a search request. * @summary Create a Search Request * @param {V2SearchesBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSearch(body: V2SearchesBody, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<TssV2TransactionsPost201Response>>; /** * Include the Search ID in the GET request to retrieve the search results. * @summary Get Search Results * @param {string} searchId Search ID. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getSearch(searchId: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<TssV2TransactionsPost201Response>>; }; /** * SearchTransactionsApi - object-oriented interface * @export * @class SearchTransactionsApi * @extends {BaseAPI} */ export declare class SearchTransactionsApi extends BaseAPI { /** * Create a search request. * @summary Create a Search Request * @param {V2SearchesBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SearchTransactionsApi */ createSearch(body: V2SearchesBody, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<TssV2TransactionsPost201Response>>; /** * Include the Search ID in the GET request to retrieve the search results. * @summary Get Search Results * @param {string} searchId Search ID. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof SearchTransactionsApi */ getSearch(searchId: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<TssV2TransactionsPost201Response>>; }