@emilgroup/payment-sdk-node 1.23.0 → 1.23.1-beta.100

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 (180) hide show
  1. package/.openapi-generator/FILES +34 -0
  2. package/README.md +2 -2
  3. package/api/bank-accounts-api.ts +16 -16
  4. package/api/bank-orders-api.ts +16 -16
  5. package/api/bank-transaction-api.ts +12 -12
  6. package/api/billing-addresses-api.ts +681 -0
  7. package/api/credit-allocation-api.ts +12 -12
  8. package/api/exceeding-credits-api.ts +12 -12
  9. package/api/ibanvalidator-api.ts +169 -0
  10. package/api/payment-methods-api.ts +12 -12
  11. package/api/payment-receipts-api.ts +680 -0
  12. package/api/payment-reminders-api.ts +16 -16
  13. package/api/payment-requests-api.ts +697 -0
  14. package/api/payments-api.ts +12 -12
  15. package/api/payout-methods-api.ts +794 -0
  16. package/api/refunds-api.ts +12 -12
  17. package/api/tenant-bank-account-api.ts +16 -16
  18. package/api/webhooks-api.ts +125 -14
  19. package/api.ts +10 -0
  20. package/base.ts +1 -0
  21. package/dist/api/bank-accounts-api.d.ts +16 -16
  22. package/dist/api/bank-accounts-api.js +13 -13
  23. package/dist/api/bank-orders-api.d.ts +16 -16
  24. package/dist/api/bank-orders-api.js +14 -14
  25. package/dist/api/bank-transaction-api.d.ts +12 -12
  26. package/dist/api/bank-transaction-api.js +10 -10
  27. package/dist/api/billing-addresses-api.d.ts +384 -0
  28. package/dist/api/billing-addresses-api.js +640 -0
  29. package/dist/api/credit-allocation-api.d.ts +12 -12
  30. package/dist/api/credit-allocation-api.js +10 -10
  31. package/dist/api/exceeding-credits-api.d.ts +12 -12
  32. package/dist/api/exceeding-credits-api.js +10 -10
  33. package/dist/api/ibanvalidator-api.d.ts +97 -0
  34. package/dist/api/ibanvalidator-api.js +228 -0
  35. package/dist/api/payment-methods-api.d.ts +12 -12
  36. package/dist/api/payment-methods-api.js +10 -10
  37. package/dist/api/payment-receipts-api.d.ts +383 -0
  38. package/dist/api/payment-receipts-api.js +641 -0
  39. package/dist/api/payment-reminders-api.d.ts +16 -16
  40. package/dist/api/payment-reminders-api.js +13 -13
  41. package/dist/api/payment-requests-api.d.ts +393 -0
  42. package/dist/api/payment-requests-api.js +648 -0
  43. package/dist/api/payments-api.d.ts +12 -12
  44. package/dist/api/payments-api.js +10 -10
  45. package/dist/api/payout-methods-api.d.ts +447 -0
  46. package/dist/api/payout-methods-api.js +738 -0
  47. package/dist/api/refunds-api.d.ts +12 -12
  48. package/dist/api/refunds-api.js +10 -10
  49. package/dist/api/tenant-bank-account-api.d.ts +16 -16
  50. package/dist/api/tenant-bank-account-api.js +13 -13
  51. package/dist/api/webhooks-api.d.ts +73 -9
  52. package/dist/api/webhooks-api.js +100 -11
  53. package/dist/api.d.ts +5 -0
  54. package/dist/api.js +5 -0
  55. package/dist/base.d.ts +2 -1
  56. package/dist/base.js +1 -0
  57. package/dist/models/bank-account-class-without-expand-properties.d.ts +6 -0
  58. package/dist/models/bank-account-class.d.ts +6 -0
  59. package/dist/models/bank-data-class.d.ts +36 -0
  60. package/dist/models/bank-data-class.js +15 -0
  61. package/dist/models/bank-order-class.d.ts +3 -3
  62. package/dist/models/bank-order-entity.d.ts +3 -2
  63. package/dist/models/bank-order-entity.js +2 -1
  64. package/dist/models/billing-address-class.d.ts +108 -0
  65. package/dist/models/billing-address-class.js +15 -0
  66. package/dist/models/create-bank-order-request-dto.d.ts +4 -3
  67. package/dist/models/create-bank-order-request-dto.js +2 -1
  68. package/dist/models/create-billing-address-request-dto.d.ts +66 -0
  69. package/dist/models/create-billing-address-request-dto.js +15 -0
  70. package/dist/models/create-billing-address-response-class.d.ts +25 -0
  71. package/dist/models/create-billing-address-response-class.js +15 -0
  72. package/dist/models/create-payment-receipt-request-dto.d.ts +65 -0
  73. package/dist/models/create-payment-receipt-request-dto.js +20 -0
  74. package/dist/models/create-payment-receipt-response-class.d.ts +25 -0
  75. package/dist/models/create-payment-receipt-response-class.js +15 -0
  76. package/dist/models/create-payment-request-request-dto.d.ts +109 -0
  77. package/dist/models/create-payment-request-request-dto.js +30 -0
  78. package/dist/models/create-payment-request-response-class.d.ts +25 -0
  79. package/dist/models/create-payment-request-response-class.js +15 -0
  80. package/dist/models/create-payout-method-by-bank-account-request-dto.d.ts +36 -0
  81. package/dist/models/create-payout-method-by-bank-account-request-dto.js +15 -0
  82. package/dist/models/create-payout-method-request-dto.d.ts +66 -0
  83. package/dist/models/create-payout-method-request-dto.js +15 -0
  84. package/dist/models/create-payout-method-response-class.d.ts +25 -0
  85. package/dist/models/create-payout-method-response-class.js +15 -0
  86. package/dist/models/create-tenant-bank-account-request-dto.d.ts +17 -0
  87. package/dist/models/create-tenant-bank-account-request-dto.js +11 -1
  88. package/dist/models/get-billing-address-response-class.d.ts +25 -0
  89. package/dist/models/get-billing-address-response-class.js +15 -0
  90. package/dist/models/get-payment-receipt-response-class.d.ts +25 -0
  91. package/dist/models/get-payment-receipt-response-class.js +15 -0
  92. package/dist/models/get-payment-request-response-class.d.ts +25 -0
  93. package/dist/models/get-payment-request-response-class.js +15 -0
  94. package/dist/models/get-payout-method-response-class.d.ts +25 -0
  95. package/dist/models/get-payout-method-response-class.js +15 -0
  96. package/dist/models/index.d.ts +29 -0
  97. package/dist/models/index.js +29 -0
  98. package/dist/models/list-billing-addresses-response-class.d.ts +43 -0
  99. package/dist/models/list-billing-addresses-response-class.js +15 -0
  100. package/dist/models/list-exceeding-credits-response-class.d.ts +18 -6
  101. package/dist/models/list-payment-receipts-response-class.d.ts +43 -0
  102. package/dist/models/list-payment-receipts-response-class.js +15 -0
  103. package/dist/models/list-payment-requests-response-class.d.ts +43 -0
  104. package/dist/models/list-payment-requests-response-class.js +15 -0
  105. package/dist/models/list-payout-methods-response-class.d.ts +43 -0
  106. package/dist/models/list-payout-methods-response-class.js +15 -0
  107. package/dist/models/list-refunds-response-class.d.ts +18 -6
  108. package/dist/models/payment-receipt-class.d.ts +101 -0
  109. package/dist/models/payment-receipt-class.js +20 -0
  110. package/dist/models/payment-request-class.d.ts +155 -0
  111. package/dist/models/payment-request-class.js +38 -0
  112. package/dist/models/payout-method-class.d.ts +121 -0
  113. package/dist/models/payout-method-class.js +15 -0
  114. package/dist/models/tenant-bank-account-class-without-expand-properties.d.ts +17 -0
  115. package/dist/models/tenant-bank-account-class-without-expand-properties.js +11 -1
  116. package/dist/models/tenant-bank-account-class.d.ts +17 -0
  117. package/dist/models/tenant-bank-account-class.js +11 -1
  118. package/dist/models/tenant-bank-account-entity.d.ts +17 -0
  119. package/dist/models/tenant-bank-account-entity.js +11 -1
  120. package/dist/models/update-bank-order-request-dto.d.ts +3 -3
  121. package/dist/models/update-billing-address-request-dto.d.ts +66 -0
  122. package/dist/models/update-billing-address-request-dto.js +15 -0
  123. package/dist/models/update-billing-address-response-class.d.ts +25 -0
  124. package/dist/models/update-billing-address-response-class.js +15 -0
  125. package/dist/models/update-payment-receipt-response-class.d.ts +25 -0
  126. package/dist/models/update-payment-receipt-response-class.js +15 -0
  127. package/dist/models/update-payment-request-request-dto.d.ts +39 -0
  128. package/dist/models/update-payment-request-request-dto.js +24 -0
  129. package/dist/models/update-payment-request-response-class.d.ts +25 -0
  130. package/dist/models/update-payment-request-response-class.js +15 -0
  131. package/dist/models/update-tenant-bank-account-rest-request-dto.d.ts +17 -0
  132. package/dist/models/update-tenant-bank-account-rest-request-dto.js +11 -1
  133. package/dist/models/validate-iban-request-dto.d.ts +24 -0
  134. package/dist/models/validate-iban-request-dto.js +15 -0
  135. package/dist/models/validate-iban-response-class.d.ts +31 -0
  136. package/dist/models/validate-iban-response-class.js +15 -0
  137. package/models/bank-account-class-without-expand-properties.ts +6 -0
  138. package/models/bank-account-class.ts +6 -0
  139. package/models/bank-data-class.ts +42 -0
  140. package/models/bank-order-class.ts +3 -3
  141. package/models/bank-order-entity.ts +4 -3
  142. package/models/billing-address-class.ts +114 -0
  143. package/models/create-bank-order-request-dto.ts +5 -4
  144. package/models/create-billing-address-request-dto.ts +72 -0
  145. package/models/create-billing-address-response-class.ts +31 -0
  146. package/models/create-payment-receipt-request-dto.ts +74 -0
  147. package/models/create-payment-receipt-response-class.ts +31 -0
  148. package/models/create-payment-request-request-dto.ts +118 -0
  149. package/models/create-payment-request-response-class.ts +31 -0
  150. package/models/create-payout-method-by-bank-account-request-dto.ts +42 -0
  151. package/models/create-payout-method-request-dto.ts +72 -0
  152. package/models/create-payout-method-response-class.ts +31 -0
  153. package/models/create-tenant-bank-account-request-dto.ts +18 -0
  154. package/models/get-billing-address-response-class.ts +31 -0
  155. package/models/get-payment-receipt-response-class.ts +31 -0
  156. package/models/get-payment-request-response-class.ts +31 -0
  157. package/models/get-payout-method-response-class.ts +31 -0
  158. package/models/index.ts +29 -0
  159. package/models/list-billing-addresses-response-class.ts +49 -0
  160. package/models/list-exceeding-credits-response-class.ts +18 -6
  161. package/models/list-payment-receipts-response-class.ts +49 -0
  162. package/models/list-payment-requests-response-class.ts +49 -0
  163. package/models/list-payout-methods-response-class.ts +49 -0
  164. package/models/list-refunds-response-class.ts +18 -6
  165. package/models/payment-receipt-class.ts +110 -0
  166. package/models/payment-request-class.ts +165 -0
  167. package/models/payout-method-class.ts +127 -0
  168. package/models/tenant-bank-account-class-without-expand-properties.ts +18 -0
  169. package/models/tenant-bank-account-class.ts +18 -0
  170. package/models/tenant-bank-account-entity.ts +18 -0
  171. package/models/update-bank-order-request-dto.ts +3 -3
  172. package/models/update-billing-address-request-dto.ts +72 -0
  173. package/models/update-billing-address-response-class.ts +31 -0
  174. package/models/update-payment-receipt-response-class.ts +31 -0
  175. package/models/update-payment-request-request-dto.ts +48 -0
  176. package/models/update-payment-request-response-class.ts +31 -0
  177. package/models/update-tenant-bank-account-rest-request-dto.ts +18 -0
  178. package/models/validate-iban-request-dto.ts +30 -0
  179. package/models/validate-iban-response-class.ts +37 -0
  180. package/package.json +3 -3
