UNPKG

@paciolan/cybersource-sdk

Version:
183 lines (182 loc) 8.15 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 { KeysasymDeletesBody } from '../models'; import { KeysasymKeyIdBody } from '../models'; import { KmsV2KeysAsymDeletesPost200Response } from '../models'; import { KmsV2KeysAsymGet200Response } from '../models'; import { KmsV2KeysAsymPost201Response } from '../models'; import { V2KeysasymBody } from '../models'; /** * AsymmetricKeyManagementApi - axios parameter creator * @export */ export declare const AsymmetricKeyManagementApiAxiosParamCreator: (configuration?: Configuration) => { /** * 'Create one or more PKCS12 keys' * @summary Create one or more PKCS12 keys * @param {V2KeysasymBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createP12Keys: (body: V2KeysasymBody, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>; /** * 'Delete one or more PKCS12 keys' * @summary Delete one or more PKCS12 keys * @param {KeysasymDeletesBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBulkP12Keys: (body: KeysasymDeletesBody, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>; /** * Retrieves keys details by providing the key id. * @summary Retrieves PKCS12 key details * @param {string} keyId Key ID. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getP12KeyDetails: (keyId: string, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>; /** * Activate or De-activate Asymmetric Key * @summary Activate or De-activate Asymmetric Key * @param {KeysasymKeyIdBody} body * @param {string} keyId Key ID. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAsymKey: (body: KeysasymKeyIdBody, keyId: string, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>; }; /** * AsymmetricKeyManagementApi - functional programming interface * @export */ export declare const AsymmetricKeyManagementApiFp: (configuration?: Configuration) => { /** * 'Create one or more PKCS12 keys' * @summary Create one or more PKCS12 keys * @param {V2KeysasymBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createP12Keys(body: V2KeysasymBody, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<KmsV2KeysAsymPost201Response>>>; /** * 'Delete one or more PKCS12 keys' * @summary Delete one or more PKCS12 keys * @param {KeysasymDeletesBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBulkP12Keys(body: KeysasymDeletesBody, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<KmsV2KeysAsymDeletesPost200Response>>>; /** * Retrieves keys details by providing the key id. * @summary Retrieves PKCS12 key details * @param {string} keyId Key ID. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getP12KeyDetails(keyId: string, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<KmsV2KeysAsymGet200Response>>>; /** * Activate or De-activate Asymmetric Key * @summary Activate or De-activate Asymmetric Key * @param {KeysasymKeyIdBody} body * @param {string} keyId Key ID. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAsymKey(body: KeysasymKeyIdBody, keyId: string, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<any>>>; }; /** * AsymmetricKeyManagementApi - factory interface * @export */ export declare const AsymmetricKeyManagementApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * 'Create one or more PKCS12 keys' * @summary Create one or more PKCS12 keys * @param {V2KeysasymBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ createP12Keys(body: V2KeysasymBody, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<KmsV2KeysAsymPost201Response>>; /** * 'Delete one or more PKCS12 keys' * @summary Delete one or more PKCS12 keys * @param {KeysasymDeletesBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteBulkP12Keys(body: KeysasymDeletesBody, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<KmsV2KeysAsymDeletesPost200Response>>; /** * Retrieves keys details by providing the key id. * @summary Retrieves PKCS12 key details * @param {string} keyId Key ID. * @param {*} [options] Override http request option. * @throws {RequiredError} */ getP12KeyDetails(keyId: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<KmsV2KeysAsymGet200Response>>; /** * Activate or De-activate Asymmetric Key * @summary Activate or De-activate Asymmetric Key * @param {KeysasymKeyIdBody} body * @param {string} keyId Key ID. * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAsymKey(body: KeysasymKeyIdBody, keyId: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<any>>; }; /** * AsymmetricKeyManagementApi - object-oriented interface * @export * @class AsymmetricKeyManagementApi * @extends {BaseAPI} */ export declare class AsymmetricKeyManagementApi extends BaseAPI { /** * 'Create one or more PKCS12 keys' * @summary Create one or more PKCS12 keys * @param {V2KeysasymBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AsymmetricKeyManagementApi */ createP12Keys(body: V2KeysasymBody, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<KmsV2KeysAsymPost201Response>>; /** * 'Delete one or more PKCS12 keys' * @summary Delete one or more PKCS12 keys * @param {KeysasymDeletesBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AsymmetricKeyManagementApi */ deleteBulkP12Keys(body: KeysasymDeletesBody, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<KmsV2KeysAsymDeletesPost200Response>>; /** * Retrieves keys details by providing the key id. * @summary Retrieves PKCS12 key details * @param {string} keyId Key ID. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AsymmetricKeyManagementApi */ getP12KeyDetails(keyId: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<KmsV2KeysAsymGet200Response>>; /** * Activate or De-activate Asymmetric Key * @summary Activate or De-activate Asymmetric Key * @param {KeysasymKeyIdBody} body * @param {string} keyId Key ID. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof AsymmetricKeyManagementApi */ updateAsymKey(body: KeysasymKeyIdBody, keyId: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<any>>; }