@emilgroup/payment-sdk 1.13.1-beta.13 → 1.13.1-beta.131

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 (174) hide show
  1. package/.openapi-generator/FILES +24 -1
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +55 -13
  4. package/api/bank-orders-api.ts +130 -57
  5. package/api/bank-transaction-api.ts +59 -48
  6. package/api/exceeding-credits-api.ts +349 -0
  7. package/api/payment-methods-api.ts +59 -17
  8. package/api/payment-reminders-api.ts +55 -13
  9. package/api/payments-api.ts +180 -17
  10. package/api/policy-payment-methods-api.ts +471 -0
  11. package/api/refunds-api.ts +45 -17
  12. package/api/tenant-bank-account-api.ts +45 -17
  13. package/api.ts +4 -0
  14. package/base.ts +10 -32
  15. package/common.ts +2 -2
  16. package/configuration.ts +0 -9
  17. package/dist/api/bank-accounts-api.d.ts +35 -8
  18. package/dist/api/bank-accounts-api.js +29 -11
  19. package/dist/api/bank-orders-api.d.ts +92 -46
  20. package/dist/api/bank-orders-api.js +83 -52
  21. package/dist/api/bank-transaction-api.d.ts +39 -31
  22. package/dist/api/bank-transaction-api.js +36 -31
  23. package/dist/api/exceeding-credits-api.d.ts +206 -0
  24. package/dist/api/exceeding-credits-api.js +352 -0
  25. package/dist/api/payment-methods-api.d.ts +39 -12
  26. package/dist/api/payment-methods-api.js +32 -14
  27. package/dist/api/payment-reminders-api.d.ts +35 -8
  28. package/dist/api/payment-reminders-api.js +29 -11
  29. package/dist/api/payments-api.d.ts +104 -12
  30. package/dist/api/payments-api.js +133 -14
  31. package/dist/api/policy-payment-methods-api.d.ts +272 -0
  32. package/dist/api/policy-payment-methods-api.js +452 -0
  33. package/dist/api/refunds-api.d.ts +28 -10
  34. package/dist/api/refunds-api.js +24 -12
  35. package/dist/api/tenant-bank-account-api.d.ts +28 -10
  36. package/dist/api/tenant-bank-account-api.js +24 -12
  37. package/dist/api.d.ts +2 -0
  38. package/dist/api.js +2 -0
  39. package/dist/base.d.ts +2 -4
  40. package/dist/base.js +21 -40
  41. package/dist/common.js +2 -2
  42. package/dist/configuration.d.ts +0 -6
  43. package/dist/configuration.js +0 -8
  44. package/dist/models/activate-policy-payment-method-request-dto.d.ts +24 -0
  45. package/dist/models/bank-order-class.d.ts +23 -3
  46. package/dist/models/bank-order-xml-file-class.d.ts +72 -0
  47. package/dist/models/bank-order-xml-file-class.js +15 -0
  48. package/dist/models/bank-transaction-class-without-expand-properties.d.ts +18 -18
  49. package/dist/models/bank-transaction-class-without-expand-properties.js +5 -0
  50. package/dist/models/bank-transaction-class.d.ts +22 -22
  51. package/dist/models/bank-transaction-class.js +5 -0
  52. package/dist/models/bank-transaction-invoice-class.d.ts +60 -0
  53. package/dist/models/bank-transaction-invoice-class.js +15 -0
  54. package/dist/models/bank-transfer-dto.d.ts +25 -0
  55. package/dist/models/bank-transfer-dto.js +15 -0
  56. package/dist/models/billing-address-dto.d.ts +60 -0
  57. package/dist/models/billing-address-dto.js +15 -0
  58. package/dist/models/complete-adyen-payment-setup-request-dto.d.ts +2 -0
  59. package/dist/models/complete-adyen-payment-setup-request-dto.js +3 -1
  60. package/dist/models/complete-eis-payment-setup-request-dto.d.ts +36 -0
  61. package/dist/models/complete-eis-payment-setup-request-dto.js +15 -0
  62. package/dist/models/complete-payment-setup-request-dto.d.ts +7 -0
  63. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +2 -0
  64. package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -1
  65. package/dist/models/create-bank-order-request-dto.d.ts +9 -9
  66. package/dist/models/create-payment-order-dto.d.ts +48 -0
  67. package/dist/models/create-payment-order-dto.js +15 -0
  68. package/dist/models/create-payment-order-request-dto.d.ts +48 -0
  69. package/dist/models/create-payment-order-request-dto.js +15 -0
  70. package/dist/models/create-payment-reminder-request-dto.d.ts +7 -1
  71. package/dist/models/create-payment-request-dto.d.ts +7 -1
  72. package/dist/models/create-policy-payment-method-request-dto.d.ts +30 -0
  73. package/dist/models/create-policy-payment-method-request-dto.js +15 -0
  74. package/dist/models/create-policy-payment-method-response-class.d.ts +25 -0
  75. package/dist/models/create-policy-payment-method-response-class.js +15 -0
  76. package/dist/models/create-psp-payment-method-request-dto.d.ts +29 -1
  77. package/dist/models/create-psp-payment-method-request-dto.js +3 -1
  78. package/dist/models/create-tenant-bank-account-request-dto.d.ts +30 -0
  79. package/dist/models/deactivated-payment-reminder-class.d.ts +7 -1
  80. package/dist/models/eis-sepa-debit-dto.d.ts +55 -0
  81. package/dist/models/eis-sepa-debit-dto.js +15 -0
  82. package/dist/models/exceeding-credit-class.d.ts +116 -0
  83. package/dist/models/exceeding-credit-class.js +29 -0
  84. package/dist/models/financial-account-class.d.ts +111 -0
  85. package/dist/models/financial-account-class.js +24 -0
  86. package/dist/models/get-exceeding-credit-response-class.d.ts +25 -0
  87. package/dist/models/get-exceeding-credit-response-class.js +15 -0
  88. package/dist/models/index.d.ts +22 -1
  89. package/dist/models/index.js +22 -1
  90. package/dist/models/initiate-adyen-payment-setup-request-dto.d.ts +6 -0
  91. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +6 -0
  92. package/dist/models/initiate-eis-payment-setup-request-dto.d.ts +36 -0
  93. package/dist/models/initiate-eis-payment-setup-request-dto.js +15 -0
  94. package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -2
  95. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +6 -0
  96. package/dist/models/{unlink-bank-transaction-request-dto-rest.d.ts → invoice-allocation-dto.d.ts} +10 -4
  97. package/dist/models/invoice-allocation-dto.js +15 -0
  98. package/dist/models/link-bank-transaction-request-dto-rest.d.ts +4 -3
  99. package/dist/models/list-exceeding-credits-response-class.d.ts +31 -0
  100. package/dist/models/list-exceeding-credits-response-class.js +15 -0
  101. package/dist/models/list-policy-payment-methods-response-class.d.ts +31 -0
  102. package/dist/models/list-policy-payment-methods-response-class.js +15 -0
  103. package/dist/models/mandate-dto.d.ts +43 -0
  104. package/dist/models/mandate-dto.js +15 -0
  105. package/dist/models/mandate-hash-data-dto.d.ts +42 -0
  106. package/dist/models/mandate-hash-data-dto.js +15 -0
  107. package/dist/models/mandate-reference-class.d.ts +90 -0
  108. package/dist/models/mandate-reference-class.js +15 -0
  109. package/dist/models/payment-class-without-expand-properties.d.ts +7 -1
  110. package/dist/models/payment-class.d.ts +7 -1
  111. package/dist/models/payment-method-class.d.ts +6 -0
  112. package/dist/models/payment-reminder-class.d.ts +7 -1
  113. package/dist/models/policy-payment-method-class.d.ts +86 -0
  114. package/dist/models/policy-payment-method-class.js +15 -0
  115. package/dist/models/refund-class.d.ts +7 -1
  116. package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +30 -0
  117. package/dist/models/tenant-bank-account-class.d.ts +30 -0
  118. package/dist/models/unlinked-bank-transaction-response-class.d.ts +18 -0
  119. package/dist/models/unlinked-bank-transaction-response-class.js +5 -0
  120. package/dist/models/update-bank-order-request-dto.d.ts +12 -12
  121. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +30 -0
  122. package/models/activate-policy-payment-method-request-dto.ts +30 -0
  123. package/models/bank-order-class.ts +23 -3
  124. package/models/bank-order-xml-file-class.ts +78 -0
  125. package/models/bank-transaction-class-without-expand-properties.ts +21 -18
  126. package/models/bank-transaction-class.ts +25 -22
  127. package/models/bank-transaction-invoice-class.ts +66 -0
  128. package/models/bank-transfer-dto.ts +31 -0
  129. package/models/billing-address-dto.ts +66 -0
  130. package/models/complete-adyen-payment-setup-request-dto.ts +3 -1
  131. package/models/complete-eis-payment-setup-request-dto.ts +42 -0
  132. package/models/complete-payment-setup-request-dto.ts +7 -0
  133. package/models/complete-stripe-payment-setup-request-dto.ts +3 -1
  134. package/models/create-bank-order-request-dto.ts +9 -9
  135. package/models/create-payment-order-dto.ts +54 -0
  136. package/models/create-payment-order-request-dto.ts +54 -0
  137. package/models/create-payment-reminder-request-dto.ts +7 -1
  138. package/models/create-payment-request-dto.ts +7 -1
  139. package/models/create-policy-payment-method-request-dto.ts +36 -0
  140. package/models/create-policy-payment-method-response-class.ts +31 -0
  141. package/models/create-psp-payment-method-request-dto.ts +30 -2
  142. package/models/create-tenant-bank-account-request-dto.ts +30 -0
  143. package/models/deactivated-payment-reminder-class.ts +7 -1
  144. package/models/eis-sepa-debit-dto.ts +61 -0
  145. package/models/exceeding-credit-class.ts +125 -0
  146. package/models/financial-account-class.ts +120 -0
  147. package/models/get-exceeding-credit-response-class.ts +31 -0
  148. package/models/index.ts +22 -1
  149. package/models/initiate-adyen-payment-setup-request-dto.ts +6 -0
  150. package/models/initiate-braintree-payment-setup-request-dto.ts +6 -0
  151. package/models/initiate-eis-payment-setup-request-dto.ts +42 -0
  152. package/models/initiate-payment-setup-request-dto.ts +3 -2
  153. package/models/initiate-stripe-payment-setup-request-dto.ts +6 -0
  154. package/models/{unlink-bank-transaction-request-dto-rest.ts → invoice-allocation-dto.ts} +10 -4
  155. package/models/link-bank-transaction-request-dto-rest.ts +4 -3
  156. package/models/list-exceeding-credits-response-class.ts +37 -0
  157. package/models/list-policy-payment-methods-response-class.ts +37 -0
  158. package/models/mandate-dto.ts +49 -0
  159. package/models/mandate-hash-data-dto.ts +48 -0
  160. package/models/mandate-reference-class.ts +96 -0
  161. package/models/payment-class-without-expand-properties.ts +7 -1
  162. package/models/payment-class.ts +7 -1
  163. package/models/payment-method-class.ts +6 -0
  164. package/models/payment-reminder-class.ts +7 -1
  165. package/models/policy-payment-method-class.ts +92 -0
  166. package/models/refund-class.ts +7 -1
  167. package/models/tenant-bank-account-class-without-expand-properties.ts +30 -0
  168. package/models/tenant-bank-account-class.ts +30 -0
  169. package/models/unlinked-bank-transaction-response-class.ts +21 -0
  170. package/models/update-bank-order-request-dto.ts +12 -12
  171. package/models/update-tenant-bank-account-rest-request-dto.ts +30 -0
  172. package/package.json +1 -1
  173. package/tsconfig.json +0 -1
  174. /package/dist/models/{unlink-bank-transaction-request-dto-rest.js → activate-policy-payment-method-request-dto.js} +0 -0
