@emilgroup/payment-sdk 1.22.1-beta.75 → 1.22.1-beta.77
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 +0 -6
- package/README.md +2 -2
- package/api/bank-accounts-api.ts +12 -24
- package/api/bank-orders-api.ts +10 -20
- package/api/bank-transaction-api.ts +20 -154
- package/api/billing-addresses-api.ts +10 -20
- package/api/credit-allocation-api.ts +6 -12
- package/api/exceeding-credits-api.ts +4 -117
- package/api/ibanvalidator-api.ts +2 -4
- package/api/payment-methods-api.ts +6 -12
- package/api/payment-receipts-api.ts +10 -20
- package/api/payment-reminders-api.ts +8 -16
- package/api/payment-requests-api.ts +22 -32
- package/api/payment-setup-api.ts +4 -8
- package/api/payments-api.ts +12 -24
- package/api/payout-methods-api.ts +12 -24
- package/api/policy-payment-methods-api.ts +6 -12
- package/api/refunds-api.ts +6 -12
- package/api/tenant-bank-account-api.ts +10 -20
- package/base.ts +41 -174
- package/common.ts +2 -3
- package/configuration.ts +0 -20
- package/dist/api/bank-accounts-api.d.ts +6 -6
- package/dist/api/bank-accounts-api.js +22 -36
- package/dist/api/bank-orders-api.d.ts +5 -5
- package/dist/api/bank-orders-api.js +18 -29
- package/dist/api/bank-transaction-api.d.ts +14 -80
- package/dist/api/bank-transaction-api.js +28 -144
- package/dist/api/billing-addresses-api.d.ts +5 -5
- package/dist/api/billing-addresses-api.js +19 -32
- package/dist/api/credit-allocation-api.d.ts +3 -3
- package/dist/api/credit-allocation-api.js +11 -18
- package/dist/api/exceeding-credits-api.d.ts +2 -59
- package/dist/api/exceeding-credits-api.js +7 -107
- 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 +4 -7
- package/dist/api/payment-methods-api.d.ts +3 -3
- package/dist/api/payment-methods-api.js +11 -18
- package/dist/api/payment-receipts-api.d.ts +5 -5
- package/dist/api/payment-receipts-api.js +18 -29
- package/dist/api/payment-reminders-api.d.ts +4 -4
- package/dist/api/payment-reminders-api.js +15 -25
- package/dist/api/payment-requests-api.d.ts +17 -17
- package/dist/api/payment-requests-api.js +27 -38
- package/dist/api/payment-setup-api.d.ts +2 -2
- package/dist/api/payment-setup-api.js +8 -14
- package/dist/api/payments-api.d.ts +4 -4
- package/dist/api/payments-api.js +18 -28
- package/dist/api/payout-methods-api.d.ts +6 -6
- package/dist/api/payout-methods-api.js +22 -36
- package/dist/api/policy-payment-methods-api.d.ts +3 -3
- package/dist/api/policy-payment-methods-api.js +11 -18
- package/dist/api/refunds-api.d.ts +3 -3
- package/dist/api/refunds-api.js +10 -15
- package/dist/api/tenant-bank-account-api.d.ts +5 -5
- package/dist/api/tenant-bank-account-api.js +18 -29
- package/dist/api/webhooks-api.d.ts +2 -2
- package/dist/base.d.ts +0 -24
- package/dist/base.js +59 -178
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/dist/configuration.d.ts +0 -17
- package/dist/configuration.js +0 -2
- package/dist/models/bank-transaction-class.d.ts +0 -7
- package/dist/models/bank-transaction-entity.d.ts +0 -7
- 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 +0 -6
- package/dist/models/credit-allocation-class.d.ts +0 -6
- package/dist/models/credit-allocation-entity.d.ts +0 -6
- package/dist/models/index.d.ts +0 -6
- package/dist/models/index.js +0 -6
- package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
- package/dist/models/list-exceeding-credits-response-class.d.ts +18 -6
- package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
- package/dist/models/list-payment-requests-response-class.d.ts +18 -6
- package/dist/models/list-payout-methods-response-class.d.ts +9 -9
- package/dist/models/list-refunds-response-class.d.ts +18 -6
- 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 +1 -13
- package/dist/models/payment-request-class.d.ts +6 -13
- package/dist/models/payment-request-class.js +0 -1
- package/dist/models/shared-transaction-class.d.ts +0 -6
- package/dist/models/transaction-entity.d.ts +0 -6
- package/models/bank-transaction-class.ts +0 -7
- package/models/bank-transaction-entity.ts +0 -7
- 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 +0 -6
- package/models/credit-allocation-class.ts +0 -6
- package/models/credit-allocation-entity.ts +0 -6
- package/models/index.ts +0 -6
- package/models/list-billing-addresses-response-class.ts +9 -9
- package/models/list-exceeding-credits-response-class.ts +18 -6
- package/models/list-payment-receipts-response-class.ts +9 -9
- package/models/list-payment-requests-response-class.ts +18 -6
- package/models/list-payout-methods-response-class.ts +9 -9
- package/models/list-refunds-response-class.ts +18 -6
- 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 +1 -13
- package/models/payment-request-class.ts +6 -13
- package/models/shared-transaction-class.ts +0 -6
- package/models/transaction-entity.ts +0 -6
- package/package.json +2 -2
- package/dist/models/create-exceeding-credit-request-dto.d.ts +0 -48
- package/dist/models/create-exceeding-credit-request-dto.js +0 -15
- package/dist/models/create-exceeding-credit-response-class.d.ts +0 -25
- package/dist/models/create-exceeding-credit-response-class.js +0 -15
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +0 -30
- package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +0 -15
- package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +0 -25
- package/dist/models/link-bank-transaction-payment-requests-response-class.js +0 -15
- package/dist/models/payment-receipt-entity.d.ts +0 -139
- package/dist/models/payment-receipt-entity.js +0 -20
- package/dist/models/payment-request-entity.d.ts +0 -223
- package/dist/models/payment-request-entity.js +0 -39
- package/models/create-exceeding-credit-request-dto.ts +0 -54
- package/models/create-exceeding-credit-response-class.ts +0 -31
- package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +0 -36
- package/models/link-bank-transaction-payment-requests-response-class.ts +0 -31
- package/models/payment-receipt-entity.ts +0 -148
- package/models/payment-request-entity.ts +0 -233
|
@@ -103,7 +103,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
activatePayoutMethod: function (code, 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,
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
@@ -121,16 +121,13 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
localVarQueryParameter = {};
|
|
122
122
|
// authentication bearer required
|
|
123
123
|
// http bearer authentication required
|
|
124
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
126
|
-
];
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
127
125
|
case 1:
|
|
128
126
|
// authentication bearer required
|
|
129
127
|
// http bearer authentication required
|
|
130
128
|
_a.sent();
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
129
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
131
|
}
|
|
135
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
136
133
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -154,7 +151,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
154
151
|
createPayoutMethod: function (createPayoutMethodRequestDto, authorization, options) {
|
|
155
152
|
if (options === void 0) { options = {}; }
|
|
156
153
|
return __awaiter(_this, void 0, void 0, function () {
|
|
157
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
154
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
158
155
|
return __generator(this, function (_a) {
|
|
159
156
|
switch (_a.label) {
|
|
160
157
|
case 0:
|
|
@@ -171,16 +168,13 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
171
168
|
localVarQueryParameter = {};
|
|
172
169
|
// authentication bearer required
|
|
173
170
|
// http bearer authentication required
|
|
174
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
175
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
176
|
-
];
|
|
171
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
177
172
|
case 1:
|
|
178
173
|
// authentication bearer required
|
|
179
174
|
// http bearer authentication required
|
|
180
175
|
_a.sent();
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
176
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
177
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
184
178
|
}
|
|
185
179
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
186
180
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -207,7 +201,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
207
201
|
createPayoutMethodByBankAccount: function (code, createPayoutMethodByBankAccountRequestDto, authorization, options) {
|
|
208
202
|
if (options === void 0) { options = {}; }
|
|
209
203
|
return __awaiter(_this, void 0, void 0, function () {
|
|
210
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
204
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
211
205
|
return __generator(this, function (_a) {
|
|
212
206
|
switch (_a.label) {
|
|
213
207
|
case 0:
|
|
@@ -227,16 +221,13 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
227
221
|
localVarQueryParameter = {};
|
|
228
222
|
// authentication bearer required
|
|
229
223
|
// http bearer authentication required
|
|
230
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
231
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
232
|
-
];
|
|
224
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
233
225
|
case 1:
|
|
234
226
|
// authentication bearer required
|
|
235
227
|
// http bearer authentication required
|
|
236
228
|
_a.sent();
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
229
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
230
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
240
231
|
}
|
|
241
232
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
242
233
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -262,7 +253,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
262
253
|
deletePayoutMethod: function (code, authorization, options) {
|
|
263
254
|
if (options === void 0) { options = {}; }
|
|
264
255
|
return __awaiter(_this, void 0, void 0, function () {
|
|
265
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
256
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
266
257
|
return __generator(this, function (_a) {
|
|
267
258
|
switch (_a.label) {
|
|
268
259
|
case 0:
|
|
@@ -280,16 +271,13 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
280
271
|
localVarQueryParameter = {};
|
|
281
272
|
// authentication bearer required
|
|
282
273
|
// http bearer authentication required
|
|
283
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
284
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
285
|
-
];
|
|
274
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
286
275
|
case 1:
|
|
287
276
|
// authentication bearer required
|
|
288
277
|
// http bearer authentication required
|
|
289
278
|
_a.sent();
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
279
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
280
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
293
281
|
}
|
|
294
282
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
295
283
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -314,7 +302,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
314
302
|
getPayoutMethod: function (code, authorization, expand, options) {
|
|
315
303
|
if (options === void 0) { options = {}; }
|
|
316
304
|
return __awaiter(_this, void 0, void 0, function () {
|
|
317
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
305
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
318
306
|
return __generator(this, function (_a) {
|
|
319
307
|
switch (_a.label) {
|
|
320
308
|
case 0:
|
|
@@ -340,9 +328,8 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
340
328
|
if (expand !== undefined) {
|
|
341
329
|
localVarQueryParameter['expand'] = expand;
|
|
342
330
|
}
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
331
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
332
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
346
333
|
}
|
|
347
334
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
348
335
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -372,7 +359,7 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
372
359
|
listPayoutMethods: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
373
360
|
if (options === void 0) { options = {}; }
|
|
374
361
|
return __awaiter(_this, void 0, void 0, function () {
|
|
375
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
362
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
376
363
|
return __generator(this, function (_a) {
|
|
377
364
|
switch (_a.label) {
|
|
378
365
|
case 0:
|
|
@@ -413,9 +400,8 @@ var PayoutMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
413
400
|
if (filters !== undefined) {
|
|
414
401
|
localVarQueryParameter['filters'] = filters;
|
|
415
402
|
}
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
403
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
404
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
419
405
|
}
|
|
420
406
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
421
407
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -250,7 +250,7 @@ export declare class PolicyPaymentMethodsApi extends BaseAPI {
|
|
|
250
250
|
* @throws {RequiredError}
|
|
251
251
|
* @memberof PolicyPaymentMethodsApi
|
|
252
252
|
*/
|
|
253
|
-
activatePolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}
|
|
253
|
+
activatePolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiActivatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
254
254
|
/**
|
|
255
255
|
* Attaches a payment method to a policy by creating a policy payment method and setting it as active. Any previous payment method attachment will be deactivated. **Required Permissions** \"payment-management.payments.create\"
|
|
256
256
|
* @summary Create the policy payment method
|
|
@@ -259,7 +259,7 @@ export declare class PolicyPaymentMethodsApi extends BaseAPI {
|
|
|
259
259
|
* @throws {RequiredError}
|
|
260
260
|
* @memberof PolicyPaymentMethodsApi
|
|
261
261
|
*/
|
|
262
|
-
createPolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyPaymentMethodResponseClass, any, {}
|
|
262
|
+
createPolicyPaymentMethod(requestParameters: PolicyPaymentMethodsApiCreatePolicyPaymentMethodRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyPaymentMethodResponseClass, any, {}>>;
|
|
263
263
|
/**
|
|
264
264
|
* List policy payment methods **Required Permissions** \"payment-management.payments.view\"
|
|
265
265
|
* @summary Retrieve the policy payment methods
|
|
@@ -268,5 +268,5 @@ export declare class PolicyPaymentMethodsApi extends BaseAPI {
|
|
|
268
268
|
* @throws {RequiredError}
|
|
269
269
|
* @memberof PolicyPaymentMethodsApi
|
|
270
270
|
*/
|
|
271
|
-
listPolicyPaymentMethods(requestParameters?: PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPolicyPaymentMethodsResponseClass, any, {}
|
|
271
|
+
listPolicyPaymentMethods(requestParameters?: PolicyPaymentMethodsApiListPolicyPaymentMethodsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPolicyPaymentMethodsResponseClass, any, {}>>;
|
|
272
272
|
}
|
|
@@ -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,
|
|
107
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
108
108
|
return __generator(this, function (_a) {
|
|
109
109
|
switch (_a.label) {
|
|
110
110
|
case 0:
|
|
@@ -124,16 +124,13 @@ 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)
|
|
128
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
129
|
-
];
|
|
127
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
130
128
|
case 1:
|
|
131
129
|
// authentication bearer required
|
|
132
130
|
// http bearer authentication required
|
|
133
131
|
_a.sent();
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
132
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
137
134
|
}
|
|
138
135
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -159,7 +156,7 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
159
156
|
createPolicyPaymentMethod: function (createPolicyPaymentMethodRequestDto, authorization, options) {
|
|
160
157
|
if (options === void 0) { options = {}; }
|
|
161
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
163
160
|
return __generator(this, function (_a) {
|
|
164
161
|
switch (_a.label) {
|
|
165
162
|
case 0:
|
|
@@ -176,16 +173,13 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
176
173
|
localVarQueryParameter = {};
|
|
177
174
|
// authentication bearer required
|
|
178
175
|
// http bearer authentication required
|
|
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
|
-
];
|
|
176
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
182
177
|
case 1:
|
|
183
178
|
// authentication bearer required
|
|
184
179
|
// http bearer authentication required
|
|
185
180
|
_a.sent();
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
181
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
189
183
|
}
|
|
190
184
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
191
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -217,7 +211,7 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
217
211
|
listPolicyPaymentMethods: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
218
212
|
if (options === void 0) { options = {}; }
|
|
219
213
|
return __awaiter(_this, void 0, void 0, function () {
|
|
220
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
214
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
221
215
|
return __generator(this, function (_a) {
|
|
222
216
|
switch (_a.label) {
|
|
223
217
|
case 0:
|
|
@@ -258,9 +252,8 @@ var PolicyPaymentMethodsApiAxiosParamCreator = function (configuration) {
|
|
|
258
252
|
if (filters !== undefined) {
|
|
259
253
|
localVarQueryParameter['filters'] = filters;
|
|
260
254
|
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
255
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
256
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
264
257
|
}
|
|
265
258
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
266
259
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -250,7 +250,7 @@ export declare class RefundsApi extends BaseAPI {
|
|
|
250
250
|
* @throws {RequiredError}
|
|
251
251
|
* @memberof RefundsApi
|
|
252
252
|
*/
|
|
253
|
-
createRefund(requestParameters: RefundsApiCreateRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRefundResponseClass, any, {}
|
|
253
|
+
createRefund(requestParameters: RefundsApiCreateRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateRefundResponseClass, any, {}>>;
|
|
254
254
|
/**
|
|
255
255
|
* Retrieves the details of the refund that was previously created. Supply the unique refund code that was returned when you created it and Emil Api will return the corresponding refund information. **Required Permissions** \"payment-management.payments.view\"
|
|
256
256
|
* @summary Retrieve the refund
|
|
@@ -259,7 +259,7 @@ export declare class RefundsApi extends BaseAPI {
|
|
|
259
259
|
* @throws {RequiredError}
|
|
260
260
|
* @memberof RefundsApi
|
|
261
261
|
*/
|
|
262
|
-
getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRefundResponseClass, any, {}
|
|
262
|
+
getRefund(requestParameters: RefundsApiGetRefundRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetRefundResponseClass, any, {}>>;
|
|
263
263
|
/**
|
|
264
264
|
* Returns a list of refunds you have previously created. The refunds are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.payments.view\"
|
|
265
265
|
* @summary List refunds
|
|
@@ -268,5 +268,5 @@ export declare class RefundsApi extends BaseAPI {
|
|
|
268
268
|
* @throws {RequiredError}
|
|
269
269
|
* @memberof RefundsApi
|
|
270
270
|
*/
|
|
271
|
-
listRefunds(requestParameters?: RefundsApiListRefundsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRefundsResponseClass, any, {}
|
|
271
|
+
listRefunds(requestParameters?: RefundsApiListRefundsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListRefundsResponseClass, any, {}>>;
|
|
272
272
|
}
|
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,
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
@@ -120,16 +120,13 @@ 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)
|
|
124
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
125
|
-
];
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
126
124
|
case 1:
|
|
127
125
|
// authentication bearer required
|
|
128
126
|
// http bearer authentication required
|
|
129
127
|
_a.sent();
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
133
130
|
}
|
|
134
131
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
135
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -156,7 +153,7 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
156
153
|
getRefund: function (code, authorization, expand, options) {
|
|
157
154
|
if (options === void 0) { options = {}; }
|
|
158
155
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
156
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
157
|
return __generator(this, function (_a) {
|
|
161
158
|
switch (_a.label) {
|
|
162
159
|
case 0:
|
|
@@ -182,9 +179,8 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
182
179
|
if (expand !== undefined) {
|
|
183
180
|
localVarQueryParameter['expand'] = expand;
|
|
184
181
|
}
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
182
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
188
184
|
}
|
|
189
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
190
186
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -214,7 +210,7 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
214
210
|
listRefunds: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
215
211
|
if (options === void 0) { options = {}; }
|
|
216
212
|
return __awaiter(_this, void 0, void 0, function () {
|
|
217
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
213
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
218
214
|
return __generator(this, function (_a) {
|
|
219
215
|
switch (_a.label) {
|
|
220
216
|
case 0:
|
|
@@ -255,9 +251,8 @@ var RefundsApiAxiosParamCreator = function (configuration) {
|
|
|
255
251
|
if (filters !== undefined) {
|
|
256
252
|
localVarQueryParameter['filters'] = filters;
|
|
257
253
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
254
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
255
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
261
256
|
}
|
|
262
257
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
263
258
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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,
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
@@ -120,16 +120,13 @@ 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)
|
|
124
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
125
|
-
];
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
126
124
|
case 1:
|
|
127
125
|
// authentication bearer required
|
|
128
126
|
// http bearer authentication required
|
|
129
127
|
_a.sent();
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
133
130
|
}
|
|
134
131
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
135
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -155,7 +152,7 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
155
152
|
deleteTenantBankAccount: function (code, authorization, options) {
|
|
156
153
|
if (options === void 0) { options = {}; }
|
|
157
154
|
return __awaiter(_this, void 0, void 0, function () {
|
|
158
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
159
156
|
return __generator(this, function (_a) {
|
|
160
157
|
switch (_a.label) {
|
|
161
158
|
case 0:
|
|
@@ -173,16 +170,13 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
173
170
|
localVarQueryParameter = {};
|
|
174
171
|
// authentication bearer required
|
|
175
172
|
// http bearer authentication required
|
|
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
|
-
];
|
|
173
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
179
174
|
case 1:
|
|
180
175
|
// authentication bearer required
|
|
181
176
|
// http bearer authentication required
|
|
182
177
|
_a.sent();
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
178
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
186
180
|
}
|
|
187
181
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
188
182
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -207,7 +201,7 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
207
201
|
getTenantBankAccount: function (code, authorization, expand, options) {
|
|
208
202
|
if (options === void 0) { options = {}; }
|
|
209
203
|
return __awaiter(_this, void 0, void 0, function () {
|
|
210
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
204
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
211
205
|
return __generator(this, function (_a) {
|
|
212
206
|
switch (_a.label) {
|
|
213
207
|
case 0:
|
|
@@ -233,9 +227,8 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
233
227
|
if (expand !== undefined) {
|
|
234
228
|
localVarQueryParameter['expand'] = expand;
|
|
235
229
|
}
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
230
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
231
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
239
232
|
}
|
|
240
233
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
241
234
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -265,7 +258,7 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
265
258
|
listTenantBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
266
259
|
if (options === void 0) { options = {}; }
|
|
267
260
|
return __awaiter(_this, void 0, void 0, function () {
|
|
268
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
261
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
269
262
|
return __generator(this, function (_a) {
|
|
270
263
|
switch (_a.label) {
|
|
271
264
|
case 0:
|
|
@@ -306,9 +299,8 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
306
299
|
if (filters !== undefined) {
|
|
307
300
|
localVarQueryParameter['filters'] = filters;
|
|
308
301
|
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
302
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
303
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
312
304
|
}
|
|
313
305
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
314
306
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -333,7 +325,7 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
333
325
|
updateTenantBankAccount: function (code, updateTenantBankAccountRestRequestDto, authorization, options) {
|
|
334
326
|
if (options === void 0) { options = {}; }
|
|
335
327
|
return __awaiter(_this, void 0, void 0, function () {
|
|
336
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
328
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
337
329
|
return __generator(this, function (_a) {
|
|
338
330
|
switch (_a.label) {
|
|
339
331
|
case 0:
|
|
@@ -353,16 +345,13 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
|
|
|
353
345
|
localVarQueryParameter = {};
|
|
354
346
|
// authentication bearer required
|
|
355
347
|
// http bearer authentication required
|
|
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
|
-
];
|
|
348
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
359
349
|
case 1:
|
|
360
350
|
// authentication bearer required
|
|
361
351
|
// http bearer authentication required
|
|
362
352
|
_a.sent();
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
353
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
354
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
366
355
|
}
|
|
367
356
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
368
357
|
(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, {}>>;
|
|
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, {}>>;
|
|
177
177
|
}
|
package/dist/base.d.ts
CHANGED
|
@@ -22,19 +22,9 @@ 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
|
-
}
|
|
33
25
|
export interface LoginClass {
|
|
34
26
|
accessToken: string;
|
|
35
27
|
permissions: string;
|
|
36
|
-
authMode?: string;
|
|
37
|
-
session?: SessionClass;
|
|
38
28
|
}
|
|
39
29
|
export interface SwitchWorkspaceRequest {
|
|
40
30
|
username: string;
|
|
@@ -43,8 +33,6 @@ export interface SwitchWorkspaceRequest {
|
|
|
43
33
|
export interface SwitchWorkspaceResponseClass {
|
|
44
34
|
accessToken: string;
|
|
45
35
|
permissions: string;
|
|
46
|
-
authMode?: string;
|
|
47
|
-
session?: SessionClass;
|
|
48
36
|
}
|
|
49
37
|
export declare enum Environment {
|
|
50
38
|
Production = "https://apiv2.emil.de",
|
|
@@ -75,18 +63,6 @@ export declare class BaseAPI {
|
|
|
75
63
|
protected configuration: Configuration | undefined;
|
|
76
64
|
private tokenData?;
|
|
77
65
|
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;
|
|
90
66
|
selectEnvironment(env: Environment): void;
|
|
91
67
|
selectBasePath(path: string): void;
|
|
92
68
|
getPermissions(): Array<string>;
|