@emilgroup/payment-sdk 1.22.1-beta.83 → 1.22.1-beta.85

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 (165) hide show
  1. package/.openapi-generator/FILES +13 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +48 -18
  4. package/api/bank-order-texts-api.ts +265 -0
  5. package/api/bank-orders-api.ts +40 -15
  6. package/api/bank-transaction-api.ts +181 -26
  7. package/api/billing-addresses-api.ts +40 -15
  8. package/api/credit-allocation-api.ts +24 -9
  9. package/api/exceeding-credits-api.ts +240 -6
  10. package/api/health-check-api.ts +1 -1
  11. package/api/ibanvalidator-api.ts +8 -3
  12. package/api/payment-methods-api.ts +24 -9
  13. package/api/payment-receipts-api.ts +40 -15
  14. package/api/payment-reminders-api.ts +32 -12
  15. package/api/payment-requests-api.ts +52 -27
  16. package/api/payment-setup-api.ts +16 -6
  17. package/api/payments-api.ts +46 -16
  18. package/api/payout-methods-api.ts +48 -18
  19. package/api/policy-payment-methods-api.ts +24 -9
  20. package/api/refunds-api.ts +24 -9
  21. package/api/tenant-bank-account-api.ts +40 -15
  22. package/api/webhooks-api.ts +2 -2
  23. package/api.ts +2 -0
  24. package/base.ts +239 -43
  25. package/common.ts +3 -2
  26. package/configuration.ts +20 -0
  27. package/dist/api/bank-accounts-api.d.ts +6 -6
  28. package/dist/api/bank-accounts-api.js +82 -46
  29. package/dist/api/bank-order-texts-api.d.ts +144 -0
  30. package/dist/api/bank-order-texts-api.js +325 -0
  31. package/dist/api/bank-orders-api.d.ts +5 -5
  32. package/dist/api/bank-orders-api.js +67 -38
  33. package/dist/api/bank-transaction-api.d.ts +80 -14
  34. package/dist/api/bank-transaction-api.js +194 -52
  35. package/dist/api/billing-addresses-api.d.ts +5 -5
  36. package/dist/api/billing-addresses-api.js +71 -39
  37. package/dist/api/credit-allocation-api.d.ts +3 -3
  38. package/dist/api/credit-allocation-api.js +41 -23
  39. package/dist/api/exceeding-credits-api.d.ts +116 -2
  40. package/dist/api/exceeding-credits-api.js +226 -15
  41. package/dist/api/health-check-api.d.ts +1 -1
  42. package/dist/api/health-check-api.js +1 -1
  43. package/dist/api/ibanvalidator-api.d.ts +1 -1
  44. package/dist/api/ibanvalidator-api.js +15 -8
  45. package/dist/api/payment-methods-api.d.ts +3 -3
  46. package/dist/api/payment-methods-api.js +41 -23
  47. package/dist/api/payment-receipts-api.d.ts +5 -5
  48. package/dist/api/payment-receipts-api.js +67 -38
  49. package/dist/api/payment-reminders-api.d.ts +4 -4
  50. package/dist/api/payment-reminders-api.js +56 -31
  51. package/dist/api/payment-requests-api.d.ts +17 -17
  52. package/dist/api/payment-requests-api.js +76 -47
  53. package/dist/api/payment-setup-api.d.ts +2 -2
  54. package/dist/api/payment-setup-api.js +30 -16
  55. package/dist/api/payments-api.d.ts +4 -4
  56. package/dist/api/payments-api.js +62 -34
  57. package/dist/api/payout-methods-api.d.ts +6 -6
  58. package/dist/api/payout-methods-api.js +82 -46
  59. package/dist/api/policy-payment-methods-api.d.ts +3 -3
  60. package/dist/api/policy-payment-methods-api.js +41 -23
  61. package/dist/api/refunds-api.d.ts +3 -3
  62. package/dist/api/refunds-api.js +37 -22
  63. package/dist/api/tenant-bank-account-api.d.ts +5 -5
  64. package/dist/api/tenant-bank-account-api.js +67 -38
  65. package/dist/api/webhooks-api.d.ts +2 -2
  66. package/dist/api/webhooks-api.js +2 -2
  67. package/dist/api.d.ts +1 -0
  68. package/dist/api.js +1 -0
  69. package/dist/base.d.ts +26 -0
  70. package/dist/base.js +243 -60
  71. package/dist/common.d.ts +1 -1
  72. package/dist/common.js +1 -0
  73. package/dist/configuration.d.ts +17 -0
  74. package/dist/configuration.js +2 -0
  75. package/dist/models/bank-order-texts-class.d.ts +42 -0
  76. package/dist/models/bank-order-texts-class.js +15 -0
  77. package/dist/models/bank-transaction-class.d.ts +7 -0
  78. package/dist/models/bank-transaction-entity.d.ts +7 -0
  79. package/dist/models/bank-transaction-invoice-entity.d.ts +24 -0
  80. package/dist/models/create-exceeding-credit-request-dto.d.ts +48 -0
  81. package/dist/models/create-exceeding-credit-request-dto.js +15 -0
  82. package/dist/models/create-exceeding-credit-response-class.d.ts +25 -0
  83. package/dist/models/create-exceeding-credit-response-class.js +15 -0
  84. package/dist/models/create-payment-order-dto.d.ts +1 -1
  85. package/dist/models/create-payment-receipt-request-dto.d.ts +3 -3
  86. package/dist/models/create-payment-request-dto.d.ts +1 -1
  87. package/dist/models/create-payment-request-request-dto.d.ts +6 -0
  88. package/dist/models/create-return-premium-credits-request-dto.d.ts +24 -0
  89. package/dist/models/create-return-premium-credits-request-dto.js +15 -0
  90. package/dist/models/create-return-premium-credits-response-class.d.ts +25 -0
  91. package/dist/models/create-return-premium-credits-response-class.js +15 -0
  92. package/dist/models/credit-allocation-class.d.ts +6 -0
  93. package/dist/models/credit-allocation-entity.d.ts +6 -0
  94. package/dist/models/exceeding-credit-class.d.ts +25 -2
  95. package/dist/models/exceeding-credit-class.js +5 -1
  96. package/dist/models/exceeding-credit-entity.d.ts +31 -2
  97. package/dist/models/exceeding-credit-entity.js +5 -1
  98. package/dist/models/get-bank-order-texts-response-class.d.ts +25 -0
  99. package/dist/models/get-bank-order-texts-response-class.js +15 -0
  100. package/dist/models/index.d.ts +12 -0
  101. package/dist/models/index.js +12 -0
  102. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.d.ts +30 -0
  103. package/dist/models/link-bank-transaction-payment-requests-request-dto-rest.js +15 -0
  104. package/dist/models/link-bank-transaction-payment-requests-response-class.d.ts +25 -0
  105. package/dist/models/link-bank-transaction-payment-requests-response-class.js +15 -0
  106. package/dist/models/list-billing-addresses-response-class.d.ts +9 -9
  107. package/dist/models/list-exceeding-credits-response-class.d.ts +6 -18
  108. package/dist/models/list-payment-receipts-response-class.d.ts +9 -9
  109. package/dist/models/list-payment-requests-response-class.d.ts +6 -18
  110. package/dist/models/list-payout-methods-response-class.d.ts +9 -9
  111. package/dist/models/list-refunds-response-class.d.ts +6 -18
  112. package/dist/models/payment-class-without-expand-properties.d.ts +2 -2
  113. package/dist/models/payment-class.d.ts +2 -2
  114. package/dist/models/payment-entity.d.ts +1 -1
  115. package/dist/models/payment-receipt-class.d.ts +13 -1
  116. package/dist/models/payment-receipt-entity.d.ts +139 -0
  117. package/dist/models/payment-receipt-entity.js +20 -0
  118. package/dist/models/payment-request-class.d.ts +13 -6
  119. package/dist/models/payment-request-class.js +1 -0
  120. package/dist/models/payment-request-entity.d.ts +223 -0
  121. package/dist/models/payment-request-entity.js +39 -0
  122. package/dist/models/shared-transaction-class.d.ts +6 -0
  123. package/dist/models/transaction-entity.d.ts +6 -0
  124. package/dist/models/update-bank-order-texts-request-dto.d.ts +32 -0
  125. package/dist/models/update-bank-order-texts-request-dto.js +15 -0
  126. package/dist/models/update-bank-order-texts-response-class.d.ts +25 -0
  127. package/dist/models/update-bank-order-texts-response-class.js +15 -0
  128. package/models/bank-order-texts-class.ts +48 -0
  129. package/models/bank-transaction-class.ts +7 -0
  130. package/models/bank-transaction-entity.ts +7 -0
  131. package/models/bank-transaction-invoice-entity.ts +24 -0
  132. package/models/create-exceeding-credit-request-dto.ts +54 -0
  133. package/models/create-exceeding-credit-response-class.ts +31 -0
  134. package/models/create-payment-order-dto.ts +1 -1
  135. package/models/create-payment-receipt-request-dto.ts +3 -3
  136. package/models/create-payment-request-dto.ts +1 -1
  137. package/models/create-payment-request-request-dto.ts +6 -0
  138. package/models/create-return-premium-credits-request-dto.ts +30 -0
  139. package/models/create-return-premium-credits-response-class.ts +31 -0
  140. package/models/credit-allocation-class.ts +6 -0
  141. package/models/credit-allocation-entity.ts +6 -0
  142. package/models/exceeding-credit-class.ts +26 -2
  143. package/models/exceeding-credit-entity.ts +32 -2
  144. package/models/get-bank-order-texts-response-class.ts +31 -0
  145. package/models/index.ts +12 -0
  146. package/models/link-bank-transaction-payment-requests-request-dto-rest.ts +36 -0
  147. package/models/link-bank-transaction-payment-requests-response-class.ts +31 -0
  148. package/models/list-billing-addresses-response-class.ts +9 -9
  149. package/models/list-exceeding-credits-response-class.ts +6 -18
  150. package/models/list-payment-receipts-response-class.ts +9 -9
  151. package/models/list-payment-requests-response-class.ts +6 -18
  152. package/models/list-payout-methods-response-class.ts +9 -9
  153. package/models/list-refunds-response-class.ts +6 -18
  154. package/models/payment-class-without-expand-properties.ts +2 -2
  155. package/models/payment-class.ts +2 -2
  156. package/models/payment-entity.ts +1 -1
  157. package/models/payment-receipt-class.ts +13 -1
  158. package/models/payment-receipt-entity.ts +148 -0
  159. package/models/payment-request-class.ts +13 -6
  160. package/models/payment-request-entity.ts +233 -0
  161. package/models/shared-transaction-class.ts +6 -0
  162. package/models/transaction-entity.ts +6 -0
  163. package/models/update-bank-order-texts-request-dto.ts +36 -0
  164. package/models/update-bank-order-texts-response-class.ts +31 -0
  165. package/package.json +2 -2
