@emilgroup/payment-sdk 1.4.1-beta.19 → 1.4.1-beta.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -34
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +21 -465
- package/api/bank-transaction-api.ts +11 -11
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +166 -65
- package/api/payment-reminders-api.ts +17 -21
- package/api/payment-setup-api.ts +29 -37
- package/api/payments-api.ts +54 -55
- package/api/refunds-api.ts +16 -14
- package/api/tenant-bank-account-api.ts +25 -25
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +17 -260
- package/dist/api/bank-accounts-api.js +17 -399
- package/dist/api/bank-transaction-api.d.ts +12 -12
- package/dist/api/bank-transaction-api.js +9 -9
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/payment-methods-api.d.ts +100 -49
- package/dist/api/payment-methods-api.js +144 -46
- package/dist/api/payment-reminders-api.d.ts +21 -23
- package/dist/api/payment-reminders-api.js +9 -9
- package/dist/api/payment-setup-api.d.ts +19 -23
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +43 -46
- package/dist/api/payments-api.js +42 -38
- package/dist/api/refunds-api.d.ts +11 -11
- package/dist/api/refunds-api.js +12 -10
- package/dist/api/tenant-bank-account-api.d.ts +25 -25
- package/dist/api/tenant-bank-account-api.js +20 -20
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-transaction-response-class.d.ts +1 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- package/dist/models/create-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +4 -4
- package/dist/models/create-payment-request-dto.js +1 -1
- package/dist/models/create-refund-request-dto.d.ts +1 -1
- package/dist/models/create-refund-request-dto.js +1 -1
- package/dist/models/create-refund-response-class.d.ts +1 -1
- package/dist/models/create-refund-response-class.js +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
- package/dist/models/create-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-response-class.js +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- package/dist/models/get-refund-response-class.d.ts +1 -1
- package/dist/models/get-refund-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +0 -34
- package/dist/models/index.js +0 -34
- package/dist/models/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +1 -1
- package/dist/models/link-bank-transaction-request-dto-rest.js +1 -1
- package/dist/models/list-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- package/dist/models/list-refunds-response-class.d.ts +1 -1
- package/dist/models/list-refunds-response-class.js +1 -1
- package/dist/models/list-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/list-tenant-bank-account-response-class.js +1 -1
- package/dist/models/refund-class.d.ts +1 -1
- package/dist/models/refund-class.js +1 -1
- package/dist/models/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +2 -2
- package/dist/models/unlink-bank-transaction-request-dto-rest.js +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +2 -9
- package/dist/models/validate-pspconfig-request-dto.js +1 -8
- package/index.ts +1 -1
- package/models/bank-transaction-response-class.ts +1 -1
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-refund-request-dto.ts +1 -1
- package/models/create-refund-response-class.ts +1 -1
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/create-tenant-bank-account-response-class.ts +1 -1
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/get-bank-transactions-response-class.ts +1 -1
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-request-dto.ts +2 -2
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +0 -34
- package/models/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/link-bank-transaction-request-dto-rest.ts +1 -1
- package/models/list-bank-transactions-response-class.ts +1 -1
- package/models/list-refunds-response-class.ts +1 -1
- package/models/list-tenant-bank-account-response-class.ts +1 -1
- package/models/refund-class.ts +1 -1
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/unlink-bank-transaction-request-dto-rest.ts +2 -2
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +2 -12
- package/package.json +1 -1
- package/dist/models/bank-account-class.d.ts +0 -79
- package/dist/models/bank-account-class.js +0 -15
- package/dist/models/billing-profile-dto.d.ts +0 -38
- package/dist/models/billing-profile-dto.js +0 -15
- package/dist/models/billing-profile-limited-response-dto.d.ts +0 -54
- package/dist/models/billing-profile-limited-response-dto.js +0 -15
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-request-dto.js +0 -15
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-payment-setup-response-class.js +0 -15
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/complete-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/create-bank-account-request-dto.d.ts +0 -42
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/create-payment-method-response-class.d.ts +0 -25
- package/dist/models/create-payment-method-response-class.js +0 -15
- package/dist/models/create-payment-response-class.d.ts +0 -25
- package/dist/models/create-payment-response-class.js +0 -15
- package/dist/models/create-psp-payment-method-request-dto.d.ts +0 -61
- package/dist/models/create-psp-payment-method-request-dto.js +0 -32
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +0 -25
- package/dist/models/deactivate-payment-reminder-response-class.js +0 -15
- package/dist/models/get-bank-account-response-class.d.ts +0 -25
- package/dist/models/get-bank-account-response-class.js +0 -15
- package/dist/models/get-payment-method-response-class.d.ts +0 -25
- package/dist/models/get-payment-method-response-class.js +0 -15
- package/dist/models/get-payment-response-class.d.ts +0 -25
- package/dist/models/get-payment-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -44
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/list-bank-accounts-response-class.d.ts +0 -31
- package/dist/models/list-bank-accounts-response-class.js +0 -15
- package/dist/models/list-payment-methods-response-class.d.ts +0 -31
- package/dist/models/list-payment-methods-response-class.js +0 -15
- package/dist/models/list-payment-reminders-response-class.d.ts +0 -31
- package/dist/models/list-payment-reminders-response-class.js +0 -15
- package/dist/models/list-payments-response-class.d.ts +0 -31
- package/dist/models/list-payments-response-class.js +0 -15
- package/dist/models/payment-class.d.ts +0 -103
- package/dist/models/payment-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -66
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/payment-reminder-class.d.ts +0 -112
- package/dist/models/payment-reminder-class.js +0 -36
- package/dist/models/primary-bank-account-response-class.d.ts +0 -42
- package/dist/models/primary-bank-account-response-class.js +0 -15
- package/dist/models/sepa-direct-dto.d.ts +0 -24
- package/dist/models/sepa-direct-dto.js +0 -15
- package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +0 -24
- package/dist/models/set-primary-bank-account-request-dto-rest.js +0 -15
- package/dist/models/symphony-profile-limited-response-dto.d.ts +0 -42
- package/dist/models/symphony-profile-limited-response-dto.js +0 -15
- package/dist/models/update-bank-account-request-dto-rest.d.ts +0 -30
- package/dist/models/update-bank-account-request-dto-rest.js +0 -15
- package/dist/models/update-bank-account-request-dto.d.ts +0 -36
- package/dist/models/update-bank-account-request-dto.js +0 -15
- package/models/bank-account-class.ts +0 -85
- package/models/billing-profile-dto.ts +0 -44
- package/models/billing-profile-limited-response-dto.ts +0 -60
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-bank-account-request-dto.ts +0 -48
- package/models/create-payment-method-response-class.ts +0 -31
- package/models/create-payment-response-class.ts +0 -31
- package/models/create-psp-payment-method-request-dto.ts +0 -70
- package/models/deactivate-payment-reminder-response-class.ts +0 -31
- package/models/get-bank-account-response-class.ts +0 -31
- package/models/get-payment-method-response-class.ts +0 -31
- package/models/get-payment-response-class.ts +0 -31
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -50
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/list-bank-accounts-response-class.ts +0 -37
- package/models/list-payment-methods-response-class.ts +0 -37
- package/models/list-payment-reminders-response-class.ts +0 -37
- package/models/list-payments-response-class.ts +0 -37
- package/models/payment-class.ts +0 -109
- package/models/payment-method-class.ts +0 -72
- package/models/payment-reminder-class.ts +0 -122
- package/models/primary-bank-account-response-class.ts +0 -48
- package/models/sepa-direct-dto.ts +0 -30
- package/models/set-primary-bank-account-request-dto-rest.ts +0 -30
- package/models/symphony-profile-limited-response-dto.ts +0 -48
- package/models/update-bank-account-request-dto-rest.ts +0 -36
- package/models/update-bank-account-request-dto.ts +0 -42
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -35,7 +35,7 @@ import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
|
35
35
|
export const BankTransactionApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
|
-
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code
|
|
38
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
39
39
|
* @summary Retrieve the Bank Transaction
|
|
40
40
|
* @param {string} code
|
|
41
41
|
* @param {string} [authorization] Bearer Token
|
|
@@ -188,7 +188,7 @@ export const BankTransactionApiAxiosParamCreator = function (configuration?: Con
|
|
|
188
188
|
};
|
|
189
189
|
},
|
|
190
190
|
/**
|
|
191
|
-
* Returns a list of bank transactions you have previously created.
|
|
191
|
+
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
192
192
|
* @summary List bank transactions
|
|
193
193
|
* @param {string} [authorization] Bearer Token
|
|
194
194
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -325,7 +325,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
325
325
|
const localVarAxiosParamCreator = BankTransactionApiAxiosParamCreator(configuration)
|
|
326
326
|
return {
|
|
327
327
|
/**
|
|
328
|
-
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code
|
|
328
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
329
329
|
* @summary Retrieve the Bank Transaction
|
|
330
330
|
* @param {string} code
|
|
331
331
|
* @param {string} [authorization] Bearer Token
|
|
@@ -363,7 +363,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
363
363
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
364
|
},
|
|
365
365
|
/**
|
|
366
|
-
* Returns a list of bank transactions you have previously created.
|
|
366
|
+
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
367
367
|
* @summary List bank transactions
|
|
368
368
|
* @param {string} [authorization] Bearer Token
|
|
369
369
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -376,7 +376,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
376
376
|
* @param {*} [options] Override http request option.
|
|
377
377
|
* @throws {RequiredError}
|
|
378
378
|
*/
|
|
379
|
-
async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
379
|
+
async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
380
380
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
381
381
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
382
382
|
},
|
|
@@ -404,7 +404,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
404
404
|
const localVarFp = BankTransactionApiFp(configuration)
|
|
405
405
|
return {
|
|
406
406
|
/**
|
|
407
|
-
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code
|
|
407
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
408
408
|
* @summary Retrieve the Bank Transaction
|
|
409
409
|
* @param {string} code
|
|
410
410
|
* @param {string} [authorization] Bearer Token
|
|
@@ -439,7 +439,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
439
439
|
return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
440
440
|
},
|
|
441
441
|
/**
|
|
442
|
-
* Returns a list of bank transactions you have previously created.
|
|
442
|
+
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
443
443
|
* @summary List bank transactions
|
|
444
444
|
* @param {string} [authorization] Bearer Token
|
|
445
445
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -452,7 +452,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
452
452
|
* @param {*} [options] Override http request option.
|
|
453
453
|
* @throws {RequiredError}
|
|
454
454
|
*/
|
|
455
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<
|
|
455
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<void> {
|
|
456
456
|
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
457
457
|
},
|
|
458
458
|
/**
|
|
@@ -646,7 +646,7 @@ export interface BankTransactionApiUnlinkBankTransactionRequest {
|
|
|
646
646
|
*/
|
|
647
647
|
export class BankTransactionApi extends BaseAPI {
|
|
648
648
|
/**
|
|
649
|
-
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code
|
|
649
|
+
* Retrieves the details of the Bank Transaction that was previously created. Supply the unique Bank Transaction code that was returned when you created it and Emil Api will return the corresponding Bank Transaction information.
|
|
650
650
|
* @summary Retrieve the Bank Transaction
|
|
651
651
|
* @param {BankTransactionApiGetBankTransactionRequest} requestParameters Request parameters.
|
|
652
652
|
* @param {*} [options] Override http request option.
|
|
@@ -682,7 +682,7 @@ export class BankTransactionApi extends BaseAPI {
|
|
|
682
682
|
}
|
|
683
683
|
|
|
684
684
|
/**
|
|
685
|
-
* Returns a list of bank transactions you have previously created.
|
|
685
|
+
* Returns a list of bank transactions you have previously created. The bank transactions are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
686
686
|
* @summary List bank transactions
|
|
687
687
|
* @param {BankTransactionApiListBankTransactionsRequest} requestParameters Request parameters.
|
|
688
688
|
* @param {*} [options] Override http request option.
|
package/api/default-api.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -20,14 +20,6 @@ import { Configuration } from '../configuration';
|
|
|
20
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
-
// @ts-ignore
|
|
24
|
-
import { CreatePaymentMethodResponseClass } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreatePspPaymentMethodRequestDto } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { GetPaymentMethodResponseClass } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListPaymentMethodsResponseClass } from '../models';
|
|
31
23
|
/**
|
|
32
24
|
* PaymentMethodsApi - axios parameter creator
|
|
33
25
|
* @export
|
|
@@ -36,15 +28,15 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
36
28
|
return {
|
|
37
29
|
/**
|
|
38
30
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
39
|
-
* @summary Create the payment
|
|
40
|
-
* @param {
|
|
31
|
+
* @summary Create the payment-method
|
|
32
|
+
* @param {object} body
|
|
41
33
|
* @param {string} [authorization] Bearer Token
|
|
42
34
|
* @param {*} [options] Override http request option.
|
|
43
35
|
* @throws {RequiredError}
|
|
44
36
|
*/
|
|
45
|
-
createPaymentMethod: async (
|
|
46
|
-
// verify required parameter '
|
|
47
|
-
assertParamExists('createPaymentMethod', '
|
|
37
|
+
createPaymentMethod: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
38
|
+
// verify required parameter 'body' is not null or undefined
|
|
39
|
+
assertParamExists('createPaymentMethod', 'body', body)
|
|
48
40
|
const localVarPath = `/paymentservice/v1/payment-methods`;
|
|
49
41
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
42
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -74,7 +66,55 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
74
66
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
67
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
68
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
69
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
70
|
+
|
|
71
|
+
return {
|
|
72
|
+
url: toPathString(localVarUrlObj),
|
|
73
|
+
options: localVarRequestOptions,
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
/**
|
|
77
|
+
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
78
|
+
* @summary Delete a payment method
|
|
79
|
+
* @param {number} id Unique identifier for payment method
|
|
80
|
+
* @param {string} [authorization] Bearer Token
|
|
81
|
+
* @param {*} [options] Override http request option.
|
|
82
|
+
* @throws {RequiredError}
|
|
83
|
+
*/
|
|
84
|
+
deletePaymentMethod: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
85
|
+
// verify required parameter 'id' is not null or undefined
|
|
86
|
+
assertParamExists('deletePaymentMethod', 'id', id)
|
|
87
|
+
const localVarPath = `/paymentservice/v1/payment-methods/{id}`;
|
|
88
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
89
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
90
|
+
let baseOptions;
|
|
91
|
+
let baseAccessToken;
|
|
92
|
+
if (configuration) {
|
|
93
|
+
baseOptions = configuration.baseOptions;
|
|
94
|
+
baseAccessToken = configuration.accessToken;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
98
|
+
const localVarHeaderParameter = {} as any;
|
|
99
|
+
const localVarQueryParameter = {} as any;
|
|
100
|
+
|
|
101
|
+
// authentication bearer required
|
|
102
|
+
// http bearer authentication required
|
|
103
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
104
|
+
|
|
105
|
+
if (id !== undefined) {
|
|
106
|
+
localVarQueryParameter['id'] = id;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
110
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
116
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
117
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
78
118
|
|
|
79
119
|
return {
|
|
80
120
|
url: toPathString(localVarUrlObj),
|
|
@@ -83,21 +123,22 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
83
123
|
},
|
|
84
124
|
/**
|
|
85
125
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
86
|
-
* @summary Retrieve
|
|
87
|
-
* @param {string} code
|
|
88
|
-
* @param {string}
|
|
126
|
+
* @summary Retrieve a payment method
|
|
127
|
+
* @param {string} code Unique identifier for the object.
|
|
128
|
+
* @param {string} expand Fields to expand response by
|
|
129
|
+
* @param {string} expand2 Fields to expand response by
|
|
89
130
|
* @param {string} [authorization] Bearer Token
|
|
90
|
-
* @param {string} [expand] Fields to expand response by
|
|
91
131
|
* @param {*} [options] Override http request option.
|
|
92
132
|
* @throws {RequiredError}
|
|
93
133
|
*/
|
|
94
|
-
getPaymentMethod: async (code: string,
|
|
134
|
+
getPaymentMethod: async (code: string, expand: string, expand2: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
95
135
|
// verify required parameter 'code' is not null or undefined
|
|
96
136
|
assertParamExists('getPaymentMethod', 'code', code)
|
|
97
|
-
// verify required parameter '
|
|
98
|
-
assertParamExists('getPaymentMethod', '
|
|
99
|
-
|
|
100
|
-
|
|
137
|
+
// verify required parameter 'expand' is not null or undefined
|
|
138
|
+
assertParamExists('getPaymentMethod', 'expand', expand)
|
|
139
|
+
// verify required parameter 'expand2' is not null or undefined
|
|
140
|
+
assertParamExists('getPaymentMethod', 'expand2', expand2)
|
|
141
|
+
const localVarPath = `/paymentservice/v1/payment-methods/{code}`;
|
|
101
142
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
143
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
144
|
let baseOptions;
|
|
@@ -115,14 +156,18 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
115
156
|
// http bearer authentication required
|
|
116
157
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
158
|
|
|
118
|
-
if (
|
|
119
|
-
localVarQueryParameter['code'] =
|
|
159
|
+
if (code !== undefined) {
|
|
160
|
+
localVarQueryParameter['code'] = code;
|
|
120
161
|
}
|
|
121
162
|
|
|
122
163
|
if (expand !== undefined) {
|
|
123
164
|
localVarQueryParameter['expand'] = expand;
|
|
124
165
|
}
|
|
125
166
|
|
|
167
|
+
if (expand2 !== undefined) {
|
|
168
|
+
localVarQueryParameter['expand'] = expand2;
|
|
169
|
+
}
|
|
170
|
+
|
|
126
171
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
127
172
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
128
173
|
}
|
|
@@ -139,7 +184,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
139
184
|
};
|
|
140
185
|
},
|
|
141
186
|
/**
|
|
142
|
-
* Returns a list of payment methods you
|
|
187
|
+
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
143
188
|
* @summary List payment methods
|
|
144
189
|
* @param {string} [authorization] Bearer Token
|
|
145
190
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -226,32 +271,44 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
226
271
|
return {
|
|
227
272
|
/**
|
|
228
273
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
229
|
-
* @summary Create the payment
|
|
230
|
-
* @param {
|
|
274
|
+
* @summary Create the payment-method
|
|
275
|
+
* @param {object} body
|
|
231
276
|
* @param {string} [authorization] Bearer Token
|
|
232
277
|
* @param {*} [options] Override http request option.
|
|
233
278
|
* @throws {RequiredError}
|
|
234
279
|
*/
|
|
235
|
-
async createPaymentMethod(
|
|
236
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(
|
|
280
|
+
async createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
281
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
|
|
282
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
283
|
+
},
|
|
284
|
+
/**
|
|
285
|
+
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
286
|
+
* @summary Delete a payment method
|
|
287
|
+
* @param {number} id Unique identifier for payment method
|
|
288
|
+
* @param {string} [authorization] Bearer Token
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
*/
|
|
292
|
+
async deletePaymentMethod(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
293
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePaymentMethod(id, authorization, options);
|
|
237
294
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
238
295
|
},
|
|
239
296
|
/**
|
|
240
297
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
241
|
-
* @summary Retrieve
|
|
242
|
-
* @param {string} code
|
|
243
|
-
* @param {string}
|
|
298
|
+
* @summary Retrieve a payment method
|
|
299
|
+
* @param {string} code Unique identifier for the object.
|
|
300
|
+
* @param {string} expand Fields to expand response by
|
|
301
|
+
* @param {string} expand2 Fields to expand response by
|
|
244
302
|
* @param {string} [authorization] Bearer Token
|
|
245
|
-
* @param {string} [expand] Fields to expand response by
|
|
246
303
|
* @param {*} [options] Override http request option.
|
|
247
304
|
* @throws {RequiredError}
|
|
248
305
|
*/
|
|
249
|
-
async getPaymentMethod(code: string,
|
|
250
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code,
|
|
306
|
+
async getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
307
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, expand, expand2, authorization, options);
|
|
251
308
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
252
309
|
},
|
|
253
310
|
/**
|
|
254
|
-
* Returns a list of payment methods you
|
|
311
|
+
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
255
312
|
* @summary List payment methods
|
|
256
313
|
* @param {string} [authorization] Bearer Token
|
|
257
314
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -264,7 +321,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
264
321
|
* @param {*} [options] Override http request option.
|
|
265
322
|
* @throws {RequiredError}
|
|
266
323
|
*/
|
|
267
|
-
async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
324
|
+
async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
268
325
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
269
326
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
270
327
|
},
|
|
@@ -280,30 +337,41 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
280
337
|
return {
|
|
281
338
|
/**
|
|
282
339
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
283
|
-
* @summary Create the payment
|
|
284
|
-
* @param {
|
|
340
|
+
* @summary Create the payment-method
|
|
341
|
+
* @param {object} body
|
|
342
|
+
* @param {string} [authorization] Bearer Token
|
|
343
|
+
* @param {*} [options] Override http request option.
|
|
344
|
+
* @throws {RequiredError}
|
|
345
|
+
*/
|
|
346
|
+
createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
347
|
+
return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
|
|
348
|
+
},
|
|
349
|
+
/**
|
|
350
|
+
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
351
|
+
* @summary Delete a payment method
|
|
352
|
+
* @param {number} id Unique identifier for payment method
|
|
285
353
|
* @param {string} [authorization] Bearer Token
|
|
286
354
|
* @param {*} [options] Override http request option.
|
|
287
355
|
* @throws {RequiredError}
|
|
288
356
|
*/
|
|
289
|
-
|
|
290
|
-
return localVarFp.
|
|
357
|
+
deletePaymentMethod(id: number, authorization?: string, options?: any): AxiosPromise<void> {
|
|
358
|
+
return localVarFp.deletePaymentMethod(id, authorization, options).then((request) => request(axios, basePath));
|
|
291
359
|
},
|
|
292
360
|
/**
|
|
293
361
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
294
|
-
* @summary Retrieve
|
|
295
|
-
* @param {string} code
|
|
296
|
-
* @param {string}
|
|
362
|
+
* @summary Retrieve a payment method
|
|
363
|
+
* @param {string} code Unique identifier for the object.
|
|
364
|
+
* @param {string} expand Fields to expand response by
|
|
365
|
+
* @param {string} expand2 Fields to expand response by
|
|
297
366
|
* @param {string} [authorization] Bearer Token
|
|
298
|
-
* @param {string} [expand] Fields to expand response by
|
|
299
367
|
* @param {*} [options] Override http request option.
|
|
300
368
|
* @throws {RequiredError}
|
|
301
369
|
*/
|
|
302
|
-
getPaymentMethod(code: string,
|
|
303
|
-
return localVarFp.getPaymentMethod(code,
|
|
370
|
+
getPaymentMethod(code: string, expand: string, expand2: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
371
|
+
return localVarFp.getPaymentMethod(code, expand, expand2, authorization, options).then((request) => request(axios, basePath));
|
|
304
372
|
},
|
|
305
373
|
/**
|
|
306
|
-
* Returns a list of payment methods you
|
|
374
|
+
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
307
375
|
* @summary List payment methods
|
|
308
376
|
* @param {string} [authorization] Bearer Token
|
|
309
377
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -316,7 +384,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
316
384
|
* @param {*} [options] Override http request option.
|
|
317
385
|
* @throws {RequiredError}
|
|
318
386
|
*/
|
|
319
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
387
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<void> {
|
|
320
388
|
return localVarFp.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
321
389
|
},
|
|
322
390
|
};
|
|
@@ -330,10 +398,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
330
398
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
331
399
|
/**
|
|
332
400
|
*
|
|
333
|
-
* @type {
|
|
401
|
+
* @type {object}
|
|
334
402
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
335
403
|
*/
|
|
336
|
-
readonly
|
|
404
|
+
readonly body: object
|
|
337
405
|
|
|
338
406
|
/**
|
|
339
407
|
* Bearer Token
|
|
@@ -343,6 +411,27 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
|
343
411
|
readonly authorization?: string
|
|
344
412
|
}
|
|
345
413
|
|
|
414
|
+
/**
|
|
415
|
+
* Request parameters for deletePaymentMethod operation in PaymentMethodsApi.
|
|
416
|
+
* @export
|
|
417
|
+
* @interface PaymentMethodsApiDeletePaymentMethodRequest
|
|
418
|
+
*/
|
|
419
|
+
export interface PaymentMethodsApiDeletePaymentMethodRequest {
|
|
420
|
+
/**
|
|
421
|
+
* Unique identifier for payment method
|
|
422
|
+
* @type {number}
|
|
423
|
+
* @memberof PaymentMethodsApiDeletePaymentMethod
|
|
424
|
+
*/
|
|
425
|
+
readonly id: number
|
|
426
|
+
|
|
427
|
+
/**
|
|
428
|
+
* Bearer Token
|
|
429
|
+
* @type {string}
|
|
430
|
+
* @memberof PaymentMethodsApiDeletePaymentMethod
|
|
431
|
+
*/
|
|
432
|
+
readonly authorization?: string
|
|
433
|
+
}
|
|
434
|
+
|
|
346
435
|
/**
|
|
347
436
|
* Request parameters for getPaymentMethod operation in PaymentMethodsApi.
|
|
348
437
|
* @export
|
|
@@ -350,32 +439,32 @@ export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
|
350
439
|
*/
|
|
351
440
|
export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
352
441
|
/**
|
|
353
|
-
*
|
|
442
|
+
* Unique identifier for the object.
|
|
354
443
|
* @type {string}
|
|
355
444
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
356
445
|
*/
|
|
357
446
|
readonly code: string
|
|
358
447
|
|
|
359
448
|
/**
|
|
360
|
-
*
|
|
449
|
+
* Fields to expand response by
|
|
361
450
|
* @type {string}
|
|
362
451
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
363
452
|
*/
|
|
364
|
-
readonly
|
|
453
|
+
readonly expand: string
|
|
365
454
|
|
|
366
455
|
/**
|
|
367
|
-
*
|
|
456
|
+
* Fields to expand response by
|
|
368
457
|
* @type {string}
|
|
369
458
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
370
459
|
*/
|
|
371
|
-
readonly
|
|
460
|
+
readonly expand2: string
|
|
372
461
|
|
|
373
462
|
/**
|
|
374
|
-
*
|
|
463
|
+
* Bearer Token
|
|
375
464
|
* @type {string}
|
|
376
465
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
377
466
|
*/
|
|
378
|
-
readonly
|
|
467
|
+
readonly authorization?: string
|
|
379
468
|
}
|
|
380
469
|
|
|
381
470
|
/**
|
|
@@ -450,30 +539,42 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
450
539
|
export class PaymentMethodsApi extends BaseAPI {
|
|
451
540
|
/**
|
|
452
541
|
* This will create payment method in the database as well as in the PSP. The newly created payment method will be set as default payment method will be used by the customer to pay or receive a refund.
|
|
453
|
-
* @summary Create the payment
|
|
542
|
+
* @summary Create the payment-method
|
|
454
543
|
* @param {PaymentMethodsApiCreatePaymentMethodRequest} requestParameters Request parameters.
|
|
455
544
|
* @param {*} [options] Override http request option.
|
|
456
545
|
* @throws {RequiredError}
|
|
457
546
|
* @memberof PaymentMethodsApi
|
|
458
547
|
*/
|
|
459
548
|
public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
460
|
-
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.
|
|
549
|
+
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Permanently deletes a payment method. Supply the unique payment method id that was returned when you created the payment method and this will delete it. It will also delete it on the corresponding payment service provider.
|
|
554
|
+
* @summary Delete a payment method
|
|
555
|
+
* @param {PaymentMethodsApiDeletePaymentMethodRequest} requestParameters Request parameters.
|
|
556
|
+
* @param {*} [options] Override http request option.
|
|
557
|
+
* @throws {RequiredError}
|
|
558
|
+
* @memberof PaymentMethodsApi
|
|
559
|
+
*/
|
|
560
|
+
public deletePaymentMethod(requestParameters: PaymentMethodsApiDeletePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
561
|
+
return PaymentMethodsApiFp(this.configuration).deletePaymentMethod(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
461
562
|
}
|
|
462
563
|
|
|
463
564
|
/**
|
|
464
565
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
465
|
-
* @summary Retrieve
|
|
566
|
+
* @summary Retrieve a payment method
|
|
466
567
|
* @param {PaymentMethodsApiGetPaymentMethodRequest} requestParameters Request parameters.
|
|
467
568
|
* @param {*} [options] Override http request option.
|
|
468
569
|
* @throws {RequiredError}
|
|
469
570
|
* @memberof PaymentMethodsApi
|
|
470
571
|
*/
|
|
471
572
|
public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
472
|
-
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.
|
|
573
|
+
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.expand, requestParameters.expand2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
473
574
|
}
|
|
474
575
|
|
|
475
576
|
/**
|
|
476
|
-
* Returns a list of payment methods you
|
|
577
|
+
* Returns a list of payment methods you’ve previously created. The payment methods are returned in sorted order, with the oldest payment appearing first. For more information about pagination, read the Pagination documentation.
|
|
477
578
|
* @summary List payment methods
|
|
478
579
|
* @param {PaymentMethodsApiListPaymentMethodsRequest} requestParameters Request parameters.
|
|
479
580
|
* @param {*} [options] Override http request option.
|