@@ -93,7 +93,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * This will create a bank order. **Required Permissions** \"payment-management.bank-accounts.create\"
96
+ * This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
97
97
  * @summary Create the bank order
98
98
  * @param {CreateBankOrderRequestDto} createBankOrderRequestDto
99
99
  * @param {string} [authorization] Bearer Token
@@ -142,7 +142,7 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
142
142
  });
143
143
  },
144
144
  /**
145
- * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-accounts.delete\"
145
+ * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
146
146
  * @summary Delete the bank order
147
147
  * @param {string} code Unique identifier for the object.
148
148
  * @param {string} [authorization] Bearer Token
@@ -190,14 +190,15 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
190
190
  });
191
191
  },
192
192
  /**
193
- * Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-accounts.view\"
193
+ * Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-orders.view\"
194
194
  * @summary Retrieve the bank order
195
195
  * @param {string} code
196
196
  * @param {string} [authorization] Bearer Token
197
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: financialAccount, xmlFile<i>
197
198
  * @param {*} [options] Override http request option.
198
199
  * @throws {RequiredError}
199
200
  */
200
- getBankOrder: function (code, authorization, options) {
201
+ getBankOrder: function (code, authorization, expand, options) {
201
202
  if (options === void 0) { options = {}; }
202
203
  return __awaiter(_this, void 0, void 0, function () {
203
204
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -223,6 +224,9 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
223
224
  // authentication bearer required
224
225
  // http bearer authentication required
225
226
  _a.sent();
227
+ if (expand !== undefined) {
228
+ localVarQueryParameter['expand'] = expand;
229
+ }
226
230
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
227
231
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
228
232
  }
@@ -238,17 +242,20 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
238
242
  });
239
243
  },
