@emilgroup/payment-sdk 1.5.1-beta.2 → 1.6.1-beta.1
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 +52 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +20 -12
- package/api/bank-transaction-api.ts +20 -10
- package/api/payment-methods-api.ts +26 -18
- package/api/payment-reminders-api.ts +16 -8
- package/api/payment-setup-api.ts +36 -28
- package/api/payments-api.ts +12 -6
- package/api/refunds-api.ts +12 -6
- package/api/webhooks-api.ts +4 -4
- package/dist/api/bank-accounts-api.d.ts +22 -18
- package/dist/api/bank-transaction-api.d.ts +20 -15
- package/dist/api/payment-methods-api.d.ts +19 -15
- package/dist/api/payment-methods-api.js +12 -12
- package/dist/api/payment-reminders-api.d.ts +16 -12
- package/dist/api/payment-setup-api.d.ts +22 -18
- package/dist/api/payment-setup-api.js +24 -24
- package/dist/api/payments-api.d.ts +12 -9
- package/dist/api/refunds-api.d.ts +12 -9
- package/dist/api/webhooks-api.d.ts +4 -4
- package/dist/api/webhooks-api.js +3 -3
- package/dist/models/bank-account-class-without-expand-properties.d.ts +84 -0
- package/dist/models/bank-account-class-without-expand-properties.js +15 -0
- package/dist/models/bank-account-class.d.ts +91 -0
- package/dist/models/bank-account-class.js +15 -0
- package/dist/models/bank-transaction-class.d.ts +140 -0
- package/dist/models/bank-transaction-class.js +15 -0
- package/dist/models/billing-profile-dto.d.ts +38 -0
- package/dist/models/billing-profile-dto.js +15 -0
- package/dist/models/billing-profile-limited-response-dto.d.ts +54 -0
- package/dist/models/billing-profile-limited-response-dto.js +15 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +77 -0
- package/dist/models/complete-adyen-payment-setup-request-dto.js +32 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +45 -0
- package/dist/models/complete-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
- package/dist/models/complete-payment-setup-response-class.js +15 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +77 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +32 -0
- package/dist/models/create-bank-account-request-dto.d.ts +2 -2
- package/dist/models/create-bank-account-response-class.d.ts +25 -0
- package/dist/models/create-bank-account-response-class.js +15 -0
- package/dist/models/create-payment-method-response-class.d.ts +25 -0
- package/dist/models/create-payment-method-response-class.js +15 -0
- package/dist/models/create-payment-reminder-response-class.d.ts +25 -0
- package/dist/models/create-payment-reminder-response-class.js +15 -0
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- package/dist/models/create-payment-response-class.d.ts +25 -0
- package/dist/models/create-payment-response-class.js +15 -0
- package/dist/models/create-psp-payment-method-request-dto.d.ts +67 -0
- package/dist/models/create-psp-payment-method-request-dto.js +32 -0
- package/dist/models/create-refund-response-class.d.ts +25 -0
- package/dist/models/create-refund-response-class.js +15 -0
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
- package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
- package/dist/models/deactivated-payment-reminder-class.d.ts +102 -0
- package/dist/models/deactivated-payment-reminder-class.js +15 -0
- package/dist/models/get-bank-account-response-class.d.ts +25 -0
- package/dist/models/get-bank-account-response-class.js +15 -0
- package/dist/models/get-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/get-bank-transactions-response-class.js +15 -0
- package/dist/models/get-payment-method-response-class.d.ts +25 -0
- package/dist/models/get-payment-method-response-class.js +15 -0
- package/dist/models/get-payment-reminder-response-class.d.ts +25 -0
- package/dist/models/get-payment-reminder-response-class.js +15 -0
- package/dist/models/get-payment-response-class.d.ts +25 -0
- package/dist/models/get-payment-response-class.js +15 -0
- package/dist/models/get-refund-response-class.d.ts +25 -0
- package/dist/models/get-refund-response-class.js +15 -0
- package/dist/models/import-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/import-bank-transactions-response-class.js +15 -0
- package/dist/models/index.d.ts +52 -0
- package/dist/models/index.js +52 -0
- package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-adyen-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +57 -0
- package/dist/models/initiate-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
- package/dist/models/initiate-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
- package/dist/models/link-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/link-bank-transactions-response-class.js +15 -0
- package/dist/models/list-bank-accounts-response-class.d.ts +31 -0
- package/dist/models/list-bank-accounts-response-class.js +15 -0
- package/dist/models/list-bank-transactions-response-class.d.ts +31 -0
- package/dist/models/list-bank-transactions-response-class.js +15 -0
- package/dist/models/list-payment-methods-response-class.d.ts +31 -0
- package/dist/models/list-payment-methods-response-class.js +15 -0
- package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
- package/dist/models/list-payment-reminders-response-class.js +15 -0
- package/dist/models/list-payments-response-class.d.ts +31 -0
- package/dist/models/list-payments-response-class.js +15 -0
- package/dist/models/list-refunds-response-class.d.ts +31 -0
- package/dist/models/list-refunds-response-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +108 -0
- package/dist/models/payment-class-without-expand-properties.js +15 -0
- package/dist/models/payment-class.d.ts +115 -0
- package/dist/models/payment-class.js +15 -0
- package/dist/models/payment-method-class.d.ts +84 -0
- package/dist/models/payment-method-class.js +15 -0
- package/dist/models/payment-reminder-class.d.ts +102 -0
- package/dist/models/payment-reminder-class.js +15 -0
- package/dist/models/primary-bank-account-response-class.d.ts +54 -0
- package/dist/models/primary-bank-account-response-class.js +15 -0
- package/dist/models/refund-class.d.ts +118 -0
- package/dist/models/refund-class.js +29 -0
- package/dist/models/refund-item-class.d.ts +114 -0
- package/dist/models/refund-item-class.js +15 -0
- package/dist/models/sepa-direct-dto.d.ts +24 -0
- package/dist/models/sepa-direct-dto.js +15 -0
- package/dist/models/shared-transaction-class.d.ts +72 -0
- package/dist/models/shared-transaction-class.js +15 -0
- package/dist/models/symphony-profile-limited-response-dto.d.ts +42 -0
- package/dist/models/symphony-profile-limited-response-dto.js +15 -0
- package/dist/models/unlink-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/unlink-bank-transactions-response-class.js +15 -0
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +108 -0
- package/dist/models/unlinked-bank-transaction-response-class.js +15 -0
- package/dist/models/update-bank-account-response-class.d.ts +25 -0
- package/dist/models/update-bank-account-response-class.js +15 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +9 -1
- package/dist/models/validate-pspconfig-request-dto.js +8 -0
- package/models/bank-account-class-without-expand-properties.ts +90 -0
- package/models/bank-account-class.ts +97 -0
- package/models/bank-transaction-class.ts +146 -0
- package/models/billing-profile-dto.ts +44 -0
- package/models/billing-profile-limited-response-dto.ts +60 -0
- package/models/complete-adyen-payment-setup-request-dto.ts +86 -0
- package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
- package/models/complete-payment-setup-request-dto.ts +51 -0
- package/models/complete-payment-setup-response-class.ts +31 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +86 -0
- package/models/create-bank-account-request-dto.ts +2 -2
- package/models/create-bank-account-response-class.ts +31 -0
- package/models/create-payment-method-response-class.ts +31 -0
- package/models/create-payment-reminder-response-class.ts +31 -0
- package/models/create-payment-request-dto.ts +1 -1
- package/models/create-payment-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +76 -0
- package/models/create-refund-response-class.ts +31 -0
- package/models/deactivate-payment-reminder-response-class.ts +31 -0
- package/models/deactivated-payment-reminder-class.ts +108 -0
- package/models/get-bank-account-response-class.ts +31 -0
- package/models/get-bank-transactions-response-class.ts +31 -0
- package/models/get-payment-method-response-class.ts +31 -0
- package/models/get-payment-reminder-response-class.ts +31 -0
- package/models/get-payment-response-class.ts +31 -0
- package/models/get-refund-response-class.ts +31 -0
- package/models/import-bank-transactions-response-class.ts +31 -0
- package/models/index.ts +52 -0
- package/models/initiate-adyen-payment-setup-request-dto.ts +36 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +36 -0
- package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
- package/models/initiate-payment-setup-request-dto.ts +63 -0
- package/models/initiate-payment-setup-response-class.ts +38 -0
- package/models/initiate-stripe-payment-setup-request-dto.ts +36 -0
- package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
- package/models/link-bank-transactions-response-class.ts +31 -0
- package/models/list-bank-accounts-response-class.ts +37 -0
- package/models/list-bank-transactions-response-class.ts +37 -0
- package/models/list-payment-methods-response-class.ts +37 -0
- package/models/list-payment-reminders-response-class.ts +37 -0
- package/models/list-payments-response-class.ts +37 -0
- package/models/list-refunds-response-class.ts +37 -0
- package/models/payment-class-without-expand-properties.ts +114 -0
- package/models/payment-class.ts +121 -0
- package/models/payment-method-class.ts +90 -0
- package/models/payment-reminder-class.ts +108 -0
- package/models/primary-bank-account-response-class.ts +60 -0
- package/models/refund-class.ts +128 -0
- package/models/refund-item-class.ts +120 -0
- package/models/sepa-direct-dto.ts +30 -0
- package/models/shared-transaction-class.ts +78 -0
- package/models/symphony-profile-limited-response-dto.ts +48 -0
- package/models/unlink-bank-transactions-response-class.ts +31 -0
- package/models/unlinked-bank-transaction-response-class.ts +114 -0
- package/models/update-bank-account-response-class.ts +31 -0
- package/models/validate-pspconfig-request-dto.ts +12 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -18,26 +18,78 @@ common.ts
|
|
|
18
18
|
configuration.ts
|
|
19
19
|
git_push.sh
|
|
20
20
|
index.ts
|
|
21
|
+
models/bank-account-class-without-expand-properties.ts
|
|
22
|
+
models/bank-account-class.ts
|
|
21
23
|
models/bank-transaction-class-without-expand-properties.ts
|
|
24
|
+
models/bank-transaction-class.ts
|
|
25
|
+
models/billing-profile-dto.ts
|
|
26
|
+
models/billing-profile-limited-response-dto.ts
|
|
27
|
+
models/complete-adyen-payment-setup-request-dto.ts
|
|
28
|
+
models/complete-braintree-payment-setup-request-dto.ts
|
|
29
|
+
models/complete-payment-setup-request-dto.ts
|
|
30
|
+
models/complete-payment-setup-response-class.ts
|
|
31
|
+
models/complete-stripe-payment-setup-request-dto.ts
|
|
22
32
|
models/create-bank-account-request-dto.ts
|
|
33
|
+
models/create-bank-account-response-class.ts
|
|
34
|
+
models/create-payment-method-response-class.ts
|
|
23
35
|
models/create-payment-reminder-request-dto.ts
|
|
36
|
+
models/create-payment-reminder-response-class.ts
|
|
24
37
|
models/create-payment-request-dto.ts
|
|
38
|
+
models/create-payment-response-class.ts
|
|
39
|
+
models/create-psp-payment-method-request-dto.ts
|
|
25
40
|
models/create-refund-request-dto.ts
|
|
41
|
+
models/create-refund-response-class.ts
|
|
26
42
|
models/create-tenant-bank-account-request-dto.ts
|
|
27
43
|
models/create-tenant-bank-account-response-class.ts
|
|
28
44
|
models/deactivate-payment-reminder-request-dto.ts
|
|
45
|
+
models/deactivate-payment-reminder-response-class.ts
|
|
46
|
+
models/deactivated-payment-reminder-class.ts
|
|
47
|
+
models/get-bank-account-response-class.ts
|
|
48
|
+
models/get-bank-transactions-response-class.ts
|
|
49
|
+
models/get-payment-method-response-class.ts
|
|
50
|
+
models/get-payment-reminder-response-class.ts
|
|
51
|
+
models/get-payment-response-class.ts
|
|
52
|
+
models/get-refund-response-class.ts
|
|
29
53
|
models/get-tenant-bank-account-response-class.ts
|
|
54
|
+
models/import-bank-transactions-response-class.ts
|
|
30
55
|
models/index.ts
|
|
56
|
+
models/initiate-adyen-payment-setup-request-dto.ts
|
|
57
|
+
models/initiate-braintree-payment-setup-request-dto.ts
|
|
58
|
+
models/initiate-braintree-payment-setup-response-class.ts
|
|
59
|
+
models/initiate-payment-setup-request-dto.ts
|
|
60
|
+
models/initiate-payment-setup-response-class.ts
|
|
61
|
+
models/initiate-stripe-payment-setup-request-dto.ts
|
|
62
|
+
models/initiate-stripe-payment-setup-response-class.ts
|
|
31
63
|
models/inline-response200.ts
|
|
32
64
|
models/inline-response503.ts
|
|
33
65
|
models/link-bank-transaction-request-dto-rest.ts
|
|
66
|
+
models/link-bank-transactions-response-class.ts
|
|
67
|
+
models/list-bank-accounts-response-class.ts
|
|
68
|
+
models/list-bank-transactions-response-class.ts
|
|
69
|
+
models/list-payment-methods-response-class.ts
|
|
70
|
+
models/list-payment-reminders-response-class.ts
|
|
71
|
+
models/list-payments-response-class.ts
|
|
72
|
+
models/list-refunds-response-class.ts
|
|
34
73
|
models/list-tenant-bank-account-response-class.ts
|
|
74
|
+
models/payment-class-without-expand-properties.ts
|
|
75
|
+
models/payment-class.ts
|
|
76
|
+
models/payment-method-class.ts
|
|
77
|
+
models/payment-reminder-class.ts
|
|
78
|
+
models/primary-bank-account-response-class.ts
|
|
79
|
+
models/refund-class.ts
|
|
80
|
+
models/refund-item-class.ts
|
|
81
|
+
models/sepa-direct-dto.ts
|
|
35
82
|
models/set-primary-bank-account-request-dto-rest.ts
|
|
83
|
+
models/shared-transaction-class.ts
|
|
84
|
+
models/symphony-profile-limited-response-dto.ts
|
|
36
85
|
models/tenant-bank-account-class-without-expand-properties.ts
|
|
37
86
|
models/tenant-bank-account-class.ts
|
|
38
87
|
models/unlink-bank-transaction-request-dto-rest.ts
|
|
88
|
+
models/unlink-bank-transactions-response-class.ts
|
|
89
|
+
models/unlinked-bank-transaction-response-class.ts
|
|
39
90
|
models/update-bank-account-request-dto-rest.ts
|
|
40
91
|
models/update-bank-account-request-dto.ts
|
|
92
|
+
models/update-bank-account-response-class.ts
|
|
41
93
|
models/update-tenant-bank-account-response-class.ts
|
|
42
94
|
models/update-tenant-bank-account-rest-request-dto.ts
|
|
43
95
|
models/validate-pspconfig-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/payment-sdk@1.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.6.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.6.1-beta.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -23,9 +23,17 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateBankAccountRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { CreateBankAccountResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetBankAccountResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListBankAccountsResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
26
32
|
import { SetPrimaryBankAccountRequestDtoRest } from '../models';
|
|
27
33
|
// @ts-ignore
|
|
28
34
|
import { UpdateBankAccountRequestDtoRest } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { UpdateBankAccountResponseClass } from '../models';
|
|
29
37
|
/**
|
|
30
38
|
* BankAccountsApi - axios parameter creator
|
|
31
39
|
* @export
|
|
@@ -355,7 +363,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
355
363
|
* @param {*} [options] Override http request option.
|
|
356
364
|
* @throws {RequiredError}
|
|
357
365
|
*/
|
|
358
|
-
async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
366
|
+
async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBankAccountResponseClass>> {
|
|
359
367
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
|
|
360
368
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
361
369
|
},
|
|
@@ -367,7 +375,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
367
375
|
* @param {*} [options] Override http request option.
|
|
368
376
|
* @throws {RequiredError}
|
|
369
377
|
*/
|
|
370
|
-
async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
378
|
+
async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
371
379
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBankAccount(code, authorization, options);
|
|
372
380
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
373
381
|
},
|
|
@@ -380,7 +388,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
380
388
|
* @param {*} [options] Override http request option.
|
|
381
389
|
* @throws {RequiredError}
|
|
382
390
|
*/
|
|
383
|
-
async getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
391
|
+
async getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>> {
|
|
384
392
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankAccount(code, authorization, expand, options);
|
|
385
393
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
386
394
|
},
|
|
@@ -395,7 +403,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
395
403
|
* @param {*} [options] Override http request option.
|
|
396
404
|
* @throws {RequiredError}
|
|
397
405
|
*/
|
|
398
|
-
async listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
406
|
+
async listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>> {
|
|
399
407
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, filter, filters, order, expand, options);
|
|
400
408
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
401
409
|
},
|
|
@@ -408,7 +416,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
408
416
|
* @param {*} [options] Override http request option.
|
|
409
417
|
* @throws {RequiredError}
|
|
410
418
|
*/
|
|
411
|
-
async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
419
|
+
async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
412
420
|
const localVarAxiosArgs = await localVarAxiosParamCreator.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options);
|
|
413
421
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
414
422
|
},
|
|
@@ -421,7 +429,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
421
429
|
* @param {*} [options] Override http request option.
|
|
422
430
|
* @throws {RequiredError}
|
|
423
431
|
*/
|
|
424
|
-
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
432
|
+
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankAccountResponseClass>> {
|
|
425
433
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options);
|
|
426
434
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
427
435
|
},
|
|
@@ -443,7 +451,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
443
451
|
* @param {*} [options] Override http request option.
|
|
444
452
|
* @throws {RequiredError}
|
|
445
453
|
*/
|
|
446
|
-
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
454
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBankAccountResponseClass> {
|
|
447
455
|
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
448
456
|
},
|
|
449
457
|
/**
|
|
@@ -454,7 +462,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
454
462
|
* @param {*} [options] Override http request option.
|
|
455
463
|
* @throws {RequiredError}
|
|
456
464
|
*/
|
|
457
|
-
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
465
|
+
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object> {
|
|
458
466
|
return localVarFp.deleteBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
459
467
|
},
|
|
460
468
|
/**
|
|
@@ -466,7 +474,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
466
474
|
* @param {*} [options] Override http request option.
|
|
467
475
|
* @throws {RequiredError}
|
|
468
476
|
*/
|
|
469
|
-
getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
477
|
+
getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankAccountResponseClass> {
|
|
470
478
|
return localVarFp.getBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
471
479
|
},
|
|
472
480
|
/**
|
|
@@ -480,7 +488,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
480
488
|
* @param {*} [options] Override http request option.
|
|
481
489
|
* @throws {RequiredError}
|
|
482
490
|
*/
|
|
483
|
-
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
491
|
+
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
|
|
484
492
|
return localVarFp.listBankAccounts(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
485
493
|
},
|
|
486
494
|
/**
|
|
@@ -492,7 +500,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
492
500
|
* @param {*} [options] Override http request option.
|
|
493
501
|
* @throws {RequiredError}
|
|
494
502
|
*/
|
|
495
|
-
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
503
|
+
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object> {
|
|
496
504
|
return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
497
505
|
},
|
|
498
506
|
/**
|
|
@@ -504,7 +512,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
504
512
|
* @param {*} [options] Override http request option.
|
|
505
513
|
* @throws {RequiredError}
|
|
506
514
|
*/
|
|
507
|
-
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
515
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateBankAccountResponseClass> {
|
|
508
516
|
return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
509
517
|
},
|
|
510
518
|
};
|
|
@@ -21,9 +21,19 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { GetBankTransactionsResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ImportBankTransactionsResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
24
28
|
import { LinkBankTransactionRequestDtoRest } from '../models';
|
|
25
29
|
// @ts-ignore
|
|
30
|
+
import { LinkBankTransactionsResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ListBankTransactionsResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
26
34
|
import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { UnlinkBankTransactionsResponseClass } from '../models';
|
|
27
37
|
/**
|
|
28
38
|
* BankTransactionApi - axios parameter creator
|
|
29
39
|
* @export
|
|
@@ -319,7 +329,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
319
329
|
* @param {*} [options] Override http request option.
|
|
320
330
|
* @throws {RequiredError}
|
|
321
331
|
*/
|
|
322
|
-
async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
332
|
+
async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
|
|
323
333
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankTransaction(code, authorization, expand, options);
|
|
324
334
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
325
335
|
},
|
|
@@ -331,7 +341,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
331
341
|
* @param {*} [options] Override http request option.
|
|
332
342
|
* @throws {RequiredError}
|
|
333
343
|
*/
|
|
334
|
-
async importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
344
|
+
async importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportBankTransactionsResponseClass>> {
|
|
335
345
|
const localVarAxiosArgs = await localVarAxiosParamCreator.importBankTransactions(file, authorization, options);
|
|
336
346
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
337
347
|
},
|
|
@@ -344,7 +354,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
344
354
|
* @param {*} [options] Override http request option.
|
|
345
355
|
* @throws {RequiredError}
|
|
346
356
|
*/
|
|
347
|
-
async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
357
|
+
async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkBankTransactionsResponseClass>> {
|
|
348
358
|
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options);
|
|
349
359
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
350
360
|
},
|
|
@@ -360,7 +370,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
360
370
|
* @param {*} [options] Override http request option.
|
|
361
371
|
* @throws {RequiredError}
|
|
362
372
|
*/
|
|
363
|
-
async listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
373
|
+
async listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>> {
|
|
364
374
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, filter, filters, search, order, expand, options);
|
|
365
375
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
366
376
|
},
|
|
@@ -373,7 +383,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
373
383
|
* @param {*} [options] Override http request option.
|
|
374
384
|
* @throws {RequiredError}
|
|
375
385
|
*/
|
|
376
|
-
async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
386
|
+
async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnlinkBankTransactionsResponseClass>> {
|
|
377
387
|
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options);
|
|
378
388
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
379
389
|
},
|
|
@@ -396,7 +406,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
396
406
|
* @param {*} [options] Override http request option.
|
|
397
407
|
* @throws {RequiredError}
|
|
398
408
|
*/
|
|
399
|
-
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
409
|
+
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
400
410
|
return localVarFp.getBankTransaction(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
401
411
|
},
|
|
402
412
|
/**
|
|
@@ -407,7 +417,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
407
417
|
* @param {*} [options] Override http request option.
|
|
408
418
|
* @throws {RequiredError}
|
|
409
419
|
*/
|
|
410
|
-
importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<
|
|
420
|
+
importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<ImportBankTransactionsResponseClass> {
|
|
411
421
|
return localVarFp.importBankTransactions(file, authorization, options).then((request) => request(axios, basePath));
|
|
412
422
|
},
|
|
413
423
|
/**
|
|
@@ -419,7 +429,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
419
429
|
* @param {*} [options] Override http request option.
|
|
420
430
|
* @throws {RequiredError}
|
|
421
431
|
*/
|
|
422
|
-
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
432
|
+
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkBankTransactionsResponseClass> {
|
|
423
433
|
return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
424
434
|
},
|
|
425
435
|
/**
|
|
@@ -434,7 +444,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
434
444
|
* @param {*} [options] Override http request option.
|
|
435
445
|
* @throws {RequiredError}
|
|
436
446
|
*/
|
|
437
|
-
listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
447
|
+
listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
|
|
438
448
|
return localVarFp.listBankTransactions(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
439
449
|
},
|
|
440
450
|
/**
|
|
@@ -446,7 +456,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
446
456
|
* @param {*} [options] Override http request option.
|
|
447
457
|
* @throws {RequiredError}
|
|
448
458
|
*/
|
|
449
|
-
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
459
|
+
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UnlinkBankTransactionsResponseClass> {
|
|
450
460
|
return localVarFp.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
451
461
|
},
|
|
452
462
|
};
|
|
@@ -20,6 +20,14 @@ 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';
|
|
23
31
|
/**
|
|
24
32
|
* PaymentMethodsApi - axios parameter creator
|
|
25
33
|
* @export
|
|
@@ -29,14 +37,14 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
29
37
|
/**
|
|
30
38
|
* 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.
|
|
31
39
|
* @summary Create the payment method
|
|
32
|
-
* @param {
|
|
40
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
33
41
|
* @param {string} [authorization] Bearer Token
|
|
34
42
|
* @param {*} [options] Override http request option.
|
|
35
43
|
* @throws {RequiredError}
|
|
36
44
|
*/
|
|
37
|
-
createPaymentMethod: async (
|
|
38
|
-
// verify required parameter '
|
|
39
|
-
assertParamExists('createPaymentMethod', '
|
|
45
|
+
createPaymentMethod: async (createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
// verify required parameter 'createPspPaymentMethodRequestDto' is not null or undefined
|
|
47
|
+
assertParamExists('createPaymentMethod', 'createPspPaymentMethodRequestDto', createPspPaymentMethodRequestDto)
|
|
40
48
|
const localVarPath = `/paymentservice/v1/payment-methods`;
|
|
41
49
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
50
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -66,7 +74,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
66
74
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
67
75
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
76
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
69
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
77
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPspPaymentMethodRequestDto, localVarRequestOptions, configuration)
|
|
70
78
|
|
|
71
79
|
return {
|
|
72
80
|
url: toPathString(localVarUrlObj),
|
|
@@ -192,13 +200,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
192
200
|
/**
|
|
193
201
|
* 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.
|
|
194
202
|
* @summary Create the payment method
|
|
195
|
-
* @param {
|
|
203
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
196
204
|
* @param {string} [authorization] Bearer Token
|
|
197
205
|
* @param {*} [options] Override http request option.
|
|
198
206
|
* @throws {RequiredError}
|
|
199
207
|
*/
|
|
200
|
-
async createPaymentMethod(
|
|
201
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(
|
|
208
|
+
async createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>> {
|
|
209
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options);
|
|
202
210
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
203
211
|
},
|
|
204
212
|
/**
|
|
@@ -209,7 +217,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
209
217
|
* @param {*} [options] Override http request option.
|
|
210
218
|
* @throws {RequiredError}
|
|
211
219
|
*/
|
|
212
|
-
async getPaymentMethod(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
220
|
+
async getPaymentMethod(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodResponseClass>> {
|
|
213
221
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, authorization, options);
|
|
214
222
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
215
223
|
},
|
|
@@ -224,7 +232,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
224
232
|
* @param {*} [options] Override http request option.
|
|
225
233
|
* @throws {RequiredError}
|
|
226
234
|
*/
|
|
227
|
-
async listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
235
|
+
async listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentMethodsResponseClass>> {
|
|
228
236
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, filter, filters, order, expand, options);
|
|
229
237
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
230
238
|
},
|
|
@@ -241,13 +249,13 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
241
249
|
/**
|
|
242
250
|
* 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.
|
|
243
251
|
* @summary Create the payment method
|
|
244
|
-
* @param {
|
|
252
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
245
253
|
* @param {string} [authorization] Bearer Token
|
|
246
254
|
* @param {*} [options] Override http request option.
|
|
247
255
|
* @throws {RequiredError}
|
|
248
256
|
*/
|
|
249
|
-
createPaymentMethod(
|
|
250
|
-
return localVarFp.createPaymentMethod(
|
|
257
|
+
createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass> {
|
|
258
|
+
return localVarFp.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
251
259
|
},
|
|
252
260
|
/**
|
|
253
261
|
* Retrieves the details of the payment method that was previously created. Supply the unique payment method code that was returned when you created it and Emil Api will return the corresponding payment method information.
|
|
@@ -257,7 +265,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
257
265
|
* @param {*} [options] Override http request option.
|
|
258
266
|
* @throws {RequiredError}
|
|
259
267
|
*/
|
|
260
|
-
getPaymentMethod(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
268
|
+
getPaymentMethod(code: string, authorization?: string, options?: any): AxiosPromise<GetPaymentMethodResponseClass> {
|
|
261
269
|
return localVarFp.getPaymentMethod(code, authorization, options).then((request) => request(axios, basePath));
|
|
262
270
|
},
|
|
263
271
|
/**
|
|
@@ -271,7 +279,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
271
279
|
* @param {*} [options] Override http request option.
|
|
272
280
|
* @throws {RequiredError}
|
|
273
281
|
*/
|
|
274
|
-
listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
282
|
+
listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPaymentMethodsResponseClass> {
|
|
275
283
|
return localVarFp.listPaymentMethods(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
276
284
|
},
|
|
277
285
|
};
|
|
@@ -285,10 +293,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
285
293
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
286
294
|
/**
|
|
287
295
|
*
|
|
288
|
-
* @type {
|
|
296
|
+
* @type {CreatePspPaymentMethodRequestDto}
|
|
289
297
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
290
298
|
*/
|
|
291
|
-
readonly
|
|
299
|
+
readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto
|
|
292
300
|
|
|
293
301
|
/**
|
|
294
302
|
* Bearer Token
|
|
@@ -377,7 +385,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
377
385
|
* @memberof PaymentMethodsApi
|
|
378
386
|
*/
|
|
379
387
|
public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
380
|
-
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.
|
|
388
|
+
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
381
389
|
}
|
|
382
390
|
|
|
383
391
|
/**
|
|
@@ -23,7 +23,15 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreatePaymentReminderRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { CreatePaymentReminderResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
26
28
|
import { DeactivatePaymentReminderRequestDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { DeactivatePaymentReminderResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { GetPaymentReminderResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { ListPaymentRemindersResponseClass } from '../models';
|
|
27
35
|
/**
|
|
28
36
|
* PaymentRemindersApi - axios parameter creator
|
|
29
37
|
* @export
|
|
@@ -252,7 +260,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
252
260
|
* @param {*} [options] Override http request option.
|
|
253
261
|
* @throws {RequiredError}
|
|
254
262
|
*/
|
|
255
|
-
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
263
|
+
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentReminderResponseClass>> {
|
|
256
264
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
|
|
257
265
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
258
266
|
},
|
|
@@ -265,7 +273,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
265
273
|
* @param {*} [options] Override http request option.
|
|
266
274
|
* @throws {RequiredError}
|
|
267
275
|
*/
|
|
268
|
-
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
276
|
+
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeactivatePaymentReminderResponseClass>> {
|
|
269
277
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
|
|
270
278
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
271
279
|
},
|
|
@@ -277,7 +285,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
277
285
|
* @param {*} [options] Override http request option.
|
|
278
286
|
* @throws {RequiredError}
|
|
279
287
|
*/
|
|
280
|
-
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
288
|
+
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentReminderResponseClass>> {
|
|
281
289
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
|
|
282
290
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
283
291
|
},
|
|
@@ -292,7 +300,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
292
300
|
* @param {*} [options] Override http request option.
|
|
293
301
|
* @throws {RequiredError}
|
|
294
302
|
*/
|
|
295
|
-
async listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
303
|
+
async listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentRemindersResponseClass>> {
|
|
296
304
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, filter, filters, order, expand, options);
|
|
297
305
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
298
306
|
},
|
|
@@ -314,7 +322,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
314
322
|
* @param {*} [options] Override http request option.
|
|
315
323
|
* @throws {RequiredError}
|
|
316
324
|
*/
|
|
317
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
325
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentReminderResponseClass> {
|
|
318
326
|
return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
319
327
|
},
|
|
320
328
|
/**
|
|
@@ -326,7 +334,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
326
334
|
* @param {*} [options] Override http request option.
|
|
327
335
|
* @throws {RequiredError}
|
|
328
336
|
*/
|
|
329
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
337
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<DeactivatePaymentReminderResponseClass> {
|
|
330
338
|
return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
331
339
|
},
|
|
332
340
|
/**
|
|
@@ -337,7 +345,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
337
345
|
* @param {*} [options] Override http request option.
|
|
338
346
|
* @throws {RequiredError}
|
|
339
347
|
*/
|
|
340
|
-
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
348
|
+
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<GetPaymentReminderResponseClass> {
|
|
341
349
|
return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
|
|
342
350
|
},
|
|
343
351
|
/**
|
|
@@ -351,7 +359,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
351
359
|
* @param {*} [options] Override http request option.
|
|
352
360
|
* @throws {RequiredError}
|
|
353
361
|
*/
|
|
354
|
-
listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
362
|
+
listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPaymentRemindersResponseClass> {
|
|
355
363
|
return localVarFp.listPaymentReminders(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
356
364
|
},
|
|
357
365
|
};
|