@emilgroup/payment-sdk 1.22.1-beta.83 → 1.22.1-beta.85
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 +13 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +48 -18
- package/api/bank-order-texts-api.ts +265 -0
- package/api/bank-orders-api.ts +40 -15
- package/api/bank-transaction-api.ts +181 -26
- package/api/billing-addresses-api.ts +40 -15
- package/api/credit-allocation-api.ts +24 -9
- package/api/exceeding-credits-api.ts +240 -6
- package/api/health-check-api.ts +1 -1
- package/api/ibanvalidator-api.ts +8 -3
- package/api/payment-methods-api.ts +24 -9
- package/api/payment-receipts-api.ts +40 -15
- package/api/payment-reminders-api.ts +32 -12
- package/api/payment-requests-api.ts +52 -27
- package/api/payment-setup-api.ts +16 -6
- package/api/payments-api.ts +46 -16
- package/api/payout-methods-api.ts +48 -18
- package/api/policy-payment-methods-api.ts +24 -9
- package/api/refunds-api.ts +24 -9
- package/api/tenant-bank-account-api.ts +40 -15
- package/api/webhooks-api.ts +2 -2
- package/api.ts +2 -0
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/bank-accounts-api.d.ts +6 -6
- package/dist/api/bank-accounts-api.js +82 -46
- package/dist/api/bank-order-texts-api.d.ts +144 -0
- package/dist/api/bank-order-texts-api.js +325 -0
- package/dist/api/bank-orders-api.d.ts +5 -5
- package/dist/api/bank-orders-api.js +67 -38
- package/dist/api/bank-transaction-api.d.ts +80 -14
- package/dist/api/bank-transaction-api.js +194 -52
- package/dist/api/billing-addresses-api.d.ts +5 -5
- package/dist/api/billing-addresses-api.js +71 -39
- package/dist/api/credit-allocation-api.d.ts +3 -3
- package/dist/api/credit-allocation-api.js +41 -23
- package/dist/api/exceeding-credits-api.d.ts +116 -2
- package/dist/api/exceeding-credits-api.js +226 -15
- package/dist/api/health-check-api.d.ts +1 -1
- package/dist/api/health-check-api.js +1 -1
- package/dist/api/ibanvalidator-api.d.ts +1 -1
- package/dist/api/ibanvalidator-api.js +15 -8
- package/dist/api/payment-methods-api.d.ts +3 -3
- package/dist/api/payment-methods-api.js +41 -23
- package/dist/api/payment-receipts-api.d.ts +5 -5
- package/dist/api/payment-receipts-api.js +67 -38
- package/dist/api/payment-reminders-api.d.ts +4 -4
- package/dist/api/payment-reminders-api.js +56 -31
- package/dist/api/payment-requests-api.d.ts +17 -17
- package/dist/api/payment-requests-api.js +76 -47
- package/dist/api/payment-setup-api.d.ts +2 -2
- package/dist/api/payment-setup-api.js +30 -16
- package/dist/api/payments-api.d.ts +4 -4
- package/dist/api/payments-api.js +62 -34
- package/dist/api/payout-methods-api.d.ts +6 -6
- package/dist/api/payout-methods-api.js +82 -46
- package/dist/api/policy-payment-methods-api.d.ts +3 -3
- package/dist/api/policy-payment-methods-api.js +41 -23
- package/dist/api/refunds-api.d.ts +3 -3
- package/dist/api/refunds-api.js +37 -22
- package/dist/api/tenant-bank-account-api.d.ts +5 -5
- package/dist/api/tenant-bank-account-api.js +67 -38
- package/dist/api/webhooks-api.d.ts +2 -2
- package/dist/api/webhooks-api.js +2 -2
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/bank-order-texts-class.d.ts +42 -0
- package/dist/models/bank-order-texts-class.js +15 -0
- package/dist/models/bank-transaction-class.d.ts +7 -0
- package/dist/models/bank-transaction-entity.d.ts +7 -0
- package/dist/models/bank-transaction-invoice-entity.d.ts +24 -0
- package/dist/models/create-exceeding-credit-request-dto.d.ts +48 -0
- package/dist/models/create-exceeding-credit-request-dto.js +15 -0
- package/dist/models/create-exceeding-credit-response-class.d.ts +25 -0
- package/dist/models/create-exceeding-credit-response-class.js +15 -0
- package/dist/models/create-payment-order-dto.d.ts +1 -1
- package/dist/models/create-payment-receipt-request-dto.d.ts +3 -3
- package/dist/models/create-payment-request-dto.d.ts +1 -1
- package/dist/models/create-payment-request-request-dto.d.ts +6 -0
- package/dist/models/create-return-premium-credits-request-dto.d.ts +24 -0
- package/dist/models/create-return-premium-credits-request-dto.js +15 -0
- package/dist/models/create-return-premium-credits-response-class.d.ts +25 -0
- package/dist/models/create-return-premium-credits-response-class.js +15 -0
- package/dist/models/credit-allocation-class.d.ts +6 -0
- package/dist/models/credit-allocation-entity.d.ts +6 -0
- package/dist/models/exceeding-credit-class.d.ts +25 -2
- package/dist/models/exceeding-credit-class.js +5 -1
- package/dist/models/exceeding-credit-entity.d.ts +31 -2
- package/dist/models/exceeding-credit-entity.js +5 -1
- package/dist/models/get-bank-order-texts-response-class.d.ts +25 -0
- package/dist/models/get-bank-order-texts-response-class.js +15 -0
- package/dist/models/index.d.ts +12 -0
- package/dist/models/index.js +12 -0
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +30 -0
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +15 -0
- package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +25 -0
- package/dist/models/link-bank-transaction-payment-requests-response-class.js +15 -0
- package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
- package/dist/models/list-exceeding-credits-response-class.d.ts +6 -18
- package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
- package/dist/models/list-payment-requests-response-class.d.ts +6 -18
- package/dist/models/list-payout-methods-response-class.d.ts +9 -9
- package/dist/models/list-refunds-response-class.d.ts +6 -18
- package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
- package/dist/models/payment-class.d.ts +2 -2
- package/dist/models/payment-entity.d.ts +1 -1
- package/dist/models/payment-receipt-class.d.ts +13 -1
- package/dist/models/payment-receipt-entity.d.ts +139 -0
- package/dist/models/payment-receipt-entity.js +20 -0
- package/dist/models/payment-request-class.d.ts +13 -6
- package/dist/models/payment-request-class.js +1 -0
- package/dist/models/payment-request-entity.d.ts +223 -0
- package/dist/models/payment-request-entity.js +39 -0
- package/dist/models/shared-transaction-class.d.ts +6 -0
- package/dist/models/transaction-entity.d.ts +6 -0
- package/dist/models/update-bank-order-texts-request-dto.d.ts +32 -0
- package/dist/models/update-bank-order-texts-request-dto.js +15 -0
- package/dist/models/update-bank-order-texts-response-class.d.ts +25 -0
- package/dist/models/update-bank-order-texts-response-class.js +15 -0
- package/models/bank-order-texts-class.ts +48 -0
- package/models/bank-transaction-class.ts +7 -0
- package/models/bank-transaction-entity.ts +7 -0
- package/models/bank-transaction-invoice-entity.ts +24 -0
- package/models/create-exceeding-credit-request-dto.ts +54 -0
- package/models/create-exceeding-credit-response-class.ts +31 -0
- package/models/create-payment-order-dto.ts +1 -1
- package/models/create-payment-receipt-request-dto.ts +3 -3
- package/models/create-payment-request-dto.ts +1 -1
- package/models/create-payment-request-request-dto.ts +6 -0
- package/models/create-return-premium-credits-request-dto.ts +30 -0
- package/models/create-return-premium-credits-response-class.ts +31 -0
- package/models/credit-allocation-class.ts +6 -0
- package/models/credit-allocation-entity.ts +6 -0
- package/models/exceeding-credit-class.ts +26 -2
- package/models/exceeding-credit-entity.ts +32 -2
- package/models/get-bank-order-texts-response-class.ts +31 -0
- package/models/index.ts +12 -0
- package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +36 -0
- package/models/link-bank-transaction-payment-requests-response-class.ts +31 -0
- package/models/list-billing-addresses-response-class.ts +9 -9
- package/models/list-exceeding-credits-response-class.ts +6 -18
- package/models/list-payment-receipts-response-class.ts +9 -9
- package/models/list-payment-requests-response-class.ts +6 -18
- package/models/list-payout-methods-response-class.ts +9 -9
- package/models/list-refunds-response-class.ts +6 -18
- package/models/payment-class-without-expand-properties.ts +2 -2
- package/models/payment-class.ts +2 -2
- package/models/payment-entity.ts +1 -1
- package/models/payment-receipt-class.ts +13 -1
- package/models/payment-receipt-entity.ts +148 -0
- package/models/payment-request-class.ts +13 -6
- package/models/payment-request-entity.ts +233 -0
- package/models/shared-transaction-class.ts +6 -0
- package/models/transaction-entity.ts +6 -0
- package/models/update-bank-order-texts-request-dto.ts +36 -0
- package/models/update-bank-order-texts-response-class.ts +31 -0
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
6
|
api/bank-accounts-api.ts
|
|
7
|
+
api/bank-order-texts-api.ts
|
|
7
8
|
api/bank-orders-api.ts
|
|
8
9
|
api/bank-transaction-api.ts
|
|
9
10
|
api/billing-addresses-api.ts
|
|
@@ -33,6 +34,7 @@ models/bank-account-class.ts
|
|
|
33
34
|
models/bank-data-class.ts
|
|
34
35
|
models/bank-order-class.ts
|
|
35
36
|
models/bank-order-entity.ts
|
|
37
|
+
models/bank-order-texts-class.ts
|
|
36
38
|
models/bank-order-xml-file-class.ts
|
|
37
39
|
models/bank-order-xml-file-entity.ts
|
|
38
40
|
models/bank-transaction-class-without-expand-properties.ts
|
|
@@ -60,6 +62,8 @@ models/create-billing-address-request-dto.ts
|
|
|
60
62
|
models/create-billing-address-response-class.ts
|
|
61
63
|
models/create-credit-allocation-request-dto.ts
|
|
62
64
|
models/create-credit-allocation-response-class.ts
|
|
65
|
+
models/create-exceeding-credit-request-dto.ts
|
|
66
|
+
models/create-exceeding-credit-response-class.ts
|
|
63
67
|
models/create-payment-method-response-class.ts
|
|
64
68
|
models/create-payment-order-dto.ts
|
|
65
69
|
models/create-payment-order-request-dto.ts
|
|
@@ -79,6 +83,8 @@ models/create-policy-payment-method-response-class.ts
|
|
|
79
83
|
models/create-psp-payment-method-request-dto.ts
|
|
80
84
|
models/create-refund-request-dto.ts
|
|
81
85
|
models/create-refund-response-class.ts
|
|
86
|
+
models/create-return-premium-credits-request-dto.ts
|
|
87
|
+
models/create-return-premium-credits-response-class.ts
|
|
82
88
|
models/create-tenant-bank-account-request-dto.ts
|
|
83
89
|
models/create-tenant-bank-account-response-class.ts
|
|
84
90
|
models/credit-allocation-class.ts
|
|
@@ -92,6 +98,7 @@ models/exceeding-credit-entity.ts
|
|
|
92
98
|
models/generate-invoice-match-suggestions-response-class.ts
|
|
93
99
|
models/get-bank-account-response-class.ts
|
|
94
100
|
models/get-bank-order-response-class.ts
|
|
101
|
+
models/get-bank-order-texts-response-class.ts
|
|
95
102
|
models/get-bank-transactions-response-class.ts
|
|
96
103
|
models/get-billing-address-response-class.ts
|
|
97
104
|
models/get-credit-allocation-response-class.ts
|
|
@@ -120,6 +127,8 @@ models/inline-response503.ts
|
|
|
120
127
|
models/invoice-allocation-dto.ts
|
|
121
128
|
models/invoice-match-suggestion-class.ts
|
|
122
129
|
models/invoice-match-suggestion-entity.ts
|
|
130
|
+
models/link-bank-transaction-payment-requests-request-dto-rest.ts
|
|
131
|
+
models/link-bank-transaction-payment-requests-response-class.ts
|
|
123
132
|
models/link-bank-transaction-request-dto-rest.ts
|
|
124
133
|
models/link-bank-transactions-response-class.ts
|
|
125
134
|
models/list-bank-accounts-response-class.ts
|
|
@@ -145,8 +154,10 @@ models/payment-class.ts
|
|
|
145
154
|
models/payment-entity.ts
|
|
146
155
|
models/payment-method-class.ts
|
|
147
156
|
models/payment-receipt-class.ts
|
|
157
|
+
models/payment-receipt-entity.ts
|
|
148
158
|
models/payment-reminder-class.ts
|
|
149
159
|
models/payment-request-class.ts
|
|
160
|
+
models/payment-request-entity.ts
|
|
150
161
|
models/payout-method-class.ts
|
|
151
162
|
models/policy-payment-method-class.ts
|
|
152
163
|
models/primary-bank-account-response-class.ts
|
|
@@ -169,6 +180,8 @@ models/update-bank-account-request-dto.ts
|
|
|
169
180
|
models/update-bank-account-response-class.ts
|
|
170
181
|
models/update-bank-order-request-dto.ts
|
|
171
182
|
models/update-bank-order-response-class.ts
|
|
183
|
+
models/update-bank-order-texts-request-dto.ts
|
|
184
|
+
models/update-bank-order-texts-response-class.ts
|
|
172
185
|
models/update-billing-address-request-dto.ts
|
|
173
186
|
models/update-billing-address-response-class.ts
|
|
174
187
|
models/update-payment-receipt-response-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/payment-sdk@1.22.1-beta.
|
|
20
|
+
npm install @emilgroup/payment-sdk@1.22.1-beta.85 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/payment-sdk@1.22.1-beta.
|
|
24
|
+
yarn add @emilgroup/payment-sdk@1.22.1-beta.85
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PaymentsApi`.
|
package/api/bank-accounts-api.ts
CHANGED
|
@@ -69,8 +69,13 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
69
69
|
// http bearer authentication required
|
|
70
70
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
71
71
|
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
73
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
74
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
75
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
76
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
77
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
78
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
74
79
|
}
|
|
75
80
|
|
|
76
81
|
|
|
@@ -117,8 +122,13 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
117
122
|
// http bearer authentication required
|
|
118
123
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
119
124
|
|
|
120
|
-
|
|
121
|
-
|
|
125
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
128
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
129
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
130
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
131
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
122
132
|
}
|
|
123
133
|
|
|
124
134
|
|
|
@@ -167,8 +177,13 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
167
177
|
localVarQueryParameter['expand'] = expand;
|
|
168
178
|
}
|
|
169
179
|
|
|
170
|
-
|
|
171
|
-
|
|
180
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
181
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
182
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
183
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
184
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
185
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
186
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
172
187
|
}
|
|
173
188
|
|
|
174
189
|
|
|
@@ -243,8 +258,13 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
243
258
|
localVarQueryParameter['filters'] = filters;
|
|
244
259
|
}
|
|
245
260
|
|
|
246
|
-
|
|
247
|
-
|
|
261
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
262
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
263
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
264
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
265
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
266
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
267
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
248
268
|
}
|
|
249
269
|
|
|
250
270
|
|
|
@@ -291,8 +311,13 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
291
311
|
// http bearer authentication required
|
|
292
312
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
293
313
|
|
|
294
|
-
|
|
295
|
-
|
|
314
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
315
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
316
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
317
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
318
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
319
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
320
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
296
321
|
}
|
|
297
322
|
|
|
298
323
|
|
|
@@ -342,8 +367,13 @@ export const BankAccountsApiAxiosParamCreator = function (configuration?: Config
|
|
|
342
367
|
// http bearer authentication required
|
|
343
368
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
344
369
|
|
|
345
|
-
|
|
346
|
-
|
|
370
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
371
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
372
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
373
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
374
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
375
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
376
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
347
377
|
}
|
|
348
378
|
|
|
349
379
|
|
|
@@ -744,7 +774,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
744
774
|
* @memberof BankAccountsApi
|
|
745
775
|
*/
|
|
746
776
|
public createBankAccount(requestParameters: BankAccountsApiCreateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
747
|
-
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
777
|
+
return BankAccountsApiFp(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
748
778
|
}
|
|
749
779
|
|
|
750
780
|
/**
|
|
@@ -756,7 +786,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
756
786
|
* @memberof BankAccountsApi
|
|
757
787
|
*/
|
|
758
788
|
public deleteBankAccount(requestParameters: BankAccountsApiDeleteBankAccountRequest, options?: AxiosRequestConfig) {
|
|
759
|
-
return BankAccountsApiFp(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
789
|
+
return BankAccountsApiFp(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
760
790
|
}
|
|
761
791
|
|
|
762
792
|
/**
|
|
@@ -768,7 +798,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
768
798
|
* @memberof BankAccountsApi
|
|
769
799
|
*/
|
|
770
800
|
public getBankAccount(requestParameters: BankAccountsApiGetBankAccountRequest, options?: AxiosRequestConfig) {
|
|
771
|
-
return BankAccountsApiFp(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
801
|
+
return BankAccountsApiFp(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
772
802
|
}
|
|
773
803
|
|
|
774
804
|
/**
|
|
@@ -780,7 +810,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
780
810
|
* @memberof BankAccountsApi
|
|
781
811
|
*/
|
|
782
812
|
public listBankAccounts(requestParameters: BankAccountsApiListBankAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
783
|
-
return BankAccountsApiFp(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
813
|
+
return BankAccountsApiFp(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
784
814
|
}
|
|
785
815
|
|
|
786
816
|
/**
|
|
@@ -792,7 +822,7 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
792
822
|
* @memberof BankAccountsApi
|
|
793
823
|
*/
|
|
794
824
|
public setPrimaryBankAccount(requestParameters: BankAccountsApiSetPrimaryBankAccountRequest, options?: AxiosRequestConfig) {
|
|
795
|
-
return BankAccountsApiFp(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
825
|
+
return BankAccountsApiFp(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
796
826
|
}
|
|
797
827
|
|
|
798
828
|
/**
|
|
@@ -804,6 +834,6 @@ export class BankAccountsApi extends BaseAPI {
|
|
|
804
834
|
* @memberof BankAccountsApi
|
|
805
835
|
*/
|
|
806
836
|
public updateBankAccount(requestParameters: BankAccountsApiUpdateBankAccountRequest, options?: AxiosRequestConfig) {
|
|
807
|
-
return BankAccountsApiFp(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
837
|
+
return BankAccountsApiFp(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
808
838
|
}
|
|
809
839
|
}
|
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Emil Payment Service
|
|
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
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { GetBankOrderTextsResponseClass } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { UpdateBankOrderTextsRequestDto } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { UpdateBankOrderTextsResponseClass } from '../models';
|
|
29
|
+
/**
|
|
30
|
+
* BankOrderTextsApi - axios parameter creator
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const BankOrderTextsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
* Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
37
|
+
* @summary Retrieve the bank order texts
|
|
38
|
+
* @param {string} [authorization] Bearer Token
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
getBankOrderTexts: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
+
const localVarPath = `/paymentservice/v1/bank-order-texts`;
|
|
44
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46
|
+
let baseOptions;
|
|
47
|
+
let baseAccessToken;
|
|
48
|
+
if (configuration) {
|
|
49
|
+
baseOptions = configuration.baseOptions;
|
|
50
|
+
baseAccessToken = configuration.accessToken;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54
|
+
const localVarHeaderParameter = {} as any;
|
|
55
|
+
const localVarQueryParameter = {} as any;
|
|
56
|
+
|
|
57
|
+
// authentication bearer required
|
|
58
|
+
// http bearer authentication required
|
|
59
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
60
|
+
|
|
61
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
62
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
63
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
64
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
65
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
66
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
67
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
73
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
74
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
url: toPathString(localVarUrlObj),
|
|
78
|
+
options: localVarRequestOptions,
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
* Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
|
|
83
|
+
* @summary Save the bank order texts
|
|
84
|
+
* @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
|
|
85
|
+
* @param {string} [authorization] Bearer Token
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
updateBankOrderTexts: async (updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
90
|
+
// verify required parameter 'updateBankOrderTextsRequestDto' is not null or undefined
|
|
91
|
+
assertParamExists('updateBankOrderTexts', 'updateBankOrderTextsRequestDto', updateBankOrderTextsRequestDto)
|
|
92
|
+
const localVarPath = `/paymentservice/v1/bank-order-texts`;
|
|
93
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
94
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
95
|
+
let baseOptions;
|
|
96
|
+
let baseAccessToken;
|
|
97
|
+
if (configuration) {
|
|
98
|
+
baseOptions = configuration.baseOptions;
|
|
99
|
+
baseAccessToken = configuration.accessToken;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
103
|
+
const localVarHeaderParameter = {} as any;
|
|
104
|
+
const localVarQueryParameter = {} as any;
|
|
105
|
+
|
|
106
|
+
// authentication bearer required
|
|
107
|
+
// http bearer authentication required
|
|
108
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
109
|
+
|
|
110
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
111
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
112
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
113
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
114
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
115
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
116
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
122
|
+
|
|
123
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
124
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
126
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateBankOrderTextsRequestDto, localVarRequestOptions, configuration)
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
url: toPathString(localVarUrlObj),
|
|
130
|
+
options: localVarRequestOptions,
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
}
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* BankOrderTextsApi - functional programming interface
|
|
138
|
+
* @export
|
|
139
|
+
*/
|
|
140
|
+
export const BankOrderTextsApiFp = function(configuration?: Configuration) {
|
|
141
|
+
const localVarAxiosParamCreator = BankOrderTextsApiAxiosParamCreator(configuration)
|
|
142
|
+
return {
|
|
143
|
+
/**
|
|
144
|
+
* Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
145
|
+
* @summary Retrieve the bank order texts
|
|
146
|
+
* @param {string} [authorization] Bearer Token
|
|
147
|
+
* @param {*} [options] Override http request option.
|
|
148
|
+
* @throws {RequiredError}
|
|
149
|
+
*/
|
|
150
|
+
async getBankOrderTexts(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBankOrderTextsResponseClass>> {
|
|
151
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getBankOrderTexts(authorization, options);
|
|
152
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
153
|
+
},
|
|
154
|
+
/**
|
|
155
|
+
* Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
|
|
156
|
+
* @summary Save the bank order texts
|
|
157
|
+
* @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
|
|
158
|
+
* @param {string} [authorization] Bearer Token
|
|
159
|
+
* @param {*} [options] Override http request option.
|
|
160
|
+
* @throws {RequiredError}
|
|
161
|
+
*/
|
|
162
|
+
async updateBankOrderTexts(updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateBankOrderTextsResponseClass>> {
|
|
163
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateBankOrderTexts(updateBankOrderTextsRequestDto, authorization, options);
|
|
164
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
165
|
+
},
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* BankOrderTextsApi - factory interface
|
|
171
|
+
* @export
|
|
172
|
+
*/
|
|
173
|
+
export const BankOrderTextsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
174
|
+
const localVarFp = BankOrderTextsApiFp(configuration)
|
|
175
|
+
return {
|
|
176
|
+
/**
|
|
177
|
+
* Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
178
|
+
* @summary Retrieve the bank order texts
|
|
179
|
+
* @param {string} [authorization] Bearer Token
|
|
180
|
+
* @param {*} [options] Override http request option.
|
|
181
|
+
* @throws {RequiredError}
|
|
182
|
+
*/
|
|
183
|
+
getBankOrderTexts(authorization?: string, options?: any): AxiosPromise<GetBankOrderTextsResponseClass> {
|
|
184
|
+
return localVarFp.getBankOrderTexts(authorization, options).then((request) => request(axios, basePath));
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
187
|
+
* Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
|
|
188
|
+
* @summary Save the bank order texts
|
|
189
|
+
* @param {UpdateBankOrderTextsRequestDto} updateBankOrderTextsRequestDto
|
|
190
|
+
* @param {string} [authorization] Bearer Token
|
|
191
|
+
* @param {*} [options] Override http request option.
|
|
192
|
+
* @throws {RequiredError}
|
|
193
|
+
*/
|
|
194
|
+
updateBankOrderTexts(updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateBankOrderTextsResponseClass> {
|
|
195
|
+
return localVarFp.updateBankOrderTexts(updateBankOrderTextsRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
196
|
+
},
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* Request parameters for getBankOrderTexts operation in BankOrderTextsApi.
|
|
202
|
+
* @export
|
|
203
|
+
* @interface BankOrderTextsApiGetBankOrderTextsRequest
|
|
204
|
+
*/
|
|
205
|
+
export interface BankOrderTextsApiGetBankOrderTextsRequest {
|
|
206
|
+
/**
|
|
207
|
+
* Bearer Token
|
|
208
|
+
* @type {string}
|
|
209
|
+
* @memberof BankOrderTextsApiGetBankOrderTexts
|
|
210
|
+
*/
|
|
211
|
+
readonly authorization?: string
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Request parameters for updateBankOrderTexts operation in BankOrderTextsApi.
|
|
216
|
+
* @export
|
|
217
|
+
* @interface BankOrderTextsApiUpdateBankOrderTextsRequest
|
|
218
|
+
*/
|
|
219
|
+
export interface BankOrderTextsApiUpdateBankOrderTextsRequest {
|
|
220
|
+
/**
|
|
221
|
+
*
|
|
222
|
+
* @type {UpdateBankOrderTextsRequestDto}
|
|
223
|
+
* @memberof BankOrderTextsApiUpdateBankOrderTexts
|
|
224
|
+
*/
|
|
225
|
+
readonly updateBankOrderTextsRequestDto: UpdateBankOrderTextsRequestDto
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Bearer Token
|
|
229
|
+
* @type {string}
|
|
230
|
+
* @memberof BankOrderTextsApiUpdateBankOrderTexts
|
|
231
|
+
*/
|
|
232
|
+
readonly authorization?: string
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* BankOrderTextsApi - object-oriented interface
|
|
237
|
+
* @export
|
|
238
|
+
* @class BankOrderTextsApi
|
|
239
|
+
* @extends {BaseAPI}
|
|
240
|
+
*/
|
|
241
|
+
export class BankOrderTextsApi extends BaseAPI {
|
|
242
|
+
/**
|
|
243
|
+
* Returns the remittance information templates of the tenant per bank order type, with the version and the last change. 404 when nothing is configured. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
244
|
+
* @summary Retrieve the bank order texts
|
|
245
|
+
* @param {BankOrderTextsApiGetBankOrderTextsRequest} requestParameters Request parameters.
|
|
246
|
+
* @param {*} [options] Override http request option.
|
|
247
|
+
* @throws {RequiredError}
|
|
248
|
+
* @memberof BankOrderTextsApi
|
|
249
|
+
*/
|
|
250
|
+
public getBankOrderTexts(requestParameters: BankOrderTextsApiGetBankOrderTextsRequest = {}, options?: AxiosRequestConfig) {
|
|
251
|
+
return BankOrderTextsApiFp(this.configuration).getBankOrderTexts(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Saves the remittance information templates of the tenant. Every template is checked against the rules of its bank order type (400 with field errors). A save against an older version is refused (409). **Required Permissions** \"payment-management.bank-orders.update\"
|
|
256
|
+
* @summary Save the bank order texts
|
|
257
|
+
* @param {BankOrderTextsApiUpdateBankOrderTextsRequest} requestParameters Request parameters.
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
* @memberof BankOrderTextsApi
|
|
261
|
+
*/
|
|
262
|
+
public updateBankOrderTexts(requestParameters: BankOrderTextsApiUpdateBankOrderTextsRequest, options?: AxiosRequestConfig) {
|
|
263
|
+
return BankOrderTextsApiFp(this.configuration).updateBankOrderTexts(requestParameters.updateBankOrderTextsRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
264
|
+
}
|
|
265
|
+
}
|
package/api/bank-orders-api.ts
CHANGED
|
@@ -67,8 +67,13 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
67
67
|
// http bearer authentication required
|
|
68
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
71
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
72
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
73
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
74
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
75
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
76
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
|
|
@@ -115,8 +120,13 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
115
120
|
// http bearer authentication required
|
|
116
121
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
122
|
|
|
118
|
-
|
|
119
|
-
|
|
123
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
124
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
125
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
126
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
127
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
128
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
120
130
|
}
|
|
121
131
|
|
|
122
132
|
|
|
@@ -165,8 +175,13 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
165
175
|
localVarQueryParameter['expand'] = expand;
|
|
166
176
|
}
|
|
167
177
|
|
|
168
|
-
|
|
169
|
-
|
|
178
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
179
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
180
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
181
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
182
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
183
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
184
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
170
185
|
}
|
|
171
186
|
|
|
172
187
|
|
|
@@ -241,8 +256,13 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
241
256
|
localVarQueryParameter['filters'] = filters;
|
|
242
257
|
}
|
|
243
258
|
|
|
244
|
-
|
|
245
|
-
|
|
259
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
260
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
261
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
262
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
263
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
264
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
265
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
246
266
|
}
|
|
247
267
|
|
|
248
268
|
|
|
@@ -289,8 +309,13 @@ export const BankOrdersApiAxiosParamCreator = function (configuration?: Configur
|
|
|
289
309
|
// http bearer authentication required
|
|
290
310
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
291
311
|
|
|
292
|
-
|
|
293
|
-
|
|
312
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
313
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
314
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
315
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
316
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
317
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
318
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
294
319
|
}
|
|
295
320
|
|
|
296
321
|
|
|
@@ -638,7 +663,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
638
663
|
* @memberof BankOrdersApi
|
|
639
664
|
*/
|
|
640
665
|
public createBankOrder(requestParameters: BankOrdersApiCreateBankOrderRequest, options?: AxiosRequestConfig) {
|
|
641
|
-
return BankOrdersApiFp(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
666
|
+
return BankOrdersApiFp(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
642
667
|
}
|
|
643
668
|
|
|
644
669
|
/**
|
|
@@ -650,7 +675,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
650
675
|
* @memberof BankOrdersApi
|
|
651
676
|
*/
|
|
652
677
|
public deleteBankOrder(requestParameters: BankOrdersApiDeleteBankOrderRequest, options?: AxiosRequestConfig) {
|
|
653
|
-
return BankOrdersApiFp(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
678
|
+
return BankOrdersApiFp(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
654
679
|
}
|
|
655
680
|
|
|
656
681
|
/**
|
|
@@ -662,7 +687,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
662
687
|
* @memberof BankOrdersApi
|
|
663
688
|
*/
|
|
664
689
|
public getBankOrder(requestParameters: BankOrdersApiGetBankOrderRequest, options?: AxiosRequestConfig) {
|
|
665
|
-
return BankOrdersApiFp(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
690
|
+
return BankOrdersApiFp(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
666
691
|
}
|
|
667
692
|
|
|
668
693
|
/**
|
|
@@ -674,7 +699,7 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
674
699
|
* @memberof BankOrdersApi
|
|
675
700
|
*/
|
|
676
701
|
public listBankOrders(requestParameters: BankOrdersApiListBankOrdersRequest = {}, options?: AxiosRequestConfig) {
|
|
677
|
-
return BankOrdersApiFp(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
702
|
+
return BankOrdersApiFp(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
678
703
|
}
|
|
679
704
|
|
|
680
705
|
/**
|
|
@@ -686,6 +711,6 @@ export class BankOrdersApi extends BaseAPI {
|
|
|
686
711
|
* @memberof BankOrdersApi
|
|
687
712
|
*/
|
|
688
713
|
public updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig) {
|
|
689
|
-
return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
714
|
+
return BankOrdersApiFp(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
690
715
|
}
|
|
691
716
|
}
|