UNPKG

@paciolan/cybersource-sdk

Version:
76 lines (75 loc) 2.88 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 { PtsV2CreditsPost201Response } from '../models'; import { V2CreditsBody } from '../models'; /** * CreditApi - axios parameter creator * @export */ export declare const CreditApiAxiosParamCreator: (configuration?: Configuration) => { /** * POST to the credit resource to credit funds to a specified credit card. * @summary Process a Credit * @param {V2CreditsBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCredit: (body: V2CreditsBody, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>; }; /** * CreditApi - functional programming interface * @export */ export declare const CreditApiFp: (configuration?: Configuration) => { /** * POST to the credit resource to credit funds to a specified credit card. * @summary Process a Credit * @param {V2CreditsBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCredit(body: V2CreditsBody, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PtsV2CreditsPost201Response>>>; }; /** * CreditApi - factory interface * @export */ export declare const CreditApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * POST to the credit resource to credit funds to a specified credit card. * @summary Process a Credit * @param {V2CreditsBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCredit(body: V2CreditsBody, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<PtsV2CreditsPost201Response>>; }; /** * CreditApi - object-oriented interface * @export * @class CreditApi * @extends {BaseAPI} */ export declare class CreditApi extends BaseAPI { /** * POST to the credit resource to credit funds to a specified credit card. * @summary Process a Credit * @param {V2CreditsBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof CreditApi */ createCredit(body: V2CreditsBody, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<PtsV2CreditsPost201Response>>; }