@@ -103,9 +103,10 @@ 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, headersFromBaseOptions;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
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) {
109
110
  case 0:
110
111
  // verify required parameter 'createBillingAddressRequestDto' is not null or undefined
111
112
  (0, common_1.assertParamExists)('createBillingAddress', 'createBillingAddressRequestDto', createBillingAddressRequestDto);
@@ -120,13 +121,19 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
120
121
  localVarQueryParameter = {};
121
122
  // authentication bearer required
122
123
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
124
128
  case 1:
125
129
  // authentication bearer required
126
130
  // http bearer authentication required
127
- _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
130
137
  }
131
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,9 +159,10 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
152
159
  deleteBillingAddress: function (code, authorization, options) {
153
160
  if (options === void 0) { options = {}; }
154
161
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
- return __generator(this, function (_a) {
157
- switch (_a.label) {
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) {
158
166
  case 0:
159
167
  // verify required parameter 'code' is not null or undefined
160
168
  (0, common_1.assertParamExists)('deleteBillingAddress', 'code', code);
@@ -170,13 +178,19 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
170
178
  localVarQueryParameter = {};
171
179
  // authentication bearer required
172
180
  // http bearer authentication required
173
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
174
185
  case 1:
175
186
  // authentication bearer required
176
187
  // http bearer authentication required
177
- _a.sent();
178
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
180
194
  }
181
195
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
196
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -200,9 +214,10 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
200
214
  getBillingAddress: function (code, authorization, options) {
201
215
  if (options === void 0) { options = {}; }
202
216
  return __awaiter(_this, void 0, void 0, function () {
203
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
204
- return __generator(this, function (_a) {
205
- switch (_a.label) {
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) {
206
221
  case 0:
207
222
  // verify required parameter 'code' is not null or undefined
208
223
  (0, common_1.assertParamExists)('getBillingAddress', 'code', code);
@@ -218,13 +233,19 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
218
233
  localVarQueryParameter = {};
219
234
  // authentication bearer required
220
235
  // http bearer authentication required
221
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
222
240
  case 1:
223
241
  // authentication bearer required
224
242
  // http bearer authentication required
225
- _a.sent();
226
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
228
249
  }
229
250
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
230
251
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -254,9 +275,10 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
254
275
  listBillingAddresses: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
255
276
  if (options === void 0) { options = {}; }
256
277
  return __awaiter(_this, void 0, void 0, function () {
257
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
258
- return __generator(this, function (_a) {
259
- switch (_a.label) {
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) {
260
282
  case 0:
261
283
  localVarPath = "/paymentservice/v1/billing-addresses";
262
284
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -273,7 +295,7 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
273
295
  case 1:
274
296
  // authentication bearer required
275
297
  // http bearer authentication required
276
- _a.sent();
298
+ _b.sent();
277
299
  if (pageSize !== undefined) {
278
300
  localVarQueryParameter['pageSize'] = pageSize;
279
301
  }
@@ -295,8 +317,11 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
295
317
  if (filters !== undefined) {
296
318
  localVarQueryParameter['filters'] = filters;
297
319
  }
298
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
300
325
  }
301
326
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
302
327
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -321,9 +346,10 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
321
346
  updateBillingAddress: function (code, updateBillingAddressRequestDto, authorization, options) {
322
347
  if (options === void 0) { options = {}; }
323
348
  return __awaiter(_this, void 0, void 0, function () {
324
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
325
- return __generator(this, function (_a) {
326
- switch (_a.label) {
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) {
327
353
  case 0:
328
354
  // verify required parameter 'code' is not null or undefined
329
355
  (0, common_1.assertParamExists)('updateBillingAddress', 'code', code);
@@ -341,13 +367,19 @@ var BillingAddressesApiAxiosParamCreator = function (configuration) {
341
367
  localVarQueryParameter = {};
342
368
  // authentication bearer required
343
369
  // http bearer authentication required
344
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
345
374
  case 1:
346
375
  // authentication bearer required
347
376
  // http bearer authentication required
348
- _a.sent();
349
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
350
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
351
383
  }
352
384
  localVarHeaderParameter['Content-Type'] = 'application/json';
353
385
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -580,7 +612,7 @@ var BillingAddressesApi = /** @class */ (function (_super) {
580
612
  */
581
613
  BillingAddressesApi.prototype.createBillingAddress = function (requestParameters, options) {
582
614
  var _this = this;
583
- return (0, exports.BillingAddressesApiFp)(this.configuration).createBillingAddress(requestParameters.createBillingAddressRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
615
+ return (0, exports.BillingAddressesApiFp)(this.configuration).createBillingAddress(requestParameters.createBillingAddressRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
584
616
  };
585
617
  /**
586
618
  * Deletes a billing address by code **Required Permissions** \"payment-management.payments.delete\"
@@ -592,7 +624,7 @@ var BillingAddressesApi = /** @class */ (function (_super) {
592
624
  */
593
625
  BillingAddressesApi.prototype.deleteBillingAddress = function (requestParameters, options) {
594
626
  var _this = this;
595
- return (0, exports.BillingAddressesApiFp)(this.configuration).deleteBillingAddress(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
627
+ return (0, exports.BillingAddressesApiFp)(this.configuration).deleteBillingAddress(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
596
628
  };
597
629
  /**
598
630
  * 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\"
@@ -604,7 +636,7 @@ var BillingAddressesApi = /** @class */ (function (_super) {
604
636
  */
605
637
  BillingAddressesApi.prototype.getBillingAddress = function (requestParameters, options) {
606
638
  var _this = this;
607
- return (0, exports.BillingAddressesApiFp)(this.configuration).getBillingAddress(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
639
+ return (0, exports.BillingAddressesApiFp)(this.configuration).getBillingAddress(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
608
640
  };
609
641
  /**
610
642
  * 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\"
@@ -617,7 +649,7 @@ var BillingAddressesApi = /** @class */ (function (_super) {
617
649
  BillingAddressesApi.prototype.listBillingAddresses = function (requestParameters, options) {
618
650
  var _this = this;
619
651
  if (requestParameters === void 0) { requestParameters = {}; }
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); });
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); });
621
653
  };
622
654
  /**
623
655
  * Updates a billing address by code **Required Permissions** \"payment-management.payments.update\"
@@ -629,7 +661,7 @@ var BillingAddressesApi = /** @class */ (function (_super) {
629
661
  */
630
662
  BillingAddressesApi.prototype.updateBillingAddress = function (requestParameters, options) {
631
663
  var _this = this;
632
- return (0, exports.BillingAddressesApiFp)(this.configuration).updateBillingAddress(requestParameters.code, requestParameters.updateBillingAddressRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
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); });
633
665
  };
634
666
  return BillingAddressesApi;
635
667
  }(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, {}, 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, {}, 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, {}, any>>;
263
263
  }
@@ -103,9 +103,10 @@ 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, headersFromBaseOptions;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
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) {
109
110
  case 0:
110
111
  // verify required parameter 'createCreditAllocationRequestDto' is not null or undefined
111
112
  (0, common_1.assertParamExists)('createAllocateCredit', 'createCreditAllocationRequestDto', createCreditAllocationRequestDto);
@@ -120,13 +121,19 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
120
121
  localVarQueryParameter = {};
121
122
  // authentication bearer required
122
123
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
124
128
  case 1:
125
129
  // authentication bearer required
126
130
  // http bearer authentication required
127
- _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
130
137
  }
131
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,9 +159,10 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
152
159
  getCreditAllocation: function (code, authorization, options) {
153
160
  if (options === void 0) { options = {}; }
154
161
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
- return __generator(this, function (_a) {
157
- switch (_a.label) {
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) {
158
166
  case 0:
159
167
  // verify required parameter 'code' is not null or undefined
160
168
  (0, common_1.assertParamExists)('getCreditAllocation', 'code', code);
@@ -170,13 +178,19 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
170
178
  localVarQueryParameter = {};
171
179
  // authentication bearer required
172
180
  // http bearer authentication required
173
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
174
185
  case 1:
175
186
  // authentication bearer required
176
187
  // http bearer authentication required
177
- _a.sent();
178
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
180
194
  }
181
195
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
196
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -206,9 +220,10 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
206
220
  listCreditAllocations: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
207
221
  if (options === void 0) { options = {}; }
208
222
  return __awaiter(_this, void 0, void 0, function () {
209
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
210
- return __generator(this, function (_a) {
211
- switch (_a.label) {
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) {
212
227
  case 0:
213
228
  localVarPath = "/paymentservice/v1/credit-allocations";
214
229
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -225,7 +240,7 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
225
240
  case 1:
226
241
  // authentication bearer required
227
242
  // http bearer authentication required
228
- _a.sent();
243
+ _b.sent();
229
244
  if (pageSize !== undefined) {
230
245
  localVarQueryParameter['pageSize'] = pageSize;
231
246
  }
@@ -247,8 +262,11 @@ var CreditAllocationApiAxiosParamCreator = function (configuration) {
247
262
  if (filters !== undefined) {
248
263
  localVarQueryParameter['filters'] = filters;
249
264
  }
250
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
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);
252
270
  }
253
271
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
254
272
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -413,7 +431,7 @@ var CreditAllocationApi = /** @class */ (function (_super) {
413
431
  */
414
432
  CreditAllocationApi.prototype.createAllocateCredit = function (requestParameters, options) {
415
433
  var _this = this;
416
- return (0, exports.CreditAllocationApiFp)(this.configuration).createAllocateCredit(requestParameters.createCreditAllocationRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
434
+ return (0, exports.CreditAllocationApiFp)(this.configuration).createAllocateCredit(requestParameters.createCreditAllocationRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
417
435
  };
418
436
  /**
419
437
  * Get a credit allocation entry by code. **Required Permissions** \"payment-management.payments.view\"
@@ -425,7 +443,7 @@ var CreditAllocationApi = /** @class */ (function (_super) {
425
443
  */
426
444
  CreditAllocationApi.prototype.getCreditAllocation = function (requestParameters, options) {
427
445
  var _this = this;
428
- return (0, exports.CreditAllocationApiFp)(this.configuration).getCreditAllocation(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
446
+ return (0, exports.CreditAllocationApiFp)(this.configuration).getCreditAllocation(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
429
447
  };
430
448
  /**
431
449
  * 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\"
@@ -438,7 +456,7 @@ var CreditAllocationApi = /** @class */ (function (_super) {
438
456
  CreditAllocationApi.prototype.listCreditAllocations = function (requestParameters, options) {
439
457
  var _this = this;
440
458
  if (requestParameters === void 0) { requestParameters = {}; }
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); });
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); });
442
460
  };
443
461
  return CreditAllocationApi;
444
462
  }(base_1.BaseAPI));
@@ -12,6 +12,10 @@
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';
15
19
  import { GetExceedingCreditResponseClass } from '../models';
16
20
  import { ListExceedingCreditsResponseClass } from '../models';
17
21
  /**
@@ -19,6 +23,24 @@ import { ListExceedingCreditsResponseClass } from '../models';
19
23
  * @export
20
24
  */
21
25
  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>;
22
44
  /**
23
45
  * 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\"
24
46
  * @summary Retrieve the exceeding credit
@@ -49,6 +71,24 @@ export declare const ExceedingCreditsApiAxiosParamCreator: (configuration?: Conf
49
71
  * @export
50
72
  */
51
73
  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>>;
52
92
  /**
53
93
  * 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\"
54
94
  * @summary Retrieve the exceeding credit
@@ -79,6 +119,24 @@ export declare const ExceedingCreditsApiFp: (configuration?: Configuration) => {
79
119
  * @export
80
120
  */
81
121
  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>;
82
140
  /**
83
141
  * 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\"
84
142
  * @summary Retrieve the exceeding credit
@@ -104,6 +162,44 @@ export declare const ExceedingCreditsApiFactory: (configuration?: Configuration,
104
162
  */
105
163
  listExceedingCredits(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListExceedingCreditsResponseClass>;
106
164
  };
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
+ }
107
203
  /**
108
204
  * Request parameters for getExceedingCredit operation in ExceedingCreditsApi.
109
205
  * @export
@@ -185,6 +281,24 @@ export interface ExceedingCreditsApiListExceedingCreditsRequest {
185
281
  * @extends {BaseAPI}
186
282
  */
187
283
  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>>;
188
302
  /**
189
303
  * 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\"
190
304
  * @summary Retrieve the exceeding credit
@@ -193,7 +307,7 @@ export declare class ExceedingCreditsApi extends BaseAPI {
193
307
  * @throws {RequiredError}
194
308
  * @memberof ExceedingCreditsApi
195
309
  */
196
- getExceedingCredit(requestParameters: ExceedingCreditsApiGetExceedingCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetExceedingCreditResponseClass, any, {}>>;
310
+ getExceedingCredit(requestParameters: ExceedingCreditsApiGetExceedingCreditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetExceedingCreditResponseClass, any, {}, any>>;
197
311
  /**
198
312
  * 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\"
199
313
  * @summary List exceeding credits
@@ -202,5 +316,5 @@ export declare class ExceedingCreditsApi extends BaseAPI {
202
316
  * @throws {RequiredError}
203
317
  * @memberof ExceedingCreditsApi
204
318
  */
205
- listExceedingCredits(requestParameters?: ExceedingCreditsApiListExceedingCreditsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListExceedingCreditsResponseClass, any, {}>>;
319
+ listExceedingCredits(requestParameters?: ExceedingCreditsApiListExceedingCreditsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListExceedingCreditsResponseClass, any, {}, any>>;
206
320
  }