@paciolan/cybersource-sdk
Version:
CyberSource REST API Typescript SDK
231 lines (230 loc) • 14.3 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 { IdActionsBody } from '../models';
import { IdCommentsBody } from '../models';
import { IdMarkingBody } from '../models';
import { InlineResponse2002 } from '../models';
import { InlineResponse2012 } from '../models';
import { RiskV1DecisionsPost201Response } from '../models';
import { RiskV1UpdatePost201Response } from '../models';
import { TypeEntriesBody } from '../models';
import { V1DecisionsBody } from '../models';
/**
* DecisionManagerApi - axios parameter creator
* @export
*/
export declare const DecisionManagerApiAxiosParamCreator: (configuration?: Configuration) => {
/**
* Take action on a DM post-transactional case
* @summary Take action on a DM post-transactional case
* @param {IdActionsBody} body
* @param {string} id An unique identification number generated by Cybersource to identify the submitted request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
actionDecisionManagerCase: (body: IdActionsBody, id: string, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>;
/**
* This call adds/deletes/converts the request information in the negative list. Provide the list to be updated as the path parameter. This value can be 'postiive', 'negative' or 'review'.
* @summary List Management
* @param {TypeEntriesBody} body
* @param {string} type The list to be updated. It can be 'positive', 'negative' or 'review'.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
addNegative: (body: TypeEntriesBody, type: string, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>;
/**
* Add a comment to a DM post-transactional case
* @summary Add a comment to a DM post-transactional case
* @param {IdCommentsBody} body
* @param {string} id An unique identification number generated by Cybersource to identify the submitted request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
commentDecisionManagerCase: (body: IdCommentsBody, id: string, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>;
/**
* Decision Manager can help you automate and streamline your fraud operations. Decision Manager will return a decision based on the request values.
* @summary Create Decision Manager
* @param {V1DecisionsBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createBundledDecisionManagerCase: (body: V1DecisionsBody, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>;
/**
* This can be used to - 1. Add known fraudulent data to the fraud history 2. Remove data added to history with Transaction Marking Tool or by uploading chargeback files 3. Remove chargeback data from history that was automatically added. For detailed information, contact your Cybersource representative Place the request ID of the transaction you want to mark as suspect (or remove from history) as the path parameter in this request.
* @summary Fraud Marking
* @param {IdMarkingBody} body
* @param {string} id Request ID of the transaction that you want to mark as suspect or remove from history.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
fraudUpdate: (body: IdMarkingBody, id: string, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>;
};
/**
* DecisionManagerApi - functional programming interface
* @export
*/
export declare const DecisionManagerApiFp: (configuration?: Configuration) => {
/**
* Take action on a DM post-transactional case
* @summary Take action on a DM post-transactional case
* @param {IdActionsBody} body
* @param {string} id An unique identification number generated by Cybersource to identify the submitted request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
actionDecisionManagerCase(body: IdActionsBody, id: string, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<InlineResponse2002>>>;
/**
* This call adds/deletes/converts the request information in the negative list. Provide the list to be updated as the path parameter. This value can be 'postiive', 'negative' or 'review'.
* @summary List Management
* @param {TypeEntriesBody} body
* @param {string} type The list to be updated. It can be 'positive', 'negative' or 'review'.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
addNegative(body: TypeEntriesBody, type: string, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<RiskV1UpdatePost201Response>>>;
/**
* Add a comment to a DM post-transactional case
* @summary Add a comment to a DM post-transactional case
* @param {IdCommentsBody} body
* @param {string} id An unique identification number generated by Cybersource to identify the submitted request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
commentDecisionManagerCase(body: IdCommentsBody, id: string, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<InlineResponse2012>>>;
/**
* Decision Manager can help you automate and streamline your fraud operations. Decision Manager will return a decision based on the request values.
* @summary Create Decision Manager
* @param {V1DecisionsBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createBundledDecisionManagerCase(body: V1DecisionsBody, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<RiskV1DecisionsPost201Response>>>;
/**
* This can be used to - 1. Add known fraudulent data to the fraud history 2. Remove data added to history with Transaction Marking Tool or by uploading chargeback files 3. Remove chargeback data from history that was automatically added. For detailed information, contact your Cybersource representative Place the request ID of the transaction you want to mark as suspect (or remove from history) as the path parameter in this request.
* @summary Fraud Marking
* @param {IdMarkingBody} body
* @param {string} id Request ID of the transaction that you want to mark as suspect or remove from history.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
fraudUpdate(body: IdMarkingBody, id: string, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<RiskV1UpdatePost201Response>>>;
};
/**
* DecisionManagerApi - factory interface
* @export
*/
export declare const DecisionManagerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
/**
* Take action on a DM post-transactional case
* @summary Take action on a DM post-transactional case
* @param {IdActionsBody} body
* @param {string} id An unique identification number generated by Cybersource to identify the submitted request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
actionDecisionManagerCase(body: IdActionsBody, id: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<InlineResponse2002>>;
/**
* This call adds/deletes/converts the request information in the negative list. Provide the list to be updated as the path parameter. This value can be 'postiive', 'negative' or 'review'.
* @summary List Management
* @param {TypeEntriesBody} body
* @param {string} type The list to be updated. It can be 'positive', 'negative' or 'review'.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
addNegative(body: TypeEntriesBody, type: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<RiskV1UpdatePost201Response>>;
/**
* Add a comment to a DM post-transactional case
* @summary Add a comment to a DM post-transactional case
* @param {IdCommentsBody} body
* @param {string} id An unique identification number generated by Cybersource to identify the submitted request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
commentDecisionManagerCase(body: IdCommentsBody, id: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<InlineResponse2012>>;
/**
* Decision Manager can help you automate and streamline your fraud operations. Decision Manager will return a decision based on the request values.
* @summary Create Decision Manager
* @param {V1DecisionsBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createBundledDecisionManagerCase(body: V1DecisionsBody, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<RiskV1DecisionsPost201Response>>;
/**
* This can be used to - 1. Add known fraudulent data to the fraud history 2. Remove data added to history with Transaction Marking Tool or by uploading chargeback files 3. Remove chargeback data from history that was automatically added. For detailed information, contact your Cybersource representative Place the request ID of the transaction you want to mark as suspect (or remove from history) as the path parameter in this request.
* @summary Fraud Marking
* @param {IdMarkingBody} body
* @param {string} id Request ID of the transaction that you want to mark as suspect or remove from history.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
fraudUpdate(body: IdMarkingBody, id: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<RiskV1UpdatePost201Response>>;
};
/**
* DecisionManagerApi - object-oriented interface
* @export
* @class DecisionManagerApi
* @extends {BaseAPI}
*/
export declare class DecisionManagerApi extends BaseAPI {
/**
* Take action on a DM post-transactional case
* @summary Take action on a DM post-transactional case
* @param {IdActionsBody} body
* @param {string} id An unique identification number generated by Cybersource to identify the submitted request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DecisionManagerApi
*/
actionDecisionManagerCase(body: IdActionsBody, id: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<InlineResponse2002>>;
/**
* This call adds/deletes/converts the request information in the negative list. Provide the list to be updated as the path parameter. This value can be 'postiive', 'negative' or 'review'.
* @summary List Management
* @param {TypeEntriesBody} body
* @param {string} type The list to be updated. It can be 'positive', 'negative' or 'review'.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DecisionManagerApi
*/
addNegative(body: TypeEntriesBody, type: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<RiskV1UpdatePost201Response>>;
/**
* Add a comment to a DM post-transactional case
* @summary Add a comment to a DM post-transactional case
* @param {IdCommentsBody} body
* @param {string} id An unique identification number generated by Cybersource to identify the submitted request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DecisionManagerApi
*/
commentDecisionManagerCase(body: IdCommentsBody, id: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<InlineResponse2012>>;
/**
* Decision Manager can help you automate and streamline your fraud operations. Decision Manager will return a decision based on the request values.
* @summary Create Decision Manager
* @param {V1DecisionsBody} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DecisionManagerApi
*/
createBundledDecisionManagerCase(body: V1DecisionsBody, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<RiskV1DecisionsPost201Response>>;
/**
* This can be used to - 1. Add known fraudulent data to the fraud history 2. Remove data added to history with Transaction Marking Tool or by uploading chargeback files 3. Remove chargeback data from history that was automatically added. For detailed information, contact your Cybersource representative Place the request ID of the transaction you want to mark as suspect (or remove from history) as the path parameter in this request.
* @summary Fraud Marking
* @param {IdMarkingBody} body
* @param {string} id Request ID of the transaction that you want to mark as suspect or remove from history.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DecisionManagerApi
*/
fraudUpdate(body: IdMarkingBody, id: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<RiskV1UpdatePost201Response>>;
}