@paciolan/cybersource-sdk
Version:
CyberSource REST API Typescript SDK
79 lines (78 loc) • 4.54 kB
TypeScript
/**
* 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 { WebhookIdReplaysBody } from '../models';
/**
* ReplayWebhooksApi - axios parameter creator
* @export
*/
export declare const ReplayWebhooksApiAxiosParamCreator: (configuration?: Configuration) => {
/**
* Initiate a webhook replay request to replay transactions that happened in the past. Cannot execute more than 1 replay request at a time. While one request is processing, you will not be allowed to execute another replay. The difference between Start and End time cannot exceed a 24 hour window, and 1 month is the farthest date back that is eligible for replay.
* @summary Replay Previous Webhooks
* @param {string} webhookId The webhook uuid identifier.
* @param {WebhookIdReplaysBody} [body] The request query
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
replayPreviousWebhooks: (webhookId: string, body?: WebhookIdReplaysBody, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>;
};
/**
* ReplayWebhooksApi - functional programming interface
* @export
*/
export declare const ReplayWebhooksApiFp: (configuration?: Configuration) => {
/**
* Initiate a webhook replay request to replay transactions that happened in the past. Cannot execute more than 1 replay request at a time. While one request is processing, you will not be allowed to execute another replay. The difference between Start and End time cannot exceed a 24 hour window, and 1 month is the farthest date back that is eligible for replay.
* @summary Replay Previous Webhooks
* @param {string} webhookId The webhook uuid identifier.
* @param {WebhookIdReplaysBody} [body] The request query
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
replayPreviousWebhooks(webhookId: string, body?: WebhookIdReplaysBody, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<void>>>;
};
/**
* ReplayWebhooksApi - factory interface
* @export
*/
export declare const ReplayWebhooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
/**
* Initiate a webhook replay request to replay transactions that happened in the past. Cannot execute more than 1 replay request at a time. While one request is processing, you will not be allowed to execute another replay. The difference between Start and End time cannot exceed a 24 hour window, and 1 month is the farthest date back that is eligible for replay.
* @summary Replay Previous Webhooks
* @param {string} webhookId The webhook uuid identifier.
* @param {WebhookIdReplaysBody} [body] The request query
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
replayPreviousWebhooks(webhookId: string, body?: WebhookIdReplaysBody, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<void>>;
};
/**
* ReplayWebhooksApi - object-oriented interface
* @export
* @class ReplayWebhooksApi
* @extends {BaseAPI}
*/
export declare class ReplayWebhooksApi extends BaseAPI {
/**
* Initiate a webhook replay request to replay transactions that happened in the past. Cannot execute more than 1 replay request at a time. While one request is processing, you will not be allowed to execute another replay. The difference between Start and End time cannot exceed a 24 hour window, and 1 month is the farthest date back that is eligible for replay.
* @summary Replay Previous Webhooks
* @param {string} webhookId The webhook uuid identifier.
* @param {WebhookIdReplaysBody} [body] The request query
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ReplayWebhooksApi
*/
replayPreviousWebhooks(webhookId: string, body?: WebhookIdReplaysBody, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<void>>;
}