240
244
  /**
241
- * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
245
+ * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-orders.view\"
242
246
  * @summary List bank orders
243
247
  * @param {string} [authorization] Bearer Token
244
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, bankAccountId</i>
245
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, bankAccountId</i>
246
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, orderNumber, bankAccountId, amount, createdAt, updatedAt</i>
247
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
248
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
249
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
250
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
251
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, description, orderNumber, financialAccountCode</i>
252
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, dueDate, orderNumber, financialAccountCode, amount, createdAt, updatedAt</i>
253
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: financialAccount, xmlFile<i>
254
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
248
255
  * @param {*} [options] Override http request option.
249
256
  * @throws {RequiredError}
250
257
  */
251
- listBankOrders: function (authorization, filter, filters, order, expand, options) {
258
+ listBankOrders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
252
259
  if (options === void 0) { options = {}; }
253
260
  return __awaiter(_this, void 0, void 0, function () {
254
261
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -271,11 +278,17 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
271
278
  // authentication bearer required
272
279
  // http bearer authentication required
273
280
  _a.sent();
281
+ if (pageSize !== undefined) {
282
+ localVarQueryParameter['pageSize'] = pageSize;
283
+ }
284
+ if (pageToken !== undefined) {
285
+ localVarQueryParameter['pageToken'] = pageToken;
286
+ }
274
287
  if (filter !== undefined) {
275
288
  localVarQueryParameter['filter'] = filter;
276
289
  }
277
- if (filters !== undefined) {
278
- localVarQueryParameter['filters'] = filters;
290
+ if (search !== undefined) {
291
+ localVarQueryParameter['search'] = search;
279
292
  }
280
293
  if (order !== undefined) {
281
294
  localVarQueryParameter['order'] = order;
@@ -283,6 +296,9 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
283
296
  if (expand !== undefined) {
284
297
  localVarQueryParameter['expand'] = expand;
285
298
  }
299
+ if (filters !== undefined) {
300
+ localVarQueryParameter['filters'] = filters;
301
+ }
286
302
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
287
303
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
288
304
  }
@@ -298,14 +314,15 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
298
314
  });
299
315
  },
300
316
  /**
301
- * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
317
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
302
318
  * @summary Update the bank order
303
319
  * @param {string} code Unique identifier for the object.
320
+ * @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
304
321
  * @param {string} [authorization] Bearer Token
305
322
  * @param {*} [options] Override http request option.
306
323
  * @throws {RequiredError}
307
324
  */
308
- updateBankOrder: function (code, authorization, options) {
325
+ updateBankOrder: function (code, updateBankOrderRequestDto, authorization, options) {
309
326
  if (options === void 0) { options = {}; }
310
327
  return __awaiter(_this, void 0, void 0, function () {
311
328
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -314,6 +331,8 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
314
331
  case 0:
315
332
  // verify required parameter 'code' is not null or undefined
316
333
  (0, common_1.assertParamExists)('updateBankOrder', 'code', code);
334
+ // verify required parameter 'updateBankOrderRequestDto' is not null or undefined
335
+ (0, common_1.assertParamExists)('updateBankOrder', 'updateBankOrderRequestDto', updateBankOrderRequestDto);
317
336
  localVarPath = "/paymentservice/v1/bank-orders/{code}"
318
337
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
319
338
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -334,9 +353,11 @@ var BankOrdersApiAxiosParamCreator = function (configuration) {
334
353
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
335
354
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
336
355
  }
356
+ localVarHeaderParameter['Content-Type'] = 'application/json';
337
357
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
338
358
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
339
359
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
360
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateBankOrderRequestDto, localVarRequestOptions, configuration);
340
361
  return [2 /*return*/, {
341
362
  url: (0, common_1.toPathString)(localVarUrlObj),
342
363
  options: localVarRequestOptions,
@@ -356,7 +377,7 @@ var BankOrdersApiFp = function (configuration) {
356
377
  var localVarAxiosParamCreator = (0, exports.BankOrdersApiAxiosParamCreator)(configuration);
357
378
  return {
358
379
  /**
359
- * This will create a bank order. **Required Permissions** \"payment-management.bank-accounts.create\"
380
+ * This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
360
381
  * @summary Create the bank order
361
382
  * @param {CreateBankOrderRequestDto} createBankOrderRequestDto
362
383
  * @param {string} [authorization] Bearer Token
@@ -377,7 +398,7 @@ var BankOrdersApiFp = function (configuration) {
377
398
  });
378
399
  },
379
400
  /**
380
- * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-accounts.delete\"
401
+ * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
381
402
  * @summary Delete the bank order
382
403
  * @param {string} code Unique identifier for the object.
383
404
  * @param {string} [authorization] Bearer Token
@@ -398,19 +419,20 @@ var BankOrdersApiFp = function (configuration) {
398
419
  });
399
420
  },
400
421
  /**
401
- * Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-accounts.view\"
422
+ * Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-orders.view\"
402
423
  * @summary Retrieve the bank order
403
424
  * @param {string} code
404
425
  * @param {string} [authorization] Bearer Token
426
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: financialAccount, xmlFile<i>
405
427
  * @param {*} [options] Override http request option.
406
428
  * @throws {RequiredError}
407
429
  */
408
- getBankOrder: function (code, authorization, options) {
430
+ getBankOrder: function (code, authorization, expand, options) {
409
431
  return __awaiter(this, void 0, void 0, function () {
410
432
  var localVarAxiosArgs;
411
433
  return __generator(this, function (_a) {
412
434
  switch (_a.label) {
413
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBankOrder(code, authorization, options)];
435
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBankOrder(code, authorization, expand, options)];
414
436
  case 1:
415
437
  localVarAxiosArgs = _a.sent();
416
438
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -419,22 +441,25 @@ var BankOrdersApiFp = function (configuration) {
419
441
  });
420
442
  },
421
443
  /**
422
- * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
444
+ * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-orders.view\"
423
445
  * @summary List bank orders
424
446
  * @param {string} [authorization] Bearer Token
425
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, bankAccountId</i>
426
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, bankAccountId</i>
427
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, orderNumber, bankAccountId, amount, createdAt, updatedAt</i>
428
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
447
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
448
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
449
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
450
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, description, orderNumber, financialAccountCode</i>
451
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, dueDate, orderNumber, financialAccountCode, amount, createdAt, updatedAt</i>
452
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: financialAccount, xmlFile<i>
453
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
429
454
  * @param {*} [options] Override http request option.
430
455
  * @throws {RequiredError}
431
456
  */
432
- listBankOrders: function (authorization, filter, filters, order, expand, options) {
457
+ listBankOrders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
433
458
  return __awaiter(this, void 0, void 0, function () {
434
459
  var localVarAxiosArgs;
435
460
  return __generator(this, function (_a) {
436
461
  switch (_a.label) {
437
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankOrders(authorization, filter, filters, order, expand, options)];
462
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBankOrders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
438
463
  case 1:
439
464
  localVarAxiosArgs = _a.sent();
440
465
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -443,19 +468,20 @@ var BankOrdersApiFp = function (configuration) {
443
468
  });
444
469
  },
445
470
  /**
446
- * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
471
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
447
472
  * @summary Update the bank order
448
473
  * @param {string} code Unique identifier for the object.
474
+ * @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
449
475
  * @param {string} [authorization] Bearer Token
450
476
  * @param {*} [options] Override http request option.
451
477
  * @throws {RequiredError}
452
478
  */
453
- updateBankOrder: function (code, authorization, options) {
479
+ updateBankOrder: function (code, updateBankOrderRequestDto, authorization, options) {
454
480
  return __awaiter(this, void 0, void 0, function () {
455
481
  var localVarAxiosArgs;
456
482
  return __generator(this, function (_a) {
457
483
  switch (_a.label) {
458
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankOrder(code, authorization, options)];
484
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateBankOrder(code, updateBankOrderRequestDto, authorization, options)];
459
485
  case 1:
460
486
  localVarAxiosArgs = _a.sent();
461
487
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -474,7 +500,7 @@ var BankOrdersApiFactory = function (configuration, basePath, axios) {
474
500
  var localVarFp = (0, exports.BankOrdersApiFp)(configuration);
475
501
  return {
476
502
  /**
477
- * This will create a bank order. **Required Permissions** \"payment-management.bank-accounts.create\"
503
+ * This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
478
504
  * @summary Create the bank order
479
505
  * @param {CreateBankOrderRequestDto} createBankOrderRequestDto
480
506
  * @param {string} [authorization] Bearer Token
@@ -485,7 +511,7 @@ var BankOrdersApiFactory = function (configuration, basePath, axios) {
485
511
  return localVarFp.createBankOrder(createBankOrderRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
486
512
  },
487
513
  /**
488
- * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-accounts.delete\"
514
+ * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
489
515
  * @summary Delete the bank order
490
516
  * @param {string} code Unique identifier for the object.
491
517
  * @param {string} [authorization] Bearer Token
@@ -496,40 +522,45 @@ var BankOrdersApiFactory = function (configuration, basePath, axios) {
496
522
  return localVarFp.deleteBankOrder(code, authorization, options).then(function (request) { return request(axios, basePath); });
497
523
  },
498
524
  /**
499
- * Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-accounts.view\"
525
+ * Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-orders.view\"
500
526
  * @summary Retrieve the bank order
501
527
  * @param {string} code
502
528
  * @param {string} [authorization] Bearer Token
529
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: financialAccount, xmlFile<i>
503
530
  * @param {*} [options] Override http request option.
504
531
  * @throws {RequiredError}
505
532
  */
506
- getBankOrder: function (code, authorization, options) {
507
- return localVarFp.getBankOrder(code, authorization, options).then(function (request) { return request(axios, basePath); });
533
+ getBankOrder: function (code, authorization, expand, options) {
534
+ return localVarFp.getBankOrder(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
508
535
  },
509
536
  /**
510
- * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
537
+ * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-orders.view\"
511
538
  * @summary List bank orders
512
539
  * @param {string} [authorization] Bearer Token
513
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, bankAccountId</i>
514
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, bankAccountId</i>
515
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, orderNumber, bankAccountId, amount, createdAt, updatedAt</i>
516
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
540
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
541
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
542
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
543
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, description, orderNumber, financialAccountCode</i>
544
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, executionDate, dueDate, orderNumber, financialAccountCode, amount, createdAt, updatedAt</i>
545
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: financialAccount, xmlFile<i>
546
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, orderNumber, status, type, financialAccountCode</i>
517
547
  * @param {*} [options] Override http request option.
518
548
  * @throws {RequiredError}
519
549
  */
520
- listBankOrders: function (authorization, filter, filters, order, expand, options) {
521
- return localVarFp.listBankOrders(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
550
+ listBankOrders: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
551
+ return localVarFp.listBankOrders(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
522
552
  },
523
553
  /**
524
- * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
554
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
525
555
  * @summary Update the bank order
526
556
  * @param {string} code Unique identifier for the object.
557
+ * @param {UpdateBankOrderRequestDto} updateBankOrderRequestDto
527
558
  * @param {string} [authorization] Bearer Token
528
559
  * @param {*} [options] Override http request option.
529
560
  * @throws {RequiredError}
530
561
  */
531
- updateBankOrder: function (code, authorization, options) {
532
- return localVarFp.updateBankOrder(code, authorization, options).then(function (request) { return request(axios, basePath); });
562
+ updateBankOrder: function (code, updateBankOrderRequestDto, authorization, options) {
563
+ return localVarFp.updateBankOrder(code, updateBankOrderRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
533
564
  },
534
565
  };
535
566
  };
@@ -546,7 +577,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
546
577
  return _super !== null && _super.apply(this, arguments) || this;
547
578
  }
548
579
  /**
549
- * This will create a bank order. **Required Permissions** \"payment-management.bank-accounts.create\"
580
+ * This will create a bank order. **Required Permissions** \"payment-management.bank-orders.create\", \"accounting-management.financial-accounts.view\", \"billing-management.invoices.view\"
550
581
  * @summary Create the bank order
551
582
  * @param {BankOrdersApiCreateBankOrderRequest} requestParameters Request parameters.
552
583
  * @param {*} [options] Override http request option.
@@ -558,7 +589,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
558
589
  return (0, exports.BankOrdersApiFp)(this.configuration).createBankOrder(requestParameters.createBankOrderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
559
590
  };
560
591
  /**
561
- * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-accounts.delete\"
592
+ * Deletes a bank order by code. **Required Permissions** \"payment-management.bank-orders.delete\"
562
593
  * @summary Delete the bank order
563
594
  * @param {BankOrdersApiDeleteBankOrderRequest} requestParameters Request parameters.
564
595
  * @param {*} [options] Override http request option.
@@ -570,7 +601,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
570
601
  return (0, exports.BankOrdersApiFp)(this.configuration).deleteBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
571
602
  };
572
603
  /**
573
- * Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-accounts.view\"
604
+ * Retrieves the details of the bank order that was previously created. Supply the unique bank order code that was returned when you created it and Emil Api will return the corresponding bank order information. **Required Permissions** \"payment-management.bank-orders.view\"
574
605
  * @summary Retrieve the bank order
575
606
  * @param {BankOrdersApiGetBankOrderRequest} requestParameters Request parameters.
576
607
  * @param {*} [options] Override http request option.
@@ -579,10 +610,10 @@ var BankOrdersApi = /** @class */ (function (_super) {
579
610
  */
580
611
  BankOrdersApi.prototype.getBankOrder = function (requestParameters, options) {
581
612
  var _this = this;
582
- return (0, exports.BankOrdersApiFp)(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
613
+ return (0, exports.BankOrdersApiFp)(this.configuration).getBankOrder(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
583
614
  };
584
615
  /**
585
- * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-accounts.view\"
616
+ * Returns a list of bank orders you have previously created. The bank orders are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"payment-management.bank-orders.view\"
586
617
  * @summary List bank orders
587
618
  * @param {BankOrdersApiListBankOrdersRequest} requestParameters Request parameters.
588
619
  * @param {*} [options] Override http request option.
@@ -592,10 +623,10 @@ var BankOrdersApi = /** @class */ (function (_super) {
592
623
  BankOrdersApi.prototype.listBankOrders = function (requestParameters, options) {
593
624
  var _this = this;
594
625
  if (requestParameters === void 0) { requestParameters = {}; }
595
- return (0, exports.BankOrdersApiFp)(this.configuration).listBankOrders(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
626
+ return (0, exports.BankOrdersApiFp)(this.configuration).listBankOrders(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); });
596
627
  };
597
628
  /**
598
- * Update a bank order by code **Required Permissions** \"payment-management.bank-accounts.update\"
629
+ * Update a bank order by code **Required Permissions** \"payment-management.bank-orders.update\", \"billing-management.invoices.view\"
599
630
  * @summary Update the bank order
600
631
  * @param {BankOrdersApiUpdateBankOrderRequest} requestParameters Request parameters.
601
632
  * @param {*} [options] Override http request option.
@@ -604,7 +635,7 @@ var BankOrdersApi = /** @class */ (function (_super) {
604
635
  */
605
636
  BankOrdersApi.prototype.updateBankOrder = function (requestParameters, options) {
606
637
  var _this = this;
607
- return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
638
+ return (0, exports.BankOrdersApiFp)(this.configuration).updateBankOrder(requestParameters.code, requestParameters.updateBankOrderRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
608
639
  };
609
640
  return BankOrdersApi;
610
641
  }(base_1.BaseAPI));