@emilgroup/payment-sdk 1.22.1-beta.82 → 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.
Files changed (147) hide show
  1. package/.openapi-generator/FILES +0 -8
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +18 -48
  4. package/api/bank-orders-api.ts +15 -40
  5. package/api/bank-transaction-api.ts +26 -181
  6. package/api/billing-addresses-api.ts +15 -40
  7. package/api/credit-allocation-api.ts +9 -24
  8. package/api/exceeding-credits-api.ts +6 -240
  9. package/api/health-check-api.ts +1 -1
  10. package/api/ibanvalidator-api.ts +3 -8
  11. package/api/payment-methods-api.ts +9 -24
  12. package/api/payment-receipts-api.ts +15 -40
  13. package/api/payment-reminders-api.ts +12 -32
  14. package/api/payment-requests-api.ts +27 -52
  15. package/api/payment-setup-api.ts +6 -16
  16. package/api/payments-api.ts +16 -46
  17. package/api/payout-methods-api.ts +18 -48
  18. package/api/policy-payment-methods-api.ts +9 -24
  19. package/api/refunds-api.ts +9 -24
  20. package/api/tenant-bank-account-api.ts +15 -40
  21. package/api/webhooks-api.ts +2 -2
  22. package/base.ts +43 -239
  23. package/common.ts +2 -3
  24. package/configuration.ts +0 -20
  25. package/dist/api/bank-accounts-api.d.ts +6 -6
  26. package/dist/api/bank-accounts-api.js +46 -82
  27. package/dist/api/bank-orders-api.d.ts +5 -5
  28. package/dist/api/bank-orders-api.js +38 -67
  29. package/dist/api/bank-transaction-api.d.ts +14 -80
  30. package/dist/api/bank-transaction-api.js +52 -194
  31. package/dist/api/billing-addresses-api.d.ts +5 -5
  32. package/dist/api/billing-addresses-api.js +39 -71
  33. package/dist/api/credit-allocation-api.d.ts +3 -3
  34. package/dist/api/credit-allocation-api.js +23 -41
  35. package/dist/api/exceeding-credits-api.d.ts +2 -116
  36. package/dist/api/exceeding-credits-api.js +15 -226
  37. package/dist/api/health-check-api.d.ts +1 -1
  38. package/dist/api/health-check-api.js +1 -1
  39. package/dist/api/ibanvalidator-api.d.ts +1 -1
  40. package/dist/api/ibanvalidator-api.js +8 -15
  41. package/dist/api/payment-methods-api.d.ts +3 -3
  42. package/dist/api/payment-methods-api.js +23 -41
  43. package/dist/api/payment-receipts-api.d.ts +5 -5
  44. package/dist/api/payment-receipts-api.js +38 -67
  45. package/dist/api/payment-reminders-api.d.ts +4 -4
  46. package/dist/api/payment-reminders-api.js +31 -56
  47. package/dist/api/payment-requests-api.d.ts +17 -17
  48. package/dist/api/payment-requests-api.js +47 -76
  49. package/dist/api/payment-setup-api.d.ts +2 -2
  50. package/dist/api/payment-setup-api.js +16 -30
  51. package/dist/api/payments-api.d.ts +4 -4
  52. package/dist/api/payments-api.js +34 -62
  53. package/dist/api/payout-methods-api.d.ts +6 -6
  54. package/dist/api/payout-methods-api.js +46 -82
  55. package/dist/api/policy-payment-methods-api.d.ts +3 -3
  56. package/dist/api/policy-payment-methods-api.js +23 -41
  57. package/dist/api/refunds-api.d.ts +3 -3
  58. package/dist/api/refunds-api.js +22 -37
  59. package/dist/api/tenant-bank-account-api.d.ts +5 -5
  60. package/dist/api/tenant-bank-account-api.js +38 -67
  61. package/dist/api/webhooks-api.d.ts +2 -2
  62. package/dist/api/webhooks-api.js +2 -2
  63. package/dist/base.d.ts +0 -26
  64. package/dist/base.js +60 -243
  65. package/dist/common.d.ts +1 -1
  66. package/dist/common.js +0 -1
  67. package/dist/configuration.d.ts +0 -17
  68. package/dist/configuration.js +0 -2
  69. package/dist/models/bank-transaction-class.d.ts +0 -7
  70. package/dist/models/bank-transaction-entity.d.ts +0 -7
  71. package/dist/models/bank-transaction-invoice-entity.d.ts +0 -24
  72. package/dist/models/create-payment-order-dto.d.ts +1 -1
  73. package/dist/models/create-payment-receipt-request-dto.d.ts +3 -3
  74. package/dist/models/create-payment-request-dto.d.ts +1 -1
  75. package/dist/models/create-payment-request-request-dto.d.ts +0 -6
  76. package/dist/models/credit-allocation-class.d.ts +0 -6
  77. package/dist/models/credit-allocation-entity.d.ts +0 -6
  78. package/dist/models/exceeding-credit-class.d.ts +2 -25
  79. package/dist/models/exceeding-credit-class.js +1 -5
  80. package/dist/models/exceeding-credit-entity.d.ts +2 -31
  81. package/dist/models/exceeding-credit-entity.js +1 -5
  82. package/dist/models/index.d.ts +0 -8
  83. package/dist/models/index.js +0 -8
  84. package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
  85. package/dist/models/list-exceeding-credits-response-class.d.ts +18 -6
  86. package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
  87. package/dist/models/list-payment-requests-response-class.d.ts +18 -6
  88. package/dist/models/list-payout-methods-response-class.d.ts +9 -9
  89. package/dist/models/list-refunds-response-class.d.ts +18 -6
  90. package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
  91. package/dist/models/payment-class.d.ts +2 -2
  92. package/dist/models/payment-entity.d.ts +1 -1
  93. package/dist/models/payment-receipt-class.d.ts +1 -13
  94. package/dist/models/payment-request-class.d.ts +6 -13
  95. package/dist/models/payment-request-class.js +0 -1
  96. package/dist/models/shared-transaction-class.d.ts +0 -6
  97. package/dist/models/transaction-entity.d.ts +0 -6
  98. package/models/bank-transaction-class.ts +0 -7
  99. package/models/bank-transaction-entity.ts +0 -7
  100. package/models/bank-transaction-invoice-entity.ts +0 -24
  101. package/models/create-payment-order-dto.ts +1 -1
  102. package/models/create-payment-receipt-request-dto.ts +3 -3
  103. package/models/create-payment-request-dto.ts +1 -1
  104. package/models/create-payment-request-request-dto.ts +0 -6
  105. package/models/credit-allocation-class.ts +0 -6
  106. package/models/credit-allocation-entity.ts +0 -6
  107. package/models/exceeding-credit-class.ts +2 -26
  108. package/models/exceeding-credit-entity.ts +2 -32
  109. package/models/index.ts +0 -8
  110. package/models/list-billing-addresses-response-class.ts +9 -9
  111. package/models/list-exceeding-credits-response-class.ts +18 -6
  112. package/models/list-payment-receipts-response-class.ts +9 -9
  113. package/models/list-payment-requests-response-class.ts +18 -6
  114. package/models/list-payout-methods-response-class.ts +9 -9
  115. package/models/list-refunds-response-class.ts +18 -6
  116. package/models/payment-class-without-expand-properties.ts +2 -2
  117. package/models/payment-class.ts +2 -2
  118. package/models/payment-entity.ts +1 -1
  119. package/models/payment-receipt-class.ts +1 -13
  120. package/models/payment-request-class.ts +6 -13
  121. package/models/shared-transaction-class.ts +0 -6
  122. package/models/transaction-entity.ts +0 -6
  123. package/package.json +2 -2
  124. package/dist/models/create-exceeding-credit-request-dto.d.ts +0 -48
  125. package/dist/models/create-exceeding-credit-request-dto.js +0 -15
  126. package/dist/models/create-exceeding-credit-response-class.d.ts +0 -25
  127. package/dist/models/create-exceeding-credit-response-class.js +0 -15
  128. package/dist/models/create-return-premium-credits-request-dto.d.ts +0 -24
  129. package/dist/models/create-return-premium-credits-request-dto.js +0 -15
  130. package/dist/models/create-return-premium-credits-response-class.d.ts +0 -25
  131. package/dist/models/create-return-premium-credits-response-class.js +0 -15
  132. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +0 -30
  133. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +0 -15
  134. package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +0 -25
  135. package/dist/models/link-bank-transaction-payment-requests-response-class.js +0 -15
  136. package/dist/models/payment-receipt-entity.d.ts +0 -139
  137. package/dist/models/payment-receipt-entity.js +0 -20
  138. package/dist/models/payment-request-entity.d.ts +0 -223
  139. package/dist/models/payment-request-entity.js +0 -39
  140. package/models/create-exceeding-credit-request-dto.ts +0 -54
  141. package/models/create-exceeding-credit-response-class.ts +0 -31
  142. package/models/create-return-premium-credits-request-dto.ts +0 -30
  143. package/models/create-return-premium-credits-response-class.ts +0 -31
  144. package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +0 -36
  145. package/models/link-bank-transaction-payment-requests-response-class.ts +0 -31
  146. package/models/payment-receipt-entity.ts +0 -148
  147. 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, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
