@emilgroup/payment-sdk-node 1.14.0 → 1.14.1-beta.0
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 +6 -12
- 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 +9 -12
- 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-node@1.14.0 --save
|
|
20
|
+
npm install @emilgroup/payment-sdk-node@1.14.1-beta.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk-node@1.14.0
|
|
24
|
+
yarn add @emilgroup/payment-sdk-node@1.14.1-beta.0
|
|
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
|
// URLSearchParams not necessarily used
|
|
38
30
|
// @ts-ignore
|
|
39
31
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -367,7 +359,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
367
359
|
* @param {*} [options] Override http request option.
|
|
368
360
|
* @throws {RequiredError}
|
|
369
361
|
*/
|
|
370
|
-
async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
362
|
+
async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
371
363
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
|
|
372
364
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
373
365
|
},
|
|
@@ -379,7 +371,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
379
371
|
* @param {*} [options] Override http request option.
|
|
380
372
|
* @throws {RequiredError}
|
|
381
373
|
*/
|
|
382
|
-
async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
374
|
+
async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
383
375
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBankAccount(code, authorization, options);
|
|
384
376
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
385
377
|
},
|
|
@@ -392,7 +384,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
392
384
|
* @param {*} [options] Override http request option.
|
|
393
385
|
* @throws {RequiredError}
|
|
394
386
|
*/
|
|
395
|
-
async getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
387
|
+
async getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
396
388
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankAccount(code, authorization, expand, options);
|
|
397
389
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
398
390
|
},
|
|
@@ -407,7 +399,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
407
399
|
* @param {*} [options] Override http request option.
|
|
408
400
|
* @throws {RequiredError}
|
|
409
401
|
*/
|
|
410
|
-
async listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
402
|
+
async listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
411
403
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, filter, filters, order, expand, options);
|
|
412
404
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
413
405
|
},
|
|
@@ -420,7 +412,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
420
412
|
* @param {*} [options] Override http request option.
|
|
421
413
|
* @throws {RequiredError}
|
|
422
414
|
*/
|
|
423
|
-
async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
415
|
+
async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
424
416
|
const localVarAxiosArgs = await localVarAxiosParamCreator.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options);
|
|
425
417
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
426
418
|
},
|
|
@@ -433,7 +425,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
433
425
|
* @param {*} [options] Override http request option.
|
|
434
426
|
* @throws {RequiredError}
|
|
435
427
|
*/
|
|
436
|
-
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
428
|
+
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
437
429
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options);
|
|
438
430
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
439
431
|
},
|
|
@@ -455,7 +447,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
455
447
|
* @param {*} [options] Override http request option.
|
|
456
448
|
* @throws {RequiredError}
|
|
457
449
|
*/
|
|
458
|
-
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
450
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
459
451
|
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
460
452
|
},
|
|
461
453
|
/**
|
|
@@ -466,7 +458,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
466
458
|
* @param {*} [options] Override http request option.
|
|
467
459
|
* @throws {RequiredError}
|
|
468
460
|
*/
|
|
469
|
-
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
461
|
+
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
470
462
|
return localVarFp.deleteBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
471
463
|
},
|
|
472
464
|
/**
|
|
@@ -478,7 +470,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
478
470
|
* @param {*} [options] Override http request option.
|
|
479
471
|
* @throws {RequiredError}
|
|
480
472
|
*/
|
|
481
|
-
getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
473
|
+
getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
482
474
|
return localVarFp.getBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
483
475
|
},
|
|
484
476
|
/**
|
|
@@ -492,7 +484,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
492
484
|
* @param {*} [options] Override http request option.
|
|
493
485
|
* @throws {RequiredError}
|
|
494
486
|
*/
|
|
495
|
-
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
487
|
+
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
496
488
|
return localVarFp.listBankAccounts(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
497
489
|
},
|
|
498
490
|
/**
|
|
@@ -504,7 +496,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
504
496
|
* @param {*} [options] Override http request option.
|
|
505
497
|
* @throws {RequiredError}
|
|
506
498
|
*/
|
|
507
|
-
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
499
|
+
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
508
500
|
return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
509
501
|
},
|
|
510
502
|
/**
|
|
@@ -516,7 +508,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
516
508
|
* @param {*} [options] Override http request option.
|
|
517
509
|
* @throws {RequiredError}
|
|
518
510
|
*/
|
|
519
|
-
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
511
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
520
512
|
return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
521
513
|
},
|
|
522
514
|
};
|
|
@@ -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
|
// URLSearchParams not necessarily used
|
|
38
28
|
// @ts-ignore
|
|
39
29
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -334,7 +324,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
334
324
|
* @param {*} [options] Override http request option.
|
|
335
325
|
* @throws {RequiredError}
|
|
336
326
|
*/
|
|
337
|
-
async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
327
|
+
async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
338
328
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankTransaction(code, authorization, expand, options);
|
|
339
329
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
340
330
|
},
|
|
@@ -346,7 +336,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
346
336
|
* @param {*} [options] Override http request option.
|
|
347
337
|
* @throws {RequiredError}
|
|
348
338
|
*/
|
|
349
|
-
async importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
339
|
+
async importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
350
340
|
const localVarAxiosArgs = await localVarAxiosParamCreator.importBankTransactions(file, authorization, options);
|
|
351
341
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
352
342
|
},
|
|
@@ -359,7 +349,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
359
349
|
* @param {*} [options] Override http request option.
|
|
360
350
|
* @throws {RequiredError}
|
|
361
351
|
*/
|
|
362
|
-
async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
352
|
+
async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
363
353
|
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options);
|
|
364
354
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
365
355
|
},
|
|
@@ -375,7 +365,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
375
365
|
* @param {*} [options] Override http request option.
|
|
376
366
|
* @throws {RequiredError}
|
|
377
367
|
*/
|
|
378
|
-
async listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
368
|
+
async listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
379
369
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, filter, filters, search, order, expand, options);
|
|
380
370
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
381
371
|
},
|
|
@@ -388,7 +378,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
388
378
|
* @param {*} [options] Override http request option.
|
|
389
379
|
* @throws {RequiredError}
|
|
390
380
|
*/
|
|
391
|
-
async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
381
|
+
async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
392
382
|
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options);
|
|
393
383
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
394
384
|
},
|
|
@@ -411,7 +401,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
411
401
|
* @param {*} [options] Override http request option.
|
|
412
402
|
* @throws {RequiredError}
|
|
413
403
|
*/
|
|
414
|
-
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
404
|
+
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
415
405
|
return localVarFp.getBankTransaction(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
416
406
|
},
|
|
417
407
|
/**
|
|
@@ -422,7 +412,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
422
412
|
* @param {*} [options] Override http request option.
|
|
423
413
|
* @throws {RequiredError}
|
|
424
414
|
*/
|
|
425
|
-
importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<
|
|
415
|
+
importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<void> {
|
|
426
416
|
return localVarFp.importBankTransactions(file, authorization, options).then((request) => request(axios, basePath));
|
|
427
417
|
},
|
|
428
418
|
/**
|
|
@@ -434,7 +424,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
434
424
|
* @param {*} [options] Override http request option.
|
|
435
425
|
* @throws {RequiredError}
|
|
436
426
|
*/
|
|
437
|
-
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
427
|
+
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
438
428
|
return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
439
429
|
},
|
|
440
430
|
/**
|
|
@@ -449,7 +439,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
449
439
|
* @param {*} [options] Override http request option.
|
|
450
440
|
* @throws {RequiredError}
|
|
451
441
|
*/
|
|
452
|
-
listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
442
|
+
listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
453
443
|
return localVarFp.listBankTransactions(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
454
444
|
},
|
|
455
445
|
/**
|
|
@@ -461,7 +451,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
461
451
|
* @param {*} [options] Override http request option.
|
|
462
452
|
* @throws {RequiredError}
|
|
463
453
|
*/
|
|
464
|
-
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
454
|
+
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<void> {
|
|
465
455
|
return localVarFp.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
466
456
|
},
|
|
467
457
|
};
|
|
@@ -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
|
// URLSearchParams not necessarily used
|
|
32
24
|
// @ts-ignore
|
|
33
25
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -41,14 +33,14 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
41
33
|
/**
|
|
42
34
|
* 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.
|
|
43
35
|
* @summary Create the payment method
|
|
44
|
-
* @param {
|
|
36
|
+
* @param {object} body
|
|
45
37
|
* @param {string} [authorization] Bearer Token
|
|
46
38
|
* @param {*} [options] Override http request option.
|
|
47
39
|
* @throws {RequiredError}
|
|
48
40
|
*/
|
|
49
|
-
createPaymentMethod: async (
|
|
50
|
-
// verify required parameter '
|
|
51
|
-
assertParamExists('createPaymentMethod', '
|
|
41
|
+
createPaymentMethod: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'body' is not null or undefined
|
|
43
|
+
assertParamExists('createPaymentMethod', 'body', body)
|
|
52
44
|
const localVarPath = `/paymentservice/v1/payment-methods`;
|
|
53
45
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
46
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -78,7 +70,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
78
70
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79
71
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
72
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
81
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
73
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
82
74
|
|
|
83
75
|
return {
|
|
84
76
|
url: toPathString(localVarUrlObj),
|
|
@@ -204,13 +196,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
204
196
|
/**
|
|
205
197
|
* 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.
|
|
206
198
|
* @summary Create the payment method
|
|
207
|
-
* @param {
|
|
199
|
+
* @param {object} body
|
|
208
200
|
* @param {string} [authorization] Bearer Token
|
|
209
201
|
* @param {*} [options] Override http request option.
|
|
210
202
|
* @throws {RequiredError}
|
|
211
203
|
*/
|
|
212
|
-
async createPaymentMethod(
|
|
213
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(
|
|
204
|
+
async createPaymentMethod(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
205
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(body, authorization, options);
|
|
214
206
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
215
207
|
},
|
|
216
208
|
/**
|
|
@@ -221,7 +213,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
221
213
|
* @param {*} [options] Override http request option.
|
|
222
214
|
* @throws {RequiredError}
|
|
223
215
|
*/
|
|
224
|
-
async getPaymentMethod(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
216
|
+
async getPaymentMethod(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
225
217
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, authorization, options);
|
|
226
218
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
227
219
|
},
|
|
@@ -236,7 +228,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
236
228
|
* @param {*} [options] Override http request option.
|
|
237
229
|
* @throws {RequiredError}
|
|
238
230
|
*/
|
|
239
|
-
async listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
231
|
+
async listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
240
232
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, filter, filters, order, expand, options);
|
|
241
233
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
242
234
|
},
|
|
@@ -253,13 +245,13 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
253
245
|
/**
|
|
254
246
|
* 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.
|
|
255
247
|
* @summary Create the payment method
|
|
256
|
-
* @param {
|
|
248
|
+
* @param {object} body
|
|
257
249
|
* @param {string} [authorization] Bearer Token
|
|
258
250
|
* @param {*} [options] Override http request option.
|
|
259
251
|
* @throws {RequiredError}
|
|
260
252
|
*/
|
|
261
|
-
createPaymentMethod(
|
|
262
|
-
return localVarFp.createPaymentMethod(
|
|
253
|
+
createPaymentMethod(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
254
|
+
return localVarFp.createPaymentMethod(body, authorization, options).then((request) => request(axios, basePath));
|
|
263
255
|
},
|
|
264
256
|
/**
|
|
265
257
|
* 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.
|
|
@@ -269,7 +261,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
269
261
|
* @param {*} [options] Override http request option.
|
|
270
262
|
* @throws {RequiredError}
|
|
271
263
|
*/
|
|
272
|
-
getPaymentMethod(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
264
|
+
getPaymentMethod(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
273
265
|
return localVarFp.getPaymentMethod(code, authorization, options).then((request) => request(axios, basePath));
|
|
274
266
|
},
|
|
275
267
|
/**
|
|
@@ -283,7 +275,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
283
275
|
* @param {*} [options] Override http request option.
|
|
284
276
|
* @throws {RequiredError}
|
|
285
277
|
*/
|
|
286
|
-
listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
278
|
+
listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
287
279
|
return localVarFp.listPaymentMethods(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
288
280
|
},
|
|
289
281
|
};
|
|
@@ -297,10 +289,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
297
289
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
298
290
|
/**
|
|
299
291
|
*
|
|
300
|
-
* @type {
|
|
292
|
+
* @type {object}
|
|
301
293
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
302
294
|
*/
|
|
303
|
-
readonly
|
|
295
|
+
readonly body: object
|
|
304
296
|
|
|
305
297
|
/**
|
|
306
298
|
* Bearer Token
|
|
@@ -389,7 +381,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
389
381
|
* @memberof PaymentMethodsApi
|
|
390
382
|
*/
|
|
391
383
|
public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
392
|
-
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.
|
|
384
|
+
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
393
385
|
}
|
|
394
386
|
|
|
395
387
|
/**
|
|
@@ -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
|
// URLSearchParams not necessarily used
|
|
36
28
|
// @ts-ignore
|
|
37
29
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -264,7 +256,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
264
256
|
* @param {*} [options] Override http request option.
|
|
265
257
|
* @throws {RequiredError}
|
|
266
258
|
*/
|
|
267
|
-
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
259
|
+
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
268
260
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
|
|
269
261
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
270
262
|
},
|
|
@@ -277,7 +269,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
277
269
|
* @param {*} [options] Override http request option.
|
|
278
270
|
* @throws {RequiredError}
|
|
279
271
|
*/
|
|
280
|
-
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
272
|
+
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
281
273
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
|
|
282
274
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
283
275
|
},
|
|
@@ -289,7 +281,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
289
281
|
* @param {*} [options] Override http request option.
|
|
290
282
|
* @throws {RequiredError}
|
|
291
283
|
*/
|
|
292
|
-
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
284
|
+
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
293
285
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
|
|
294
286
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
295
287
|
},
|
|
@@ -304,7 +296,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
304
296
|
* @param {*} [options] Override http request option.
|
|
305
297
|
* @throws {RequiredError}
|
|
306
298
|
*/
|
|
307
|
-
async listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
299
|
+
async listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
308
300
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, filter, filters, order, expand, options);
|
|
309
301
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
310
302
|
},
|
|
@@ -326,7 +318,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
326
318
|
* @param {*} [options] Override http request option.
|
|
327
319
|
* @throws {RequiredError}
|
|
328
320
|
*/
|
|
329
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
321
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
330
322
|
return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
331
323
|
},
|
|
332
324
|
/**
|
|
@@ -338,7 +330,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
338
330
|
* @param {*} [options] Override http request option.
|
|
339
331
|
* @throws {RequiredError}
|
|
340
332
|
*/
|
|
341
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
333
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
342
334
|
return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
343
335
|
},
|
|
344
336
|
/**
|
|
@@ -349,7 +341,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
349
341
|
* @param {*} [options] Override http request option.
|
|
350
342
|
* @throws {RequiredError}
|
|
351
343
|
*/
|
|
352
|
-
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
344
|
+
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
353
345
|
return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
|
|
354
346
|
},
|
|
355
347
|
/**
|
|
@@ -363,7 +355,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
363
355
|
* @param {*} [options] Override http request option.
|
|
364
356
|
* @throws {RequiredError}
|
|
365
357
|
*/
|
|
366
|
-
listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
358
|
+
listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<void> {
|
|
367
359
|
return localVarFp.listPaymentReminders(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
368
360
|
},
|
|
369
361
|
};
|