@@ -101,12 +101,11 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
101
101
  * @summary Handle the webhook from PSP
102
102
  * @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
103
103
  * @param {string} tenantSlug Unique slug identifier representing a tenant.
104
- * @param {string} productSlug
105
104
  * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
106
105
  * @param {*} [options] Override http request option.
107
106
  * @throws {RequiredError}
108
107
  */
109
- postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
108
+ postWebhook: function (pspType, tenantSlug, body, options) {
110
109
  if (options === void 0) { options = {}; }
111
110
  return __awaiter(_this, void 0, void 0, function () {
112
111
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -115,10 +114,54 @@ var WebhooksApiAxiosParamCreator = function (configuration) {
115
114
  (0, common_1.assertParamExists)('postWebhook', 'pspType', pspType);
116
115
  // verify required parameter 'tenantSlug' is not null or undefined
117
116
  (0, common_1.assertParamExists)('postWebhook', 'tenantSlug', tenantSlug);
118
- // verify required parameter 'productSlug' is not null or undefined
119
- (0, common_1.assertParamExists)('postWebhook', 'productSlug', productSlug);
120
117
  // verify required parameter 'body' is not null or undefined
121
118
  (0, common_1.assertParamExists)('postWebhook', 'body', body);
119
+ localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}"
120
+ .replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
121
+ .replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)));
122
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
123
+ if (configuration) {
124
+ baseOptions = configuration.baseOptions;
125
+ baseAccessToken = configuration.accessToken;
126
+ }
127
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
128
+ localVarHeaderParameter = {};
129
+ localVarQueryParameter = {};
130
+ localVarHeaderParameter['Content-Type'] = 'application/json';
131
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
132
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
134
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
135
+ return [2 /*return*/, {
136
+ url: (0, common_1.toPathString)(localVarUrlObj),
137
+ options: localVarRequestOptions,
138
+ }];
139
+ });
140
+ });
141
+ },
142
+ /**
143
+ * This will processes the webhook from external payment service provider. **Required Permissions** none
144
+ * @summary Handle the webhook from PSP
145
+ * @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
146
+ * @param {string} tenantSlug Unique slug identifier representing a tenant.
147
+ * @param {string} productSlug Optional product slug associated with the webhook.
148
+ * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ postWebhookWithProductSlug: function (pspType, tenantSlug, productSlug, body, options) {
153
+ if (options === void 0) { options = {}; }
154
+ return __awaiter(_this, void 0, void 0, function () {
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
+ return __generator(this, function (_a) {
157
+ // verify required parameter 'pspType' is not null or undefined
158
+ (0, common_1.assertParamExists)('postWebhookWithProductSlug', 'pspType', pspType);
159
+ // verify required parameter 'tenantSlug' is not null or undefined
160
+ (0, common_1.assertParamExists)('postWebhookWithProductSlug', 'tenantSlug', tenantSlug);
161
+ // verify required parameter 'productSlug' is not null or undefined
162
+ (0, common_1.assertParamExists)('postWebhookWithProductSlug', 'productSlug', productSlug);
163
+ // verify required parameter 'body' is not null or undefined
164
+ (0, common_1.assertParamExists)('postWebhookWithProductSlug', 'body', body);
122
165
  localVarPath = "/paymentservice/v1/webhooks/{pspType}/{tenantSlug}/{productSlug}"
123
166
  .replace("{".concat("pspType", "}"), encodeURIComponent(String(pspType)))
124
167
  .replace("{".concat("tenantSlug", "}"), encodeURIComponent(String(tenantSlug)))
@@ -158,17 +201,39 @@ var WebhooksApiFp = function (configuration) {
158
201
  * @summary Handle the webhook from PSP
159
202
  * @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
160
203
  * @param {string} tenantSlug Unique slug identifier representing a tenant.
161
- * @param {string} productSlug
162
204
  * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
163
205
  * @param {*} [options] Override http request option.
164
206
  * @throws {RequiredError}
165
207
  */
