UNPKG

@paciolan/cybersource-sdk

Version:
154 lines (153 loc) 18.8 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 { BillingagreementsIdBody } from '../models'; import { IdIntimationsBody } from '../models'; import { PtsV2CreateBillingAgreementPost201Response } from '../models'; import { PtsV2CreditsPost201Response1 } from '../models'; import { PtsV2ModifyBillingAgreementPost201Response } from '../models'; import { V2BillingagreementsBody } from '../models'; /** * BillingAgreementsApi - axios parameter creator * @export */ export declare const BillingAgreementsApiAxiosParamCreator: (configuration?: Configuration) => { /** * #### Standing Instruction: Standing Instruction with or without Token. #### Revoke Mandate: When you revoke a mandate, any pending direct debits linked to that mandate are canceled. No notifications are sent. When you revoke a mandate with no pending direct debits, the Bacs scheme or customer's bank notify you of any subsequent direct debit events. When you revoke a mandate, you cannot send a direct debit request using the mandate ID. Customer payments cannot be made against a revoked mandate. You can revoke a mandate when the customer: - Requests that you revoke the mandate. - Closes their account with you. Possible revoke mandate status values - - Revoked—the revoke mandate request was successfully processed. - Failed—the revoke mandate request was not accepted. #### Update Mandate: In most cases, the account details of an existing mandate cannot be updated in the Bacs schema, except by creating a new mandate. However, some very limited customer information, like name and address, can be updated to the mandate without needing to revoke it first #### Mandate Status: After the customer signs the mandate, request that the mandate status service verify the mandate status. Possible mandate status values: - Active—the mandate is successfully created. A direct debit can be sent for this mandate ID. - Pending—a pending mandate means the mandate is not yet signed. - Failed—the customer did not authenticate. - Expired—the deadline to create the mandate passed. - Revoked—the mandate is cancelled. #### Paypal Billing Agreement: A billing agreement is set up between PayPal and your customer. When you collect the details of a customer's billing agreement, you are able to bill that customer without requiring an authorization for each payment. You can bill the customer at the same time you process their PayPal Express checkout order, which simplifies your business processes. * @summary Modify a Billing Agreement * @param {BillingagreementsIdBody} body * @param {string} id ID for de-registration or cancellation of Billing Agreement * @param {*} [options] Override http request option. * @throws {RequiredError} */ billingAgreementsDeRegistration: (body: BillingagreementsIdBody, id: string, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>; /** * Standing Instruction with or without Token. * @summary Standing Instruction intimation * @param {IdIntimationsBody} body * @param {string} id ID for intimation of Billing Agreement * @param {*} [options] Override http request option. * @throws {RequiredError} */ billingAgreementsIntimation: (body: IdIntimationsBody, id: string, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>; /** * #### Standing Instruction: Standing Instruction with or without Token. Transaction amount in case First payment is coming along with registration. Only 2 decimal places allowed #### Create Mandate: You can create a mandate through the direct debit mandate flow. Possible create mandate status values: - Pending—the create mandate request was successfully processed. - Failed—the create mandate request was not accepted. #### Import Mandate: In the Bacs scheme, a mandate is created with a status of active. Direct debit collections can be made against it immediately. You can import a mandate to the CyberSource database when: - You have existing customers with signed, active mandates - You manage mandates outside of CyberSource. When you import an existing mandate to the CyberSource database, provide a unique value for the mandate ID or the request results in an error. If an import mandate request is not accepted, the import mandate status value is failed. * @summary Create a Billing Agreement * @param {V2BillingagreementsBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ billingAgreementsRegistration: (body: V2BillingagreementsBody, options?: AxiosRequestConfig & Configuration) => Promise<RequestArgs>; }; /** * BillingAgreementsApi - functional programming interface * @export */ export declare const BillingAgreementsApiFp: (configuration?: Configuration) => { /** * #### Standing Instruction: Standing Instruction with or without Token. #### Revoke Mandate: When you revoke a mandate, any pending direct debits linked to that mandate are canceled. No notifications are sent. When you revoke a mandate with no pending direct debits, the Bacs scheme or customer's bank notify you of any subsequent direct debit events. When you revoke a mandate, you cannot send a direct debit request using the mandate ID. Customer payments cannot be made against a revoked mandate. You can revoke a mandate when the customer: - Requests that you revoke the mandate. - Closes their account with you. Possible revoke mandate status values - - Revoked—the revoke mandate request was successfully processed. - Failed—the revoke mandate request was not accepted. #### Update Mandate: In most cases, the account details of an existing mandate cannot be updated in the Bacs schema, except by creating a new mandate. However, some very limited customer information, like name and address, can be updated to the mandate without needing to revoke it first #### Mandate Status: After the customer signs the mandate, request that the mandate status service verify the mandate status. Possible mandate status values: - Active—the mandate is successfully created. A direct debit can be sent for this mandate ID. - Pending—a pending mandate means the mandate is not yet signed. - Failed—the customer did not authenticate. - Expired—the deadline to create the mandate passed. - Revoked—the mandate is cancelled. #### Paypal Billing Agreement: A billing agreement is set up between PayPal and your customer. When you collect the details of a customer's billing agreement, you are able to bill that customer without requiring an authorization for each payment. You can bill the customer at the same time you process their PayPal Express checkout order, which simplifies your business processes. * @summary Modify a Billing Agreement * @param {BillingagreementsIdBody} body * @param {string} id ID for de-registration or cancellation of Billing Agreement * @param {*} [options] Override http request option. * @throws {RequiredError} */ billingAgreementsDeRegistration(body: BillingagreementsIdBody, id: string, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PtsV2ModifyBillingAgreementPost201Response>>>; /** * Standing Instruction with or without Token. * @summary Standing Instruction intimation * @param {IdIntimationsBody} body * @param {string} id ID for intimation of Billing Agreement * @param {*} [options] Override http request option. * @throws {RequiredError} */ billingAgreementsIntimation(body: IdIntimationsBody, id: string, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PtsV2CreditsPost201Response1>>>; /** * #### Standing Instruction: Standing Instruction with or without Token. Transaction amount in case First payment is coming along with registration. Only 2 decimal places allowed #### Create Mandate: You can create a mandate through the direct debit mandate flow. Possible create mandate status values: - Pending—the create mandate request was successfully processed. - Failed—the create mandate request was not accepted. #### Import Mandate: In the Bacs scheme, a mandate is created with a status of active. Direct debit collections can be made against it immediately. You can import a mandate to the CyberSource database when: - You have existing customers with signed, active mandates - You manage mandates outside of CyberSource. When you import an existing mandate to the CyberSource database, provide a unique value for the mandate ID or the request results in an error. If an import mandate request is not accepted, the import mandate status value is failed. * @summary Create a Billing Agreement * @param {V2BillingagreementsBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ billingAgreementsRegistration(body: V2BillingagreementsBody, options?: AxiosRequestConfig & Configuration): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<PtsV2CreateBillingAgreementPost201Response>>>; }; /** * BillingAgreementsApi - factory interface * @export */ export declare const BillingAgreementsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * #### Standing Instruction: Standing Instruction with or without Token. #### Revoke Mandate: When you revoke a mandate, any pending direct debits linked to that mandate are canceled. No notifications are sent. When you revoke a mandate with no pending direct debits, the Bacs scheme or customer's bank notify you of any subsequent direct debit events. When you revoke a mandate, you cannot send a direct debit request using the mandate ID. Customer payments cannot be made against a revoked mandate. You can revoke a mandate when the customer: - Requests that you revoke the mandate. - Closes their account with you. Possible revoke mandate status values - - Revoked—the revoke mandate request was successfully processed. - Failed—the revoke mandate request was not accepted. #### Update Mandate: In most cases, the account details of an existing mandate cannot be updated in the Bacs schema, except by creating a new mandate. However, some very limited customer information, like name and address, can be updated to the mandate without needing to revoke it first #### Mandate Status: After the customer signs the mandate, request that the mandate status service verify the mandate status. Possible mandate status values: - Active—the mandate is successfully created. A direct debit can be sent for this mandate ID. - Pending—a pending mandate means the mandate is not yet signed. - Failed—the customer did not authenticate. - Expired—the deadline to create the mandate passed. - Revoked—the mandate is cancelled. #### Paypal Billing Agreement: A billing agreement is set up between PayPal and your customer. When you collect the details of a customer's billing agreement, you are able to bill that customer without requiring an authorization for each payment. You can bill the customer at the same time you process their PayPal Express checkout order, which simplifies your business processes. * @summary Modify a Billing Agreement * @param {BillingagreementsIdBody} body * @param {string} id ID for de-registration or cancellation of Billing Agreement * @param {*} [options] Override http request option. * @throws {RequiredError} */ billingAgreementsDeRegistration(body: BillingagreementsIdBody, id: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<PtsV2ModifyBillingAgreementPost201Response>>; /** * Standing Instruction with or without Token. * @summary Standing Instruction intimation * @param {IdIntimationsBody} body * @param {string} id ID for intimation of Billing Agreement * @param {*} [options] Override http request option. * @throws {RequiredError} */ billingAgreementsIntimation(body: IdIntimationsBody, id: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<PtsV2CreditsPost201Response1>>; /** * #### Standing Instruction: Standing Instruction with or without Token. Transaction amount in case First payment is coming along with registration. Only 2 decimal places allowed #### Create Mandate: You can create a mandate through the direct debit mandate flow. Possible create mandate status values: - Pending—the create mandate request was successfully processed. - Failed—the create mandate request was not accepted. #### Import Mandate: In the Bacs scheme, a mandate is created with a status of active. Direct debit collections can be made against it immediately. You can import a mandate to the CyberSource database when: - You have existing customers with signed, active mandates - You manage mandates outside of CyberSource. When you import an existing mandate to the CyberSource database, provide a unique value for the mandate ID or the request results in an error. If an import mandate request is not accepted, the import mandate status value is failed. * @summary Create a Billing Agreement * @param {V2BillingagreementsBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ billingAgreementsRegistration(body: V2BillingagreementsBody, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<PtsV2CreateBillingAgreementPost201Response>>; }; /** * BillingAgreementsApi - object-oriented interface * @export * @class BillingAgreementsApi * @extends {BaseAPI} */ export declare class BillingAgreementsApi extends BaseAPI { /** * #### Standing Instruction: Standing Instruction with or without Token. #### Revoke Mandate: When you revoke a mandate, any pending direct debits linked to that mandate are canceled. No notifications are sent. When you revoke a mandate with no pending direct debits, the Bacs scheme or customer's bank notify you of any subsequent direct debit events. When you revoke a mandate, you cannot send a direct debit request using the mandate ID. Customer payments cannot be made against a revoked mandate. You can revoke a mandate when the customer: - Requests that you revoke the mandate. - Closes their account with you. Possible revoke mandate status values - - Revoked—the revoke mandate request was successfully processed. - Failed—the revoke mandate request was not accepted. #### Update Mandate: In most cases, the account details of an existing mandate cannot be updated in the Bacs schema, except by creating a new mandate. However, some very limited customer information, like name and address, can be updated to the mandate without needing to revoke it first #### Mandate Status: After the customer signs the mandate, request that the mandate status service verify the mandate status. Possible mandate status values: - Active—the mandate is successfully created. A direct debit can be sent for this mandate ID. - Pending—a pending mandate means the mandate is not yet signed. - Failed—the customer did not authenticate. - Expired—the deadline to create the mandate passed. - Revoked—the mandate is cancelled. #### Paypal Billing Agreement: A billing agreement is set up between PayPal and your customer. When you collect the details of a customer's billing agreement, you are able to bill that customer without requiring an authorization for each payment. You can bill the customer at the same time you process their PayPal Express checkout order, which simplifies your business processes. * @summary Modify a Billing Agreement * @param {BillingagreementsIdBody} body * @param {string} id ID for de-registration or cancellation of Billing Agreement * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BillingAgreementsApi */ billingAgreementsDeRegistration(body: BillingagreementsIdBody, id: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<PtsV2ModifyBillingAgreementPost201Response>>; /** * Standing Instruction with or without Token. * @summary Standing Instruction intimation * @param {IdIntimationsBody} body * @param {string} id ID for intimation of Billing Agreement * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BillingAgreementsApi */ billingAgreementsIntimation(body: IdIntimationsBody, id: string, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<PtsV2CreditsPost201Response1>>; /** * #### Standing Instruction: Standing Instruction with or without Token. Transaction amount in case First payment is coming along with registration. Only 2 decimal places allowed #### Create Mandate: You can create a mandate through the direct debit mandate flow. Possible create mandate status values: - Pending—the create mandate request was successfully processed. - Failed—the create mandate request was not accepted. #### Import Mandate: In the Bacs scheme, a mandate is created with a status of active. Direct debit collections can be made against it immediately. You can import a mandate to the CyberSource database when: - You have existing customers with signed, active mandates - You manage mandates outside of CyberSource. When you import an existing mandate to the CyberSource database, provide a unique value for the mandate ID or the request results in an error. If an import mandate request is not accepted, the import mandate status value is failed. * @summary Create a Billing Agreement * @param {V2BillingagreementsBody} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof BillingAgreementsApi */ billingAgreementsRegistration(body: V2BillingagreementsBody, options?: AxiosRequestConfig & Configuration): Promise<AxiosResponse<PtsV2CreateBillingAgreementPost201Response>>; }