107
- var _a;
108
- return __generator(this, function (_b) {
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
- _b.sent();
132
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
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, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
163
- var _a;
164
- return __generator(this, function (_b) {
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
- _b.sent();
189
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
190
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
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, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
218
- var _a;
219
- return __generator(this, function (_b) {
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
- _b.sent();
244
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
245
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
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, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
279
- var _a;
280
- return __generator(this, function (_b) {
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
- _b.sent();
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
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
321
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
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, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
350
- var _a;
351
- return __generator(this, function (_b) {
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
- _b.sent();
378
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
379
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
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, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
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, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
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, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
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, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
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, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
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, {}, 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, {}, 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, {}, 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, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
107
- var _a;
108
- return __generator(this, function (_b) {
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
- _b.sent();
132
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
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, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
163
- var _a;
164
- return __generator(this, function (_b) {
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
- _b.sent();
189
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
190
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
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, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
224
- var _a;
225
- return __generator(this, function (_b) {
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
- _b.sent();
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
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
266
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
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, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
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, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
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, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
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,10 +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
- import { CreateReturnPremiumCreditsRequestDto } from '../models';
18
- import { CreateReturnPremiumCreditsResponseClass } from '../models';
19
15
  import { GetExceedingCreditResponseClass } from '../models';
20
16
  import { ListExceedingCreditsResponseClass } from '../models';
21
17
  /**
@@ -23,24 +19,6 @@ import { ListExceedingCreditsResponseClass } from '../models';
23
19
  * @export
24
20
  */
25
21
  export declare const ExceedingCreditsApiAxiosParamCreator: (configuration?: Configuration) => {
26
- /**
27
- * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
28
- * @summary Create the exceeding credit
29
- * @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
30
- * @param {string} [authorization] Bearer Token
31
- * @param {*} [options] Override http request option.
32
- * @throws {RequiredError}
33
- */
34
- createExceedingCredit: (createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
35
- /**
36
- * Create the return-premium credits of a reversing document (withdrawal, correction or final invoice). Already created credits are returned unchanged, so this also replays a lost invoice event. **Required Permissions** \"payment-management.payments.create\"
37
- * @summary Create the return-premium credits
38
- * @param {CreateReturnPremiumCreditsRequestDto} createReturnPremiumCreditsRequestDto
39
- * @param {string} [authorization] Bearer Token
40
- * @param {*} [options] Override http request option.
41
- * @throws {RequiredError}
42
- */
43
- createReturnPremiumCredits: (createReturnPremiumCreditsRequestDto: CreateReturnPremiumCreditsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
22
  /**
45
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\"
46
24
  * @summary Retrieve the exceeding credit
@@ -71,24 +49,6 @@ export declare const ExceedingCreditsApiAxiosParamCreator: (configuration?: Conf
71
49
  * @export
72
50
  */
73
51
  export declare const ExceedingCreditsApiFp: (configuration?: Configuration) => {
74
- /**
75
- * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
76
- * @summary Create the exceeding credit
77
- * @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
78
- * @param {string} [authorization] Bearer Token
79
- * @param {*} [options] Override http request option.
80
- * @throws {RequiredError}
81
- */
82
- createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateExceedingCreditResponseClass>>;
83
- /**
84
- * Create the return-premium credits of a reversing document (withdrawal, correction or final invoice). Already created credits are returned unchanged, so this also replays a lost invoice event. **Required Permissions** \"payment-management.payments.create\"
85
- * @summary Create the return-premium credits
86
- * @param {CreateReturnPremiumCreditsRequestDto} createReturnPremiumCreditsRequestDto
87
- * @param {string} [authorization] Bearer Token
88
- * @param {*} [options] Override http request option.
89
- * @throws {RequiredError}
90
- */
91
- createReturnPremiumCredits(createReturnPremiumCreditsRequestDto: CreateReturnPremiumCreditsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateReturnPremiumCreditsResponseClass>>;
92
52
  /**
93
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\"
94
54
  * @summary Retrieve the exceeding credit
@@ -119,24 +79,6 @@ export declare const ExceedingCreditsApiFp: (configuration?: Configuration) => {
119
79
  * @export
120
80
  */
121
81
  export declare const ExceedingCreditsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
122
- /**
123
- * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
124
- * @summary Create the exceeding credit
125
- * @param {CreateExceedingCreditRequestDto} createExceedingCreditRequestDto
126
- * @param {string} [authorization] Bearer Token
127
- * @param {*} [options] Override http request option.
128
- * @throws {RequiredError}
129
- */
130
- createExceedingCredit(createExceedingCreditRequestDto: CreateExceedingCreditRequestDto, authorization?: string, options?: any): AxiosPromise<CreateExceedingCreditResponseClass>;
131
- /**
132
- * Create the return-premium credits of a reversing document (withdrawal, correction or final invoice). Already created credits are returned unchanged, so this also replays a lost invoice event. **Required Permissions** \"payment-management.payments.create\"
133
- * @summary Create the return-premium credits
134
- * @param {CreateReturnPremiumCreditsRequestDto} createReturnPremiumCreditsRequestDto
135
- * @param {string} [authorization] Bearer Token
136
- * @param {*} [options] Override http request option.
137
- * @throws {RequiredError}
138
- */
139
- createReturnPremiumCredits(createReturnPremiumCreditsRequestDto: CreateReturnPremiumCreditsRequestDto, authorization?: string, options?: any): AxiosPromise<CreateReturnPremiumCreditsResponseClass>;
140
82
  /**
141
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\"
142
84
  * @summary Retrieve the exceeding credit
@@ -162,44 +104,6 @@ export declare const ExceedingCreditsApiFactory: (configuration?: Configuration,
162
104
  */
163
105
  listExceedingCredits(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListExceedingCreditsResponseClass>;
164
106
  };
165
- /**
166
- * Request parameters for createExceedingCredit operation in ExceedingCreditsApi.
167
- * @export
168
- * @interface ExceedingCreditsApiCreateExceedingCreditRequest
169
- */
170
- export interface ExceedingCreditsApiCreateExceedingCreditRequest {
171
- /**
172
- *
173
- * @type {CreateExceedingCreditRequestDto}
174
- * @memberof ExceedingCreditsApiCreateExceedingCredit
175
- */
176
- readonly createExceedingCreditRequestDto: CreateExceedingCreditRequestDto;
177
- /**
178
- * Bearer Token
179
- * @type {string}
180
- * @memberof ExceedingCreditsApiCreateExceedingCredit
181
- */
182
- readonly authorization?: string;
183
- }
184
- /**
185
- * Request parameters for createReturnPremiumCredits operation in ExceedingCreditsApi.
186
- * @export
187
- * @interface ExceedingCreditsApiCreateReturnPremiumCreditsRequest
188
- */
189
- export interface ExceedingCreditsApiCreateReturnPremiumCreditsRequest {
190
- /**
191
- *
192
- * @type {CreateReturnPremiumCreditsRequestDto}
193
- * @memberof ExceedingCreditsApiCreateReturnPremiumCredits
194
- */
195
- readonly createReturnPremiumCreditsRequestDto: CreateReturnPremiumCreditsRequestDto;
196
- /**
197
- * Bearer Token
198
- * @type {string}
199
- * @memberof ExceedingCreditsApiCreateReturnPremiumCredits
200
- */
201
- readonly authorization?: string;
202
- }
203
107
  /**
204
108
  * Request parameters for getExceedingCredit operation in ExceedingCreditsApi.
205
109
  * @export
@@ -281,24 +185,6 @@ export interface ExceedingCreditsApiListExceedingCreditsRequest {
281
185
  * @extends {BaseAPI}
282
186
  */
283
187
  export declare class ExceedingCreditsApi extends BaseAPI {
284
- /**
285
- * Create an exceeding credit for a bank transaction that exceeds the invoiced amount. **Required Permissions** \"payment-management.payments.create\"
286
- * @summary Create the exceeding credit
287
- * @param {ExceedingCreditsApiCreateExceedingCreditRequest} requestParameters Request parameters.
288
- * @param {*} [options] Override http request option.
289
- * @throws {RequiredError}
290
- * @memberof ExceedingCreditsApi
291
- */
292
- createExceedingCredit(requestParameters: ExceedingCreditsApiCreateExceedingCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateExceedingCreditResponseClass, any, {}, any>>;
293
- /**
294
- * Create the return-premium credits of a reversing document (withdrawal, correction or final invoice). Already created credits are returned unchanged, so this also replays a lost invoice event. **Required Permissions** \"payment-management.payments.create\"
295
- * @summary Create the return-premium credits
296
- * @param {ExceedingCreditsApiCreateReturnPremiumCreditsRequest} requestParameters Request parameters.
297
- * @param {*} [options] Override http request option.
298
- * @throws {RequiredError}
299
- * @memberof ExceedingCreditsApi
300
- */
301
- createReturnPremiumCredits(requestParameters: ExceedingCreditsApiCreateReturnPremiumCreditsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateReturnPremiumCreditsResponseClass, any, {}, any>>;
302
188
  /**
303
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\"
304
190
  * @summary Retrieve the exceeding credit
@@ -307,7 +193,7 @@ export declare class ExceedingCreditsApi extends BaseAPI {
307
193
  * @throws {RequiredError}
308
194
  * @memberof ExceedingCreditsApi
309
195
  */
310
- getExceedingCredit(requestParameters: ExceedingCreditsApiGetExceedingCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetExceedingCreditResponseClass, any, {}, any>>;
196
+ getExceedingCredit(requestParameters: ExceedingCreditsApiGetExceedingCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetExceedingCreditResponseClass, any, {}>>;
311
197
  /**
312
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\"
313
199
  * @summary List exceeding credits
@@ -316,5 +202,5 @@ export declare class ExceedingCreditsApi extends BaseAPI {
316
202
  * @throws {RequiredError}
317
203
  * @memberof ExceedingCreditsApi
318
204
  */
319
- listExceedingCredits(requestParameters?: ExceedingCreditsApiListExceedingCreditsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListExceedingCreditsResponseClass, any, {}, any>>;
205
+ listExceedingCredits(requestParameters?: ExceedingCreditsApiListExceedingCreditsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListExceedingCreditsResponseClass, any, {}>>;
320
206
  }