@emilgroup/payment-sdk 1.22.1-beta.7 → 1.22.1-beta.72
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/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 +36 -22
- package/dist/api/bank-orders-api.d.ts +13 -13
- package/dist/api/bank-orders-api.js +35 -24
- package/dist/api/bank-transaction-api.d.ts +6 -6
- package/dist/api/bank-transaction-api.js +36 -22
- package/dist/api/billing-addresses-api.d.ts +5 -5
- package/dist/api/billing-addresses-api.js +32 -19
- package/dist/api/credit-allocation-api.d.ts +3 -3
- package/dist/api/credit-allocation-api.js +18 -11
- package/dist/api/exceeding-credits-api.d.ts +3 -3
- package/dist/api/exceeding-credits-api.js +18 -11
- package/dist/api/health-check-api.d.ts +1 -1
- package/dist/api/ibanvalidator-api.d.ts +1 -1
- package/dist/api/ibanvalidator-api.js +7 -4
- package/dist/api/payment-methods-api.d.ts +3 -3
- package/dist/api/payment-methods-api.js +18 -11
- package/dist/api/payment-receipts-api.d.ts +5 -5
- package/dist/api/payment-receipts-api.js +29 -18
- package/dist/api/payment-reminders-api.d.ts +4 -4
- package/dist/api/payment-reminders-api.js +25 -15
- package/dist/api/payment-requests-api.d.ts +17 -17
- package/dist/api/payment-requests-api.js +38 -27
- package/dist/api/payment-setup-api.d.ts +2 -2
- package/dist/api/payment-setup-api.js +14 -8
- package/dist/api/payments-api.d.ts +4 -4
- package/dist/api/payments-api.js +28 -18
- package/dist/api/payout-methods-api.d.ts +6 -6
- package/dist/api/payout-methods-api.js +36 -22
- package/dist/api/policy-payment-methods-api.d.ts +3 -3
- package/dist/api/policy-payment-methods-api.js +18 -11
- package/dist/api/refunds-api.d.ts +3 -3
- package/dist/api/refunds-api.js +15 -10
- package/dist/api/tenant-bank-account-api.d.ts +5 -5
- package/dist/api/tenant-bank-account-api.js +29 -18
- package/dist/api/webhooks-api.d.ts +2 -2
- package/dist/base.d.ts +24 -0
- package/dist/base.js +178 -59
- 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-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 +2 -2
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 : {};
|
|
@@ -353,7 +353,7 @@ export declare class TenantBankAccountApi extends BaseAPI {
|
|
|
353
353
|
* @throws {RequiredError}
|
|
354
354
|
* @memberof TenantBankAccountApi
|
|
355
355
|
*/
|
|
356
|
-
createTenantBankAccount(requestParameters: TenantBankAccountApiCreateTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateTenantBankAccountResponseClass, any, {}>>;
|
|
356
|
+
createTenantBankAccount(requestParameters: TenantBankAccountApiCreateTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateTenantBankAccountResponseClass, any, {}, any>>;
|
|
357
357
|
/**
|
|
358
358
|
* Deletes a tenant bank account by code
|
|
359
359
|
* @summary Delete the tenant bank account
|
|
@@ -362,7 +362,7 @@ export declare class TenantBankAccountApi extends BaseAPI {
|
|
|
362
362
|
* @throws {RequiredError}
|
|
363
363
|
* @memberof TenantBankAccountApi
|
|
364
364
|
*/
|
|
365
|
-
deleteTenantBankAccount(requestParameters: TenantBankAccountApiDeleteTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
365
|
+
deleteTenantBankAccount(requestParameters: TenantBankAccountApiDeleteTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
|
|
366
366
|
/**
|
|
367
367
|
* Retrieves the details of the tenant bank account that was previously created. Supply the unique tenant bank account code that was returned when you created it and Emil Api will return the corresponding tenant bank account information.
|
|
368
368
|
* @summary Retrieve the tenant bank account
|
|
@@ -371,7 +371,7 @@ export declare class TenantBankAccountApi extends BaseAPI {
|
|
|
371
371
|
* @throws {RequiredError}
|
|
372
372
|
* @memberof TenantBankAccountApi
|
|
373
373
|
*/
|
|
374
|
-
getTenantBankAccount(requestParameters: TenantBankAccountApiGetTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetTenantBankAccountResponseClass, any, {}>>;
|
|
374
|
+
getTenantBankAccount(requestParameters: TenantBankAccountApiGetTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetTenantBankAccountResponseClass, any, {}, any>>;
|
|
375
375
|
/**
|
|
376
376
|
* Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
377
377
|
* @summary List tenant bank accounts
|
|
@@ -380,7 +380,7 @@ export declare class TenantBankAccountApi extends BaseAPI {
|
|
|
380
380
|
* @throws {RequiredError}
|
|
381
381
|
* @memberof TenantBankAccountApi
|
|
382
382
|
*/
|
|
383
|
-
listTenantBankAccounts(requestParameters?: TenantBankAccountApiListTenantBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTenantBankAccountResponseClass, any, {}>>;
|
|
383
|
+
listTenantBankAccounts(requestParameters?: TenantBankAccountApiListTenantBankAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListTenantBankAccountResponseClass, any, {}, any>>;
|
|
384
384
|
/**
|
|
385
385
|
* Update a tenant bank account by code
|
|
386
386
|
* @summary Update the tenant bank account
|
|
@@ -389,5 +389,5 @@ export declare class TenantBankAccountApi extends BaseAPI {
|
|
|
389
389
|
* @throws {RequiredError}
|
|
390
390
|
* @memberof TenantBankAccountApi
|
|
391
391
|
*/
|
|
392
|
-
updateTenantBankAccount(requestParameters: TenantBankAccountApiUpdateTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateTenantBankAccountResponseClass, any, {}>>;
|
|
392
|
+
updateTenantBankAccount(requestParameters: TenantBankAccountApiUpdateTenantBankAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateTenantBankAccountResponseClass, any, {}, any>>;
|
|
393
393
|
}
|
|
@@ -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);
|
|
@@ -164,7 +164,7 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
164
164
|
* @throws {RequiredError}
|
|
165
165
|
* @memberof WebhooksApi
|
|
166
166
|
*/
|
|
167
|
-
postWebhook(requestParameters: WebhooksApiPostWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
167
|
+
postWebhook(requestParameters: WebhooksApiPostWebhookRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
168
168
|
/**
|
|
169
169
|
* This will processes the webhook from external payment service provider. **Required Permissions** none
|
|
170
170
|
* @summary Handle the webhook from PSP
|
|
@@ -173,5 +173,5 @@ export declare class WebhooksApi extends BaseAPI {
|
|
|
173
173
|
* @throws {RequiredError}
|
|
174
174
|
* @memberof WebhooksApi
|
|
175
175
|
*/
|
|
176
|
-
postWebhookWithProductSlug(requestParameters: WebhooksApiPostWebhookWithProductSlugRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
176
|
+
postWebhookWithProductSlug(requestParameters: WebhooksApiPostWebhookWithProductSlugRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
177
177
|
}
|
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>;
|