@emilgroup/payment-sdk 1.22.1-beta.76 → 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/bank-transaction-invoice-entity.d.ts +0 -24
- 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/exceeding-credit-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/bank-transaction-invoice-entity.ts +0 -24
- 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/exceeding-credit-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
|
@@ -344,7 +344,7 @@ export declare class BillingAddressesApi extends BaseAPI {
|
|
|
344
344
|
* @throws {RequiredError}
|
|
345
345
|
* @memberof BillingAddressesApi
|
|
346
346
|
*/
|
|
347
|
-
createBillingAddress(requestParameters: BillingAddressesApiCreateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBillingAddressResponseClass, any, {}
|
|
347
|
+
createBillingAddress(requestParameters: BillingAddressesApiCreateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBillingAddressResponseClass, any, {}>>;
|
|
348
348
|
/**
|
|
349
349
|
* Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
|
|
350
350
|
* @summary Delete the Billing Address
|
|
@@ -353,7 +353,7 @@ export declare class BillingAddressesApi extends BaseAPI {
|
|
|
353
353
|
* @throws {RequiredError}
|
|
354
354
|
* @memberof BillingAddressesApi
|
|
355
355
|
*/
|
|
356
|
-
deleteBillingAddress(requestParameters: BillingAddressesApiDeleteBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}
|
|
356
|
+
deleteBillingAddress(requestParameters: BillingAddressesApiDeleteBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
357
357
|
/**
|
|
358
358
|
* Retrieves the details of the Billing Address that was previously created. Supply the unique Billing Address code that was returned when you created it and Emil Api will return the corresponding Billing Address information. **Required Permissions** \"payment-management.payments.view\"
|
|
359
359
|
* @summary Retrieve the Billing Address
|
|
@@ -362,7 +362,7 @@ export declare class BillingAddressesApi extends BaseAPI {
|
|
|
362
362
|
* @throws {RequiredError}
|
|
363
363
|
* @memberof BillingAddressesApi
|
|
364
364
|
*/
|
|
365
|
-
getBillingAddress(requestParameters: BillingAddressesApiGetBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBillingAddressResponseClass, any, {}
|
|
365
|
+
getBillingAddress(requestParameters: BillingAddressesApiGetBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBillingAddressResponseClass, any, {}>>;
|
|
366
366
|
/**
|
|
367
367
|
* Returns a list of Billing Addresses you have previously created. The Billing Addresses 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\"
|
|
368
368
|
* @summary List Billing Addresses
|
|
@@ -371,7 +371,7 @@ export declare class BillingAddressesApi extends BaseAPI {
|
|
|
371
371
|
* @throws {RequiredError}
|
|
372
372
|
* @memberof BillingAddressesApi
|
|
373
373
|
*/
|
|
374
|
-
listBillingAddresses(requestParameters?: BillingAddressesApiListBillingAddressesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBillingAddressesResponseClass, any, {}
|
|
374
|
+
listBillingAddresses(requestParameters?: BillingAddressesApiListBillingAddressesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBillingAddressesResponseClass, any, {}>>;
|
|
375
375
|
/**
|
|
376
376
|
* Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
|
|
377
377
|
* @summary Update the Billing Address
|
|
@@ -380,5 +380,5 @@ export declare class BillingAddressesApi extends BaseAPI {
|
|
|
380
380
|
* @throws {RequiredError}
|
|
381
381
|
* @memberof BillingAddressesApi
|
|
382
382
|
*/
|
|
383
|
-
updateBillingAddress(requestParameters: BillingAddressesApiUpdateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBillingAddressResponseClass, any, {}
|
|
383
|
+
updateBillingAddress(requestParameters: BillingAddressesApiUpdateBillingAddressRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateBillingAddressResponseClass, any, {}>>;
|
|
384
384
|
}
|
|
@@ -103,7 +103,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createBillingAddress: function (createBillingAddressRequestDto, 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 BillingAddressesApiAxiosParamCreator = 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 BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
155
152
|
deleteBillingAddress: 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 BillingAddressesApiAxiosParamCreator = 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 : {};
|
|
@@ -206,7 +200,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
206
200
|
getBillingAddress: function (code, authorization, options) {
|
|
207
201
|
if (options === void 0) { options = {}; }
|
|
208
202
|
return __awaiter(_this, void 0, void 0, function () {
|
|
209
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
203
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
210
204
|
return __generator(this, function (_a) {
|
|
211
205
|
switch (_a.label) {
|
|
212
206
|
case 0:
|
|
@@ -224,16 +218,13 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
224
218
|
localVarQueryParameter = {};
|
|
225
219
|
// authentication bearer required
|
|
226
220
|
// http bearer authentication required
|
|
227
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
228
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
229
|
-
];
|
|
221
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
230
222
|
case 1:
|
|
231
223
|
// authentication bearer required
|
|
232
224
|
// http bearer authentication required
|
|
233
225
|
_a.sent();
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
226
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
237
228
|
}
|
|
238
229
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
239
230
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -263,7 +254,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
263
254
|
listBillingAddresses: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
264
255
|
if (options === void 0) { options = {}; }
|
|
265
256
|
return __awaiter(_this, void 0, void 0, function () {
|
|
266
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
257
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
267
258
|
return __generator(this, function (_a) {
|
|
268
259
|
switch (_a.label) {
|
|
269
260
|
case 0:
|
|
@@ -304,9 +295,8 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
304
295
|
if (filters !== undefined) {
|
|
305
296
|
localVarQueryParameter['filters'] = filters;
|
|
306
297
|
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
298
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
299
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
310
300
|
}
|
|
311
301
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
312
302
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -331,7 +321,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
331
321
|
updateBillingAddress: function (code, updateBillingAddressRequestDto, authorization, options) {
|
|
332
322
|
if (options === void 0) { options = {}; }
|
|
333
323
|
return __awaiter(_this, void 0, void 0, function () {
|
|
334
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
324
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
335
325
|
return __generator(this, function (_a) {
|
|
336
326
|
switch (_a.label) {
|
|
337
327
|
case 0:
|
|
@@ -351,16 +341,13 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
351
341
|
localVarQueryParameter = {};
|
|
352
342
|
// authentication bearer required
|
|
353
343
|
// http bearer authentication required
|
|
354
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
355
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
356
|
-
];
|
|
344
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
357
345
|
case 1:
|
|
358
346
|
// authentication bearer required
|
|
359
347
|
// http bearer authentication required
|
|
360
348
|
_a.sent();
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
349
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
350
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
364
351
|
}
|
|
365
352
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
366
353
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -241,7 +241,7 @@ export declare class CreditAllocationApi extends BaseAPI {
|
|
|
241
241
|
* @throws {RequiredError}
|
|
242
242
|
* @memberof CreditAllocationApi
|
|
243
243
|
*/
|
|
244
|
-
createAllocateCredit(requestParameters: CreditAllocationApiCreateAllocateCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCreditAllocationResponseClass, any, {}
|
|
244
|
+
createAllocateCredit(requestParameters: CreditAllocationApiCreateAllocateCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCreditAllocationResponseClass, any, {}>>;
|
|
245
245
|
/**
|
|
246
246
|
* Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
|
|
247
247
|
* @summary Retrieve the credit allocation entry
|
|
@@ -250,7 +250,7 @@ export declare class CreditAllocationApi extends BaseAPI {
|
|
|
250
250
|
* @throws {RequiredError}
|
|
251
251
|
* @memberof CreditAllocationApi
|
|
252
252
|
*/
|
|
253
|
-
getCreditAllocation(requestParameters: CreditAllocationApiGetCreditAllocationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCreditAllocationResponseClass, any, {}
|
|
253
|
+
getCreditAllocation(requestParameters: CreditAllocationApiGetCreditAllocationRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCreditAllocationResponseClass, any, {}>>;
|
|
254
254
|
/**
|
|
255
255
|
* Returns a list of credit allocations you have previously created. The credit allocations 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\"
|
|
256
256
|
* @summary List credit allocations
|
|
@@ -259,5 +259,5 @@ export declare class CreditAllocationApi extends BaseAPI {
|
|
|
259
259
|
* @throws {RequiredError}
|
|
260
260
|
* @memberof CreditAllocationApi
|
|
261
261
|
*/
|
|
262
|
-
listCreditAllocations(requestParameters?: CreditAllocationApiListCreditAllocationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCreditAllocationsResponseClass, any, {}
|
|
262
|
+
listCreditAllocations(requestParameters?: CreditAllocationApiListCreditAllocationsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCreditAllocationsResponseClass, any, {}>>;
|
|
263
263
|
}
|
|
@@ -103,7 +103,7 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createAllocateCredit: function (createCreditAllocationRequestDto, 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 CreditAllocationApiAxiosParamCreator = 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 CreditAllocationApiAxiosParamCreator = function (configuration) {
|
|
|
155
152
|
getCreditAllocation: 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 CreditAllocationApiAxiosParamCreator = 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 : {};
|
|
@@ -212,7 +206,7 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
|
|
|
212
206
|
listCreditAllocations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
213
207
|
if (options === void 0) { options = {}; }
|
|
214
208
|
return __awaiter(_this, void 0, void 0, function () {
|
|
215
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
209
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
216
210
|
return __generator(this, function (_a) {
|
|
217
211
|
switch (_a.label) {
|
|
218
212
|
case 0:
|
|
@@ -253,9 +247,8 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
|
|
|
253
247
|
if (filters !== undefined) {
|
|
254
248
|
localVarQueryParameter['filters'] = filters;
|
|
255
249
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
250
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
251
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
259
252
|
}
|
|
260
253
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
261
254
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import { CreateExceedingCreditRequestDto } from '../models';
|
|
16
|
-
import { CreateExceedingCreditResponseClass } from '../models';
|
|
17
15
|
import { GetExceedingCreditResponseClass } from '../models';
|
|
18
16
|
import { ListExceedingCreditsResponseClass } from '../models';
|
|
19
17
|
/**
|
|
@@ -21,15 +19,6 @@ import { ListExceedingCreditsResponseClass } from '../models';
|
|
|
21
19
|
* @export
|
|
22
20
|
*/
|
|
23
21
|
export declare const ExceedingCreditsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
|
-
/**
|
|
25
|
-
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
26
|
-
* @summary Create the exceeding credit
|
|
27
|
-
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
28
|
-
* @param {string} [authorization] Bearer Token
|
|
29
|
-
* @param {*} [options] Override http request option.
|
|
30
|
-
* @throws {RequiredError}
|
|
31
|
-
*/
|
|
32
|
-
createExceedingCredit: (createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
22
|
/**
|
|
34
23
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
35
24
|
* @summary Retrieve the exceeding credit
|
|
@@ -60,15 +49,6 @@ export declare const ExceedingCreditsApiAxiosParamCreator: (configuration?: Conf
|
|
|
60
49
|
* @export
|
|
61
50
|
*/
|
|
62
51
|
export declare const ExceedingCreditsApiFp: (configuration?: Configuration) => {
|
|
63
|
-
/**
|
|
64
|
-
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
65
|
-
* @summary Create the exceeding credit
|
|
66
|
-
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
67
|
-
* @param {string} [authorization] Bearer Token
|
|
68
|
-
* @param {*} [options] Override http request option.
|
|
69
|
-
* @throws {RequiredError}
|
|
70
|
-
*/
|
|
71
|
-
createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateExceedingCreditResponseClass>>;
|
|
72
52
|
/**
|
|
73
53
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
74
54
|
* @summary Retrieve the exceeding credit
|
|
@@ -99,15 +79,6 @@ export declare const ExceedingCreditsApiFp: (configuration?: Configuration) => {
|
|
|
99
79
|
* @export
|
|
100
80
|
*/
|
|
101
81
|
export declare const ExceedingCreditsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
102
|
-
/**
|
|
103
|
-
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
104
|
-
* @summary Create the exceeding credit
|
|
105
|
-
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
106
|
-
* @param {string} [authorization] Bearer Token
|
|
107
|
-
* @param {*} [options] Override http request option.
|
|
108
|
-
* @throws {RequiredError}
|
|
109
|
-
*/
|
|
110
|
-
createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: any): AxiosPromise<CreateExceedingCreditResponseClass>;
|
|
111
82
|
/**
|
|
112
83
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
113
84
|
* @summary Retrieve the exceeding credit
|
|
@@ -133,25 +104,6 @@ export declare const ExceedingCreditsApiFactory: (configuration?: Configuration,
|
|
|
133
104
|
*/
|
|
134
105
|
listExceedingCredits(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListExceedingCreditsResponseClass>;
|
|
135
106
|
};
|
|
136
|
-
/**
|
|
137
|
-
* Request parameters for createExceedingCredit operation in ExceedingCreditsApi.
|
|
138
|
-
* @export
|
|
139
|
-
* @interface ExceedingCreditsApiCreateExceedingCreditRequest
|
|
140
|
-
*/
|
|
141
|
-
export interface ExceedingCreditsApiCreateExceedingCreditRequest {
|
|
142
|
-
/**
|
|
143
|
-
*
|
|
144
|
-
* @type {CreateExceedingCreditRequestDto}
|
|
145
|
-
* @memberof ExceedingCreditsApiCreateExceedingCredit
|
|
146
|
-
*/
|
|
147
|
-
readonly createExceedingCreditRequestDto: CreateExceedingCreditRequestDto;
|
|
148
|
-
/**
|
|
149
|
-
* Bearer Token
|
|
150
|
-
* @type {string}
|
|
151
|
-
* @memberof ExceedingCreditsApiCreateExceedingCredit
|
|
152
|
-
*/
|
|
153
|
-
readonly authorization?: string;
|
|
154
|
-
}
|
|
155
107
|
/**
|
|
156
108
|
* Request parameters for getExceedingCredit operation in ExceedingCreditsApi.
|
|
157
109
|
* @export
|
|
@@ -233,15 +185,6 @@ export interface ExceedingCreditsApiListExceedingCreditsRequest {
|
|
|
233
185
|
* @extends {BaseAPI}
|
|
234
186
|
*/
|
|
235
187
|
export declare class ExceedingCreditsApi extends BaseAPI {
|
|
236
|
-
/**
|
|
237
|
-
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
238
|
-
* @summary Create the exceeding credit
|
|
239
|
-
* @param {ExceedingCreditsApiCreateExceedingCreditRequest} requestParameters Request parameters.
|
|
240
|
-
* @param {*} [options] Override http request option.
|
|
241
|
-
* @throws {RequiredError}
|
|
242
|
-
* @memberof ExceedingCreditsApi
|
|
243
|
-
*/
|
|
244
|
-
createExceedingCredit(requestParameters: ExceedingCreditsApiCreateExceedingCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateExceedingCreditResponseClass, any, {}, any>>;
|
|
245
188
|
/**
|
|
246
189
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
247
190
|
* @summary Retrieve the exceeding credit
|
|
@@ -250,7 +193,7 @@ export declare class ExceedingCreditsApi extends BaseAPI {
|
|
|
250
193
|
* @throws {RequiredError}
|
|
251
194
|
* @memberof ExceedingCreditsApi
|
|
252
195
|
*/
|
|
253
|
-
getExceedingCredit(requestParameters: ExceedingCreditsApiGetExceedingCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetExceedingCreditResponseClass, any, {}
|
|
196
|
+
getExceedingCredit(requestParameters: ExceedingCreditsApiGetExceedingCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetExceedingCreditResponseClass, any, {}>>;
|
|
254
197
|
/**
|
|
255
198
|
* Returns a list of exceeding credits you have previously created. The exceeding credits 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\"
|
|
256
199
|
* @summary List exceeding credits
|
|
@@ -259,5 +202,5 @@ export declare class ExceedingCreditsApi extends BaseAPI {
|
|
|
259
202
|
* @throws {RequiredError}
|
|
260
203
|
* @memberof ExceedingCreditsApi
|
|
261
204
|
*/
|
|
262
|
-
listExceedingCredits(requestParameters?: ExceedingCreditsApiListExceedingCreditsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListExceedingCreditsResponseClass, any, {}
|
|
205
|
+
listExceedingCredits(requestParameters?: ExceedingCreditsApiListExceedingCreditsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListExceedingCreditsResponseClass, any, {}>>;
|
|
263
206
|
}
|
|
@@ -92,58 +92,6 @@ var base_1 = require("../base");
|
|
|
92
92
|
var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
|
-
/**
|
|
96
|
-
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
97
|
-
* @summary Create the exceeding credit
|
|
98
|
-
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
99
|
-
* @param {string} [authorization] Bearer Token
|
|
100
|
-
* @param {*} [options] Override http request option.
|
|
101
|
-
* @throws {RequiredError}
|
|
102
|
-
*/
|
|
103
|
-
createExceedingCredit: function (createExceedingCreditRequestDto, authorization, options) {
|
|
104
|
-
if (options === void 0) { options = {}; }
|
|
105
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
|
|
107
|
-
return __generator(this, function (_a) {
|
|
108
|
-
switch (_a.label) {
|
|
109
|
-
case 0:
|
|
110
|
-
// verify required parameter 'createExceedingCreditRequestDto' is not null or undefined
|
|
111
|
-
(0, common_1.assertParamExists)('createExceedingCredit', 'createExceedingCreditRequestDto', createExceedingCreditRequestDto);
|
|
112
|
-
localVarPath = "/paymentservice/v1/exceeding-credits";
|
|
113
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
|
-
if (configuration) {
|
|
115
|
-
baseOptions = configuration.baseOptions;
|
|
116
|
-
baseAccessToken = configuration.accessToken;
|
|
117
|
-
}
|
|
118
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
119
|
-
localVarHeaderParameter = {};
|
|
120
|
-
localVarQueryParameter = {};
|
|
121
|
-
// authentication bearer required
|
|
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
|
-
];
|
|
126
|
-
case 1:
|
|
127
|
-
// authentication bearer required
|
|
128
|
-
// http bearer authentication required
|
|
129
|
-
_a.sent();
|
|
130
|
-
authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
131
|
-
if (authorizationValue) {
|
|
132
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
133
|
-
}
|
|
134
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
135
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
136
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
138
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createExceedingCreditRequestDto, localVarRequestOptions, configuration);
|
|
139
|
-
return [2 /*return*/, {
|
|
140
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
|
-
options: localVarRequestOptions,
|
|
142
|
-
}];
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
},
|
|
147
95
|
/**
|
|
148
96
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
149
97
|
* @summary Retrieve the exceeding credit
|
|
@@ -155,7 +103,7 @@ var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
|
|
|
155
103
|
getExceedingCredit: function (code, authorization, options) {
|
|
156
104
|
if (options === void 0) { options = {}; }
|
|
157
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
158
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
159
107
|
return __generator(this, function (_a) {
|
|
160
108
|
switch (_a.label) {
|
|
161
109
|
case 0:
|
|
@@ -173,16 +121,13 @@ var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
|
|
|
173
121
|
localVarQueryParameter = {};
|
|
174
122
|
// authentication bearer required
|
|
175
123
|
// 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
|
-
];
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
179
125
|
case 1:
|
|
180
126
|
// authentication bearer required
|
|
181
127
|
// http bearer authentication required
|
|
182
128
|
_a.sent();
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
129
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
186
131
|
}
|
|
187
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
188
133
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -212,7 +157,7 @@ var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
|
|
|
212
157
|
listExceedingCredits: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
213
158
|
if (options === void 0) { options = {}; }
|
|
214
159
|
return __awaiter(_this, void 0, void 0, function () {
|
|
215
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
160
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
216
161
|
return __generator(this, function (_a) {
|
|
217
162
|
switch (_a.label) {
|
|
218
163
|
case 0:
|
|
@@ -253,9 +198,8 @@ var ExceedingCreditsApiAxiosParamCreator = function (configuration) {
|
|
|
253
198
|
if (filters !== undefined) {
|
|
254
199
|
localVarQueryParameter['filters'] = filters;
|
|
255
200
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
201
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
202
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
259
203
|
}
|
|
260
204
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
261
205
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -278,27 +222,6 @@ exports.ExceedingCreditsApiAxiosParamCreator = ExceedingCreditsApiAxiosParamCrea
|
|
|
278
222
|
var ExceedingCreditsApiFp = function (configuration) {
|
|
279
223
|
var localVarAxiosParamCreator = (0, exports.ExceedingCreditsApiAxiosParamCreator)(configuration);
|
|
280
224
|
return {
|
|
281
|
-
/**
|
|
282
|
-
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
283
|
-
* @summary Create the exceeding credit
|
|
284
|
-
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
285
|
-
* @param {string} [authorization] Bearer Token
|
|
286
|
-
* @param {*} [options] Override http request option.
|
|
287
|
-
* @throws {RequiredError}
|
|
288
|
-
*/
|
|
289
|
-
createExceedingCredit: function (createExceedingCreditRequestDto, authorization, options) {
|
|
290
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
291
|
-
var localVarAxiosArgs;
|
|
292
|
-
return __generator(this, function (_a) {
|
|
293
|
-
switch (_a.label) {
|
|
294
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createExceedingCredit(createExceedingCreditRequestDto, authorization, options)];
|
|
295
|
-
case 1:
|
|
296
|
-
localVarAxiosArgs = _a.sent();
|
|
297
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
298
|
-
}
|
|
299
|
-
});
|
|
300
|
-
});
|
|
301
|
-
},
|
|
302
225
|
/**
|
|
303
226
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
304
227
|
* @summary Retrieve the exceeding credit
|
|
@@ -357,17 +280,6 @@ exports.ExceedingCreditsApiFp = ExceedingCreditsApiFp;
|
|
|
357
280
|
var ExceedingCreditsApiFactory = function (configuration, basePath, axios) {
|
|
358
281
|
var localVarFp = (0, exports.ExceedingCreditsApiFp)(configuration);
|
|
359
282
|
return {
|
|
360
|
-
/**
|
|
361
|
-
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
362
|
-
* @summary Create the exceeding credit
|
|
363
|
-
* @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
|
|
364
|
-
* @param {string} [authorization] Bearer Token
|
|
365
|
-
* @param {*} [options] Override http request option.
|
|
366
|
-
* @throws {RequiredError}
|
|
367
|
-
*/
|
|
368
|
-
createExceedingCredit: function (createExceedingCreditRequestDto, authorization, options) {
|
|
369
|
-
return localVarFp.createExceedingCredit(createExceedingCreditRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
370
|
-
},
|
|
371
283
|
/**
|
|
372
284
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
373
285
|
* @summary Retrieve the exceeding credit
|
|
@@ -410,18 +322,6 @@ var ExceedingCreditsApi = /** @class */ (function (_super) {
|
|
|
410
322
|
function ExceedingCreditsApi() {
|
|
411
323
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
412
324
|
}
|
|
413
|
-
/**
|
|
414
|
-
* Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
|
|
415
|
-
* @summary Create the exceeding credit
|
|
416
|
-
* @param {ExceedingCreditsApiCreateExceedingCreditRequest} requestParameters Request parameters.
|
|
417
|
-
* @param {*} [options] Override http request option.
|
|
418
|
-
* @throws {RequiredError}
|
|
419
|
-
* @memberof ExceedingCreditsApi
|
|
420
|
-
*/
|
|
421
|
-
ExceedingCreditsApi.prototype.createExceedingCredit = function (requestParameters, options) {
|
|
422
|
-
var _this = this;
|
|
423
|
-
return (0, exports.ExceedingCreditsApiFp)(this.configuration).createExceedingCredit(requestParameters.createExceedingCreditRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
424
|
-
};
|
|
425
325
|
/**
|
|
426
326
|
* Retrieves the details of the exceeding credit that was previously created. Supply the unique exceeding credit code that was returned when you created it and Emil Api will return the corresponding exceeding credit information. **Required Permissions** \"payment-management.payments.view\"
|
|
427
327
|
* @summary Retrieve the exceeding credit
|
|
@@ -66,5 +66,5 @@ export declare class HealthCheckApi extends BaseAPI {
|
|
|
66
66
|
* @throws {RequiredError}
|
|
67
67
|
* @memberof HealthCheckApi
|
|
68
68
|
*/
|
|
69
|
-
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}
|
|
69
|
+
check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
|
|
70
70
|
}
|
|
@@ -93,5 +93,5 @@ export declare class IBANValidatorApi extends BaseAPI {
|
|
|
93
93
|
* @throws {RequiredError}
|
|
94
94
|
* @memberof IBANValidatorApi
|
|
95
95
|
*/
|
|
96
|
-
validateIban(requestParameters: IBANValidatorApiValidateIbanRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateIbanResponseClass, any, {}
|
|
96
|
+
validateIban(requestParameters: IBANValidatorApiValidateIbanRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ValidateIbanResponseClass, any, {}>>;
|
|
97
97
|
}
|