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