166
- postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
208
+ postWebhook: function (pspType, tenantSlug, body, options) {
167
209
  return __awaiter(this, void 0, void 0, function () {
168
210
  var localVarAxiosArgs;
169
211
  return __generator(this, function (_a) {
170
212
  switch (_a.label) {
171
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, productSlug, body, options)];
213
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhook(pspType, tenantSlug, body, options)];
214
+ case 1:
215
+ localVarAxiosArgs = _a.sent();
216
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
217
+ }
218
+ });
219
+ });
220
+ },
221
+ /**
222
+ * This will processes the webhook from external payment service provider. **Required Permissions** none
223
+ * @summary Handle the webhook from PSP
224
+ * @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
225
+ * @param {string} tenantSlug Unique slug identifier representing a tenant.
226
+ * @param {string} productSlug Optional product slug associated with the webhook.
227
+ * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ postWebhookWithProductSlug: function (pspType, tenantSlug, productSlug, body, options) {
232
+ return __awaiter(this, void 0, void 0, function () {
233
+ var localVarAxiosArgs;
234
+ return __generator(this, function (_a) {
235
+ switch (_a.label) {
236
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postWebhookWithProductSlug(pspType, tenantSlug, productSlug, body, options)];
172
237
  case 1:
173
238
  localVarAxiosArgs = _a.sent();
174
239
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -191,13 +256,25 @@ var WebhooksApiFactory = function (configuration, basePath, axios) {
191
256
  * @summary Handle the webhook from PSP
192
257
  * @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
193
258
  * @param {string} tenantSlug Unique slug identifier representing a tenant.
194
- * @param {string} productSlug
195
259
  * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
196
260
  * @param {*} [options] Override http request option.
197
261
  * @throws {RequiredError}
198
262
  */
