/** * Emil PublicAPI * The Emil Public API description * * The version of the OpenAPI document: 1.0 * Contact: kontakt@emil.de * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { CompletePaymentSetupRequestDto } from '../models'; import { CompletePaymentSetupResponseClass } from '../models'; import { GetPublicPspSettingsResponseClass } from '../models'; import { InitiatePaymentSetupRequestDto } from '../models'; import { InitiatePaymentSetupResponseClass } from '../models'; /** * PaymentsSetupApi - axios parameter creator * @export */ export declare const PaymentsSetupApiAxiosParamCreator: (configuration?: Configuration) => { /** * This will send the customer payment info from stripe or paypal to the backend. * @summary Complete a payment setup * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto * @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long. * @param {string} [authorization] Bearer Token * @param {*} [options] Override http request option. * @throws {RequiredError} */ completePaymentSetup: (completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig) => Promise; /** * This will send the customer the public key to load the payment form and complete the payment setup. * @summary Get public key and psp * @param {string} productSlug * @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long. * @param {string} [authorization] Bearer Token * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicPSPConfig: (productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig) => Promise; /** * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information. * @summary Initiate a payment setup * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto * @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long. * @param {string} [authorization] Bearer Token * @param {*} [options] Override http request option. * @throws {RequiredError} */ initiatePaymentSetup: (initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig) => Promise; }; /** * PaymentsSetupApi - functional programming interface * @export */ export declare const PaymentsSetupApiFp: (configuration?: Configuration) => { /** * This will send the customer payment info from stripe or paypal to the backend. * @summary Complete a payment setup * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto * @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long. * @param {string} [authorization] Bearer Token * @param {*} [options] Override http request option. * @throws {RequiredError} */ completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * This will send the customer the public key to load the payment form and complete the payment setup. * @summary Get public key and psp * @param {string} productSlug * @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long. * @param {string} [authorization] Bearer Token * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information. * @summary Initiate a payment setup * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto * @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long. * @param {string} [authorization] Bearer Token * @param {*} [options] Override http request option. * @throws {RequiredError} */ initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * PaymentsSetupApi - factory interface * @export */ export declare const PaymentsSetupApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * This will send the customer payment info from stripe or paypal to the backend. * @summary Complete a payment setup * @param {CompletePaymentSetupRequestDto} completePaymentSetupRequestDto * @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long. * @param {string} [authorization] Bearer Token * @param {*} [options] Override http request option. * @throws {RequiredError} */ completePaymentSetup(completePaymentSetupRequestDto: CompletePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise; /** * This will send the customer the public key to load the payment form and complete the payment setup. * @summary Get public key and psp * @param {string} productSlug * @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long. * @param {string} [authorization] Bearer Token * @param {*} [options] Override http request option. * @throws {RequiredError} */ getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise; /** * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information. * @summary Initiate a payment setup * @param {InitiatePaymentSetupRequestDto} initiatePaymentSetupRequestDto * @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long. * @param {string} [authorization] Bearer Token * @param {*} [options] Override http request option. * @throws {RequiredError} */ initiatePaymentSetup(initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise; }; /** * Request parameters for completePaymentSetup operation in PaymentsSetupApi. * @export * @interface PaymentsSetupApiCompletePaymentSetupRequest */ export interface PaymentsSetupApiCompletePaymentSetupRequest { /** * * @type {CompletePaymentSetupRequestDto} * @memberof PaymentsSetupApiCompletePaymentSetup */ readonly completePaymentSetupRequestDto: CompletePaymentSetupRequestDto; /** * An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long. * @type {string} * @memberof PaymentsSetupApiCompletePaymentSetup */ readonly idempotencyKey?: string; /** * Bearer Token * @type {string} * @memberof PaymentsSetupApiCompletePaymentSetup */ readonly authorization?: string; } /** * Request parameters for getPublicPSPConfig operation in PaymentsSetupApi. * @export * @interface PaymentsSetupApiGetPublicPSPConfigRequest */ export interface PaymentsSetupApiGetPublicPSPConfigRequest { /** * * @type {string} * @memberof PaymentsSetupApiGetPublicPSPConfig */ readonly productSlug: string; /** * An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long. * @type {string} * @memberof PaymentsSetupApiGetPublicPSPConfig */ readonly idempotencyKey?: string; /** * Bearer Token * @type {string} * @memberof PaymentsSetupApiGetPublicPSPConfig */ readonly authorization?: string; } /** * Request parameters for initiatePaymentSetup operation in PaymentsSetupApi. * @export * @interface PaymentsSetupApiInitiatePaymentSetupRequest */ export interface PaymentsSetupApiInitiatePaymentSetupRequest { /** * * @type {InitiatePaymentSetupRequestDto} * @memberof PaymentsSetupApiInitiatePaymentSetup */ readonly initiatePaymentSetupRequestDto: InitiatePaymentSetupRequestDto; /** * An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long. * @type {string} * @memberof PaymentsSetupApiInitiatePaymentSetup */ readonly idempotencyKey?: string; /** * Bearer Token * @type {string} * @memberof PaymentsSetupApiInitiatePaymentSetup */ readonly authorization?: string; } /** * PaymentsSetupApi - object-oriented interface * @export * @class PaymentsSetupApi * @extends {BaseAPI} */ export declare class PaymentsSetupApi extends BaseAPI { /** * This will send the customer payment info from stripe or paypal to the backend. * @summary Complete a payment setup * @param {PaymentsSetupApiCompletePaymentSetupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PaymentsSetupApi */ completePaymentSetup(requestParameters: PaymentsSetupApiCompletePaymentSetupRequest, options?: AxiosRequestConfig): Promise>; /** * This will send the customer the public key to load the payment form and complete the payment setup. * @summary Get public key and psp * @param {PaymentsSetupApiGetPublicPSPConfigRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PaymentsSetupApi */ getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest, options?: AxiosRequestConfig): Promise>; /** * This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information. * @summary Initiate a payment setup * @param {PaymentsSetupApiInitiatePaymentSetupRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PaymentsSetupApi */ initiatePaymentSetup(requestParameters: PaymentsSetupApiInitiatePaymentSetupRequest, options?: AxiosRequestConfig): Promise>; }