@emilgroup/payment-sdk 1.22.1-beta.81 → 1.22.1-beta.83
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 +18 -48
- package/api/bank-orders-api.ts +15 -40
- package/api/bank-transaction-api.ts +26 -181
- package/api/billing-addresses-api.ts +15 -40
- package/api/credit-allocation-api.ts +9 -24
- package/api/exceeding-credits-api.ts +6 -128
- package/api/health-check-api.ts +1 -1
- package/api/ibanvalidator-api.ts +3 -8
- package/api/payment-methods-api.ts +9 -24
- package/api/payment-receipts-api.ts +15 -40
- package/api/payment-reminders-api.ts +12 -32
- package/api/payment-requests-api.ts +27 -52
- package/api/payment-setup-api.ts +6 -16
- package/api/payments-api.ts +16 -46
- package/api/payout-methods-api.ts +18 -48
- package/api/policy-payment-methods-api.ts +9 -24
- package/api/refunds-api.ts +9 -24
- package/api/tenant-bank-account-api.ts +15 -40
- package/api/webhooks-api.ts +2 -2
- package/base.ts +43 -239
- 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 +46 -82
- package/dist/api/bank-orders-api.d.ts +5 -5
- package/dist/api/bank-orders-api.js +38 -67
- package/dist/api/bank-transaction-api.d.ts +14 -80
- package/dist/api/bank-transaction-api.js +52 -194
- package/dist/api/billing-addresses-api.d.ts +5 -5
- package/dist/api/billing-addresses-api.js +39 -71
- package/dist/api/credit-allocation-api.d.ts +3 -3
- package/dist/api/credit-allocation-api.js +23 -41
- package/dist/api/exceeding-credits-api.d.ts +2 -59
- package/dist/api/exceeding-credits-api.js +15 -126
- package/dist/api/health-check-api.d.ts +1 -1
- package/dist/api/health-check-api.js +1 -1
- package/dist/api/ibanvalidator-api.d.ts +1 -1
- package/dist/api/ibanvalidator-api.js +8 -15
- package/dist/api/payment-methods-api.d.ts +3 -3
- package/dist/api/payment-methods-api.js +23 -41
- package/dist/api/payment-receipts-api.d.ts +5 -5
- package/dist/api/payment-receipts-api.js +38 -67
- package/dist/api/payment-reminders-api.d.ts +4 -4
- package/dist/api/payment-reminders-api.js +31 -56
- package/dist/api/payment-requests-api.d.ts +17 -17
- package/dist/api/payment-requests-api.js +47 -76
- package/dist/api/payment-setup-api.d.ts +2 -2
- package/dist/api/payment-setup-api.js +16 -30
- package/dist/api/payments-api.d.ts +4 -4
- package/dist/api/payments-api.js +34 -62
- package/dist/api/payout-methods-api.d.ts +6 -6
- package/dist/api/payout-methods-api.js +46 -82
- package/dist/api/policy-payment-methods-api.d.ts +3 -3
- package/dist/api/policy-payment-methods-api.js +23 -41
- package/dist/api/refunds-api.d.ts +3 -3
- package/dist/api/refunds-api.js +22 -37
- package/dist/api/tenant-bank-account-api.d.ts +5 -5
- package/dist/api/tenant-bank-account-api.js +38 -67
- package/dist/api/webhooks-api.d.ts +2 -2
- package/dist/api/webhooks-api.js +2 -2
- package/dist/base.d.ts +0 -26
- package/dist/base.js +60 -243
- 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 +3 -3
- 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 +3 -3
- 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
|
@@ -103,10 +103,9 @@ 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,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
switch (_b.label) {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
110
109
|
case 0:
|
|
111
110
|
// verify required parameter 'createBillingAddressRequestDto' is not null or undefined
|
|
112
111
|
(0, common_1.assertParamExists)('createBillingAddress', 'createBillingAddressRequestDto', createBillingAddressRequestDto);
|
|
@@ -121,19 +120,13 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
121
120
|
localVarQueryParameter = {};
|
|
122
121
|
// authentication bearer required
|
|
123
122
|
// http bearer authentication required
|
|
124
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
-
];
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
128
124
|
case 1:
|
|
129
125
|
// authentication bearer required
|
|
130
126
|
// http bearer authentication required
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
127
|
+
_a.sent();
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
137
130
|
}
|
|
138
131
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -159,10 +152,9 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
159
152
|
deleteBillingAddress: function (code, authorization, options) {
|
|
160
153
|
if (options === void 0) { options = {}; }
|
|
161
154
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
switch (_b.label) {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
166
158
|
case 0:
|
|
167
159
|
// verify required parameter 'code' is not null or undefined
|
|
168
160
|
(0, common_1.assertParamExists)('deleteBillingAddress', 'code', code);
|
|
@@ -178,19 +170,13 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
178
170
|
localVarQueryParameter = {};
|
|
179
171
|
// authentication bearer required
|
|
180
172
|
// http bearer authentication required
|
|
181
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
182
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
183
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
184
|
-
];
|
|
173
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
185
174
|
case 1:
|
|
186
175
|
// authentication bearer required
|
|
187
176
|
// http bearer authentication required
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
192
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
193
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
177
|
+
_a.sent();
|
|
178
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
194
180
|
}
|
|
195
181
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
196
182
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -214,10 +200,9 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
214
200
|
getBillingAddress: function (code, authorization, options) {
|
|
215
201
|
if (options === void 0) { options = {}; }
|
|
216
202
|
return __awaiter(_this, void 0, void 0, function () {
|
|
217
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
switch (_b.label) {
|
|
203
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
204
|
+
return __generator(this, function (_a) {
|
|
205
|
+
switch (_a.label) {
|
|
221
206
|
case 0:
|
|
222
207
|
// verify required parameter 'code' is not null or undefined
|
|
223
208
|
(0, common_1.assertParamExists)('getBillingAddress', 'code', code);
|
|
@@ -233,19 +218,13 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
233
218
|
localVarQueryParameter = {};
|
|
234
219
|
// authentication bearer required
|
|
235
220
|
// http bearer authentication required
|
|
236
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
237
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
238
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
239
|
-
];
|
|
221
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
240
222
|
case 1:
|
|
241
223
|
// authentication bearer required
|
|
242
224
|
// http bearer authentication required
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
247
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
248
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
225
|
+
_a.sent();
|
|
226
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
249
228
|
}
|
|
250
229
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
251
230
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -275,10 +254,9 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
275
254
|
listBillingAddresses: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
276
255
|
if (options === void 0) { options = {}; }
|
|
277
256
|
return __awaiter(_this, void 0, void 0, function () {
|
|
278
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
switch (_b.label) {
|
|
257
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
258
|
+
return __generator(this, function (_a) {
|
|
259
|
+
switch (_a.label) {
|
|
282
260
|
case 0:
|
|
283
261
|
localVarPath = "/paymentservice/v1/billing-addresses";
|
|
284
262
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -295,7 +273,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
295
273
|
case 1:
|
|
296
274
|
// authentication bearer required
|
|
297
275
|
// http bearer authentication required
|
|
298
|
-
|
|
276
|
+
_a.sent();
|
|
299
277
|
if (pageSize !== undefined) {
|
|
300
278
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
301
279
|
}
|
|
@@ -317,11 +295,8 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
317
295
|
if (filters !== undefined) {
|
|
318
296
|
localVarQueryParameter['filters'] = filters;
|
|
319
297
|
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
323
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
324
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
298
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
299
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
325
300
|
}
|
|
326
301
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
327
302
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -346,10 +321,9 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
346
321
|
updateBillingAddress: function (code, updateBillingAddressRequestDto, authorization, options) {
|
|
347
322
|
if (options === void 0) { options = {}; }
|
|
348
323
|
return __awaiter(_this, void 0, void 0, function () {
|
|
349
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
switch (_b.label) {
|
|
324
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
325
|
+
return __generator(this, function (_a) {
|
|
326
|
+
switch (_a.label) {
|
|
353
327
|
case 0:
|
|
354
328
|
// verify required parameter 'code' is not null or undefined
|
|
355
329
|
(0, common_1.assertParamExists)('updateBillingAddress', 'code', code);
|
|
@@ -367,19 +341,13 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
|
|
|
367
341
|
localVarQueryParameter = {};
|
|
368
342
|
// authentication bearer required
|
|
369
343
|
// http bearer authentication required
|
|
370
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
371
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
372
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
373
|
-
];
|
|
344
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
374
345
|
case 1:
|
|
375
346
|
// authentication bearer required
|
|
376
347
|
// http bearer authentication required
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
381
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
382
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
348
|
+
_a.sent();
|
|
349
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
350
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
383
351
|
}
|
|
384
352
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
385
353
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -612,7 +580,7 @@ var BillingAddressesApi = /** @class */ (function (_super) {
|
|
|
612
580
|
*/
|
|
613
581
|
BillingAddressesApi.prototype.createBillingAddress = function (requestParameters, options) {
|
|
614
582
|
var _this = this;
|
|
615
|
-
return (0, exports.BillingAddressesApiFp)(this.configuration).createBillingAddress(requestParameters.createBillingAddressRequestDto, requestParameters.authorization,
|
|
583
|
+
return (0, exports.BillingAddressesApiFp)(this.configuration).createBillingAddress(requestParameters.createBillingAddressRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
616
584
|
};
|
|
617
585
|
/**
|
|
618
586
|
* Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
|
|
@@ -624,7 +592,7 @@ var BillingAddressesApi = /** @class */ (function (_super) {
|
|
|
624
592
|
*/
|
|
625
593
|
BillingAddressesApi.prototype.deleteBillingAddress = function (requestParameters, options) {
|
|
626
594
|
var _this = this;
|
|
627
|
-
return (0, exports.BillingAddressesApiFp)(this.configuration).deleteBillingAddress(requestParameters.code, requestParameters.authorization,
|
|
595
|
+
return (0, exports.BillingAddressesApiFp)(this.configuration).deleteBillingAddress(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
628
596
|
};
|
|
629
597
|
/**
|
|
630
598
|
* 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\"
|
|
@@ -636,7 +604,7 @@ var BillingAddressesApi = /** @class */ (function (_super) {
|
|
|
636
604
|
*/
|
|
637
605
|
BillingAddressesApi.prototype.getBillingAddress = function (requestParameters, options) {
|
|
638
606
|
var _this = this;
|
|
639
|
-
return (0, exports.BillingAddressesApiFp)(this.configuration).getBillingAddress(requestParameters.code, requestParameters.authorization,
|
|
607
|
+
return (0, exports.BillingAddressesApiFp)(this.configuration).getBillingAddress(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
640
608
|
};
|
|
641
609
|
/**
|
|
642
610
|
* 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\"
|
|
@@ -649,7 +617,7 @@ var BillingAddressesApi = /** @class */ (function (_super) {
|
|
|
649
617
|
BillingAddressesApi.prototype.listBillingAddresses = function (requestParameters, options) {
|
|
650
618
|
var _this = this;
|
|
651
619
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
652
|
-
return (0, exports.BillingAddressesApiFp)(this.configuration).listBillingAddresses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
620
|
+
return (0, exports.BillingAddressesApiFp)(this.configuration).listBillingAddresses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
653
621
|
};
|
|
654
622
|
/**
|
|
655
623
|
* Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
|
|
@@ -661,7 +629,7 @@ var BillingAddressesApi = /** @class */ (function (_super) {
|
|
|
661
629
|
*/
|
|
662
630
|
BillingAddressesApi.prototype.updateBillingAddress = function (requestParameters, options) {
|
|
663
631
|
var _this = this;
|
|
664
|
-
return (0, exports.BillingAddressesApiFp)(this.configuration).updateBillingAddress(requestParameters.code, requestParameters.updateBillingAddressRequestDto, requestParameters.authorization,
|
|
632
|
+
return (0, exports.BillingAddressesApiFp)(this.configuration).updateBillingAddress(requestParameters.code, requestParameters.updateBillingAddressRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
665
633
|
};
|
|
666
634
|
return BillingAddressesApi;
|
|
667
635
|
}(base_1.BaseAPI));
|
|
@@ -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,10 +103,9 @@ 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,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
switch (_b.label) {
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
+
return __generator(this, function (_a) {
|
|
108
|
+
switch (_a.label) {
|
|
110
109
|
case 0:
|
|
111
110
|
// verify required parameter 'createCreditAllocationRequestDto' is not null or undefined
|
|
112
111
|
(0, common_1.assertParamExists)('createAllocateCredit', 'createCreditAllocationRequestDto', createCreditAllocationRequestDto);
|
|
@@ -121,19 +120,13 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
|
|
|
121
120
|
localVarQueryParameter = {};
|
|
122
121
|
// authentication bearer required
|
|
123
122
|
// http bearer authentication required
|
|
124
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
126
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
127
|
-
];
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
128
124
|
case 1:
|
|
129
125
|
// authentication bearer required
|
|
130
126
|
// http bearer authentication required
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
135
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
127
|
+
_a.sent();
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
137
130
|
}
|
|
138
131
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
139
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -159,10 +152,9 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
|
|
|
159
152
|
getCreditAllocation: function (code, authorization, options) {
|
|
160
153
|
if (options === void 0) { options = {}; }
|
|
161
154
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
switch (_b.label) {
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
156
|
+
return __generator(this, function (_a) {
|
|
157
|
+
switch (_a.label) {
|
|
166
158
|
case 0:
|
|
167
159
|
// verify required parameter 'code' is not null or undefined
|
|
168
160
|
(0, common_1.assertParamExists)('getCreditAllocation', 'code', code);
|
|
@@ -178,19 +170,13 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
|
|
|
178
170
|
localVarQueryParameter = {};
|
|
179
171
|
// authentication bearer required
|
|
180
172
|
// http bearer authentication required
|
|
181
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
182
|
-
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
183
|
-
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
184
|
-
];
|
|
173
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
185
174
|
case 1:
|
|
186
175
|
// authentication bearer required
|
|
187
176
|
// http bearer authentication required
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
192
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
193
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
177
|
+
_a.sent();
|
|
178
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
179
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
194
180
|
}
|
|
195
181
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
196
182
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -220,10 +206,9 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
|
|
|
220
206
|
listCreditAllocations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
221
207
|
if (options === void 0) { options = {}; }
|
|
222
208
|
return __awaiter(_this, void 0, void 0, function () {
|
|
223
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
switch (_b.label) {
|
|
209
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
210
|
+
return __generator(this, function (_a) {
|
|
211
|
+
switch (_a.label) {
|
|
227
212
|
case 0:
|
|
228
213
|
localVarPath = "/paymentservice/v1/credit-allocations";
|
|
229
214
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -240,7 +225,7 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
|
|
|
240
225
|
case 1:
|
|
241
226
|
// authentication bearer required
|
|
242
227
|
// http bearer authentication required
|
|
243
|
-
|
|
228
|
+
_a.sent();
|
|
244
229
|
if (pageSize !== undefined) {
|
|
245
230
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
246
231
|
}
|
|
@@ -262,11 +247,8 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
|
|
|
262
247
|
if (filters !== undefined) {
|
|
263
248
|
localVarQueryParameter['filters'] = filters;
|
|
264
249
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
268
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
269
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
250
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
251
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
270
252
|
}
|
|
271
253
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
272
254
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -431,7 +413,7 @@ var CreditAllocationApi = /** @class */ (function (_super) {
|
|
|
431
413
|
*/
|
|
432
414
|
CreditAllocationApi.prototype.createAllocateCredit = function (requestParameters, options) {
|
|
433
415
|
var _this = this;
|
|
434
|
-
return (0, exports.CreditAllocationApiFp)(this.configuration).createAllocateCredit(requestParameters.createCreditAllocationRequestDto, requestParameters.authorization,
|
|
416
|
+
return (0, exports.CreditAllocationApiFp)(this.configuration).createAllocateCredit(requestParameters.createCreditAllocationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
435
417
|
};
|
|
436
418
|
/**
|
|
437
419
|
* Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
|
|
@@ -443,7 +425,7 @@ var CreditAllocationApi = /** @class */ (function (_super) {
|
|
|
443
425
|
*/
|
|
444
426
|
CreditAllocationApi.prototype.getCreditAllocation = function (requestParameters, options) {
|
|
445
427
|
var _this = this;
|
|
446
|
-
return (0, exports.CreditAllocationApiFp)(this.configuration).getCreditAllocation(requestParameters.code, requestParameters.authorization,
|
|
428
|
+
return (0, exports.CreditAllocationApiFp)(this.configuration).getCreditAllocation(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
447
429
|
};
|
|
448
430
|
/**
|
|
449
431
|
* 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\"
|
|
@@ -456,7 +438,7 @@ var CreditAllocationApi = /** @class */ (function (_super) {
|
|
|
456
438
|
CreditAllocationApi.prototype.listCreditAllocations = function (requestParameters, options) {
|
|
457
439
|
var _this = this;
|
|
458
440
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
459
|
-
return (0, exports.CreditAllocationApiFp)(this.configuration).listCreditAllocations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
441
|
+
return (0, exports.CreditAllocationApiFp)(this.configuration).listCreditAllocations(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
460
442
|
};
|
|
461
443
|
return CreditAllocationApi;
|
|
462
444
|
}(base_1.BaseAPI));
|
|
@@ -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
|
}
|