199
- postWebhook: function (pspType, tenantSlug, productSlug, body, options) {
200
- return localVarFp.postWebhook(pspType, tenantSlug, productSlug, body, options).then(function (request) { return request(axios, basePath); });
263
+ postWebhook: function (pspType, tenantSlug, body, options) {
264
+ return localVarFp.postWebhook(pspType, tenantSlug, body, options).then(function (request) { return request(axios, basePath); });
265
+ },
266
+ /**
267
+ * This will processes the webhook from external payment service provider. **Required Permissions** none
268
+ * @summary Handle the webhook from PSP
269
+ * @param {string} pspType The type of the payment service provider (PSP).<br/> <br/> <i>Supported PSP: braintree, stripe, b4u, eis, adyen</i>
270
+ * @param {string} tenantSlug Unique slug identifier representing a tenant.
271
+ * @param {string} productSlug Optional product slug associated with the webhook.
272
+ * @param {object} body Accepts a webhook payload. The structure may vary depending on the payment service provider.
273
+ * @param {*} [options] Override http request option.
274
+ * @throws {RequiredError}
275
+ */
276
+ postWebhookWithProductSlug: function (pspType, tenantSlug, productSlug, body, options) {
277
+ return localVarFp.postWebhookWithProductSlug(pspType, tenantSlug, productSlug, body, options).then(function (request) { return request(axios, basePath); });
201
278
  },
202
279
  };
