@emilgroup/payment-sdk-node 1.14.1-beta.1 → 1.15.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 +50 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +20 -12
- package/api/bank-transaction-api.ts +20 -10
- package/api/payment-methods-api.ts +34 -26
- package/api/payment-reminders-api.ts +16 -8
- package/api/payment-setup-api.ts +36 -28
- package/api/payments-api.ts +12 -6
- package/api/refunds-api.ts +12 -6
- package/dist/api/bank-accounts-api.d.ts +22 -18
- package/dist/api/bank-transaction-api.d.ts +20 -15
- package/dist/api/payment-methods-api.d.ts +27 -23
- package/dist/api/payment-methods-api.js +18 -18
- package/dist/api/payment-reminders-api.d.ts +16 -12
- package/dist/api/payment-setup-api.d.ts +22 -18
- package/dist/api/payment-setup-api.js +24 -24
- package/dist/api/payments-api.d.ts +12 -9
- package/dist/api/refunds-api.d.ts +12 -9
- package/dist/models/bank-account-class-without-expand-properties.d.ts +84 -0
- package/dist/models/bank-account-class-without-expand-properties.js +15 -0
- package/dist/models/bank-account-class.d.ts +91 -0
- package/dist/models/bank-account-class.js +15 -0
- package/dist/models/bank-transaction-class.d.ts +140 -0
- package/dist/models/bank-transaction-class.js +15 -0
- package/dist/models/billing-profile-dto.d.ts +38 -0
- package/dist/models/billing-profile-dto.js +15 -0
- package/dist/models/billing-profile-limited-response-dto.d.ts +54 -0
- package/dist/models/billing-profile-limited-response-dto.js +15 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
- package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-request-dto.d.ts +38 -0
- package/dist/models/complete-payment-setup-request-dto.js +15 -0
- package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
- package/dist/models/complete-payment-setup-response-class.js +15 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +77 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.js +32 -0
- package/dist/models/create-bank-account-request-dto.d.ts +2 -2
- package/dist/models/create-bank-account-response-class.d.ts +25 -0
- package/dist/models/create-bank-account-response-class.js +15 -0
- package/dist/models/create-payment-method-response-class.d.ts +25 -0
- package/dist/models/create-payment-method-response-class.js +15 -0
- package/dist/models/create-payment-reminder-response-class.d.ts +25 -0
- package/dist/models/create-payment-reminder-response-class.js +15 -0
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- package/dist/models/create-payment-response-class.d.ts +25 -0
- package/dist/models/create-payment-response-class.js +15 -0
- package/dist/models/create-psp-payment-method-request-dto.d.ts +67 -0
- package/dist/models/create-psp-payment-method-request-dto.js +32 -0
- package/dist/models/create-refund-response-class.d.ts +25 -0
- package/dist/models/create-refund-response-class.js +15 -0
- package/dist/models/deactivate-payment-reminder-response-class.d.ts +25 -0
- package/dist/models/deactivate-payment-reminder-response-class.js +15 -0
- package/dist/models/deactivated-payment-reminder-class.d.ts +102 -0
- package/dist/models/deactivated-payment-reminder-class.js +15 -0
- package/dist/models/get-bank-account-response-class.d.ts +25 -0
- package/dist/models/get-bank-account-response-class.js +15 -0
- package/dist/models/get-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/get-bank-transactions-response-class.js +15 -0
- package/dist/models/get-payment-method-response-class.d.ts +25 -0
- package/dist/models/get-payment-method-response-class.js +15 -0
- package/dist/models/get-payment-reminder-response-class.d.ts +25 -0
- package/dist/models/get-payment-reminder-response-class.js +15 -0
- package/dist/models/get-payment-response-class.d.ts +25 -0
- package/dist/models/get-payment-response-class.js +15 -0
- package/dist/models/get-refund-response-class.d.ts +25 -0
- package/dist/models/get-refund-response-class.js +15 -0
- package/dist/models/import-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/import-bank-transactions-response-class.js +15 -0
- package/dist/models/index.d.ts +50 -0
- package/dist/models/index.js +50 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +50 -0
- package/dist/models/initiate-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
- package/dist/models/initiate-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
- package/dist/models/link-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/link-bank-transactions-response-class.js +15 -0
- package/dist/models/list-bank-accounts-response-class.d.ts +31 -0
- package/dist/models/list-bank-accounts-response-class.js +15 -0
- package/dist/models/list-bank-transactions-response-class.d.ts +31 -0
- package/dist/models/list-bank-transactions-response-class.js +15 -0
- package/dist/models/list-payment-methods-response-class.d.ts +31 -0
- package/dist/models/list-payment-methods-response-class.js +15 -0
- package/dist/models/list-payment-reminders-response-class.d.ts +31 -0
- package/dist/models/list-payment-reminders-response-class.js +15 -0
- package/dist/models/list-payments-response-class.d.ts +31 -0
- package/dist/models/list-payments-response-class.js +15 -0
- package/dist/models/list-refunds-response-class.d.ts +31 -0
- package/dist/models/list-refunds-response-class.js +15 -0
- package/dist/models/payment-class-without-expand-properties.d.ts +108 -0
- package/dist/models/payment-class-without-expand-properties.js +15 -0
- package/dist/models/payment-class.d.ts +115 -0
- package/dist/models/payment-class.js +15 -0
- package/dist/models/payment-method-class.d.ts +84 -0
- package/dist/models/payment-method-class.js +15 -0
- package/dist/models/payment-reminder-class.d.ts +102 -0
- package/dist/models/payment-reminder-class.js +15 -0
- package/dist/models/primary-bank-account-response-class.d.ts +54 -0
- package/dist/models/primary-bank-account-response-class.js +15 -0
- package/dist/models/refund-class.d.ts +118 -0
- package/dist/models/refund-class.js +29 -0
- package/dist/models/refund-item-class.d.ts +114 -0
- package/dist/models/refund-item-class.js +15 -0
- package/dist/models/sepa-direct-dto.d.ts +24 -0
- package/dist/models/sepa-direct-dto.js +15 -0
- package/dist/models/shared-transaction-class.d.ts +72 -0
- package/dist/models/shared-transaction-class.js +15 -0
- package/dist/models/symphony-profile-limited-response-dto.d.ts +42 -0
- package/dist/models/symphony-profile-limited-response-dto.js +15 -0
- package/dist/models/unlink-bank-transactions-response-class.d.ts +25 -0
- package/dist/models/unlink-bank-transactions-response-class.js +15 -0
- package/dist/models/unlinked-bank-transaction-response-class.d.ts +108 -0
- package/dist/models/unlinked-bank-transaction-response-class.js +15 -0
- package/dist/models/update-bank-account-response-class.d.ts +25 -0
- package/dist/models/update-bank-account-response-class.js +15 -0
- package/dist/models/validate-pspconfig-request-dto.d.ts +8 -1
- package/dist/models/validate-pspconfig-request-dto.js +7 -0
- package/models/bank-account-class-without-expand-properties.ts +90 -0
- package/models/bank-account-class.ts +97 -0
- package/models/bank-transaction-class.ts +146 -0
- package/models/billing-profile-dto.ts +44 -0
- package/models/billing-profile-limited-response-dto.ts +60 -0
- package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
- package/models/complete-payment-setup-request-dto.ts +44 -0
- package/models/complete-payment-setup-response-class.ts +31 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +86 -0
- package/models/create-bank-account-request-dto.ts +2 -2
- package/models/create-bank-account-response-class.ts +31 -0
- package/models/create-payment-method-response-class.ts +31 -0
- package/models/create-payment-reminder-response-class.ts +31 -0
- package/models/create-payment-request-dto.ts +1 -1
- package/models/create-payment-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +76 -0
- package/models/create-refund-response-class.ts +31 -0
- package/models/deactivate-payment-reminder-response-class.ts +31 -0
- package/models/deactivated-payment-reminder-class.ts +108 -0
- package/models/get-bank-account-response-class.ts +31 -0
- package/models/get-bank-transactions-response-class.ts +31 -0
- package/models/get-payment-method-response-class.ts +31 -0
- package/models/get-payment-reminder-response-class.ts +31 -0
- package/models/get-payment-response-class.ts +31 -0
- package/models/get-refund-response-class.ts +31 -0
- package/models/import-bank-transactions-response-class.ts +31 -0
- package/models/index.ts +50 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +36 -0
- package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
- package/models/initiate-payment-setup-request-dto.ts +56 -0
- package/models/initiate-payment-setup-response-class.ts +38 -0
- package/models/initiate-stripe-payment-setup-request-dto.ts +36 -0
- package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
- package/models/link-bank-transactions-response-class.ts +31 -0
- package/models/list-bank-accounts-response-class.ts +37 -0
- package/models/list-bank-transactions-response-class.ts +37 -0
- package/models/list-payment-methods-response-class.ts +37 -0
- package/models/list-payment-reminders-response-class.ts +37 -0
- package/models/list-payments-response-class.ts +37 -0
- package/models/list-refunds-response-class.ts +37 -0
- package/models/payment-class-without-expand-properties.ts +114 -0
- package/models/payment-class.ts +121 -0
- package/models/payment-method-class.ts +90 -0
- package/models/payment-reminder-class.ts +108 -0
- package/models/primary-bank-account-response-class.ts +60 -0
- package/models/refund-class.ts +128 -0
- package/models/refund-item-class.ts +120 -0
- package/models/sepa-direct-dto.ts +30 -0
- package/models/shared-transaction-class.ts +78 -0
- package/models/symphony-profile-limited-response-dto.ts +48 -0
- package/models/unlink-bank-transactions-response-class.ts +31 -0
- package/models/unlinked-bank-transaction-response-class.ts +114 -0
- package/models/update-bank-account-response-class.ts +31 -0
- package/models/validate-pspconfig-request-dto.ts +11 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -18,26 +18,76 @@ common.ts
|
|
|
18
18
|
configuration.ts
|
|
19
19
|
git_push.sh
|
|
20
20
|
index.ts
|
|
21
|
+
models/bank-account-class-without-expand-properties.ts
|
|
22
|
+
models/bank-account-class.ts
|
|
21
23
|
models/bank-transaction-class-without-expand-properties.ts
|
|
24
|
+
models/bank-transaction-class.ts
|
|
25
|
+
models/billing-profile-dto.ts
|
|
26
|
+
models/billing-profile-limited-response-dto.ts
|
|
27
|
+
models/complete-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
|
|
22
31
|
models/create-bank-account-request-dto.ts
|
|
32
|
+
models/create-bank-account-response-class.ts
|
|
33
|
+
models/create-payment-method-response-class.ts
|
|
23
34
|
models/create-payment-reminder-request-dto.ts
|
|
35
|
+
models/create-payment-reminder-response-class.ts
|
|
24
36
|
models/create-payment-request-dto.ts
|
|
37
|
+
models/create-payment-response-class.ts
|
|
38
|
+
models/create-psp-payment-method-request-dto.ts
|
|
25
39
|
models/create-refund-request-dto.ts
|
|
40
|
+
models/create-refund-response-class.ts
|
|
26
41
|
models/create-tenant-bank-account-request-dto.ts
|
|
27
42
|
models/create-tenant-bank-account-response-class.ts
|
|
28
43
|
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
|
|
29
52
|
models/get-tenant-bank-account-response-class.ts
|
|
53
|
+
models/import-bank-transactions-response-class.ts
|
|
30
54
|
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
|
|
31
61
|
models/inline-response200.ts
|
|
32
62
|
models/inline-response503.ts
|
|
33
63
|
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
|
|
34
71
|
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
|
|
35
80
|
models/set-primary-bank-account-request-dto-rest.ts
|
|
81
|
+
models/shared-transaction-class.ts
|
|
82
|
+
models/symphony-profile-limited-response-dto.ts
|
|
36
83
|
models/tenant-bank-account-class-without-expand-properties.ts
|
|
37
84
|
models/tenant-bank-account-class.ts
|
|
38
85
|
models/unlink-bank-transaction-request-dto-rest.ts
|
|
86
|
+
models/unlink-bank-transactions-response-class.ts
|
|
87
|
+
models/unlinked-bank-transaction-response-class.ts
|
|
39
88
|
models/update-bank-account-request-dto-rest.ts
|
|
40
89
|
models/update-bank-account-request-dto.ts
|
|
90
|
+
models/update-bank-account-response-class.ts
|
|
41
91
|
models/update-tenant-bank-account-response-class.ts
|
|
42
92
|
models/update-tenant-bank-account-rest-request-dto.ts
|
|
43
93
|
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.
|
|
20
|
+
npm install @emilgroup/payment-sdk-node@1.15.1-beta.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/payment-sdk-node@1.15.1-beta.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -23,9 +23,17 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateBankAccountRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { CreateBankAccountResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetBankAccountResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListBankAccountsResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
26
32
|
import { SetPrimaryBankAccountRequestDtoRest } from '../models';
|
|
27
33
|
// @ts-ignore
|
|
28
34
|
import { UpdateBankAccountRequestDtoRest } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { UpdateBankAccountResponseClass } from '../models';
|
|
29
37
|
// URLSearchParams not necessarily used
|
|
30
38
|
// @ts-ignore
|
|
31
39
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -359,7 +367,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
359
367
|
* @param {*} [options] Override http request option.
|
|
360
368
|
* @throws {RequiredError}
|
|
361
369
|
*/
|
|
362
|
-
async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
370
|
+
async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBankAccountResponseClass>> {
|
|
363
371
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
|
|
364
372
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
365
373
|
},
|
|
@@ -371,7 +379,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
371
379
|
* @param {*} [options] Override http request option.
|
|
372
380
|
* @throws {RequiredError}
|
|
373
381
|
*/
|
|
374
|
-
async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
382
|
+
async deleteBankAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
375
383
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteBankAccount(code, authorization, options);
|
|
376
384
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
377
385
|
},
|
|
@@ -384,7 +392,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
384
392
|
* @param {*} [options] Override http request option.
|
|
385
393
|
* @throws {RequiredError}
|
|
386
394
|
*/
|
|
387
|
-
async getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
395
|
+
async getBankAccount(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankAccountResponseClass>> {
|
|
388
396
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankAccount(code, authorization, expand, options);
|
|
389
397
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
390
398
|
},
|
|
@@ -399,7 +407,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
399
407
|
* @param {*} [options] Override http request option.
|
|
400
408
|
* @throws {RequiredError}
|
|
401
409
|
*/
|
|
402
|
-
async listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
410
|
+
async listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>> {
|
|
403
411
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, filter, filters, order, expand, options);
|
|
404
412
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
405
413
|
},
|
|
@@ -412,7 +420,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
412
420
|
* @param {*} [options] Override http request option.
|
|
413
421
|
* @throws {RequiredError}
|
|
414
422
|
*/
|
|
415
|
-
async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
423
|
+
async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
416
424
|
const localVarAxiosArgs = await localVarAxiosParamCreator.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options);
|
|
417
425
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
418
426
|
},
|
|
@@ -425,7 +433,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
425
433
|
* @param {*} [options] Override http request option.
|
|
426
434
|
* @throws {RequiredError}
|
|
427
435
|
*/
|
|
428
|
-
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
436
|
+
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankAccountResponseClass>> {
|
|
429
437
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options);
|
|
430
438
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
431
439
|
},
|
|
@@ -447,7 +455,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
447
455
|
* @param {*} [options] Override http request option.
|
|
448
456
|
* @throws {RequiredError}
|
|
449
457
|
*/
|
|
450
|
-
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
458
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBankAccountResponseClass> {
|
|
451
459
|
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
452
460
|
},
|
|
453
461
|
/**
|
|
@@ -458,7 +466,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
458
466
|
* @param {*} [options] Override http request option.
|
|
459
467
|
* @throws {RequiredError}
|
|
460
468
|
*/
|
|
461
|
-
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
469
|
+
deleteBankAccount(code: string, authorization?: string, options?: any): AxiosPromise<object> {
|
|
462
470
|
return localVarFp.deleteBankAccount(code, authorization, options).then((request) => request(axios, basePath));
|
|
463
471
|
},
|
|
464
472
|
/**
|
|
@@ -470,7 +478,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
470
478
|
* @param {*} [options] Override http request option.
|
|
471
479
|
* @throws {RequiredError}
|
|
472
480
|
*/
|
|
473
|
-
getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
481
|
+
getBankAccount(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankAccountResponseClass> {
|
|
474
482
|
return localVarFp.getBankAccount(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
475
483
|
},
|
|
476
484
|
/**
|
|
@@ -484,7 +492,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
484
492
|
* @param {*} [options] Override http request option.
|
|
485
493
|
* @throws {RequiredError}
|
|
486
494
|
*/
|
|
487
|
-
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
495
|
+
listBankAccounts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
|
|
488
496
|
return localVarFp.listBankAccounts(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
489
497
|
},
|
|
490
498
|
/**
|
|
@@ -496,7 +504,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
496
504
|
* @param {*} [options] Override http request option.
|
|
497
505
|
* @throws {RequiredError}
|
|
498
506
|
*/
|
|
499
|
-
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
507
|
+
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object> {
|
|
500
508
|
return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
501
509
|
},
|
|
502
510
|
/**
|
|
@@ -508,7 +516,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
508
516
|
* @param {*} [options] Override http request option.
|
|
509
517
|
* @throws {RequiredError}
|
|
510
518
|
*/
|
|
511
|
-
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
519
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UpdateBankAccountResponseClass> {
|
|
512
520
|
return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
513
521
|
},
|
|
514
522
|
};
|
|
@@ -21,9 +21,19 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { GetBankTransactionsResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ImportBankTransactionsResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
24
28
|
import { LinkBankTransactionRequestDtoRest } from '../models';
|
|
25
29
|
// @ts-ignore
|
|
30
|
+
import { LinkBankTransactionsResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ListBankTransactionsResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
26
34
|
import { UnlinkBankTransactionRequestDtoRest } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { UnlinkBankTransactionsResponseClass } from '../models';
|
|
27
37
|
// URLSearchParams not necessarily used
|
|
28
38
|
// @ts-ignore
|
|
29
39
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -324,7 +334,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
324
334
|
* @param {*} [options] Override http request option.
|
|
325
335
|
* @throws {RequiredError}
|
|
326
336
|
*/
|
|
327
|
-
async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
337
|
+
async getBankTransaction(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankTransactionsResponseClass>> {
|
|
328
338
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankTransaction(code, authorization, expand, options);
|
|
329
339
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
330
340
|
},
|
|
@@ -336,7 +346,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
336
346
|
* @param {*} [options] Override http request option.
|
|
337
347
|
* @throws {RequiredError}
|
|
338
348
|
*/
|
|
339
|
-
async importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
349
|
+
async importBankTransactions(file: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImportBankTransactionsResponseClass>> {
|
|
340
350
|
const localVarAxiosArgs = await localVarAxiosParamCreator.importBankTransactions(file, authorization, options);
|
|
341
351
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
342
352
|
},
|
|
@@ -349,7 +359,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
349
359
|
* @param {*} [options] Override http request option.
|
|
350
360
|
* @throws {RequiredError}
|
|
351
361
|
*/
|
|
352
|
-
async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
362
|
+
async linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LinkBankTransactionsResponseClass>> {
|
|
353
363
|
const localVarAxiosArgs = await localVarAxiosParamCreator.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options);
|
|
354
364
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
355
365
|
},
|
|
@@ -365,7 +375,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
365
375
|
* @param {*} [options] Override http request option.
|
|
366
376
|
* @throws {RequiredError}
|
|
367
377
|
*/
|
|
368
|
-
async listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
378
|
+
async listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>> {
|
|
369
379
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, filter, filters, search, order, expand, options);
|
|
370
380
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
371
381
|
},
|
|
@@ -378,7 +388,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
378
388
|
* @param {*} [options] Override http request option.
|
|
379
389
|
* @throws {RequiredError}
|
|
380
390
|
*/
|
|
381
|
-
async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
391
|
+
async unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UnlinkBankTransactionsResponseClass>> {
|
|
382
392
|
const localVarAxiosArgs = await localVarAxiosParamCreator.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options);
|
|
383
393
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
384
394
|
},
|
|
@@ -401,7 +411,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
401
411
|
* @param {*} [options] Override http request option.
|
|
402
412
|
* @throws {RequiredError}
|
|
403
413
|
*/
|
|
404
|
-
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<
|
|
414
|
+
getBankTransaction(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetBankTransactionsResponseClass> {
|
|
405
415
|
return localVarFp.getBankTransaction(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
406
416
|
},
|
|
407
417
|
/**
|
|
@@ -412,7 +422,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
412
422
|
* @param {*} [options] Override http request option.
|
|
413
423
|
* @throws {RequiredError}
|
|
414
424
|
*/
|
|
415
|
-
importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<
|
|
425
|
+
importBankTransactions(file: any, authorization?: string, options?: any): AxiosPromise<ImportBankTransactionsResponseClass> {
|
|
416
426
|
return localVarFp.importBankTransactions(file, authorization, options).then((request) => request(axios, basePath));
|
|
417
427
|
},
|
|
418
428
|
/**
|
|
@@ -424,7 +434,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
424
434
|
* @param {*} [options] Override http request option.
|
|
425
435
|
* @throws {RequiredError}
|
|
426
436
|
*/
|
|
427
|
-
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
437
|
+
linkBankTransaction(code: string, linkBankTransactionRequestDtoRest: LinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<LinkBankTransactionsResponseClass> {
|
|
428
438
|
return localVarFp.linkBankTransaction(code, linkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
429
439
|
},
|
|
430
440
|
/**
|
|
@@ -439,7 +449,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
439
449
|
* @param {*} [options] Override http request option.
|
|
440
450
|
* @throws {RequiredError}
|
|
441
451
|
*/
|
|
442
|
-
listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
452
|
+
listBankTransactions(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
|
|
443
453
|
return localVarFp.listBankTransactions(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
|
|
444
454
|
},
|
|
445
455
|
/**
|
|
@@ -451,7 +461,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
451
461
|
* @param {*} [options] Override http request option.
|
|
452
462
|
* @throws {RequiredError}
|
|
453
463
|
*/
|
|
454
|
-
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
464
|
+
unlinkBankTransaction(code: string, unlinkBankTransactionRequestDtoRest: UnlinkBankTransactionRequestDtoRest, authorization?: string, options?: any): AxiosPromise<UnlinkBankTransactionsResponseClass> {
|
|
455
465
|
return localVarFp.unlinkBankTransaction(code, unlinkBankTransactionRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
456
466
|
},
|
|
457
467
|
};
|
|
@@ -20,6 +20,14 @@ import { Configuration } from '../configuration';
|
|
|
20
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreatePaymentMethodResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreatePspPaymentMethodRequestDto } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetPaymentMethodResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListPaymentMethodsResponseClass } from '../models';
|
|
23
31
|
// URLSearchParams not necessarily used
|
|
24
32
|
// @ts-ignore
|
|
25
33
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -33,14 +41,14 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
33
41
|
/**
|
|
34
42
|
* 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.
|
|
35
43
|
* @summary Create the payment method
|
|
36
|
-
* @param {
|
|
44
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
37
45
|
* @param {string} [authorization] Bearer Token
|
|
38
46
|
* @param {*} [options] Override http request option.
|
|
39
47
|
* @throws {RequiredError}
|
|
40
48
|
*/
|
|
41
|
-
createPaymentMethod: async (
|
|
42
|
-
// verify required parameter '
|
|
43
|
-
assertParamExists('createPaymentMethod', '
|
|
49
|
+
createPaymentMethod: async (createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
+
// verify required parameter 'createPspPaymentMethodRequestDto' is not null or undefined
|
|
51
|
+
assertParamExists('createPaymentMethod', 'createPspPaymentMethodRequestDto', createPspPaymentMethodRequestDto)
|
|
44
52
|
const localVarPath = `/paymentservice/v1/payment-methods`;
|
|
45
53
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
54
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -70,7 +78,7 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
70
78
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
79
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
80
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
73
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
81
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPspPaymentMethodRequestDto, localVarRequestOptions, configuration)
|
|
74
82
|
|
|
75
83
|
return {
|
|
76
84
|
url: toPathString(localVarUrlObj),
|
|
@@ -126,8 +134,8 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
126
134
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
127
135
|
* @summary List payment methods
|
|
128
136
|
* @param {string} [authorization] Bearer Token
|
|
129
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
130
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
137
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug</i>
|
|
138
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug</i>
|
|
131
139
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
132
140
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
|
|
133
141
|
* @param {*} [options] Override http request option.
|
|
@@ -196,13 +204,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
196
204
|
/**
|
|
197
205
|
* 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.
|
|
198
206
|
* @summary Create the payment method
|
|
199
|
-
* @param {
|
|
207
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
200
208
|
* @param {string} [authorization] Bearer Token
|
|
201
209
|
* @param {*} [options] Override http request option.
|
|
202
210
|
* @throws {RequiredError}
|
|
203
211
|
*/
|
|
204
|
-
async createPaymentMethod(
|
|
205
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(
|
|
212
|
+
async createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>> {
|
|
213
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options);
|
|
206
214
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
207
215
|
},
|
|
208
216
|
/**
|
|
@@ -213,7 +221,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
213
221
|
* @param {*} [options] Override http request option.
|
|
214
222
|
* @throws {RequiredError}
|
|
215
223
|
*/
|
|
216
|
-
async getPaymentMethod(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
224
|
+
async getPaymentMethod(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodResponseClass>> {
|
|
217
225
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, authorization, options);
|
|
218
226
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
219
227
|
},
|
|
@@ -221,14 +229,14 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
221
229
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
222
230
|
* @summary List payment methods
|
|
223
231
|
* @param {string} [authorization] Bearer Token
|
|
224
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
225
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
232
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug</i>
|
|
233
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug</i>
|
|
226
234
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
227
235
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
|
|
228
236
|
* @param {*} [options] Override http request option.
|
|
229
237
|
* @throws {RequiredError}
|
|
230
238
|
*/
|
|
231
|
-
async listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
239
|
+
async listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentMethodsResponseClass>> {
|
|
232
240
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, filter, filters, order, expand, options);
|
|
233
241
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
234
242
|
},
|
|
@@ -245,13 +253,13 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
245
253
|
/**
|
|
246
254
|
* 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.
|
|
247
255
|
* @summary Create the payment method
|
|
248
|
-
* @param {
|
|
256
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
249
257
|
* @param {string} [authorization] Bearer Token
|
|
250
258
|
* @param {*} [options] Override http request option.
|
|
251
259
|
* @throws {RequiredError}
|
|
252
260
|
*/
|
|
253
|
-
createPaymentMethod(
|
|
254
|
-
return localVarFp.createPaymentMethod(
|
|
261
|
+
createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass> {
|
|
262
|
+
return localVarFp.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
255
263
|
},
|
|
256
264
|
/**
|
|
257
265
|
* 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.
|
|
@@ -261,21 +269,21 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
261
269
|
* @param {*} [options] Override http request option.
|
|
262
270
|
* @throws {RequiredError}
|
|
263
271
|
*/
|
|
264
|
-
getPaymentMethod(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
272
|
+
getPaymentMethod(code: string, authorization?: string, options?: any): AxiosPromise<GetPaymentMethodResponseClass> {
|
|
265
273
|
return localVarFp.getPaymentMethod(code, authorization, options).then((request) => request(axios, basePath));
|
|
266
274
|
},
|
|
267
275
|
/**
|
|
268
276
|
* Returns a list of payment methods you have previously created. The payment methods are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
269
277
|
* @summary List payment methods
|
|
270
278
|
* @param {string} [authorization] Bearer Token
|
|
271
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
272
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
279
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug</i>
|
|
280
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug</i>
|
|
273
281
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt</i>
|
|
274
282
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: <i>
|
|
275
283
|
* @param {*} [options] Override http request option.
|
|
276
284
|
* @throws {RequiredError}
|
|
277
285
|
*/
|
|
278
|
-
listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
286
|
+
listPaymentMethods(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPaymentMethodsResponseClass> {
|
|
279
287
|
return localVarFp.listPaymentMethods(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
280
288
|
},
|
|
281
289
|
};
|
|
@@ -289,10 +297,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
289
297
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
290
298
|
/**
|
|
291
299
|
*
|
|
292
|
-
* @type {
|
|
300
|
+
* @type {CreatePspPaymentMethodRequestDto}
|
|
293
301
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
294
302
|
*/
|
|
295
|
-
readonly
|
|
303
|
+
readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto
|
|
296
304
|
|
|
297
305
|
/**
|
|
298
306
|
* Bearer Token
|
|
@@ -337,14 +345,14 @@ export interface PaymentMethodsApiListPaymentMethodsRequest {
|
|
|
337
345
|
readonly authorization?: string
|
|
338
346
|
|
|
339
347
|
/**
|
|
340
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
348
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug</i>
|
|
341
349
|
* @type {string}
|
|
342
350
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
343
351
|
*/
|
|
344
352
|
readonly filter?: string
|
|
345
353
|
|
|
346
354
|
/**
|
|
347
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type</i>
|
|
355
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, id, pspCustomerId, psp, type, productSlug</i>
|
|
348
356
|
* @type {string}
|
|
349
357
|
* @memberof PaymentMethodsApiListPaymentMethods
|
|
350
358
|
*/
|
|
@@ -381,7 +389,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
381
389
|
* @memberof PaymentMethodsApi
|
|
382
390
|
*/
|
|
383
391
|
public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
384
|
-
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.
|
|
392
|
+
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
385
393
|
}
|
|
386
394
|
|
|
387
395
|
/**
|
|
@@ -23,7 +23,15 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreatePaymentReminderRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { CreatePaymentReminderResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
26
28
|
import { DeactivatePaymentReminderRequestDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { DeactivatePaymentReminderResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { GetPaymentReminderResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { ListPaymentRemindersResponseClass } from '../models';
|
|
27
35
|
// URLSearchParams not necessarily used
|
|
28
36
|
// @ts-ignore
|
|
29
37
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -256,7 +264,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
256
264
|
* @param {*} [options] Override http request option.
|
|
257
265
|
* @throws {RequiredError}
|
|
258
266
|
*/
|
|
259
|
-
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
267
|
+
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentReminderResponseClass>> {
|
|
260
268
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
|
|
261
269
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
262
270
|
},
|
|
@@ -269,7 +277,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
269
277
|
* @param {*} [options] Override http request option.
|
|
270
278
|
* @throws {RequiredError}
|
|
271
279
|
*/
|
|
272
|
-
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
280
|
+
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeactivatePaymentReminderResponseClass>> {
|
|
273
281
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
|
|
274
282
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
275
283
|
},
|
|
@@ -281,7 +289,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
281
289
|
* @param {*} [options] Override http request option.
|
|
282
290
|
* @throws {RequiredError}
|
|
283
291
|
*/
|
|
284
|
-
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
292
|
+
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentReminderResponseClass>> {
|
|
285
293
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
|
|
286
294
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
287
295
|
},
|
|
@@ -296,7 +304,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
296
304
|
* @param {*} [options] Override http request option.
|
|
297
305
|
* @throws {RequiredError}
|
|
298
306
|
*/
|
|
299
|
-
async listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
307
|
+
async listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentRemindersResponseClass>> {
|
|
300
308
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, filter, filters, order, expand, options);
|
|
301
309
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
302
310
|
},
|
|
@@ -318,7 +326,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
318
326
|
* @param {*} [options] Override http request option.
|
|
319
327
|
* @throws {RequiredError}
|
|
320
328
|
*/
|
|
321
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
329
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentReminderResponseClass> {
|
|
322
330
|
return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
323
331
|
},
|
|
324
332
|
/**
|
|
@@ -330,7 +338,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
330
338
|
* @param {*} [options] Override http request option.
|
|
331
339
|
* @throws {RequiredError}
|
|
332
340
|
*/
|
|
333
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
341
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<DeactivatePaymentReminderResponseClass> {
|
|
334
342
|
return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
335
343
|
},
|
|
336
344
|
/**
|
|
@@ -341,7 +349,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
341
349
|
* @param {*} [options] Override http request option.
|
|
342
350
|
* @throws {RequiredError}
|
|
343
351
|
*/
|
|
344
|
-
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
352
|
+
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<GetPaymentReminderResponseClass> {
|
|
345
353
|
return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
|
|
346
354
|
},
|
|
347
355
|
/**
|
|
@@ -355,7 +363,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
355
363
|
* @param {*} [options] Override http request option.
|
|
356
364
|
* @throws {RequiredError}
|
|
357
365
|
*/
|
|
358
|
-
listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<
|
|
366
|
+
listPaymentReminders(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPaymentRemindersResponseClass> {
|
|
359
367
|
return localVarFp.listPaymentReminders(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
360
368
|
},
|
|
361
369
|
};
|