@emilgroup/payment-sdk 1.22.1-beta.7 → 1.22.1-beta.71
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/README.md +2 -2
- package/api/bank-accounts-api.ts +24 -12
- package/api/bank-orders-api.ts +28 -18
- package/api/bank-transaction-api.ts +24 -12
- package/api/billing-addresses-api.ts +20 -10
- package/api/credit-allocation-api.ts +12 -6
- package/api/exceeding-credits-api.ts +12 -6
- package/api/ibanvalidator-api.ts +4 -2
- package/api/payment-methods-api.ts +12 -6
- package/api/payment-receipts-api.ts +20 -10
- package/api/payment-reminders-api.ts +16 -8
- package/api/payment-requests-api.ts +32 -22
- package/api/payment-setup-api.ts +8 -4
- package/api/payments-api.ts +24 -12
- package/api/payout-methods-api.ts +24 -12
- package/api/policy-payment-methods-api.ts +12 -6
- package/api/refunds-api.ts +12 -6
- package/api/tenant-bank-account-api.ts +20 -10
- package/base.ts +174 -41
- package/configuration.ts +20 -0
- package/dist/api/bank-accounts-api.js +36 -22
- package/dist/api/bank-orders-api.d.ts +8 -8
- package/dist/api/bank-orders-api.js +35 -24
- package/dist/api/bank-transaction-api.js +36 -22
- package/dist/api/billing-addresses-api.js +32 -19
- package/dist/api/credit-allocation-api.js +18 -11
- package/dist/api/exceeding-credits-api.js +18 -11
- package/dist/api/ibanvalidator-api.js +7 -4
- package/dist/api/payment-methods-api.js +18 -11
- package/dist/api/payment-receipts-api.js +29 -18
- package/dist/api/payment-reminders-api.js +25 -15
- package/dist/api/payment-requests-api.d.ts +12 -12
- package/dist/api/payment-requests-api.js +38 -27
- package/dist/api/payment-setup-api.js +14 -8
- package/dist/api/payments-api.js +28 -18
- package/dist/api/payout-methods-api.js +36 -22
- package/dist/api/policy-payment-methods-api.js +18 -11
- package/dist/api/refunds-api.js +15 -10
- package/dist/api/tenant-bank-account-api.js +29 -18
- package/dist/base.d.ts +24 -0
- package/dist/base.js +178 -59
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/bank-order-entity.d.ts +1 -0
- package/dist/models/bank-order-entity.js +1 -0
- package/dist/models/create-bank-order-request-dto.d.ts +3 -2
- package/dist/models/create-bank-order-request-dto.js +1 -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/payment-class-without-expand-properties.d.ts +1 -1
- package/dist/models/payment-class.d.ts +1 -1
- package/dist/models/payment-receipt-class.d.ts +1 -1
- package/dist/models/payment-request-class.d.ts +18 -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-request-dto.d.ts +2 -2
- package/models/bank-order-entity.ts +1 -0
- package/models/create-bank-order-request-dto.ts +3 -2
- 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/payment-class-without-expand-properties.ts +1 -1
- package/models/payment-class.ts +1 -1
- package/models/payment-receipt-class.ts +1 -1
- package/models/payment-request-class.ts +18 -0
- package/models/shared-transaction-class.ts +6 -0
- package/models/transaction-entity.ts +6 -0
- package/models/update-bank-order-request-dto.ts +2 -2
- package/package.json +1 -1
|
@@ -104,7 +104,7 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
104
104
|
activatePolicyPaymentMethod: function (code, activatePolicyPaymentMethodRequestDto, authorization, options) {
|
|
105
105
|
if (options === void 0) { options = {}; }
|
|
106
106
|
return __awaiter(_this, void 0, void 0, function () {
|
|
107
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
108
108
|
return __generator(this, function (_a) {
|
|
109
109
|
switch (_a.label) {
|
|
110
110
|
case 0:
|
|
@@ -124,13 +124,16 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
124
124
|
localVarQueryParameter = {};
|
|
125
125
|
// authentication bearer required
|
|
126
126
|
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
129
|
+
];
|
|
128
130
|
case 1:
|
|
129
131
|
// authentication bearer required
|
|
130
132
|
// http bearer authentication required
|
|
131
133
|
_a.sent();
|
|
132
|
-
|
|
133
|
-
|
|
134
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
135
|
+
if (authorizationValue) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
137
|
}
|
|
135
138
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
139
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -156,7 +159,7 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
156
159
|
createPolicyPaymentMethod: function (createPolicyPaymentMethodRequestDto, authorization, options) {
|
|
157
160
|
if (options === void 0) { options = {}; }
|
|
158
161
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
162
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
160
163
|
return __generator(this, function (_a) {
|
|
161
164
|
switch (_a.label) {
|
|
162
165
|
case 0:
|
|
@@ -173,13 +176,16 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
173
176
|
localVarQueryParameter = {};
|
|
174
177
|
// authentication bearer required
|
|
175
178
|
// http bearer authentication required
|
|
176
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
179
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
180
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
181
|
+
];
|
|
177
182
|
case 1:
|
|
178
183
|
// authentication bearer required
|
|
179
184
|
// http bearer authentication required
|
|
180
185
|
_a.sent();
|
|
181
|
-
|
|
182
|
-
|
|
186
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
187
|
+
if (authorizationValue) {
|
|
188
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
183
189
|
}
|
|
184
190
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
185
191
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -211,7 +217,7 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
211
217
|
listPolicyPaymentMethods: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
212
218
|
if (options === void 0) { options = {}; }
|
|
213
219
|
return __awaiter(_this, void 0, void 0, function () {
|
|
214
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
220
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
215
221
|
return __generator(this, function (_a) {
|
|
216
222
|
switch (_a.label) {
|
|
217
223
|
case 0:
|
|
@@ -252,8 +258,9 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
252
258
|
if (filters !== undefined) {
|
|
253
259
|
localVarQueryParameter['filters'] = filters;
|
|
254
260
|
}
|
|
255
|
-
|
|
256
|
-
|
|
261
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
262
|
+
if (authorizationValue) {
|
|
263
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
257
264
|
}
|
|
258
265
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
259
266
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
package/dist/api/refunds-api.js
CHANGED
|
@@ -103,7 +103,7 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createRefund: function (createRefundRequestDto, 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;
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
@@ -120,13 +120,16 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
120
120
|
localVarQueryParameter = {};
|
|
121
121
|
// authentication bearer required
|
|
122
122
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
125
|
+
];
|
|
124
126
|
case 1:
|
|
125
127
|
// authentication bearer required
|
|
126
128
|
// http bearer authentication required
|
|
127
129
|
_a.sent();
|
|
128
|
-
|
|
129
|
-
|
|
130
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
131
|
+
if (authorizationValue) {
|
|
132
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
133
|
}
|
|
131
134
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
135
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -153,7 +156,7 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
153
156
|
getRefund: function (code, authorization, expand, options) {
|
|
154
157
|
if (options === void 0) { options = {}; }
|
|
155
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
156
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
157
160
|
return __generator(this, function (_a) {
|
|
158
161
|
switch (_a.label) {
|
|
159
162
|
case 0:
|
|
@@ -179,8 +182,9 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
179
182
|
if (expand !== undefined) {
|
|
180
183
|
localVarQueryParameter['expand'] = expand;
|
|
181
184
|
}
|
|
182
|
-
|
|
183
|
-
|
|
185
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
186
|
+
if (authorizationValue) {
|
|
187
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
188
|
}
|
|
185
189
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
190
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -210,7 +214,7 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
210
214
|
listRefunds: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
211
215
|
if (options === void 0) { options = {}; }
|
|
212
216
|
return __awaiter(_this, void 0, void 0, function () {
|
|
213
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
217
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
214
218
|
return __generator(this, function (_a) {
|
|
215
219
|
switch (_a.label) {
|
|
216
220
|
case 0:
|
|
@@ -251,8 +255,9 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
251
255
|
if (filters !== undefined) {
|
|
252
256
|
localVarQueryParameter['filters'] = filters;
|
|
253
257
|
}
|
|
254
|
-
|
|
255
|
-
|
|
258
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
259
|
+
if (authorizationValue) {
|
|
260
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
256
261
|
}
|
|
257
262
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
258
263
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -103,7 +103,7 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createTenantBankAccount: function (createTenantBankAccountRequestDto, 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;
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
@@ -120,13 +120,16 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
120
120
|
localVarQueryParameter = {};
|
|
121
121
|
// authentication bearer required
|
|
122
122
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
125
|
+
];
|
|
124
126
|
case 1:
|
|
125
127
|
// authentication bearer required
|
|
126
128
|
// http bearer authentication required
|
|
127
129
|
_a.sent();
|
|
128
|
-
|
|
129
|
-
|
|
130
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
131
|
+
if (authorizationValue) {
|
|
132
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
133
|
}
|
|
131
134
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
135
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -152,7 +155,7 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
152
155
|
deleteTenantBankAccount: function (code, authorization, options) {
|
|
153
156
|
if (options === void 0) { options = {}; }
|
|
154
157
|
return __awaiter(_this, void 0, void 0, function () {
|
|
155
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
158
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
156
159
|
return __generator(this, function (_a) {
|
|
157
160
|
switch (_a.label) {
|
|
158
161
|
case 0:
|
|
@@ -170,13 +173,16 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
170
173
|
localVarQueryParameter = {};
|
|
171
174
|
// authentication bearer required
|
|
172
175
|
// http bearer authentication required
|
|
173
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
176
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
177
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
178
|
+
];
|
|
174
179
|
case 1:
|
|
175
180
|
// authentication bearer required
|
|
176
181
|
// http bearer authentication required
|
|
177
182
|
_a.sent();
|
|
178
|
-
|
|
179
|
-
|
|
183
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
184
|
+
if (authorizationValue) {
|
|
185
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
180
186
|
}
|
|
181
187
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
182
188
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -201,7 +207,7 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
201
207
|
getTenantBankAccount: function (code, authorization, expand, options) {
|
|
202
208
|
if (options === void 0) { options = {}; }
|
|
203
209
|
return __awaiter(_this, void 0, void 0, function () {
|
|
204
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
210
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
205
211
|
return __generator(this, function (_a) {
|
|
206
212
|
switch (_a.label) {
|
|
207
213
|
case 0:
|
|
@@ -227,8 +233,9 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
227
233
|
if (expand !== undefined) {
|
|
228
234
|
localVarQueryParameter['expand'] = expand;
|
|
229
235
|
}
|
|
230
|
-
|
|
231
|
-
|
|
236
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
237
|
+
if (authorizationValue) {
|
|
238
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
232
239
|
}
|
|
233
240
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
234
241
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -258,7 +265,7 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
258
265
|
listTenantBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
259
266
|
if (options === void 0) { options = {}; }
|
|
260
267
|
return __awaiter(_this, void 0, void 0, function () {
|
|
261
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
268
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
262
269
|
return __generator(this, function (_a) {
|
|
263
270
|
switch (_a.label) {
|
|
264
271
|
case 0:
|
|
@@ -299,8 +306,9 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
299
306
|
if (filters !== undefined) {
|
|
300
307
|
localVarQueryParameter['filters'] = filters;
|
|
301
308
|
}
|
|
302
|
-
|
|
303
|
-
|
|
309
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
310
|
+
if (authorizationValue) {
|
|
311
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
304
312
|
}
|
|
305
313
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
306
314
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -325,7 +333,7 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
325
333
|
updateTenantBankAccount: function (code, updateTenantBankAccountRestRequestDto, authorization, options) {
|
|
326
334
|
if (options === void 0) { options = {}; }
|
|
327
335
|
return __awaiter(_this, void 0, void 0, function () {
|
|
328
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
336
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
329
337
|
return __generator(this, function (_a) {
|
|
330
338
|
switch (_a.label) {
|
|
331
339
|
case 0:
|
|
@@ -345,13 +353,16 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
345
353
|
localVarQueryParameter = {};
|
|
346
354
|
// authentication bearer required
|
|
347
355
|
// http bearer authentication required
|
|
348
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
356
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
357
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
358
|
+
];
|
|
349
359
|
case 1:
|
|
350
360
|
// authentication bearer required
|
|
351
361
|
// http bearer authentication required
|
|
352
362
|
_a.sent();
|
|
353
|
-
|
|
354
|
-
|
|
363
|
+
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
364
|
+
if (authorizationValue) {
|
|
365
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
355
366
|
}
|
|
356
367
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
357
368
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
package/dist/base.d.ts
CHANGED
|
@@ -22,9 +22,19 @@ export declare const COLLECTION_FORMATS: {
|
|
|
22
22
|
tsv: string;
|
|
23
23
|
pipes: string;
|
|
24
24
|
};
|
|
25
|
+
export interface SessionClass {
|
|
26
|
+
sub: string;
|
|
27
|
+
username?: string;
|
|
28
|
+
email?: string;
|
|
29
|
+
tenantSlug?: string;
|
|
30
|
+
permissions?: string;
|
|
31
|
+
expiresAt?: number;
|
|
32
|
+
}
|
|
25
33
|
export interface LoginClass {
|
|
26
34
|
accessToken: string;
|
|
27
35
|
permissions: string;
|
|
36
|
+
authMode?: string;
|
|
37
|
+
session?: SessionClass;
|
|
28
38
|
}
|
|
29
39
|
export interface SwitchWorkspaceRequest {
|
|
30
40
|
username: string;
|
|
@@ -33,6 +43,8 @@ export interface SwitchWorkspaceRequest {
|
|
|
33
43
|
export interface SwitchWorkspaceResponseClass {
|
|
34
44
|
accessToken: string;
|
|
35
45
|
permissions: string;
|
|
46
|
+
authMode?: string;
|
|
47
|
+
session?: SessionClass;
|
|
36
48
|
}
|
|
37
49
|
export declare enum Environment {
|
|
38
50
|
Production = "https://apiv2.emil.de",
|
|
@@ -63,6 +75,18 @@ export declare class BaseAPI {
|
|
|
63
75
|
protected configuration: Configuration | undefined;
|
|
64
76
|
private tokenData?;
|
|
65
77
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
78
|
+
private sessionAccount;
|
|
79
|
+
private authBasePath;
|
|
80
|
+
private usesSession;
|
|
81
|
+
private useSessionAuth;
|
|
82
|
+
private useHeaderAuth;
|
|
83
|
+
private applyTokenReply;
|
|
84
|
+
private sessionHeaders;
|
|
85
|
+
private withCurrentAuth;
|
|
86
|
+
private canRetryWithToken;
|
|
87
|
+
private canResend;
|
|
88
|
+
private switchToToken;
|
|
89
|
+
private retryWithToken;
|
|
66
90
|
selectEnvironment(env: Environment): void;
|
|
67
91
|
selectBasePath(path: string): void;
|
|
68
92
|
getPermissions(): Array<string>;
|