203
280
  };
@@ -223,7 +300,19 @@ var WebhooksApi = /** @class */ (function (_super) {
223
300
  */
224
301
  WebhooksApi.prototype.postWebhook = function (requestParameters, options) {
225
302
  var _this = this;
226
- return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); });
303
+ return (0, exports.WebhooksApiFp)(this.configuration).postWebhook(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); });
304
+ };
305
+ /**
306
+ * This will processes the webhook from external payment service provider. **Required Permissions** none
307
+ * @summary Handle the webhook from PSP
308
+ * @param {WebhooksApiPostWebhookWithProductSlugRequest} requestParameters Request parameters.
309
+ * @param {*} [options] Override http request option.
310
+ * @throws {RequiredError}
311
+ * @memberof WebhooksApi
312
+ */
313
+ WebhooksApi.prototype.postWebhookWithProductSlug = function (requestParameters, options) {
314
+ var _this = this;
315
+ return (0, exports.WebhooksApiFp)(this.configuration).postWebhookWithProductSlug(requestParameters.pspType, requestParameters.tenantSlug, requestParameters.productSlug, requestParameters.body, options).then(function (request) { return request(_this.axios, _this.basePath); });
227
316
  };
228
317
  return WebhooksApi;
229
318
  }(base_1.BaseAPI));
package/dist/api.d.ts CHANGED
@@ -12,13 +12,18 @@
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/billing-addresses-api';
15
16
  export * from './api/credit-allocation-api';
16
17
  export * from './api/exceeding-credits-api';
17
18
  export * from './api/health-check-api';
19
+ export * from './api/ibanvalidator-api';
18
20
  export * from './api/payment-methods-api';
