@emilgroup/payment-sdk 1.4.1-beta.18 → 1.4.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@1.4.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.4.1-beta.19 --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.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
|
/**
|
|
30
34
|
* BankAccountsApi - axios parameter creator
|
|
31
35
|
* @export
|
|
@@ -291,6 +295,57 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
291
295
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
292
296
|
localVarRequestOptions.data = serializeDataIfNeeded(setPrimaryBankAccountRequestDtoRest, localVarRequestOptions, configuration)
|
|
293
297
|
|
|
298
|
+
return {
|
|
299
|
+
url: toPathString(localVarUrlObj),
|
|
300
|
+
options: localVarRequestOptions,
|
|
301
|
+
};
|
|
302
|
+
},
|
|
303
|
+
/**
|
|
304
|
+
* Update a bank account by code
|
|
305
|
+
* @summary Update the Update bank account
|
|
306
|
+
* @param {string} code Unique identifier for the object.
|
|
307
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
308
|
+
* @param {string} [authorization] Bearer Token
|
|
309
|
+
* @param {*} [options] Override http request option.
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
*/
|
|
312
|
+
updateBankAccount: async (code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
313
|
+
// verify required parameter 'code' is not null or undefined
|
|
314
|
+
assertParamExists('updateBankAccount', 'code', code)
|
|
315
|
+
// verify required parameter 'updateBankAccountRequestDtoRest' is not null or undefined
|
|
316
|
+
assertParamExists('updateBankAccount', 'updateBankAccountRequestDtoRest', updateBankAccountRequestDtoRest)
|
|
317
|
+
const localVarPath = `/paymentservice/v1/bank-accounts/{code}`
|
|
318
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
319
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
320
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
321
|
+
let baseOptions;
|
|
322
|
+
let baseAccessToken;
|
|
323
|
+
if (configuration) {
|
|
324
|
+
baseOptions = configuration.baseOptions;
|
|
325
|
+
baseAccessToken = configuration.accessToken;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
329
|
+
const localVarHeaderParameter = {} as any;
|
|
330
|
+
const localVarQueryParameter = {} as any;
|
|
331
|
+
|
|
332
|
+
// authentication bearer required
|
|
333
|
+
// http bearer authentication required
|
|
334
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
335
|
+
|
|
336
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
337
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
342
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
343
|
+
|
|
344
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
345
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
346
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
347
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBankAccountRequestDtoRest, localVarRequestOptions, configuration)
|
|
348
|
+
|
|
294
349
|
return {
|
|
295
350
|
url: toPathString(localVarUrlObj),
|
|
296
351
|
options: localVarRequestOptions,
|
|
@@ -314,7 +369,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
314
369
|
* @param {*} [options] Override http request option.
|
|
315
370
|
* @throws {RequiredError}
|
|
316
371
|
*/
|
|
317
|
-
async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
372
|
+
async createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
318
373
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createBankAccount(createBankAccountRequestDto, authorization, options);
|
|
319
374
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
320
375
|
},
|
|
@@ -356,7 +411,7 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
356
411
|
* @param {*} [options] Override http request option.
|
|
357
412
|
* @throws {RequiredError}
|
|
358
413
|
*/
|
|
359
|
-
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<
|
|
414
|
+
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>> {
|
|
360
415
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
361
416
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
362
417
|
},
|
|
@@ -369,10 +424,23 @@ export const BankAccountsApiFp = function(configuration?: Configuration) {
|
|
|
369
424
|
* @param {*} [options] Override http request option.
|
|
370
425
|
* @throws {RequiredError}
|
|
371
426
|
*/
|
|
372
|
-
async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
427
|
+
async setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
373
428
|
const localVarAxiosArgs = await localVarAxiosParamCreator.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options);
|
|
374
429
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
375
430
|
},
|
|
431
|
+
/**
|
|
432
|
+
* Update a bank account by code
|
|
433
|
+
* @summary Update the Update bank account
|
|
434
|
+
* @param {string} code Unique identifier for the object.
|
|
435
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
436
|
+
* @param {string} [authorization] Bearer Token
|
|
437
|
+
* @param {*} [options] Override http request option.
|
|
438
|
+
* @throws {RequiredError}
|
|
439
|
+
*/
|
|
440
|
+
async updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
441
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options);
|
|
442
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
443
|
+
},
|
|
376
444
|
}
|
|
377
445
|
};
|
|
378
446
|
|
|
@@ -391,7 +459,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
391
459
|
* @param {*} [options] Override http request option.
|
|
392
460
|
* @throws {RequiredError}
|
|
393
461
|
*/
|
|
394
|
-
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
462
|
+
createBankAccount(createBankAccountRequestDto: CreateBankAccountRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
|
|
395
463
|
return localVarFp.createBankAccount(createBankAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
396
464
|
},
|
|
397
465
|
/**
|
|
@@ -430,7 +498,7 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
430
498
|
* @param {*} [options] Override http request option.
|
|
431
499
|
* @throws {RequiredError}
|
|
432
500
|
*/
|
|
433
|
-
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
501
|
+
listBankAccounts(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListBankAccountsResponseClass> {
|
|
434
502
|
return localVarFp.listBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
435
503
|
},
|
|
436
504
|
/**
|
|
@@ -442,9 +510,21 @@ export const BankAccountsApiFactory = function (configuration?: Configuration, b
|
|
|
442
510
|
* @param {*} [options] Override http request option.
|
|
443
511
|
* @throws {RequiredError}
|
|
444
512
|
*/
|
|
445
|
-
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<
|
|
513
|
+
setPrimaryBankAccount(code: string, setPrimaryBankAccountRequestDtoRest: SetPrimaryBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object> {
|
|
446
514
|
return localVarFp.setPrimaryBankAccount(code, setPrimaryBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
447
515
|
},
|
|
516
|
+
/**
|
|
517
|
+
* Update a bank account by code
|
|
518
|
+
* @summary Update the Update bank account
|
|
519
|
+
* @param {string} code Unique identifier for the object.
|
|
520
|
+
* @param {UpdateBankAccountRequestDtoRest} updateBankAccountRequestDtoRest
|
|
521
|
+
* @param {string} [authorization] Bearer Token
|
|
522
|
+
* @param {*} [options] Override http request option.
|
|
523
|
+
* @throws {RequiredError}
|
|
524
|
+
*/
|
|
525
|
+
updateBankAccount(code: string, updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest, authorization?: string, options?: any): AxiosPromise<object> {
|
|
526
|
+
return localVarFp.updateBankAccount(code, updateBankAccountRequestDtoRest, authorization, options).then((request) => request(axios, basePath));
|
|
527
|
+
},
|
|
448
528
|
};
|
|
449
529
|
};
|
|
450
530
|
|
|
@@ -602,6 +682,34 @@ export interface BankAccountsApiSetPrimaryBankAccountRequest {
|
|
|
602
682
|
readonly authorization?: string
|
|
603
683
|
}
|
|
604
684
|
|
|
685
|
+
/**
|
|
686
|
+
* Request parameters for updateBankAccount operation in BankAccountsApi.
|
|
687
|
+
* @export
|
|
688
|
+
* @interface BankAccountsApiUpdateBankAccountRequest
|
|
689
|
+
*/
|
|
690
|
+
export interface BankAccountsApiUpdateBankAccountRequest {
|
|
691
|
+
/**
|
|
692
|
+
* Unique identifier for the object.
|
|
693
|
+
* @type {string}
|
|
694
|
+
* @memberof BankAccountsApiUpdateBankAccount
|
|
695
|
+
*/
|
|
696
|
+
readonly code: string
|
|
697
|
+
|
|
698
|
+
/**
|
|
699
|
+
*
|
|
700
|
+
* @type {UpdateBankAccountRequestDtoRest}
|
|
701
|
+
* @memberof BankAccountsApiUpdateBankAccount
|
|
702
|
+
*/
|
|
703
|
+
readonly updateBankAccountRequestDtoRest: UpdateBankAccountRequestDtoRest
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Bearer Token
|
|
707
|
+
* @type {string}
|
|
708
|
+
* @memberof BankAccountsApiUpdateBankAccount
|
|
709
|
+
*/
|
|
710
|
+
readonly authorization?: string
|
|
711
|
+
}
|
|
712
|
+
|
|
605
713
|
/**
|
|
606
714
|
* BankAccountsApi - object-oriented interface
|
|
607
715
|
* @export
|
|
@@ -668,4 +776,16 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
668
776
|
public setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig) {
|
|
669
777
|
return BankAccountsApiFp(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
670
778
|
}
|
|
779
|
+
|
|
780
|
+
/**
|
|
781
|
+
* Update a bank account by code
|
|
782
|
+
* @summary Update the Update bank account
|
|
783
|
+
* @param {BankAccountsApiUpdateBankAccountRequest} requestParameters Request parameters.
|
|
784
|
+
* @param {*} [options] Override http request option.
|
|
785
|
+
* @throws {RequiredError}
|
|
786
|
+
* @memberof BankAccountsApi
|
|
787
|
+
*/
|
|
788
|
+
public updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
789
|
+
return BankAccountsApiFp(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
790
|
+
}
|
|
671
791
|
}
|
|
@@ -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
|
|
@@ -376,7 +376,7 @@ export const BankTransactionApiFp = function(configuration?: Configuration) {
|
|
|
376
376
|
* @param {*} [options] Override http request option.
|
|
377
377
|
* @throws {RequiredError}
|
|
378
378
|
*/
|
|
379
|
-
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<
|
|
379
|
+
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>> {
|
|
380
380
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
381
381
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
382
382
|
},
|
|
@@ -452,7 +452,7 @@ export const BankTransactionApiFactory = function (configuration?: Configuration
|
|
|
452
452
|
* @param {*} [options] Override http request option.
|
|
453
453
|
* @throws {RequiredError}
|
|
454
454
|
*/
|
|
455
|
-
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<
|
|
455
|
+
listBankTransactions(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: 'bankAccount' | 'transaction', filters?: any, options?: any): AxiosPromise<ListBankTransactionsResponseClass> {
|
|
456
456
|
return localVarFp.listBankTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
457
457
|
},
|
|
458
458
|
/**
|
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
|
/**
|
|
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),
|
|
@@ -78,18 +86,16 @@ export const PaymentMethodsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
78
86
|
* @summary Retrieve the payment method
|
|
79
87
|
* @param {string} code
|
|
80
88
|
* @param {string} code2 Unique identifier for the object.
|
|
81
|
-
* @param {string} expand Fields to expand response by
|
|
82
89
|
* @param {string} [authorization] Bearer Token
|
|
90
|
+
* @param {string} [expand] Fields to expand response by
|
|
83
91
|
* @param {*} [options] Override http request option.
|
|
84
92
|
* @throws {RequiredError}
|
|
85
93
|
*/
|
|
86
|
-
getPaymentMethod: async (code: string, code2: string,
|
|
94
|
+
getPaymentMethod: async (code: string, code2: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
87
95
|
// verify required parameter 'code' is not null or undefined
|
|
88
96
|
assertParamExists('getPaymentMethod', 'code', code)
|
|
89
97
|
// verify required parameter 'code2' is not null or undefined
|
|
90
98
|
assertParamExists('getPaymentMethod', 'code2', code2)
|
|
91
|
-
// verify required parameter 'expand' is not null or undefined
|
|
92
|
-
assertParamExists('getPaymentMethod', 'expand', expand)
|
|
93
99
|
const localVarPath = `/paymentservice/v1/payment-methods/{code}`
|
|
94
100
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
95
101
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -221,13 +227,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
221
227
|
/**
|
|
222
228
|
* 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.
|
|
223
229
|
* @summary Create the payment method
|
|
224
|
-
* @param {
|
|
230
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
225
231
|
* @param {string} [authorization] Bearer Token
|
|
226
232
|
* @param {*} [options] Override http request option.
|
|
227
233
|
* @throws {RequiredError}
|
|
228
234
|
*/
|
|
229
|
-
async createPaymentMethod(
|
|
230
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(
|
|
235
|
+
async createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePaymentMethodResponseClass>> {
|
|
236
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options);
|
|
231
237
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
232
238
|
},
|
|
233
239
|
/**
|
|
@@ -235,13 +241,13 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
235
241
|
* @summary Retrieve the payment method
|
|
236
242
|
* @param {string} code
|
|
237
243
|
* @param {string} code2 Unique identifier for the object.
|
|
238
|
-
* @param {string} expand Fields to expand response by
|
|
239
244
|
* @param {string} [authorization] Bearer Token
|
|
245
|
+
* @param {string} [expand] Fields to expand response by
|
|
240
246
|
* @param {*} [options] Override http request option.
|
|
241
247
|
* @throws {RequiredError}
|
|
242
248
|
*/
|
|
243
|
-
async getPaymentMethod(code: string, code2: string,
|
|
244
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, code2,
|
|
249
|
+
async getPaymentMethod(code: string, code2: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPaymentMethodResponseClass>> {
|
|
250
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPaymentMethod(code, code2, authorization, expand, options);
|
|
245
251
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
246
252
|
},
|
|
247
253
|
/**
|
|
@@ -258,7 +264,7 @@ export const PaymentMethodsApiFp = function(configuration?: Configuration) {
|
|
|
258
264
|
* @param {*} [options] Override http request option.
|
|
259
265
|
* @throws {RequiredError}
|
|
260
266
|
*/
|
|
261
|
-
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<
|
|
267
|
+
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>> {
|
|
262
268
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
263
269
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
264
270
|
},
|
|
@@ -275,26 +281,26 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
275
281
|
/**
|
|
276
282
|
* 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.
|
|
277
283
|
* @summary Create the payment method
|
|
278
|
-
* @param {
|
|
284
|
+
* @param {CreatePspPaymentMethodRequestDto} createPspPaymentMethodRequestDto
|
|
279
285
|
* @param {string} [authorization] Bearer Token
|
|
280
286
|
* @param {*} [options] Override http request option.
|
|
281
287
|
* @throws {RequiredError}
|
|
282
288
|
*/
|
|
283
|
-
createPaymentMethod(
|
|
284
|
-
return localVarFp.createPaymentMethod(
|
|
289
|
+
createPaymentMethod(createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePaymentMethodResponseClass> {
|
|
290
|
+
return localVarFp.createPaymentMethod(createPspPaymentMethodRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
285
291
|
},
|
|
286
292
|
/**
|
|
287
293
|
* 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.
|
|
288
294
|
* @summary Retrieve the payment method
|
|
289
295
|
* @param {string} code
|
|
290
296
|
* @param {string} code2 Unique identifier for the object.
|
|
291
|
-
* @param {string} expand Fields to expand response by
|
|
292
297
|
* @param {string} [authorization] Bearer Token
|
|
298
|
+
* @param {string} [expand] Fields to expand response by
|
|
293
299
|
* @param {*} [options] Override http request option.
|
|
294
300
|
* @throws {RequiredError}
|
|
295
301
|
*/
|
|
296
|
-
getPaymentMethod(code: string, code2: string,
|
|
297
|
-
return localVarFp.getPaymentMethod(code, code2,
|
|
302
|
+
getPaymentMethod(code: string, code2: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPaymentMethodResponseClass> {
|
|
303
|
+
return localVarFp.getPaymentMethod(code, code2, authorization, expand, options).then((request) => request(axios, basePath));
|
|
298
304
|
},
|
|
299
305
|
/**
|
|
300
306
|
* 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.
|
|
@@ -310,7 +316,7 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
310
316
|
* @param {*} [options] Override http request option.
|
|
311
317
|
* @throws {RequiredError}
|
|
312
318
|
*/
|
|
313
|
-
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
319
|
+
listPaymentMethods(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentMethodsResponseClass> {
|
|
314
320
|
return localVarFp.listPaymentMethods(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
315
321
|
},
|
|
316
322
|
};
|
|
@@ -324,10 +330,10 @@ export const PaymentMethodsApiFactory = function (configuration?: Configuration,
|
|
|
324
330
|
export interface PaymentMethodsApiCreatePaymentMethodRequest {
|
|
325
331
|
/**
|
|
326
332
|
*
|
|
327
|
-
* @type {
|
|
333
|
+
* @type {CreatePspPaymentMethodRequestDto}
|
|
328
334
|
* @memberof PaymentMethodsApiCreatePaymentMethod
|
|
329
335
|
*/
|
|
330
|
-
readonly
|
|
336
|
+
readonly createPspPaymentMethodRequestDto: CreatePspPaymentMethodRequestDto
|
|
331
337
|
|
|
332
338
|
/**
|
|
333
339
|
* Bearer Token
|
|
@@ -358,18 +364,18 @@ export interface PaymentMethodsApiGetPaymentMethodRequest {
|
|
|
358
364
|
readonly code2: string
|
|
359
365
|
|
|
360
366
|
/**
|
|
361
|
-
*
|
|
367
|
+
* Bearer Token
|
|
362
368
|
* @type {string}
|
|
363
369
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
364
370
|
*/
|
|
365
|
-
readonly
|
|
371
|
+
readonly authorization?: string
|
|
366
372
|
|
|
367
373
|
/**
|
|
368
|
-
*
|
|
374
|
+
* Fields to expand response by
|
|
369
375
|
* @type {string}
|
|
370
376
|
* @memberof PaymentMethodsApiGetPaymentMethod
|
|
371
377
|
*/
|
|
372
|
-
readonly
|
|
378
|
+
readonly expand?: string
|
|
373
379
|
}
|
|
374
380
|
|
|
375
381
|
/**
|
|
@@ -451,7 +457,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
451
457
|
* @memberof PaymentMethodsApi
|
|
452
458
|
*/
|
|
453
459
|
public createPaymentMethod(requestParameters: PaymentMethodsApiCreatePaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
454
|
-
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.
|
|
460
|
+
return PaymentMethodsApiFp(this.configuration).createPaymentMethod(requestParameters.createPspPaymentMethodRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
455
461
|
}
|
|
456
462
|
|
|
457
463
|
/**
|
|
@@ -463,7 +469,7 @@ export class PaymentMethodsApi extends BaseAPI {
|
|
|
463
469
|
* @memberof PaymentMethodsApi
|
|
464
470
|
*/
|
|
465
471
|
public getPaymentMethod(requestParameters: PaymentMethodsApiGetPaymentMethodRequest, options?: AxiosRequestConfig) {
|
|
466
|
-
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.code2, requestParameters.
|
|
472
|
+
return PaymentMethodsApiFp(this.configuration).getPaymentMethod(requestParameters.code, requestParameters.code2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
467
473
|
}
|
|
468
474
|
|
|
469
475
|
/**
|
|
@@ -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
|
/**
|
|
28
32
|
* PaymentRemindersApi - axios parameter creator
|
|
29
33
|
* @export
|
|
@@ -267,7 +271,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
267
271
|
* @param {*} [options] Override http request option.
|
|
268
272
|
* @throws {RequiredError}
|
|
269
273
|
*/
|
|
270
|
-
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
274
|
+
async createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
271
275
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createPaymentReminder(createPaymentReminderRequestDto, authorization, options);
|
|
272
276
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
273
277
|
},
|
|
@@ -280,7 +284,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
280
284
|
* @param {*} [options] Override http request option.
|
|
281
285
|
* @throws {RequiredError}
|
|
282
286
|
*/
|
|
283
|
-
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
287
|
+
async deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeactivatePaymentReminderResponseClass>> {
|
|
284
288
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options);
|
|
285
289
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
286
290
|
},
|
|
@@ -292,7 +296,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
292
296
|
* @param {*} [options] Override http request option.
|
|
293
297
|
* @throws {RequiredError}
|
|
294
298
|
*/
|
|
295
|
-
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
299
|
+
async getPolicy(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
296
300
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, options);
|
|
297
301
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
298
302
|
},
|
|
@@ -310,7 +314,7 @@ export const PaymentRemindersApiFp = function(configuration?: Configuration) {
|
|
|
310
314
|
* @param {*} [options] Override http request option.
|
|
311
315
|
* @throws {RequiredError}
|
|
312
316
|
*/
|
|
313
|
-
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<
|
|
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<ListPaymentRemindersResponseClass>> {
|
|
314
318
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
315
319
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
316
320
|
},
|
|
@@ -332,7 +336,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
332
336
|
* @param {*} [options] Override http request option.
|
|
333
337
|
* @throws {RequiredError}
|
|
334
338
|
*/
|
|
335
|
-
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
339
|
+
createPaymentReminder(createPaymentReminderRequestDto: CreatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
|
|
336
340
|
return localVarFp.createPaymentReminder(createPaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
337
341
|
},
|
|
338
342
|
/**
|
|
@@ -344,7 +348,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
344
348
|
* @param {*} [options] Override http request option.
|
|
345
349
|
* @throws {RequiredError}
|
|
346
350
|
*/
|
|
347
|
-
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
351
|
+
deactivatePaymentReminder(code: string, deactivatePaymentReminderRequestDto: DeactivatePaymentReminderRequestDto, authorization?: string, options?: any): AxiosPromise<DeactivatePaymentReminderResponseClass> {
|
|
348
352
|
return localVarFp.deactivatePaymentReminder(code, deactivatePaymentReminderRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
349
353
|
},
|
|
350
354
|
/**
|
|
@@ -355,7 +359,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
355
359
|
* @param {*} [options] Override http request option.
|
|
356
360
|
* @throws {RequiredError}
|
|
357
361
|
*/
|
|
358
|
-
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<
|
|
362
|
+
getPolicy(code: string, authorization?: string, options?: any): AxiosPromise<object> {
|
|
359
363
|
return localVarFp.getPolicy(code, authorization, options).then((request) => request(axios, basePath));
|
|
360
364
|
},
|
|
361
365
|
/**
|
|
@@ -372,7 +376,7 @@ export const PaymentRemindersApiFactory = function (configuration?: Configuratio
|
|
|
372
376
|
* @param {*} [options] Override http request option.
|
|
373
377
|
* @throws {RequiredError}
|
|
374
378
|
*/
|
|
375
|
-
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<
|
|
379
|
+
listPaymentReminders(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPaymentRemindersResponseClass> {
|
|
376
380
|
return localVarFp.listPaymentReminders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
377
381
|
},
|
|
378
382
|
};
|