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