21
+ export * from './api/payment-receipts-api';
19
22
  export * from './api/payment-reminders-api';
23
+ export * from './api/payment-requests-api';
20
24
  export * from './api/payment-setup-api';
21
25
  export * from './api/payments-api';
26
+ export * from './api/payout-methods-api';
22
27
  export * from './api/policy-payment-methods-api';
23
28
  export * from './api/refunds-api';
24
29
  export * from './api/tenant-bank-account-api';
package/dist/api.js CHANGED
@@ -30,13 +30,18 @@ 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/billing-addresses-api"), exports);
33
34
  __exportStar(require("./api/credit-allocation-api"), exports);
34
35
  __exportStar(require("./api/exceeding-credits-api"), exports);
35
36
  __exportStar(require("./api/health-check-api"), exports);
37
+ __exportStar(require("./api/ibanvalidator-api"), exports);
36
38
  __exportStar(require("./api/payment-methods-api"), exports);
39
+ __exportStar(require("./api/payment-receipts-api"), exports);
37
40
  __exportStar(require("./api/payment-reminders-api"), exports);
41
+ __exportStar(require("./api/payment-requests-api"), exports);
38
42
  __exportStar(require("./api/payment-setup-api"), exports);
39
43
  __exportStar(require("./api/payments-api"), exports);
44
+ __exportStar(require("./api/payout-methods-api"), exports);
40
45
  __exportStar(require("./api/policy-payment-methods-api"), exports);
41
46
  __exportStar(require("./api/refunds-api"), exports);
42
47
  __exportStar(require("./api/tenant-bank-account-api"), exports);
package/dist/base.d.ts CHANGED
@@ -39,7 +39,8 @@ export declare enum Environment {
39
39
  Test = "https://apiv2-test.emil.de",
40
40
  Staging = "https://apiv2-staging.emil.de",
41
41
  Development = "https://apiv2-dev.emil.de",
42
- ProductionZurich = "https://eu-central-2.apiv2.emil.de"
42
+ ProductionZurich = "https://eu-central-2.apiv2.emil.de",
43
+ StagingZurich = "https://eu-central-2.apiv2-staging.emil.de"
43
44
  }
44
45
  export declare function resetRetry(): void;
45
46
  /**
package/dist/base.js CHANGED
@@ -132,6 +132,7 @@ var Environment;
132
132
  Environment["Staging"] = "https://apiv2-staging.emil.de";
133
133
  Environment["Development"] = "https://apiv2-dev.emil.de";
134
134
  Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
135
+ Environment["StagingZurich"] = "https://eu-central-2.apiv2-staging.emil.de";
135
136
  })(Environment = exports.Environment || (exports.Environment = {}));
136
137
  var _retry_count = 0;
137
138
  var _retry = null;
@@ -45,6 +45,12 @@ export interface BankAccountClassWithoutExpandProperties {
45
45
  * @memberof BankAccountClassWithoutExpandProperties
46
46
  */
47
47
  'bic': string;
48
+ /**
49
+ * Bank name.
50
+ * @type {string}
51
+ * @memberof BankAccountClassWithoutExpandProperties
52
+ */
53
+ 'bankName': string;
48
54
  /**
49
55
  * Bank account holder.
50
56
  * @type {string}
@@ -46,6 +46,12 @@ export interface BankAccountClass {
46
46
  * @memberof BankAccountClass
47
47
  */
48
48
  'bic': string;
