@emilgroup/payment-sdk 1.22.1-beta.78 → 1.22.1-beta.79
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 +6 -0
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +48 -18
- 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 +128 -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/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-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 +59 -2
- package/dist/api/exceeding-credits-api.js +126 -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/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-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 +1 -1
- 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/credit-allocation-class.d.ts +6 -0
- package/dist/models/credit-allocation-entity.d.ts +6 -0
- package/dist/models/exceeding-credit-entity.d.ts +6 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -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/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 +1 -1
- package/models/create-payment-request-dto.ts +1 -1
- package/models/create-payment-request-request-dto.ts +6 -0
- package/models/credit-allocation-class.ts +6 -0
- package/models/credit-allocation-entity.ts +6 -0
- package/models/exceeding-credit-entity.ts +6 -0
- package/models/index.ts +6 -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/package.json +2 -2
|
@@ -103,9 +103,10 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createBankAccount: function (createBankAccountRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
109
110
|
case 0:
|
|
110
111
|
// verify required parameter 'createBankAccountRequestDto' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('createBankAccount', 'createBankAccountRequestDto', createBankAccountRequestDto);
|
|
@@ -120,13 +121,19 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
120
121
|
localVarQueryParameter = {};
|
|
121
122
|
// authentication bearer required
|
|
122
123
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
124
128
|
case 1:
|
|
125
129
|
// authentication bearer required
|
|
126
130
|
// http bearer authentication required
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
137
|
}
|
|
131
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -152,9 +159,10 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
152
159
|
deleteBankAccount: function (code, authorization, options) {
|
|
153
160
|
if (options === void 0) { options = {}; }
|
|
154
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
-
|
|
157
|
-
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
163
|
+
var _a;
|
|
164
|
+
return __generator(this, function (_b) {
|
|
165
|
+
switch (_b.label) {
|
|
158
166
|
case 0:
|
|
159
167
|
// verify required parameter 'code' is not null or undefined
|
|
160
168
|
(0, common_1.assertParamExists)('deleteBankAccount', 'code', code);
|
|
@@ -170,13 +178,19 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
170
178
|
localVarQueryParameter = {};
|
|
171
179
|
// authentication bearer required
|
|
172
180
|
// http bearer authentication required
|
|
173
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
182
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
183
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
184
|
+
];
|
|
174
185
|
case 1:
|
|
175
186
|
// authentication bearer required
|
|
176
187
|
// http bearer authentication required
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
188
|
+
_b.sent();
|
|
189
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
190
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
191
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
192
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
193
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
180
194
|
}
|
|
181
195
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
196
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -201,9 +215,10 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
201
215
|
getBankAccount: function (code, authorization, expand, options) {
|
|
202
216
|
if (options === void 0) { options = {}; }
|
|
203
217
|
return __awaiter(_this, void 0, void 0, function () {
|
|
204
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
205
|
-
|
|
206
|
-
|
|
218
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
219
|
+
var _a;
|
|
220
|
+
return __generator(this, function (_b) {
|
|
221
|
+
switch (_b.label) {
|
|
207
222
|
case 0:
|
|
208
223
|
// verify required parameter 'code' is not null or undefined
|
|
209
224
|
(0, common_1.assertParamExists)('getBankAccount', 'code', code);
|
|
@@ -223,12 +238,15 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
223
238
|
case 1:
|
|
224
239
|
// authentication bearer required
|
|
225
240
|
// http bearer authentication required
|
|
226
|
-
|
|
241
|
+
_b.sent();
|
|
227
242
|
if (expand !== undefined) {
|
|
228
243
|
localVarQueryParameter['expand'] = expand;
|
|
229
244
|
}
|
|
230
|
-
|
|
231
|
-
|
|
245
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
246
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
247
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
248
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
249
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
232
250
|
}
|
|
233
251
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
234
252
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -258,9 +276,10 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
258
276
|
listBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
259
277
|
if (options === void 0) { options = {}; }
|
|
260
278
|
return __awaiter(_this, void 0, void 0, function () {
|
|
261
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
262
|
-
|
|
263
|
-
|
|
279
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
280
|
+
var _a;
|
|
281
|
+
return __generator(this, function (_b) {
|
|
282
|
+
switch (_b.label) {
|
|
264
283
|
case 0:
|
|
265
284
|
localVarPath = "/paymentservice/v1/bank-accounts";
|
|
266
285
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -277,7 +296,7 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
277
296
|
case 1:
|
|
278
297
|
// authentication bearer required
|
|
279
298
|
// http bearer authentication required
|
|
280
|
-
|
|
299
|
+
_b.sent();
|
|
281
300
|
if (pageSize !== undefined) {
|
|
282
301
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
283
302
|
}
|
|
@@ -299,8 +318,11 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
299
318
|
if (filters !== undefined) {
|
|
300
319
|
localVarQueryParameter['filters'] = filters;
|
|
301
320
|
}
|
|
302
|
-
|
|
303
|
-
|
|
321
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
322
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
323
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
324
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
325
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
304
326
|
}
|
|
305
327
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
306
328
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -325,9 +347,10 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
325
347
|
setPrimaryBankAccount: function (code, setPrimaryBankAccountRequestDtoRest, authorization, options) {
|
|
326
348
|
if (options === void 0) { options = {}; }
|
|
327
349
|
return __awaiter(_this, void 0, void 0, function () {
|
|
328
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
329
|
-
|
|
330
|
-
|
|
350
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
351
|
+
var _a;
|
|
352
|
+
return __generator(this, function (_b) {
|
|
353
|
+
switch (_b.label) {
|
|
331
354
|
case 0:
|
|
332
355
|
// verify required parameter 'code' is not null or undefined
|
|
333
356
|
(0, common_1.assertParamExists)('setPrimaryBankAccount', 'code', code);
|
|
@@ -345,13 +368,19 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
345
368
|
localVarQueryParameter = {};
|
|
346
369
|
// authentication bearer required
|
|
347
370
|
// http bearer authentication required
|
|
348
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
371
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
372
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
373
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
374
|
+
];
|
|
349
375
|
case 1:
|
|
350
376
|
// authentication bearer required
|
|
351
377
|
// http bearer authentication required
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
378
|
+
_b.sent();
|
|
379
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
380
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
381
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
382
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
383
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
355
384
|
}
|
|
356
385
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
357
386
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -378,9 +407,10 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
378
407
|
updateBankAccount: function (code, updateBankAccountRequestDtoRest, authorization, options) {
|
|
379
408
|
if (options === void 0) { options = {}; }
|
|
380
409
|
return __awaiter(_this, void 0, void 0, function () {
|
|
381
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
382
|
-
|
|
383
|
-
|
|
410
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
411
|
+
var _a;
|
|
412
|
+
return __generator(this, function (_b) {
|
|
413
|
+
switch (_b.label) {
|
|
384
414
|
case 0:
|
|
385
415
|
// verify required parameter 'code' is not null or undefined
|
|
386
416
|
(0, common_1.assertParamExists)('updateBankAccount', 'code', code);
|
|
@@ -398,13 +428,19 @@ var BankAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
398
428
|
localVarQueryParameter = {};
|
|
399
429
|
// authentication bearer required
|
|
400
430
|
// http bearer authentication required
|
|
401
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
431
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
432
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
433
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
434
|
+
];
|
|
402
435
|
case 1:
|
|
403
436
|
// authentication bearer required
|
|
404
437
|
// http bearer authentication required
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
438
|
+
_b.sent();
|
|
439
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
440
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
441
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
442
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
443
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
408
444
|
}
|
|
409
445
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
410
446
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -673,7 +709,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
673
709
|
*/
|
|
674
710
|
BankAccountsApi.prototype.createBankAccount = function (requestParameters, options) {
|
|
675
711
|
var _this = this;
|
|
676
|
-
return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
712
|
+
return (0, exports.BankAccountsApiFp)(this.configuration).createBankAccount(requestParameters.createBankAccountRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
677
713
|
};
|
|
678
714
|
/**
|
|
679
715
|
* Deletes a bank account by code. If the bank account was primary, then the first available bank account for the specified partner/account will be marked as primary. **Required Permissions** \"payment-management.bank-accounts.delete\"
|
|
@@ -685,7 +721,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
685
721
|
*/
|
|
686
722
|
BankAccountsApi.prototype.deleteBankAccount = function (requestParameters, options) {
|
|
687
723
|
var _this = this;
|
|
688
|
-
return (0, exports.BankAccountsApiFp)(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
724
|
+
return (0, exports.BankAccountsApiFp)(this.configuration).deleteBankAccount(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
689
725
|
};
|
|
690
726
|
/**
|
|
691
727
|
* Retrieves the details of the bank account that was previously created. Supply the unique bank account code that was returned when you created it and Emil Api will return the corresponding bank account information. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
@@ -697,7 +733,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
697
733
|
*/
|
|
698
734
|
BankAccountsApi.prototype.getBankAccount = function (requestParameters, options) {
|
|
699
735
|
var _this = this;
|
|
700
|
-
return (0, exports.BankAccountsApiFp)(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
736
|
+
return (0, exports.BankAccountsApiFp)(this.configuration).getBankAccount(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
701
737
|
};
|
|
702
738
|
/**
|
|
703
739
|
* Returns a list of bank accounts you have previously created. The bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
|
|
@@ -710,7 +746,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
710
746
|
BankAccountsApi.prototype.listBankAccounts = function (requestParameters, options) {
|
|
711
747
|
var _this = this;
|
|
712
748
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
713
|
-
return (0, exports.BankAccountsApiFp)(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
749
|
+
return (0, exports.BankAccountsApiFp)(this.configuration).listBankAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
714
750
|
};
|
|
715
751
|
/**
|
|
716
752
|
* Set the primary bank account for the specified partner/account **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
@@ -722,7 +758,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
722
758
|
*/
|
|
723
759
|
BankAccountsApi.prototype.setPrimaryBankAccount = function (requestParameters, options) {
|
|
724
760
|
var _this = this;
|
|
725
|
-
return (0, exports.BankAccountsApiFp)(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
761
|
+
return (0, exports.BankAccountsApiFp)(this.configuration).setPrimaryBankAccount(requestParameters.code, requestParameters.setPrimaryBankAccountRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
726
762
|
};
|
|
727
763
|
/**
|
|
728
764
|
* Update a bank account by code **Required Permissions** \"payment-management.bank-accounts.update\"
|
|
@@ -734,7 +770,7 @@ var BankAccountsApi = /** @class */ (function (_super) {
|
|
|
734
770
|
*/
|
|
735
771
|
BankAccountsApi.prototype.updateBankAccount = function (requestParameters, options) {
|
|
736
772
|
var _this = this;
|
|
737
|
-
return (0, exports.BankAccountsApiFp)(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
773
|
+
return (0, exports.BankAccountsApiFp)(this.configuration).updateBankAccount(requestParameters.code, requestParameters.updateBankAccountRequestDtoRest, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
738
774
|
};
|
|
739
775
|
return BankAccountsApi;
|
|
740
776
|
}(base_1.BaseAPI));
|
|
@@ -353,7 +353,7 @@ export declare class BankOrdersApi extends BaseAPI {
|
|
|
353
353
|
* @throws {RequiredError}
|
|
354
354
|
* @memberof BankOrdersApi
|
|
355
355
|
*/
|
|
356
|
-
createBankOrder(requestParameters: BankOrdersApiCreateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBankOrderResponseClass, any, {}>>;
|
|
356
|
+
createBankOrder(requestParameters: BankOrdersApiCreateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBankOrderResponseClass, any, {}, any>>;
|
|
357
357
|
/**
|
|
358
358
|
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
359
359
|
* @summary Delete the bank order
|
|
@@ -362,7 +362,7 @@ export declare class BankOrdersApi extends BaseAPI {
|
|
|
362
362
|
* @throws {RequiredError}
|
|
363
363
|
* @memberof BankOrdersApi
|
|
364
364
|
*/
|
|
365
|
-
deleteBankOrder(requestParameters: BankOrdersApiDeleteBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
365
|
+
deleteBankOrder(requestParameters: BankOrdersApiDeleteBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
|
|
366
366
|
/**
|
|
367
367
|
* Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
368
368
|
* @summary Retrieve the bank order
|
|
@@ -371,7 +371,7 @@ export declare class BankOrdersApi extends BaseAPI {
|
|
|
371
371
|
* @throws {RequiredError}
|
|
372
372
|
* @memberof BankOrdersApi
|
|
373
373
|
*/
|
|
374
|
-
getBankOrder(requestParameters: BankOrdersApiGetBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankOrderResponseClass, any, {}>>;
|
|
374
|
+
getBankOrder(requestParameters: BankOrdersApiGetBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBankOrderResponseClass, any, {}, any>>;
|
|
375
375
|
/**
|
|
376
376
|
* Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
377
377
|
* @summary List bank orders
|
|
@@ -380,7 +380,7 @@ export declare class BankOrdersApi extends BaseAPI {
|
|
|
380
380
|
* @throws {RequiredError}
|
|
381
381
|
* @memberof BankOrdersApi
|
|
382
382
|
*/
|
|
383
|
-
listBankOrders(requestParameters?: BankOrdersApiListBankOrdersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankOrdersResponseClass, any, {}>>;
|
|
383
|
+
listBankOrders(requestParameters?: BankOrdersApiListBankOrdersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBankOrdersResponseClass, any, {}, any>>;
|
|
384
384
|
/**
|
|
385
385
|
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
386
386
|
* @summary Update the bank order
|
|
@@ -389,5 +389,5 @@ export declare class BankOrdersApi extends BaseAPI {
|
|
|
389
389
|
* @throws {RequiredError}
|
|
390
390
|
* @memberof BankOrdersApi
|
|
391
391
|
*/
|
|
392
|
-
updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBankOrderResponseClass, any, {}>>;
|
|
392
|
+
updateBankOrder(requestParameters: BankOrdersApiUpdateBankOrderRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBankOrderResponseClass, any, {}, any>>;
|
|
393
393
|
}
|
|
@@ -103,9 +103,10 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createBankOrder: function (createBankOrderRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
-
|
|
108
|
-
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
107
|
+
var _a;
|
|
108
|
+
return __generator(this, function (_b) {
|
|
109
|
+
switch (_b.label) {
|
|
109
110
|
case 0:
|
|
110
111
|
// verify required parameter 'createBankOrderRequestDto' is not null or undefined
|
|
111
112
|
(0, common_1.assertParamExists)('createBankOrder', 'createBankOrderRequestDto', createBankOrderRequestDto);
|
|
@@ -120,13 +121,19 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
120
121
|
localVarQueryParameter = {};
|
|
121
122
|
// authentication bearer required
|
|
122
123
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
124
128
|
case 1:
|
|
125
129
|
// authentication bearer required
|
|
126
130
|
// http bearer authentication required
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
131
|
+
_b.sent();
|
|
132
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
137
|
}
|
|
131
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -152,9 +159,10 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
152
159
|
deleteBankOrder: function (code, authorization, options) {
|
|
153
160
|
if (options === void 0) { options = {}; }
|
|
154
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
-
|
|
157
|
-
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
163
|
+
var _a;
|
|
164
|
+
return __generator(this, function (_b) {
|
|
165
|
+
switch (_b.label) {
|
|
158
166
|
case 0:
|
|
159
167
|
// verify required parameter 'code' is not null or undefined
|
|
160
168
|
(0, common_1.assertParamExists)('deleteBankOrder', 'code', code);
|
|
@@ -170,13 +178,19 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
170
178
|
localVarQueryParameter = {};
|
|
171
179
|
// authentication bearer required
|
|
172
180
|
// http bearer authentication required
|
|
173
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
181
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
182
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
183
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
184
|
+
];
|
|
174
185
|
case 1:
|
|
175
186
|
// authentication bearer required
|
|
176
187
|
// http bearer authentication required
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
188
|
+
_b.sent();
|
|
189
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
190
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
191
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
192
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
193
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
180
194
|
}
|
|
181
195
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
196
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -201,9 +215,10 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
201
215
|
getBankOrder: function (code, authorization, expand, options) {
|
|
202
216
|
if (options === void 0) { options = {}; }
|
|
203
217
|
return __awaiter(_this, void 0, void 0, function () {
|
|
204
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
205
|
-
|
|
206
|
-
|
|
218
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
219
|
+
var _a;
|
|
220
|
+
return __generator(this, function (_b) {
|
|
221
|
+
switch (_b.label) {
|
|
207
222
|
case 0:
|
|
208
223
|
// verify required parameter 'code' is not null or undefined
|
|
209
224
|
(0, common_1.assertParamExists)('getBankOrder', 'code', code);
|
|
@@ -223,12 +238,15 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
223
238
|
case 1:
|
|
224
239
|
// authentication bearer required
|
|
225
240
|
// http bearer authentication required
|
|
226
|
-
|
|
241
|
+
_b.sent();
|
|
227
242
|
if (expand !== undefined) {
|
|
228
243
|
localVarQueryParameter['expand'] = expand;
|
|
229
244
|
}
|
|
230
|
-
|
|
231
|
-
|
|
245
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
246
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
247
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
248
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
249
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
232
250
|
}
|
|
233
251
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
234
252
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -258,9 +276,10 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
258
276
|
listBankOrders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
259
277
|
if (options === void 0) { options = {}; }
|
|
260
278
|
return __awaiter(_this, void 0, void 0, function () {
|
|
261
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
262
|
-
|
|
263
|
-
|
|
279
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
280
|
+
var _a;
|
|
281
|
+
return __generator(this, function (_b) {
|
|
282
|
+
switch (_b.label) {
|
|
264
283
|
case 0:
|
|
265
284
|
localVarPath = "/paymentservice/v1/bank-orders";
|
|
266
285
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -277,7 +296,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
277
296
|
case 1:
|
|
278
297
|
// authentication bearer required
|
|
279
298
|
// http bearer authentication required
|
|
280
|
-
|
|
299
|
+
_b.sent();
|
|
281
300
|
if (pageSize !== undefined) {
|
|
282
301
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
283
302
|
}
|
|
@@ -299,8 +318,11 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
299
318
|
if (filters !== undefined) {
|
|
300
319
|
localVarQueryParameter['filters'] = filters;
|
|
301
320
|
}
|
|
302
|
-
|
|
303
|
-
|
|
321
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
322
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
323
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
324
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
325
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
304
326
|
}
|
|
305
327
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
306
328
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -325,9 +347,10 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
325
347
|
updateBankOrder: function (code, updateBankOrderRequestDto, authorization, options) {
|
|
326
348
|
if (options === void 0) { options = {}; }
|
|
327
349
|
return __awaiter(_this, void 0, void 0, function () {
|
|
328
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
329
|
-
|
|
330
|
-
|
|
350
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
351
|
+
var _a;
|
|
352
|
+
return __generator(this, function (_b) {
|
|
353
|
+
switch (_b.label) {
|
|
331
354
|
case 0:
|
|
332
355
|
// verify required parameter 'code' is not null or undefined
|
|
333
356
|
(0, common_1.assertParamExists)('updateBankOrder', 'code', code);
|
|
@@ -345,13 +368,19 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
|
|
|
345
368
|
localVarQueryParameter = {};
|
|
346
369
|
// authentication bearer required
|
|
347
370
|
// http bearer authentication required
|
|
348
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
371
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
372
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
373
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
374
|
+
];
|
|
349
375
|
case 1:
|
|
350
376
|
// authentication bearer required
|
|
351
377
|
// http bearer authentication required
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
378
|
+
_b.sent();
|
|
379
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
380
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
381
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
382
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
383
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
355
384
|
}
|
|
356
385
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
357
386
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -586,7 +615,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
586
615
|
*/
|
|
587
616
|
BankOrdersApi.prototype.createBankOrder = function (requestParameters, options) {
|
|
588
617
|
var _this = this;
|
|
589
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
618
|
+
return (0, exports.BankOrdersApiFp)(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
590
619
|
};
|
|
591
620
|
/**
|
|
592
621
|
* Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
|
|
@@ -598,7 +627,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
598
627
|
*/
|
|
599
628
|
BankOrdersApi.prototype.deleteBankOrder = function (requestParameters, options) {
|
|
600
629
|
var _this = this;
|
|
601
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
630
|
+
return (0, exports.BankOrdersApiFp)(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
602
631
|
};
|
|
603
632
|
/**
|
|
604
633
|
* Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
@@ -610,7 +639,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
610
639
|
*/
|
|
611
640
|
BankOrdersApi.prototype.getBankOrder = function (requestParameters, options) {
|
|
612
641
|
var _this = this;
|
|
613
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
642
|
+
return (0, exports.BankOrdersApiFp)(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
614
643
|
};
|
|
615
644
|
/**
|
|
616
645
|
* Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-orders.view\"
|
|
@@ -623,7 +652,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
623
652
|
BankOrdersApi.prototype.listBankOrders = function (requestParameters, options) {
|
|
624
653
|
var _this = this;
|
|
625
654
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
626
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
655
|
+
return (0, exports.BankOrdersApiFp)(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
627
656
|
};
|
|
628
657
|
/**
|
|
629
658
|
* Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
|
|
@@ -635,7 +664,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
|
|
|
635
664
|
*/
|
|
636
665
|
BankOrdersApi.prototype.updateBankOrder = function (requestParameters, options) {
|
|
637
666
|
var _this = this;
|
|
638
|
-
return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
667
|
+
return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
639
668
|
};
|
|
640
669
|
return BankOrdersApi;
|
|
641
670
|
}(base_1.BaseAPI));
|