@emilgroup/payment-sdk-node 1.13.1-beta.18 → 1.13.1-beta.19
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 +29 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +127 -7
- package/api/bank-transaction-api.ts +3 -3
- package/api/default-api.ts +1 -1
- package/api/payment-methods-api.ts +38 -32
- package/api/payment-reminders-api.ts +13 -9
- package/api/payment-setup-api.ts +37 -29
- package/api/payments-api.ts +24 -20
- package/api/refunds-api.ts +14 -16
- package/api/tenant-bank-account-api.ts +1 -1
- package/api/webhooks-api.ts +1 -1
- package/api.ts +1 -1
- package/base.ts +1 -1
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/bank-accounts-api.d.ts +76 -10
- package/dist/api/bank-accounts-api.js +100 -1
- package/dist/api/bank-transaction-api.d.ts +4 -4
- package/dist/api/bank-transaction-api.js +1 -1
- package/dist/api/default-api.d.ts +1 -1
- package/dist/api/default-api.js +1 -1
- package/dist/api/payment-methods-api.d.ts +28 -24
- package/dist/api/payment-methods-api.js +22 -24
- package/dist/api/payment-reminders-api.d.ts +15 -13
- package/dist/api/payment-reminders-api.js +1 -1
- package/dist/api/payment-setup-api.d.ts +23 -19
- package/dist/api/payment-setup-api.js +25 -25
- package/dist/api/payments-api.d.ts +21 -18
- package/dist/api/payments-api.js +10 -12
- package/dist/api/refunds-api.d.ts +11 -11
- package/dist/api/refunds-api.js +10 -12
- package/dist/api/tenant-bank-account-api.d.ts +1 -1
- package/dist/api/tenant-bank-account-api.js +1 -1
- package/dist/api/webhooks-api.d.ts +1 -1
- package/dist/api/webhooks-api.js +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/bank-account-class.d.ts +13 -1
- package/dist/models/bank-account-class.js +1 -1
- package/dist/models/bank-transaction-response-class.d.ts +1 -1
- package/dist/models/bank-transaction-response-class.js +1 -1
- 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 +17 -5
- package/dist/models/create-bank-account-request-dto.js +1 -1
- 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-request-dto.d.ts +1 -1
- package/dist/models/create-payment-reminder-request-dto.js +1 -1
- package/dist/models/create-payment-request-dto.d.ts +4 -4
- package/dist/models/create-payment-request-dto.js +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 +61 -0
- package/dist/models/create-psp-payment-method-request-dto.js +32 -0
- package/dist/models/create-refund-request-dto.d.ts +1 -1
- package/dist/models/create-refund-request-dto.js +1 -1
- package/dist/models/create-refund-response-class.d.ts +1 -1
- package/dist/models/create-refund-response-class.js +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-request-dto.js +1 -1
- package/dist/models/create-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/create-tenant-bank-account-response-class.js +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.d.ts +1 -1
- package/dist/models/deactivate-payment-reminder-request-dto.js +1 -1
- 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/get-bank-account-response-class.d.ts +1 -1
- package/dist/models/get-bank-account-response-class.js +1 -1
- package/dist/models/get-bank-transactions-response-class.d.ts +1 -1
- package/dist/models/get-bank-transactions-response-class.js +1 -1
- 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-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 +1 -1
- package/dist/models/get-refund-response-class.js +1 -1
- package/dist/models/get-request-dto.d.ts +2 -2
- package/dist/models/get-request-dto.js +1 -1
- package/dist/models/get-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/get-tenant-bank-account-response-class.js +1 -1
- package/dist/models/index.d.ts +29 -0
- package/dist/models/index.js +29 -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 +44 -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/inline-response200.d.ts +1 -1
- package/dist/models/inline-response200.js +1 -1
- package/dist/models/inline-response503.d.ts +1 -1
- package/dist/models/inline-response503.js +1 -1
- package/dist/models/link-bank-transaction-request-dto-rest.d.ts +1 -1
- package/dist/models/link-bank-transaction-request-dto-rest.js +1 -1
- 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 +1 -1
- package/dist/models/list-bank-transactions-response-class.js +1 -1
- 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 +1 -1
- package/dist/models/list-refunds-response-class.js +1 -1
- package/dist/models/list-tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/list-tenant-bank-account-response-class.js +1 -1
- package/dist/models/payment-class.d.ts +103 -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 +112 -0
- package/dist/models/payment-reminder-class.js +36 -0
- package/dist/models/primary-bank-account-response-class.d.ts +1 -1
- package/dist/models/primary-bank-account-response-class.js +1 -1
- package/dist/models/refund-class.d.ts +1 -1
- package/dist/models/refund-class.js +1 -1
- package/dist/models/sepa-direct-dto.d.ts +24 -0
- package/dist/models/sepa-direct-dto.js +15 -0
- package/dist/models/set-primary-bank-account-request-dto-rest.d.ts +1 -1
- package/dist/models/set-primary-bank-account-request-dto-rest.js +1 -1
- 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/tenant-bank-account-response-class.d.ts +1 -1
- package/dist/models/tenant-bank-account-response-class.js +1 -1
- package/dist/models/transaction-class.d.ts +1 -1
- package/dist/models/transaction-class.js +1 -1
- package/dist/models/unlink-bank-transaction-request-dto-rest.d.ts +1 -1
- package/dist/models/unlink-bank-transaction-request-dto-rest.js +1 -1
- package/dist/models/update-bank-account-request-dto-rest.d.ts +30 -0
- package/dist/models/update-bank-account-request-dto-rest.js +15 -0
- package/dist/models/update-bank-account-request-dto.d.ts +36 -0
- package/dist/models/update-bank-account-request-dto.js +15 -0
- package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +1 -1
- package/dist/models/update-tenant-bank-account-rest-request-dto.js +1 -1
- package/dist/models/validate-pspconfig-request-dto.d.ts +9 -2
- package/dist/models/validate-pspconfig-request-dto.js +8 -1
- package/index.ts +1 -1
- package/models/bank-account-class.ts +13 -1
- package/models/bank-transaction-response-class.ts +1 -1
- 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 +17 -5
- package/models/create-payment-method-response-class.ts +31 -0
- package/models/create-payment-reminder-request-dto.ts +1 -1
- package/models/create-payment-request-dto.ts +4 -4
- package/models/create-payment-response-class.ts +31 -0
- package/models/create-psp-payment-method-request-dto.ts +70 -0
- package/models/create-refund-request-dto.ts +1 -1
- package/models/create-refund-response-class.ts +1 -1
- package/models/create-tenant-bank-account-request-dto.ts +1 -1
- package/models/create-tenant-bank-account-response-class.ts +1 -1
- package/models/deactivate-payment-reminder-request-dto.ts +1 -1
- package/models/deactivate-payment-reminder-response-class.ts +31 -0
- package/models/get-bank-account-response-class.ts +1 -1
- package/models/get-bank-transactions-response-class.ts +1 -1
- package/models/get-payment-method-response-class.ts +31 -0
- package/models/get-payment-response-class.ts +31 -0
- package/models/get-refund-response-class.ts +1 -1
- package/models/get-request-dto.ts +2 -2
- package/models/get-tenant-bank-account-response-class.ts +1 -1
- package/models/index.ts +29 -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 +50 -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/inline-response200.ts +1 -1
- package/models/inline-response503.ts +1 -1
- package/models/link-bank-transaction-request-dto-rest.ts +1 -1
- package/models/list-bank-accounts-response-class.ts +37 -0
- package/models/list-bank-transactions-response-class.ts +1 -1
- 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 +1 -1
- package/models/list-tenant-bank-account-response-class.ts +1 -1
- package/models/payment-class.ts +109 -0
- package/models/payment-method-class.ts +72 -0
- package/models/payment-reminder-class.ts +122 -0
- package/models/primary-bank-account-response-class.ts +1 -1
- package/models/refund-class.ts +1 -1
- package/models/sepa-direct-dto.ts +30 -0
- package/models/set-primary-bank-account-request-dto-rest.ts +1 -1
- package/models/symphony-profile-limited-response-dto.ts +48 -0
- package/models/tenant-bank-account-response-class.ts +1 -1
- package/models/transaction-class.ts +1 -1
- package/models/unlink-bank-transaction-request-dto-rest.ts +1 -1
- package/models/update-bank-account-request-dto-rest.ts +36 -0
- package/models/update-bank-account-request-dto.ts +42 -0
- package/models/update-tenant-bank-account-rest-request-dto.ts +1 -1
- package/models/validate-pspconfig-request-dto.ts +12 -2
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -20,32 +20,61 @@ git_push.sh
|
|
|
20
20
|
index.ts
|
|
21
21
|
models/bank-account-class.ts
|
|
22
22
|
models/bank-transaction-response-class.ts
|
|
23
|
+
models/billing-profile-dto.ts
|
|
24
|
+
models/billing-profile-limited-response-dto.ts
|
|
25
|
+
models/complete-braintree-payment-setup-request-dto.ts
|
|
26
|
+
models/complete-payment-setup-request-dto.ts
|
|
27
|
+
models/complete-payment-setup-response-class.ts
|
|
28
|
+
models/complete-stripe-payment-setup-request-dto.ts
|
|
23
29
|
models/create-bank-account-request-dto.ts
|
|
30
|
+
models/create-payment-method-response-class.ts
|
|
24
31
|
models/create-payment-reminder-request-dto.ts
|
|
25
32
|
models/create-payment-request-dto.ts
|
|
33
|
+
models/create-payment-response-class.ts
|
|
34
|
+
models/create-psp-payment-method-request-dto.ts
|
|
26
35
|
models/create-refund-request-dto.ts
|
|
27
36
|
models/create-refund-response-class.ts
|
|
28
37
|
models/create-tenant-bank-account-request-dto.ts
|
|
29
38
|
models/create-tenant-bank-account-response-class.ts
|
|
30
39
|
models/deactivate-payment-reminder-request-dto.ts
|
|
40
|
+
models/deactivate-payment-reminder-response-class.ts
|
|
31
41
|
models/get-bank-account-response-class.ts
|
|
32
42
|
models/get-bank-transactions-response-class.ts
|
|
43
|
+
models/get-payment-method-response-class.ts
|
|
44
|
+
models/get-payment-response-class.ts
|
|
33
45
|
models/get-refund-response-class.ts
|
|
34
46
|
models/get-request-dto.ts
|
|
35
47
|
models/get-tenant-bank-account-response-class.ts
|
|
36
48
|
models/index.ts
|
|
49
|
+
models/initiate-braintree-payment-setup-request-dto.ts
|
|
50
|
+
models/initiate-braintree-payment-setup-response-class.ts
|
|
51
|
+
models/initiate-payment-setup-request-dto.ts
|
|
52
|
+
models/initiate-payment-setup-response-class.ts
|
|
53
|
+
models/initiate-stripe-payment-setup-request-dto.ts
|
|
54
|
+
models/initiate-stripe-payment-setup-response-class.ts
|
|
37
55
|
models/inline-response200.ts
|
|
38
56
|
models/inline-response503.ts
|
|
39
57
|
models/link-bank-transaction-request-dto-rest.ts
|
|
58
|
+
models/list-bank-accounts-response-class.ts
|
|
40
59
|
models/list-bank-transactions-response-class.ts
|
|
60
|
+
models/list-payment-methods-response-class.ts
|
|
61
|
+
models/list-payment-reminders-response-class.ts
|
|
62
|
+
models/list-payments-response-class.ts
|
|
41
63
|
models/list-refunds-response-class.ts
|
|
42
64
|
models/list-tenant-bank-account-response-class.ts
|
|
65
|
+
models/payment-class.ts
|
|
66
|
+
models/payment-method-class.ts
|
|
67
|
+
models/payment-reminder-class.ts
|
|
43
68
|
models/primary-bank-account-response-class.ts
|
|
44
69
|
models/refund-class.ts
|
|
70
|
+
models/sepa-direct-dto.ts
|
|
45
71
|
models/set-primary-bank-account-request-dto-rest.ts
|
|
72
|
+
models/symphony-profile-limited-response-dto.ts
|
|
46
73
|
models/tenant-bank-account-response-class.ts
|
|
47
74
|
models/transaction-class.ts
|
|
48
75
|
models/unlink-bank-transaction-request-dto-rest.ts
|
|
76
|
+
models/update-bank-account-request-dto-rest.ts
|
|
77
|
+
models/update-bank-account-request-dto.ts
|
|
49
78
|
models/update-tenant-bank-account-rest-request-dto.ts
|
|
50
79
|
models/validate-pspconfig-request-dto.ts
|
|
51
80
|
package.json
|
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.13.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk-node@1.13.1-beta.19 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk-node@1.13.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk-node@1.13.1-beta.19
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -25,7 +25,11 @@ import { CreateBankAccountRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { GetBankAccountResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
+
import { ListBankAccountsResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
28
30
|
import { SetPrimaryBankAccountRequestDtoRest } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { UpdateBankAccountRequestDtoRest } from '../models';
|
|
29
33
|
// URLSearchParams not necessarily used
|
|
30
34
|
// @ts-ignore
|
|
31
35
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -295,6 +299,57 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
295
299
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
296
300
|
localVarRequestOptions.data = serializeDataIfNeeded(setPrimaryBankAccountRequestDtoRest, localVarRequestOptions, configuration)
|
|
297
301
|
|
|
302
|
+
return {
|
|
303
|
+
url: toPathString(localVarUrlObj),
|
|
304
|
+
options: localVarRequestOptions,
|
|
305
|
+
};
|
|
306
|
+
},
|
|
307
|
+
/**
|
|
308
|
+
* Update a bank account by code
|
|
309
|
+
* @summary Update the Update bank account
|
|
310
|
+
* @param {string} code Unique identifier for the object.
|
|
311
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
312
|
+
* @param {string} [authorization] Bearer Token
|
|
313
|
+
* @param {*} [options] Override http request option.
|
|
314
|
+
* @throws {RequiredError}
|
|
315
|
+
*/
|
|
316
|
+
updateBankAccount: async (code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
317
|
+
// verify required parameter 'code' is not null or undefined
|
|
318
|
+
assertParamExists('updateBankAccount', 'code', code)
|
|
319
|
+
// verify required parameter 'updateBankAccountRequestDtoRest' is not null or undefined
|
|
320
|
+
assertParamExists('updateBankAccount', 'updateBankAccountRequestDtoRest', updateBankAccountRequestDtoRest)
|
|
321
|
+
const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
|
|
322
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
323
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
324
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
325
|
+
let baseOptions;
|
|
326
|
+
let baseAccessToken;
|
|
327
|
+
if (configuration) {
|
|
328
|
+
baseOptions = configuration.baseOptions;
|
|
329
|
+
baseAccessToken = configuration.accessToken;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
333
|
+
const localVarHeaderParameter = {} as any;
|
|
334
|
+
const localVarQueryParameter = {} as any;
|
|
335
|
+
|
|
336
|
+
// authentication bearer required
|
|
337
|
+
// http bearer authentication required
|
|
338
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
339
|
+
|
|
340
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
341
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
347
|
+
|
|
348
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
349
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
350
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
351
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBankAccountRequestDtoRest, localVarRequestOptions, configuration)
|
|
352
|
+
|
|
298
353
|
return {
|
|
299
354
|
url: toPathString(localVarUrlObj),
|
|
300
355
|
options: localVarRequestOptions,
|
|
@@ -318,7 +373,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
318
373
|
* @param {*} [options] Override http request option.
|
|
319
374
|
* @throws {RequiredError}
|
|
320
375
|
*/
|
|
321
|
-
async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
376
|
+
async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
322
377
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
|
|
323
378
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
324
379
|
},
|
|
@@ -360,7 +415,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
360
415
|
* @param {*} [options] Override http request option.
|
|
361
416
|
* @throws {RequiredError}
|
|
362
417
|
*/
|
|
363
|
-
async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
418
|
+
async listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankAccountsResponseClass>> {
|
|
364
419
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
365
420
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
366
421
|
},
|
|
@@ -373,10 +428,23 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
373
428
|
* @param {*} [options] Override http request option.
|
|
374
429
|
* @throws {RequiredError}
|
|
375
430
|
*/
|
|
376
|
-
async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
431
|
+
async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
377
432
|
const localVarAxiosArgs = await localVarAxiosParamCreator.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options);
|
|
378
433
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
379
434
|
},
|
|
435
|
+
/**
|
|
436
|
+
* Update a bank account by code
|
|
437
|
+
* @summary Update the Update bank account
|
|
438
|
+
* @param {string} code Unique identifier for the object.
|
|
439
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
440
|
+
* @param {string} [authorization] Bearer Token
|
|
441
|
+
* @param {*} [options] Override http request option.
|
|
442
|
+
* @throws {RequiredError}
|
|
443
|
+
*/
|
|
444
|
+
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
445
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options);
|
|
446
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
447
|
+
},
|
|
380
448
|
}
|
|
381
449
|
};
|
|
382
450
|
|
|
@@ -395,7 +463,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
395
463
|
* @param {*} [options] Override http request option.
|
|
396
464
|
* @throws {RequiredError}
|
|
397
465
|
*/
|
|
398
|
-
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
466
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
|
|
399
467
|
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
400
468
|
},
|
|
401
469
|
/**
|
|
@@ -434,7 +502,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
434
502
|
* @param {*} [options] Override http request option.
|
|
435
503
|
* @throws {RequiredError}
|
|
436
504
|
*/
|
|
437
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
505
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
|
|
438
506
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
439
507
|
},
|
|
440
508
|
/**
|
|
@@ -446,9 +514,21 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
446
514
|
* @param {*} [options] Override http request option.
|
|
447
515
|
* @throws {RequiredError}
|
|
448
516
|
*/
|
|
449
|
-
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
517
|
+
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object> {
|
|
450
518
|
return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
451
519
|
},
|
|
520
|
+
/**
|
|
521
|
+
* Update a bank account by code
|
|
522
|
+
* @summary Update the Update bank account
|
|
523
|
+
* @param {string} code Unique identifier for the object.
|
|
524
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
525
|
+
* @param {string} [authorization] Bearer Token
|
|
526
|
+
* @param {*} [options] Override http request option.
|
|
527
|
+
* @throws {RequiredError}
|
|
528
|
+
*/
|
|
529
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object> {
|
|
530
|
+
return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
531
|
+
},
|
|
452
532
|
};
|
|
453
533
|
};
|
|
454
534
|
|
|
@@ -606,6 +686,34 @@ export interface BankAccountsApiSetPrimaryBankAccountRequest {
|
|
|
606
686
|
readonly authorization?: string
|
|
607
687
|
}
|
|
608
688
|
|
|
689
|
+
/**
|
|
690
|
+
* Request parameters for updateBankAccount operation in BankAccountsApi.
|
|
691
|
+
* @export
|
|
692
|
+
* @interface BankAccountsApiUpdateBankAccountRequest
|
|
693
|
+
*/
|
|
694
|
+
export interface BankAccountsApiUpdateBankAccountRequest {
|
|
695
|
+
/**
|
|
696
|
+
* Unique identifier for the object.
|
|
697
|
+
* @type {string}
|
|
698
|
+
* @memberof BankAccountsApiUpdateBankAccount
|
|
699
|
+
*/
|
|
700
|
+
readonly code: string
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
*
|
|
704
|
+
* @type {UpdateBankAccountRequestDtoRest}
|
|
705
|
+
* @memberof BankAccountsApiUpdateBankAccount
|
|
706
|
+
*/
|
|
707
|
+
readonly updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest
|
|
708
|
+
|
|
709
|
+
/**
|
|
710
|
+
* Bearer Token
|
|
711
|
+
* @type {string}
|
|
712
|
+
* @memberof BankAccountsApiUpdateBankAccount
|
|
713
|
+
*/
|
|
714
|
+
readonly authorization?: string
|
|
715
|
+
}
|
|
716
|
+
|
|
609
717
|
/**
|
|
610
718
|
* BankAccountsApi - object-oriented interface
|
|
611
719
|
* @export
|
|
@@ -672,4 +780,16 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
672
780
|
public setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig) {
|
|
673
781
|
return BankAccountsApiFp(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
674
782
|
}
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Update a bank account by code
|
|
786
|
+
* @summary Update the Update bank account
|
|
787
|
+
* @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
|
|
788
|
+
* @param {*} [options] Override http request option.
|
|
789
|
+
* @throws {RequiredError}
|
|
790
|
+
* @memberof BankAccountsApi
|
|
791
|
+
*/
|
|
792
|
+
public updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
793
|
+
return BankAccountsApiFp(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
794
|
+
}
|
|
675
795
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -381,7 +381,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
381
381
|
* @param {*} [options] Override http request option.
|
|
382
382
|
* @throws {RequiredError}
|
|
383
383
|
*/
|
|
384
|
-
async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
384
|
+
async listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBankTransactionsResponseClass>> {
|
|
385
385
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
386
386
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
387
387
|
},
|
|
@@ -457,7 +457,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
457
457
|
* @param {*} [options] Override http request option.
|
|
458
458
|
* @throws {RequiredError}
|
|
459
459
|
*/
|
|
460
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<
|
|
460
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
|
|
461
461
|
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
462
462
|
},
|
|
463
463
|
/**
|
package/api/default-api.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -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),
|
|
@@ -82,18 +90,16 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
82
90
|
* @summary Retrieve the payment method
|
|
83
91
|
* @param {string} code
|
|
84
92
|
* @param {string} code2 Unique identifier for the object.
|
|
85
|
-
* @param {string} expand Fields to expand response by
|
|
86
93
|
* @param {string} [authorization] Bearer Token
|
|
94
|
+
* @param {string} [expand] Fields to expand response by
|
|
87
95
|
* @param {*} [options] Override http request option.
|
|
88
96
|
* @throws {RequiredError}
|
|
89
97
|
*/
|
|
90
|
-
getPaymentMethod: async (code: string, code2: string,
|
|
98
|
+
getPaymentMethod: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
91
99
|
// verify required parameter 'code' is not null or undefined
|
|
92
100
|
assertParamExists('getPaymentMethod', 'code', code)
|
|
93
101
|
// verify required parameter 'code2' is not null or undefined
|
|
94
102
|
assertParamExists('getPaymentMethod', 'code2', code2)
|
|
95
|
-
// verify required parameter 'expand' is not null or undefined
|
|
96
|
-
assertParamExists('getPaymentMethod', 'expand', expand)
|
|
97
103
|
const localVarPath = `/paymentservice/v1/payment-methods/{code}`
|
|
98
104
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
99
105
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -225,13 +231,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
225
231
|
/**
|
|
226
232
|
* 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.
|
|
227
233
|
* @summary Create the payment method
|
|
228
|
-
* @param {
|
|
234
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
229
235
|
* @param {string} [authorization] Bearer Token
|
|
230
236
|
* @param {*} [options] Override http request option.
|
|
231
237
|
* @throws {RequiredError}
|
|
232
238
|
*/
|
|
233
|
-
async createPaymentMethod(
|
|
234
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(
|
|
239
|
+
async createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>> {
|
|
240
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options);
|
|
235
241
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
236
242
|
},
|
|
237
243
|
/**
|
|
@@ -239,13 +245,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
239
245
|
* @summary Retrieve the payment method
|
|
240
246
|
* @param {string} code
|
|
241
247
|
* @param {string} code2 Unique identifier for the object.
|
|
242
|
-
* @param {string} expand Fields to expand response by
|
|
243
248
|
* @param {string} [authorization] Bearer Token
|
|
249
|
+
* @param {string} [expand] Fields to expand response by
|
|
244
250
|
* @param {*} [options] Override http request option.
|
|
245
251
|
* @throws {RequiredError}
|
|
246
252
|
*/
|
|
247
|
-
async getPaymentMethod(code: string, code2: string,
|
|
248
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, code2,
|
|
253
|
+
async getPaymentMethod(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodResponseClass>> {
|
|
254
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, code2, authorization, expand, options);
|
|
249
255
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
250
256
|
},
|
|
251
257
|
/**
|
|
@@ -262,7 +268,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
262
268
|
* @param {*} [options] Override http request option.
|
|
263
269
|
* @throws {RequiredError}
|
|
264
270
|
*/
|
|
265
|
-
async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
271
|
+
async listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentMethodsResponseClass>> {
|
|
266
272
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
267
273
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
268
274
|
},
|
|
@@ -279,26 +285,26 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
279
285
|
/**
|
|
280
286
|
* 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.
|
|
281
287
|
* @summary Create the payment method
|
|
282
|
-
* @param {
|
|
288
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
283
289
|
* @param {string} [authorization] Bearer Token
|
|
284
290
|
* @param {*} [options] Override http request option.
|
|
285
291
|
* @throws {RequiredError}
|
|
286
292
|
*/
|
|
287
|
-
createPaymentMethod(
|
|
288
|
-
return localVarFp.createPaymentMethod(
|
|
293
|
+
createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass> {
|
|
294
|
+
return localVarFp.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
289
295
|
},
|
|
290
296
|
/**
|
|
291
297
|
* Retrieves the details of a payment method that was previously created. Supply the unique payment method code that was returned when you created the payment method and Emil Api will return the corresponding payment method information.
|
|
292
298
|
* @summary Retrieve the payment method
|
|
293
299
|
* @param {string} code
|
|
294
300
|
* @param {string} code2 Unique identifier for the object.
|
|
295
|
-
* @param {string} expand Fields to expand response by
|
|
296
301
|
* @param {string} [authorization] Bearer Token
|
|
302
|
+
* @param {string} [expand] Fields to expand response by
|
|
297
303
|
* @param {*} [options] Override http request option.
|
|
298
304
|
* @throws {RequiredError}
|
|
299
305
|
*/
|
|
300
|
-
getPaymentMethod(code: string, code2: string,
|
|
301
|
-
return localVarFp.getPaymentMethod(code, code2,
|
|
306
|
+
getPaymentMethod(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPaymentMethodResponseClass> {
|
|
307
|
+
return localVarFp.getPaymentMethod(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
|
|
302
308
|
},
|
|
303
309
|
/**
|
|
304
310
|
* 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.
|
|
@@ -314,7 +320,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
314
320
|
* @param {*} [options] Override http request option.
|
|
315
321
|
* @throws {RequiredError}
|
|
316
322
|
*/
|
|
317
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
323
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentMethodsResponseClass> {
|
|
318
324
|
return localVarFp.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
319
325
|
},
|
|
320
326
|
};
|
|
@@ -328,10 +334,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
328
334
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
329
335
|
/**
|
|
330
336
|
*
|
|
331
|
-
* @type {
|
|
337
|
+
* @type {CreatePspPaymentMethodRequestDto}
|
|
332
338
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
333
339
|
*/
|
|
334
|
-
readonly
|
|
340
|
+
readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto
|
|
335
341
|
|
|
336
342
|
/**
|
|
337
343
|
* Bearer Token
|
|
@@ -362,18 +368,18 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
|
362
368
|
readonly code2: string
|
|
363
369
|
|
|
364
370
|
/**
|
|
365
|
-
*
|
|
371
|
+
* Bearer Token
|
|
366
372
|
* @type {string}
|
|
367
373
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
368
374
|
*/
|
|
369
|
-
readonly
|
|
375
|
+
readonly authorization?: string
|
|
370
376
|
|
|
371
377
|
/**
|
|
372
|
-
*
|
|
378
|
+
* Fields to expand response by
|
|
373
379
|
* @type {string}
|
|
374
380
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
375
381
|
*/
|
|
376
|
-
readonly
|
|
382
|
+
readonly expand?: string
|
|
377
383
|
}
|
|
378
384
|
|
|
379
385
|
/**
|
|
@@ -455,7 +461,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
455
461
|
* @memberof PaymentMethodsApi
|
|
456
462
|
*/
|
|
457
463
|
public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
458
|
-
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.
|
|
464
|
+
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
459
465
|
}
|
|
460
466
|
|
|
461
467
|
/**
|
|
@@ -467,7 +473,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
467
473
|
* @memberof PaymentMethodsApi
|
|
468
474
|
*/
|
|
469
475
|
public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
470
|
-
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.code2, requestParameters.
|
|
476
|
+
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
471
477
|
}
|
|
472
478
|
|
|
473
479
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
4
|
* Emil Payment Service
|
|
5
|
-
* This service directly communicates with the various Payment Service Providers (PSPs)
|
|
5
|
+
* This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -24,6 +24,10 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
24
24
|
import { CreatePaymentReminderRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { DeactivatePaymentReminderRequestDto } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { DeactivatePaymentReminderResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListPaymentRemindersResponseClass } from '../models';
|
|
27
31
|
// URLSearchParams not necessarily used
|
|
28
32
|
// @ts-ignore
|
|
29
33
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -271,7 +275,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
271
275
|
* @param {*} [options] Override http request option.
|
|
272
276
|
* @throws {RequiredError}
|
|
273
277
|
*/
|
|
274
|
-
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<object>> {
|
|
275
279
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
|
|
276
280
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
277
281
|
},
|
|
@@ -284,7 +288,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
284
288
|
* @param {*} [options] Override http request option.
|
|
285
289
|
* @throws {RequiredError}
|
|
286
290
|
*/
|
|
287
|
-
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>> {
|
|
288
292
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
|
|
289
293
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
290
294
|
},
|
|
@@ -296,7 +300,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
296
300
|
* @param {*} [options] Override http request option.
|
|
297
301
|
* @throws {RequiredError}
|
|
298
302
|
*/
|
|
299
|
-
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<object>> {
|
|
300
304
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
|
|
301
305
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
302
306
|
},
|
|
@@ -314,7 +318,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
314
318
|
* @param {*} [options] Override http request option.
|
|
315
319
|
* @throws {RequiredError}
|
|
316
320
|
*/
|
|
317
|
-
async listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
321
|
+
async listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPaymentRemindersResponseClass>> {
|
|
318
322
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
319
323
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
320
324
|
},
|
|
@@ -336,7 +340,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
336
340
|
* @param {*} [options] Override http request option.
|
|
337
341
|
* @throws {RequiredError}
|
|
338
342
|
*/
|
|
339
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
343
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
|
|
340
344
|
return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
341
345
|
},
|
|
342
346
|
/**
|
|
@@ -348,7 +352,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
348
352
|
* @param {*} [options] Override http request option.
|
|
349
353
|
* @throws {RequiredError}
|
|
350
354
|
*/
|
|
351
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
355
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<DeactivatePaymentReminderResponseClass> {
|
|
352
356
|
return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
353
357
|
},
|
|
354
358
|
/**
|
|
@@ -359,7 +363,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
359
363
|
* @param {*} [options] Override http request option.
|
|
360
364
|
* @throws {RequiredError}
|
|
361
365
|
*/
|
|
362
|
-
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
366
|
+
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<object> {
|
|
363
367
|
return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
|
|
364
368
|
},
|
|
365
369
|
/**
|
|
@@ -376,7 +380,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
376
380
|
* @param {*} [options] Override http request option.
|
|
377
381
|
* @throws {RequiredError}
|
|
378
382
|
*/
|
|
379
|
-
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
383
|
+
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentRemindersResponseClass> {
|
|
380
384
|
return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
381
385
|
},
|
|
382
386
|
};
|