49
+ /**
50
+ * Bank name.
51
+ * @type {string}
52
+ * @memberof BankAccountClass
53
+ */
54
+ 'bankName': string;
49
55
  /**
50
56
  * Bank account holder.
51
57
  * @type {string}
@@ -0,0 +1,36 @@
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 BankDataClass
16
+ */
17
+ export interface BankDataClass {
18
+ /**
19
+ * BIC
20
+ * @type {string}
21
+ * @memberof BankDataClass
22
+ */
23
+ 'bic': string;
24
+ /**
25
+ * Bank name
26
+ * @type {string}
27
+ * @memberof BankDataClass
28
+ */
29
+ 'name': string;
30
+ /**
31
+ * Bank code
32
+ * @type {string}
33
+ * @memberof BankDataClass
34
+ */
35
+ 'code': string;
36
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -66,11 +66,11 @@ export interface BankOrderClass {
66
66
  */
67
67
  'tenantBankAccountCode': string;
68
68
  /**
69
- * List of invoice IDs associated with bank order.
70
- * @type {Array<number>}
69
+ * List of entity codes associated with bank order.
70
+ * @type {Array<string>}
71
71
  * @memberof BankOrderClass
72
72
  */
73
- 'invoiceIds': Array<number>;
73
+ 'entityCodes': Array<string>;
74
74
  /**
75
75
  * Day of execution of bank order.
76
76
  * @type {string}
@@ -80,10 +80,10 @@ export interface BankOrderEntity {
80
80
  'tenantBankAccountCode': string;
81
81
  /**
82
82
  *
83
- * @type {Array<number>}
83
+ * @type {Array<string>}
84
84
  * @memberof BankOrderEntity
85
85
  */
86
- 'invoiceIds': Array<number>;
86
+ 'entityCodes': Array<string>;
87
87
  /**
88
88
  *
89
89
  * @type {Array<BankTransactionEntity>}
@@ -143,6 +143,7 @@ export declare const BankOrderEntityTypeEnum: {
143
143
  readonly DirectDebit: "direct_debit";
144
144
  readonly PremiumPayment: "premium_payment";
145
145
  readonly ClaimPayment: "claim_payment";
146
+ readonly CommissionPayment: "commission_payment";
146
147
  };
147
148
  export type BankOrderEntityTypeEnum = typeof BankOrderEntityTypeEnum[keyof typeof BankOrderEntityTypeEnum];
148
149
  export declare const BankOrderEntityStatusEnum: {
@@ -17,7 +17,8 @@ exports.BankOrderEntityStatusEnum = exports.BankOrderEntityTypeEnum = void 0;
17
17
  exports.BankOrderEntityTypeEnum = {
18
18
  DirectDebit: 'direct_debit',
19
19
  PremiumPayment: 'premium_payment',
20
- ClaimPayment: 'claim_payment'
20
+ ClaimPayment: 'claim_payment',
21
+ CommissionPayment: 'commission_payment'
21
22
  };
22
23
  exports.BankOrderEntityStatusEnum = {
23
24
  Open: 'open',
@@ -0,0 +1,108 @@
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 BillingAddressClass
16
+ */
17
+ export interface BillingAddressClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof BillingAddressClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof BillingAddressClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * First name
32
+ * @type {string}
33
+ * @memberof BillingAddressClass
34
+ */
35
+ 'firstName': string;
36
+ /**
37
+ * Last name
38
+ * @type {string}
39
+ * @memberof BillingAddressClass
40
+ */
41
+ 'lastName': string;
42
+ /**
43
+ * Street name
44
+ * @type {string}
45
+ * @memberof BillingAddressClass
46
+ */
47
+ 'street': string;
48
+ /**
49
+ * House number
50
+ * @type {string}
51
+ * @memberof BillingAddressClass
52
+ */
53
+ 'houseNumber': string;
54
+ /**
55
+ * ZIP code
56
+ * @type {string}
57
+ * @memberof BillingAddressClass
58
+ */
59
+ 'zipCode': string;
60
+ /**
61
+ * City
62
+ * @type {string}
63
+ * @memberof BillingAddressClass
64
+ */
65
+ 'city': string;
66
+ /**
67
+ * Country code
68
+ * @type {string}
69
+ * @memberof BillingAddressClass
70
+ */
71
+ 'countryCode'?: string;
72
+ /**
73
+ * Unique identifier of the account that this object belongs to.
74
+ * @type {string}
75
+ * @memberof BillingAddressClass
76
+ */
77
+ 'accountCode': string;
78
+ /**
79
+ * Unique identifier of the partner that this object belongs to.
80
+ * @type {string}
81
+ * @memberof BillingAddressClass
82
+ */
83
+ 'partnerCode': string;
84
+ /**
85
+ * Time at which the object was created.
86
+ * @type {string}
87
+ * @memberof BillingAddressClass
88
+ */
89
+ 'createdAt': string;
90
+ /**
91
+ * Time at which the object was updated.
92
+ * @type {string}
93
+ * @memberof BillingAddressClass
94
+ */
95
+ 'updatedAt': string;
96
+ /**
97
+ * Identifier of the user who created the record.
98
+ * @type {string}
99
+ * @memberof BillingAddressClass
100
+ */
101
+ 'createdBy': string;
102
+ /**
103
+ * Identifier of the user who last updated the record.
104
+ * @type {string}
105
+ * @memberof BillingAddressClass
106
+ */
107
+ 'updatedBy': string;
108
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -40,11 +40,11 @@ export interface CreateBankOrderRequestDto {
40
40
  */
41
41
  'tenantBankAccountCode': string;
42
42
  /**
43
- * List of invoice IDs associated with bank order.
44
- * @type {Array<number>}
43
+ * List of entity codes associated with bank order.
44
+ * @type {Array<string>}
45
45
  * @memberof CreateBankOrderRequestDto
46
46
  */
47
- 'invoiceIds': Array<number>;
47
+ 'entityCodes': Array<string>;
48
48
  /**
49
49
  * Day of execution of bank order.
50
50
  * @type {string}
@@ -62,6 +62,7 @@ export declare const CreateBankOrderRequestDtoTypeEnum: {
62
62
  readonly DirectDebit: "direct_debit";
63
63
  readonly PremiumPayment: "premium_payment";
64
64
  readonly ClaimPayment: "claim_payment";
65
+ readonly CommissionPayment: "commission_payment";
65
66
  };
66
67
  export type CreateBankOrderRequestDtoTypeEnum = typeof CreateBankOrderRequestDtoTypeEnum[keyof typeof CreateBankOrderRequestDtoTypeEnum];
67
68
  export declare const CreateBankOrderRequestDtoStatusEnum: {
@@ -17,7 +17,8 @@ exports.CreateBankOrderRequestDtoStatusEnum = exports.CreateBankOrderRequestDtoT
17
17
  exports.CreateBankOrderRequestDtoTypeEnum = {
18
18
  DirectDebit: 'direct_debit',
19
19
  PremiumPayment: 'premium_payment',
20
- ClaimPayment: 'claim_payment'
20
+ ClaimPayment: 'claim_payment',
21
+ CommissionPayment: 'commission_payment'
21
22
  };
22
23
  exports.CreateBankOrderRequestDtoStatusEnum = {
23
24
  Open: 'open',
@@ -0,0 +1,66 @@
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 CreateBillingAddressRequestDto
16
+ */
17
+ export interface CreateBillingAddressRequestDto {
18
+ /**
19
+ * First name
20
+ * @type {string}
21
+ * @memberof CreateBillingAddressRequestDto
22
+ */
23
+ 'firstName': string;
24
+ /**
25
+ * Last name
26
+ * @type {string}
27
+ * @memberof CreateBillingAddressRequestDto
28
+ */
29
+ 'lastName': string;
30
+ /**
31
+ * Street name
32
+ * @type {string}
33
+ * @memberof CreateBillingAddressRequestDto
34
+ */
35
+ 'street': string;
36
+ /**
37
+ * House number
38
+ * @type {string}
39
+ * @memberof CreateBillingAddressRequestDto
40
+ */
41
+ 'houseNumber': string;
42
+ /**
43
+ * ZIP code
44
+ * @type {string}
45
+ * @memberof CreateBillingAddressRequestDto
46
+ */
47
+ 'zipCode': string;
48
+ /**
49
+ * City
50
+ * @type {string}
51
+ * @memberof CreateBillingAddressRequestDto
52
+ */
53
+ 'city': string;
54
+ /**
55
+ * Country code
56
+ * @type {string}
57
+ * @memberof CreateBillingAddressRequestDto
58
+ */
59
+ 'countryCode'?: string;
60
+ /**
61
+ * Unique identifier of the partner that this object belongs to.
62
+ * @type {string}
63
+ * @memberof CreateBillingAddressRequestDto
64
+ */
65
+ 'partnerCode': string;
66
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,25 @@
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
+ import { BillingAddressClass } from './billing-address-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateBillingAddressResponseClass
17
+ */
18
+ export interface CreateBillingAddressResponseClass {
19
+ /**
20
+ * The created billing address
21
+ * @type {BillingAddressClass}
22
+ * @memberof CreateBillingAddressResponseClass
23
+ */
24
+ 'billingAddress': BillingAddressClass;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil Payment Service
6
+ * 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.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });