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

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 +54 -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 +60 -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
@@ -197,15 +197,17 @@ var RefundsApiAxiosParamCreator = function (configuration) {
197
197
  * Returns a list of refunds you have previously created. The refunds 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\"
198
198
  * @summary List refunds
199
199
  * @param {string} [authorization] Bearer Token
200
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
201
+ * @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.
200
202
  * @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: code, id, status, reason, psp, accountCode, invoiceCode</i>
201
- * @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: code, id, status, reason, psp, accountCode, invoiceCode</i>
202
203
  * @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: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status</i>
203
204
  * @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, createdAt, updatedAt, amount</i>
204
205
  * @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: refundItems<i>
206
+ * @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: code, id, status, reason, psp, accountCode, invoiceCode</i>
205
207
  * @param {*} [options] Override http request option.
206
208
  * @throws {RequiredError}
207
209
  */
208
- listRefunds: function (authorization, filter, filters, search, order, expand, options) {
210
+ listRefunds: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
209
211
  if (options === void 0) { options = {}; }
210
212
  return __awaiter(_this, void 0, void 0, function () {
211
213
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -228,12 +230,15 @@ var RefundsApiAxiosParamCreator = function (configuration) {
228
230
  // authentication bearer required
229
231
  // http bearer authentication required
230
232
  _a.sent();
233
+ if (pageSize !== undefined) {
234
+ localVarQueryParameter['pageSize'] = pageSize;
235
+ }
236
+ if (pageToken !== undefined) {
237
+ localVarQueryParameter['pageToken'] = pageToken;
238
+ }
231
239
  if (filter !== undefined) {
232
240
  localVarQueryParameter['filter'] = filter;
233
241
  }
234
- if (filters !== undefined) {
235
- localVarQueryParameter['filters'] = filters;
236
- }
237
242
  if (search !== undefined) {
238
243
  localVarQueryParameter['search'] = search;
239
244
  }
@@ -243,6 +248,9 @@ var RefundsApiAxiosParamCreator = function (configuration) {
243
248
  if (expand !== undefined) {
244
249
  localVarQueryParameter['expand'] = expand;
245
250
  }
251
+ if (filters !== undefined) {
252
+ localVarQueryParameter['filters'] = filters;
253
+ }
246
254
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
247
255
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
248
256
  }
@@ -314,20 +322,22 @@ var RefundsApiFp = function (configuration) {
314
322
  * Returns a list of refunds you have previously created. The refunds 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\"
315
323
  * @summary List refunds
316
324
  * @param {string} [authorization] Bearer Token
325
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
326
+ * @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.
317
327
  * @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: code, id, status, reason, psp, accountCode, invoiceCode</i>
318
- * @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: code, id, status, reason, psp, accountCode, invoiceCode</i>
319
328
  * @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: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status</i>
320
329
  * @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, createdAt, updatedAt, amount</i>
321
330
  * @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: refundItems<i>
331
+ * @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: code, id, status, reason, psp, accountCode, invoiceCode</i>
322
332
  * @param {*} [options] Override http request option.
323
333
  * @throws {RequiredError}
324
334
  */
325
- listRefunds: function (authorization, filter, filters, search, order, expand, options) {
335
+ listRefunds: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
326
336
  return __awaiter(this, void 0, void 0, function () {
327
337
  var localVarAxiosArgs;
328
338
  return __generator(this, function (_a) {
329
339
  switch (_a.label) {
330
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRefunds(authorization, filter, filters, search, order, expand, options)];
340
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
331
341
  case 1:
332
342
  localVarAxiosArgs = _a.sent();
333
343
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -372,16 +382,18 @@ var RefundsApiFactory = function (configuration, basePath, axios) {
372
382
  * Returns a list of refunds you have previously created. The refunds 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\"
373
383
  * @summary List refunds
374
384
  * @param {string} [authorization] Bearer Token
385
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
386
+ * @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.
375
387
  * @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: code, id, status, reason, psp, accountCode, invoiceCode</i>
376
- * @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: code, id, status, reason, psp, accountCode, invoiceCode</i>
377
388
  * @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: id, createdAt, updatedAt, amount, psp, accountCode, invoiceCode, reason, status</i>
378
389
  * @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, createdAt, updatedAt, amount</i>
379
390
  * @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: refundItems<i>
391
+ * @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: code, id, status, reason, psp, accountCode, invoiceCode</i>
380
392
  * @param {*} [options] Override http request option.
381
393
  * @throws {RequiredError}
382
394
  */
383
- listRefunds: function (authorization, filter, filters, search, order, expand, options) {
384
- return localVarFp.listRefunds(authorization, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
395
+ listRefunds: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
396
+ return localVarFp.listRefunds(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
385
397
  },
386
398
  };
387
399
  };
@@ -432,7 +444,7 @@ var RefundsApi = /** @class */ (function (_super) {
432
444
  RefundsApi.prototype.listRefunds = function (requestParameters, options) {
433
445
  var _this = this;
434
446
  if (requestParameters === void 0) { requestParameters = {}; }
435
- return (0, exports.RefundsApiFp)(this.configuration).listRefunds(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
447
+ return (0, exports.RefundsApiFp)(this.configuration).listRefunds(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); });
436
448
  };
437
449
  return RefundsApi;
438
450
  }(base_1.BaseAPI));
@@ -55,15 +55,17 @@ export declare const TenantBankAccountApiAxiosParamCreator: (configuration?: Con
55
55
  * Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
56
56
  * @summary List tenant bank accounts
57
57
  * @param {string} [authorization] Bearer Token
58
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
59
+ * @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.
58
60
  * @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, iban, bankName, accountName</i>
59
- * @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, iban, bankName, accountName</i>
60
61
  * @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: id, iban, bankName, accountName</i>
61
62
  * @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, createdAt</i>
62
63
  * @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: bankTransactions<i>
64
+ * @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, iban, bankName, accountName</i>
63
65
  * @param {*} [options] Override http request option.
64
66
  * @throws {RequiredError}
65
67
  */
66
- listTenantBankAccounts: (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
+ listTenantBankAccounts: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
69
  /**
68
70
  * Update a tenant bank account by code
69
71
  * @summary Update the tenant bank account
@@ -112,15 +114,17 @@ export declare const TenantBankAccountApiFp: (configuration?: Configuration) =>
112
114
  * Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
113
115
  * @summary List tenant bank accounts
114
116
  * @param {string} [authorization] Bearer Token
117
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
118
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
115
119
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
116
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
117
120
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, iban, bankName, accountName&lt;/i&gt;
118
121
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
119
122
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankTransactions&lt;i&gt;
123
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
120
124
  * @param {*} [options] Override http request option.
121
125
  * @throws {RequiredError}
122
126
  */
123
- listTenantBankAccounts(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTenantBankAccountResponseClass>>;
127
+ listTenantBankAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTenantBankAccountResponseClass>>;
124
128
  /**
125
129
  * Update a tenant bank account by code
126
130
  * @summary Update the tenant bank account
@@ -169,15 +173,17 @@ export declare const TenantBankAccountApiFactory: (configuration?: Configuration
169
173
  * Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
170
174
  * @summary List tenant bank accounts
171
175
  * @param {string} [authorization] Bearer Token
176
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
177
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
172
178
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
173
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
174
179
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, iban, bankName, accountName&lt;/i&gt;
175
180
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
176
181
  * @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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankTransactions&lt;i&gt;
182
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
177
183
  * @param {*} [options] Override http request option.
178
184
  * @throws {RequiredError}
179
185
  */
180
- listTenantBankAccounts(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListTenantBankAccountResponseClass>;
186
+ listTenantBankAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListTenantBankAccountResponseClass>;
181
187
  /**
182
188
  * Update a tenant bank account by code
183
189
  * @summary Update the tenant bank account
@@ -265,17 +271,23 @@ export interface TenantBankAccountApiListTenantBankAccountsRequest {
265
271
  */
266
272
  readonly authorization?: string;
267
273
  /**
268
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
274
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
275
+ * @type {number}
276
+ * @memberof TenantBankAccountApiListTenantBankAccounts
277
+ */
278
+ readonly pageSize?: number;
279
+ /**
280
+ * 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
269
281
  * @type {string}
270
282
  * @memberof TenantBankAccountApiListTenantBankAccounts
271
283
  */
272
- readonly filter?: string;
284
+ readonly pageToken?: string;
273
285
  /**
274
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
286
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
275
287
  * @type {string}
276
288
  * @memberof TenantBankAccountApiListTenantBankAccounts
277
289
  */
278
- readonly filters?: string;
290
+ readonly filter?: string;
279
291
  /**
280
292
  * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, iban, bankName, accountName&lt;/i&gt;
281
293
  * @type {string}
@@ -294,6 +306,12 @@ export interface TenantBankAccountApiListTenantBankAccountsRequest {
294
306
  * @memberof TenantBankAccountApiListTenantBankAccounts
295
307
  */
296
308
  readonly expand?: string;
309
+ /**
310
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
311
+ * @type {string}
312
+ * @memberof TenantBankAccountApiListTenantBankAccounts
313
+ */
314
+ readonly filters?: string;
297
315
  }
298
316
  /**
299
317
  * Request parameters for updateTenantBankAccount operation in TenantBankAccountApi.
@@ -245,15 +245,17 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
245
245
  * Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
246
246
  * @summary List tenant bank accounts
247
247
  * @param {string} [authorization] Bearer Token
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
248
250
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
249
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
250
251
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, iban, bankName, accountName&lt;/i&gt;
251
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
252
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankTransactions&lt;i&gt;
254
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
253
255
  * @param {*} [options] Override http request option.
254
256
  * @throws {RequiredError}
255
257
  */
256
- listTenantBankAccounts: function (authorization, filter, filters, search, order, expand, options) {
258
+ listTenantBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
257
259
  if (options === void 0) { options = {}; }
258
260
  return __awaiter(_this, void 0, void 0, function () {
259
261
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -276,12 +278,15 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
276
278
  // authentication bearer required
277
279
  // http bearer authentication required
278
280
  _a.sent();
281
+ if (pageSize !== undefined) {
282
+ localVarQueryParameter['pageSize'] = pageSize;
283
+ }
284
+ if (pageToken !== undefined) {
285
+ localVarQueryParameter['pageToken'] = pageToken;
286
+ }
279
287
  if (filter !== undefined) {
280
288
  localVarQueryParameter['filter'] = filter;
281
289
  }
282
- if (filters !== undefined) {
283
- localVarQueryParameter['filters'] = filters;
284
- }
285
290
  if (search !== undefined) {
286
291
  localVarQueryParameter['search'] = search;
287
292
  }
@@ -291,6 +296,9 @@ var TenantBankAccountApiAxiosParamCreator = function (configuration) {
291
296
  if (expand !== undefined) {
292
297
  localVarQueryParameter['expand'] = expand;
293
298
  }
299
+ if (filters !== undefined) {
300
+ localVarQueryParameter['filters'] = filters;
301
+ }
294
302
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
303
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
296
304
  }
@@ -436,20 +444,22 @@ var TenantBankAccountApiFp = function (configuration) {
436
444
  * Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
437
445
  * @summary List tenant bank accounts
438
446
  * @param {string} [authorization] Bearer Token
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
439
449
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
440
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
441
450
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, iban, bankName, accountName&lt;/i&gt;
442
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
443
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankTransactions&lt;i&gt;
453
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
444
454
  * @param {*} [options] Override http request option.
445
455
  * @throws {RequiredError}
446
456
  */
447
- listTenantBankAccounts: function (authorization, filter, filters, search, order, expand, options) {
457
+ listTenantBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
448
458
  return __awaiter(this, void 0, void 0, function () {
449
459
  var localVarAxiosArgs;
450
460
  return __generator(this, function (_a) {
451
461
  switch (_a.label) {
452
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTenantBankAccounts(authorization, filter, filters, search, order, expand, options)];
462
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
453
463
  case 1:
454
464
  localVarAxiosArgs = _a.sent();
455
465
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -527,16 +537,18 @@ var TenantBankAccountApiFactory = function (configuration, basePath, axios) {
527
537
  * Returns a list of tenant bank accounts you have previously created. The tenant bank accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
528
538
  * @summary List tenant bank accounts
529
539
  * @param {string} [authorization] Bearer Token
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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
530
542
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
531
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
532
543
  * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: id, iban, bankName, accountName&lt;/i&gt;
533
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt&lt;/i&gt;
534
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: bankTransactions&lt;i&gt;
546
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, iban, bankName, accountName&lt;/i&gt;
535
547
  * @param {*} [options] Override http request option.
536
548
  * @throws {RequiredError}
537
549
  */
538
- listTenantBankAccounts: function (authorization, filter, filters, search, order, expand, options) {
539
- return localVarFp.listTenantBankAccounts(authorization, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
550
+ listTenantBankAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
551
+ return localVarFp.listTenantBankAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
540
552
  },
541
553
  /**
542
554
  * Update a tenant bank account by code
@@ -611,7 +623,7 @@ var TenantBankAccountApi = /** @class */ (function (_super) {
611
623
  TenantBankAccountApi.prototype.listTenantBankAccounts = function (requestParameters, options) {
612
624
  var _this = this;
613
625
  if (requestParameters === void 0) { requestParameters = {}; }
614
- return (0, exports.TenantBankAccountApiFp)(this.configuration).listTenantBankAccounts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
626
+ return (0, exports.TenantBankAccountApiFp)(this.configuration).listTenantBankAccounts(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); });
615
627
  };
616
628
  /**
617
629
  * Update a tenant bank account by code
package/dist/api.d.ts CHANGED
@@ -12,11 +12,13 @@
12
12
  export * from './api/bank-accounts-api';
13
13
  export * from './api/bank-orders-api';
14
14
  export * from './api/bank-transaction-api';
15
+ export * from './api/exceeding-credits-api';
15
16
  export * from './api/health-check-api';
16
17
  export * from './api/payment-methods-api';
17
18
  export * from './api/payment-reminders-api';
18
19
  export * from './api/payment-setup-api';
19
20
  export * from './api/payments-api';
21
+ export * from './api/policy-payment-methods-api';
20
22
  export * from './api/refunds-api';
21
23
  export * from './api/tenant-bank-account-api';
22
24
  export * from './api/webhooks-api';
package/dist/api.js CHANGED
@@ -30,11 +30,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/bank-accounts-api"), exports);
31
31
  __exportStar(require("./api/bank-orders-api"), exports);
32
32
  __exportStar(require("./api/bank-transaction-api"), exports);
33
+ __exportStar(require("./api/exceeding-credits-api"), exports);
33
34
  __exportStar(require("./api/health-check-api"), exports);
34
35
  __exportStar(require("./api/payment-methods-api"), exports);
35
36
  __exportStar(require("./api/payment-reminders-api"), exports);
36
37
  __exportStar(require("./api/payment-setup-api"), exports);
37
38
  __exportStar(require("./api/payments-api"), exports);
39
+ __exportStar(require("./api/policy-payment-methods-api"), exports);
38
40
  __exportStar(require("./api/refunds-api"), exports);
39
41
  __exportStar(require("./api/tenant-bank-account-api"), exports);
40
42
  __exportStar(require("./api/webhooks-api"), exports);
package/dist/base.d.ts CHANGED
@@ -24,12 +24,11 @@ export declare const COLLECTION_FORMATS: {
24
24
  };
25
25
  export interface LoginClass {
26
26
  accessToken: string;
27
- permissions: string;
27
+ permissions: Array<string>;
28
28
  }
29
29
  export declare enum Environment {
30
30
  Production = "https://apiv2.emil.de",
31
31
  Test = "https://apiv2-test.emil.de",
32
- Staging = "https://apiv2-staging.emil.de",
33
32
  Development = "https://apiv2-dev.emil.de",
34
33
  ProductionZurich = "https://eu-central-2.apiv2.emil.de"
35
34
  }
@@ -56,9 +55,8 @@ export declare class BaseAPI {
56
55
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
57
56
  selectEnvironment(env: Environment): void;
58
57
  selectBasePath(path: string): void;
59
- getPermissions(): Array<string>;
60
58
  authorize(username: string, password: string): Promise<void>;
61
- refreshTokenInternal(): Promise<LoginClass>;
59
+ refreshTokenInternal(): Promise<string>;
62
60
  private storeTokenData;
63
61
  loadTokenData(): void;
64
62
  cleanTokenData(): void;
package/dist/base.js CHANGED
@@ -99,7 +99,6 @@ var Environment;
99
99
  (function (Environment) {
100
100
  Environment["Production"] = "https://apiv2.emil.de";
101
101
  Environment["Test"] = "https://apiv2-test.emil.de";
102
- Environment["Staging"] = "https://apiv2-staging.emil.de";
103
102
  Environment["Development"] = "https://apiv2-dev.emil.de";
104
103
  Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
105
104
  })(Environment = exports.Environment || (exports.Environment = {}));
@@ -144,18 +143,11 @@ var BaseAPI = /** @class */ (function () {
144
143
  BaseAPI.prototype.selectBasePath = function (path) {
145
144
  this.configuration.basePath = path;
146
145
  };
147
- BaseAPI.prototype.getPermissions = function () {
148
- var _a;
149
- if (!((_a = this.tokenData) === null || _a === void 0 ? void 0 : _a.permissions)) {
150
- return [];
151
- }
152
- return this.tokenData.permissions.split(',');
153
- };
154
146
  BaseAPI.prototype.authorize = function (username, password) {
155
147
  return __awaiter(this, void 0, void 0, function () {
156
- var options, response, _a, accessToken, permissions;
157
- return __generator(this, function (_b) {
158
- switch (_b.label) {
148
+ var options, response, accessToken;
149
+ return __generator(this, function (_a) {
150
+ switch (_a.label) {
159
151
  case 0:
160
152
  options = {
161
153
  method: 'POST',
@@ -169,13 +161,12 @@ var BaseAPI = /** @class */ (function () {
169
161
  };
170
162
  return [4 /*yield*/, axios_1.default.request(options)];
171
163
  case 1:
172
- response = _b.sent();
173
- _a = response.data, accessToken = _a.accessToken, permissions = _a.permissions;
164
+ response = _a.sent();
165
+ accessToken = response.data.accessToken;
174
166
  this.configuration.username = username;
175
167
  this.configuration.accessToken = "Bearer ".concat(accessToken);
176
168
  this.tokenData.username = username;
177
169
  this.tokenData.accessToken = accessToken;
178
- this.tokenData.permissions = permissions;
179
170
  this.storeTokenData(__assign({}, this.tokenData));
180
171
  return [2 /*return*/];
181
172
  }
@@ -184,22 +175,14 @@ var BaseAPI = /** @class */ (function () {
184
175
  };
185
176
  BaseAPI.prototype.refreshTokenInternal = function () {
186
177
  return __awaiter(this, void 0, void 0, function () {
187
- var username, refreshTokenAxios, options, response;
188
- var _this = this;
178
+ var username, options, accessToken;
189
179
  return __generator(this, function (_a) {
190
180
  switch (_a.label) {
191
181
  case 0:
192
182
  username = this.configuration.username;
193
183
  if (!username) {
194
- throw new Error('Failed to refresh token.');
184
+ return [2 /*return*/, ''];
195
185
  }
196
- refreshTokenAxios = axios_1.default.create();
197
- refreshTokenAxios.interceptors.response.use(function (response) {
198
- var permissions = response.data.permissions;
199
- _this.tokenData.permissions = permissions;
200
- _this.storeTokenData(_this.tokenData);
201
- return response;
202
- });
203
186
  options = {
204
187
  method: 'POST',
205
188
  url: "".concat(this.configuration.basePath, "/authservice/v1/refresh-token"),
@@ -209,10 +192,10 @@ var BaseAPI = /** @class */ (function () {
209
192
  data: { username: username },
210
193
  withCredentials: true,
211
194
  };
212
- return [4 /*yield*/, refreshTokenAxios.request(options)];
195
+ return [4 /*yield*/, axios_1.default.request(options)];
213
196
  case 1:
214
- response = _a.sent();
215
- return [2 /*return*/, response.data];
197
+ accessToken = (_a.sent()).data.accessToken;
198
+ return [2 /*return*/, accessToken];
216
199
  }
217
200
  });
218
201
  });
@@ -238,23 +221,22 @@ var BaseAPI = /** @class */ (function () {
238
221
  axios.interceptors.response.use(function (res) {
239
222
  return res;
240
223
  }, function (err) { return __awaiter(_this, void 0, void 0, function () {
241
- var originalConfig, _a, tokenString, permissions, accessToken, _error_1, _b, tokenString, permissions, accessToken, _error_2;
242
- return __generator(this, function (_c) {
243
- switch (_c.label) {
224
+ var originalConfig, tokenString, accessToken, _error_1, tokenString, accessToken, _error_2;
225
+ return __generator(this, function (_a) {
226
+ switch (_a.label) {
244
227
  case 0:
245
228
  originalConfig = err.config;
246
229
  if (!(err.response && !(err.response instanceof XMLHttpRequest))) return [3 /*break*/, 5];
247
230
  if (!((err.response.status === 401 || err.response.status === 403)
248
231
  && !originalConfig._retry)) return [3 /*break*/, 4];
249
232
  originalConfig._retry = true;
250
- _c.label = 1;
233
+ _a.label = 1;
251
234
  case 1:
252
- _c.trys.push([1, 3, , 4]);
235
+ _a.trys.push([1, 3, , 4]);
253
236
  return [4 /*yield*/, this.refreshTokenInternal()];
254
237
  case 2:
255
- _a = _c.sent(), tokenString = _a.accessToken, permissions = _a.permissions;
238
+ tokenString = _a.sent();
256
239
  accessToken = "Bearer ".concat(tokenString);
257
- this.tokenData.permissions = permissions;
258
240
  delete originalConfig.headers['Authorization'];
259
241
  originalConfig.headers['Authorization'] = accessToken;
260
242
  this.configuration.accessToken = accessToken;
@@ -262,7 +244,7 @@ var BaseAPI = /** @class */ (function () {
262
244
  this.storeTokenData(this.tokenData);
263
245
  return [2 /*return*/, axios(originalConfig)];
264
246
  case 3:
265
- _error_1 = _c.sent();
247
+ _error_1 = _a.sent();
266
248
  if (_error_1.response && _error_1.response.data) {
267
249
  return [2 /*return*/, Promise.reject(_error_1.response.data)];
268
250
  }
@@ -273,14 +255,13 @@ var BaseAPI = /** @class */ (function () {
273
255
  && originalConfig.headers.hasOwnProperty('Authorization')
274
256
  && _retry_count < 4)) return [3 /*break*/, 9];
275
257
  _retry_count++;
276
- _c.label = 6;
258
+ _a.label = 6;
277
259
  case 6:
278
- _c.trys.push([6, 8, , 9]);
260
+ _a.trys.push([6, 8, , 9]);
279
261
  return [4 /*yield*/, this.refreshTokenInternal()];
280
262
  case 7:
281
- _b = _c.sent(), tokenString = _b.accessToken, permissions = _b.permissions;
263
+ tokenString = _a.sent();
282
264
  accessToken = "Bearer ".concat(tokenString);
283
- this.tokenData.permissions = permissions;
284
265
  _retry = true;
285
266
  originalConfig.headers['Authorization'] = accessToken;
286
267
  this.configuration.accessToken = accessToken;
@@ -288,7 +269,7 @@ var BaseAPI = /** @class */ (function () {
288
269
  this.storeTokenData(this.tokenData);
289
270
  return [2 /*return*/, axios.request(__assign({}, originalConfig))];
290
271
  case 8:
291
- _error_2 = _c.sent();
272
+ _error_2 = _a.sent();
292
273
  if (_error_2.response && _error_2.response.data) {
293
274
  return [2 /*return*/, Promise.reject(_error_2.response.data)];
294
275
  }
package/dist/common.js CHANGED
@@ -140,7 +140,7 @@ var setBearerAuthToObject = function (object, configuration) {
140
140
  _b.label = 4;
141
141
  case 4:
142
142
  accessToken = _a;
143
- object["Authorization"] = configuration.getBearerToken(accessToken);
143
+ object["Authorization"] = "Bearer " + accessToken;
144
144
  _b.label = 5;
145
145
  case 5: return [2 /*return*/];
146
146
  }
@@ -170,7 +170,7 @@ var setOAuthToObject = function (object, name, scopes, configuration) {
170
170
  _b.label = 4;
171
171
  case 4:
172
172
  localVarAccessTokenValue = _a;
173
- object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
173
+ object["Authorization"] = "Bearer " + localVarAccessTokenValue;
174
174
  _b.label = 5;
175
175
  case 5: return [2 /*return*/];
176
176
  }
@@ -80,10 +80,4 @@ export declare class Configuration {
80
80
  * @return True if the given MIME is JSON, false otherwise.
81
81
  */
82
82
  isJsonMime(mime: string): boolean;
83
- /**
84
- * Returns "Bearer" token.
85
- * @param token - access token.
86
- * @return Bearer token.
87
- */
88
- getBearerToken(token?: string): string;
89
83
  }
@@ -39,14 +39,6 @@ var Configuration = /** @class */ (function () {
39
39
  var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
40
40
  return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
41
41
  };
42
- /**
43
- * Returns "Bearer" token.
44
- * @param token - access token.
45
- * @return Bearer token.
46
- */
47
- Configuration.prototype.getBearerToken = function (token) {
48
- return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
49
- };
50
42
  return Configuration;
51
43
  }());
52
44
  exports.Configuration = Configuration;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Emil Payment Service
3
+ * This service directly communicates with the various Payment Service Providers (PSPs) in order to charge or refund customers. This service will automatically connect to the PSP linked in your admin configuration; meaning if you configured Stripe, it will automatically create a payment on Stripe when you create it in Emil.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ActivatePolicyPaymentMethodRequestDto
16
+ */
17
+ export interface ActivatePolicyPaymentMethodRequestDto {
18
+ /**
19
+ * Whether to trigger the Policy Payment Method Activated workflow event.
20
+ * @type {boolean}
21
+ * @memberof ActivatePolicyPaymentMethodRequestDto
22
+ */
23
+ 'shouldTriggerWorkflow'?: boolean;
24
+ }