@emilgroup/billing-v2-sdk-node 0.0.0-stage → 1.0.1-beta.1

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 (265) hide show
  1. package/.openapi-generator/FILES +93 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +83 -2
  5. package/api/bill-runs-api.ts +472 -0
  6. package/api/bills-api.ts +149 -0
  7. package/api/invoices-api.ts +1534 -0
  8. package/api/jobs-api.ts +760 -0
  9. package/api/policy-billings-api.ts +595 -0
  10. package/api.ts +39 -0
  11. package/base.ts +396 -0
  12. package/common.ts +200 -0
  13. package/configuration.ts +118 -0
  14. package/dist/api/bill-runs-api.d.ts +266 -0
  15. package/dist/api/bill-runs-api.js +470 -0
  16. package/dist/api/bills-api.d.ts +87 -0
  17. package/dist/api/bills-api.js +211 -0
  18. package/dist/api/invoices-api.d.ts +847 -0
  19. package/dist/api/invoices-api.js +1357 -0
  20. package/dist/api/jobs-api.d.ts +426 -0
  21. package/dist/api/jobs-api.js +712 -0
  22. package/dist/api/policy-billings-api.d.ts +332 -0
  23. package/dist/api/policy-billings-api.js +565 -0
  24. package/dist/api.d.ts +16 -0
  25. package/dist/api.js +34 -0
  26. package/dist/base.d.ts +97 -0
  27. package/dist/base.js +493 -0
  28. package/dist/common.d.ts +92 -0
  29. package/dist/common.js +278 -0
  30. package/dist/configuration.d.ts +96 -0
  31. package/dist/configuration.js +52 -0
  32. package/dist/index.d.ts +15 -0
  33. package/dist/index.js +36 -0
  34. package/dist/models/any.d.ts +25 -0
  35. package/dist/models/any.js +15 -0
  36. package/dist/models/bill-item.d.ts +132 -0
  37. package/dist/models/bill-item.js +15 -0
  38. package/dist/models/bill-run.d.ts +145 -0
  39. package/dist/models/bill-run.js +15 -0
  40. package/dist/models/bill.d.ts +194 -0
  41. package/dist/models/bill.js +15 -0
  42. package/dist/models/cancel-job-response.d.ts +25 -0
  43. package/dist/models/cancel-job-response.js +15 -0
  44. package/dist/models/create-correction-invoices-request.d.ts +72 -0
  45. package/dist/models/create-correction-invoices-request.js +15 -0
  46. package/dist/models/create-correction-invoices-response.d.ts +31 -0
  47. package/dist/models/create-correction-invoices-response.js +15 -0
  48. package/dist/models/create-detail-export-job-request.d.ts +56 -0
  49. package/dist/models/create-detail-export-job-request.js +15 -0
  50. package/dist/models/create-detail-export-job-response.d.ts +25 -0
  51. package/dist/models/create-detail-export-job-response.js +15 -0
  52. package/dist/models/create-estimated-invoice-for-interval-request.d.ts +42 -0
  53. package/dist/models/create-estimated-invoice-for-interval-request.js +15 -0
  54. package/dist/models/create-estimated-invoice-for-interval-response.d.ts +25 -0
  55. package/dist/models/create-estimated-invoice-for-interval-response.js +15 -0
  56. package/dist/models/create-estimated-invoice-request.d.ts +36 -0
  57. package/dist/models/create-estimated-invoice-request.js +15 -0
  58. package/dist/models/create-estimated-invoice-response.d.ts +25 -0
  59. package/dist/models/create-estimated-invoice-response.js +15 -0
  60. package/dist/models/create-export-job-request.d.ts +68 -0
  61. package/dist/models/create-export-job-request.js +15 -0
  62. package/dist/models/create-export-job-response.d.ts +25 -0
  63. package/dist/models/create-export-job-response.js +15 -0
  64. package/dist/models/create-initial-invoice-request.d.ts +72 -0
  65. package/dist/models/create-initial-invoice-request.js +15 -0
  66. package/dist/models/create-initial-invoice-response.d.ts +25 -0
  67. package/dist/models/create-initial-invoice-response.js +15 -0
  68. package/dist/models/create-invoice-request.d.ts +67 -0
  69. package/dist/models/create-invoice-request.js +15 -0
  70. package/dist/models/create-invoice-response.d.ts +25 -0
  71. package/dist/models/create-invoice-response.js +15 -0
  72. package/dist/models/create-invoice-status-body.d.ts +24 -0
  73. package/dist/models/create-invoice-status-body.js +15 -0
  74. package/dist/models/create-invoice-status-response.d.ts +25 -0
  75. package/dist/models/create-invoice-status-response.js +15 -0
  76. package/dist/models/create-item-request.d.ts +36 -0
  77. package/dist/models/create-item-request.js +15 -0
  78. package/dist/models/create-policy-billing-request.d.ts +42 -0
  79. package/dist/models/create-policy-billing-request.js +15 -0
  80. package/dist/models/create-policy-billing-response.d.ts +25 -0
  81. package/dist/models/create-policy-billing-response.js +15 -0
  82. package/dist/models/create-recurring-invoice-request.d.ts +72 -0
  83. package/dist/models/create-recurring-invoice-request.js +15 -0
  84. package/dist/models/create-recurring-invoice-response.d.ts +31 -0
  85. package/dist/models/create-recurring-invoice-response.js +15 -0
  86. package/dist/models/create-termination-invoice-request.d.ts +60 -0
  87. package/dist/models/create-termination-invoice-request.js +15 -0
  88. package/dist/models/create-termination-invoice-response.d.ts +25 -0
  89. package/dist/models/create-termination-invoice-response.js +15 -0
  90. package/dist/models/create-withdraw-invoice-request.d.ts +48 -0
  91. package/dist/models/create-withdraw-invoice-request.js +15 -0
  92. package/dist/models/create-withdraw-invoice-response.d.ts +25 -0
  93. package/dist/models/create-withdraw-invoice-response.js +15 -0
  94. package/dist/models/estimate-history-entry.d.ts +36 -0
  95. package/dist/models/estimate-history-entry.js +15 -0
  96. package/dist/models/export-column.d.ts +36 -0
  97. package/dist/models/export-column.js +15 -0
  98. package/dist/models/filter-field.d.ts +110 -0
  99. package/dist/models/filter-field.js +15 -0
  100. package/dist/models/filter-value.d.ts +37 -0
  101. package/dist/models/filter-value.js +15 -0
  102. package/dist/models/get-bill-response.d.ts +25 -0
  103. package/dist/models/get-bill-response.js +15 -0
  104. package/dist/models/get-bill-run-filter-catalog-response.d.ts +31 -0
  105. package/dist/models/get-bill-run-filter-catalog-response.js +15 -0
  106. package/dist/models/get-bill-run-response.d.ts +25 -0
  107. package/dist/models/get-bill-run-response.js +15 -0
  108. package/dist/models/get-invoice-filter-catalog-response.d.ts +31 -0
  109. package/dist/models/get-invoice-filter-catalog-response.js +15 -0
  110. package/dist/models/get-invoice-response.d.ts +25 -0
  111. package/dist/models/get-invoice-response.js +15 -0
  112. package/dist/models/get-job-download-response.d.ts +25 -0
  113. package/dist/models/get-job-download-response.js +15 -0
  114. package/dist/models/get-job-filter-catalog-response.d.ts +31 -0
  115. package/dist/models/get-job-filter-catalog-response.js +15 -0
  116. package/dist/models/get-job-response.d.ts +25 -0
  117. package/dist/models/get-job-response.js +15 -0
  118. package/dist/models/get-policies-billing-date-filter-catalog-response.d.ts +31 -0
  119. package/dist/models/get-policies-billing-date-filter-catalog-response.js +15 -0
  120. package/dist/models/get-policies-billing-filter-catalog-response.d.ts +31 -0
  121. package/dist/models/get-policies-billing-filter-catalog-response.js +15 -0
  122. package/dist/models/get-policy-billing-response.d.ts +25 -0
  123. package/dist/models/get-policy-billing-response.js +15 -0
  124. package/dist/models/highlight.d.ts +30 -0
  125. package/dist/models/highlight.js +15 -0
  126. package/dist/models/index.d.ts +75 -0
  127. package/dist/models/index.js +91 -0
  128. package/dist/models/invoice-item.d.ts +204 -0
  129. package/dist/models/invoice-item.js +15 -0
  130. package/dist/models/invoice-payment.d.ts +108 -0
  131. package/dist/models/invoice-payment.js +15 -0
  132. package/dist/models/invoice-payments.d.ts +25 -0
  133. package/dist/models/invoice-payments.js +15 -0
  134. package/dist/models/invoice-status.d.ts +54 -0
  135. package/dist/models/invoice-status.js +15 -0
  136. package/dist/models/invoice.d.ts +275 -0
  137. package/dist/models/invoice.js +15 -0
  138. package/dist/models/job-download.d.ts +36 -0
  139. package/dist/models/job-download.js +15 -0
  140. package/dist/models/job-error.d.ts +30 -0
  141. package/dist/models/job-error.js +15 -0
  142. package/dist/models/job-progress.d.ts +36 -0
  143. package/dist/models/job-progress.js +15 -0
  144. package/dist/models/job.d.ts +134 -0
  145. package/dist/models/job.js +15 -0
  146. package/dist/models/list-bill-runs-response.d.ts +37 -0
  147. package/dist/models/list-bill-runs-response.js +15 -0
  148. package/dist/models/list-invoices-response.d.ts +37 -0
  149. package/dist/models/list-invoices-response.js +15 -0
  150. package/dist/models/list-jobs-response.d.ts +37 -0
  151. package/dist/models/list-jobs-response.js +15 -0
  152. package/dist/models/list-policies-billing-dates-response.d.ts +37 -0
  153. package/dist/models/list-policies-billing-dates-response.js +15 -0
  154. package/dist/models/list-policies-billings-response.d.ts +37 -0
  155. package/dist/models/list-policies-billings-response.js +15 -0
  156. package/dist/models/list-request.d.ts +60 -0
  157. package/dist/models/list-request.js +15 -0
  158. package/dist/models/localized-text.d.ts +30 -0
  159. package/dist/models/localized-text.js +15 -0
  160. package/dist/models/match.d.ts +69 -0
  161. package/dist/models/match.js +15 -0
  162. package/dist/models/payment-term.d.ts +42 -0
  163. package/dist/models/payment-term.js +15 -0
  164. package/dist/models/policy-billing.d.ts +139 -0
  165. package/dist/models/policy-billing.js +15 -0
  166. package/dist/models/request-bill-run-request.d.ts +30 -0
  167. package/dist/models/request-bill-run-request.js +15 -0
  168. package/dist/models/request-bill-run-response.d.ts +25 -0
  169. package/dist/models/request-bill-run-response.js +15 -0
  170. package/dist/models/resolved-billing-config.d.ts +130 -0
  171. package/dist/models/resolved-billing-config.js +15 -0
  172. package/dist/models/revert-invoice-request.d.ts +24 -0
  173. package/dist/models/revert-invoice-request.js +15 -0
  174. package/dist/models/revert-invoice-response.d.ts +25 -0
  175. package/dist/models/revert-invoice-response.js +15 -0
  176. package/dist/models/slice.d.ts +30 -0
  177. package/dist/models/slice.js +15 -0
  178. package/dist/models/status.d.ts +37 -0
  179. package/dist/models/status.js +15 -0
  180. package/dist/models/tax.d.ts +30 -0
  181. package/dist/models/tax.js +15 -0
  182. package/dist/models/update-policy-billing-body.d.ts +24 -0
  183. package/dist/models/update-policy-billing-body.js +15 -0
  184. package/dist/models/update-policy-billing-response.d.ts +25 -0
  185. package/dist/models/update-policy-billing-response.js +15 -0
  186. package/git_push.sh +57 -0
  187. package/index.ts +19 -0
  188. package/models/any.ts +32 -0
  189. package/models/bill-item.ts +138 -0
  190. package/models/bill-run.ts +151 -0
  191. package/models/bill.ts +200 -0
  192. package/models/cancel-job-response.ts +31 -0
  193. package/models/create-correction-invoices-request.ts +78 -0
  194. package/models/create-correction-invoices-response.ts +37 -0
  195. package/models/create-detail-export-job-request.ts +60 -0
  196. package/models/create-detail-export-job-response.ts +31 -0
  197. package/models/create-estimated-invoice-for-interval-request.ts +48 -0
  198. package/models/create-estimated-invoice-for-interval-response.ts +31 -0
  199. package/models/create-estimated-invoice-request.ts +42 -0
  200. package/models/create-estimated-invoice-response.ts +31 -0
  201. package/models/create-export-job-request.ts +74 -0
  202. package/models/create-export-job-response.ts +31 -0
  203. package/models/create-initial-invoice-request.ts +78 -0
  204. package/models/create-initial-invoice-response.ts +31 -0
  205. package/models/create-invoice-request.ts +73 -0
  206. package/models/create-invoice-response.ts +31 -0
  207. package/models/create-invoice-status-body.ts +30 -0
  208. package/models/create-invoice-status-response.ts +31 -0
  209. package/models/create-item-request.ts +42 -0
  210. package/models/create-policy-billing-request.ts +48 -0
  211. package/models/create-policy-billing-response.ts +31 -0
  212. package/models/create-recurring-invoice-request.ts +78 -0
  213. package/models/create-recurring-invoice-response.ts +37 -0
  214. package/models/create-termination-invoice-request.ts +66 -0
  215. package/models/create-termination-invoice-response.ts +31 -0
  216. package/models/create-withdraw-invoice-request.ts +54 -0
  217. package/models/create-withdraw-invoice-response.ts +31 -0
  218. package/models/estimate-history-entry.ts +42 -0
  219. package/models/export-column.ts +42 -0
  220. package/models/filter-field.ts +116 -0
  221. package/models/filter-value.ts +43 -0
  222. package/models/get-bill-response.ts +31 -0
  223. package/models/get-bill-run-filter-catalog-response.ts +37 -0
  224. package/models/get-bill-run-response.ts +31 -0
  225. package/models/get-invoice-filter-catalog-response.ts +37 -0
  226. package/models/get-invoice-response.ts +31 -0
  227. package/models/get-job-download-response.ts +31 -0
  228. package/models/get-job-filter-catalog-response.ts +37 -0
  229. package/models/get-job-response.ts +31 -0
  230. package/models/get-policies-billing-date-filter-catalog-response.ts +37 -0
  231. package/models/get-policies-billing-filter-catalog-response.ts +37 -0
  232. package/models/get-policy-billing-response.ts +31 -0
  233. package/models/highlight.ts +36 -0
  234. package/models/index.ts +75 -0
  235. package/models/invoice-item.ts +210 -0
  236. package/models/invoice-payment.ts +114 -0
  237. package/models/invoice-payments.ts +31 -0
  238. package/models/invoice-status.ts +60 -0
  239. package/models/invoice.ts +281 -0
  240. package/models/job-download.ts +42 -0
  241. package/models/job-error.ts +36 -0
  242. package/models/job-progress.ts +42 -0
  243. package/models/job.ts +140 -0
  244. package/models/list-bill-runs-response.ts +43 -0
  245. package/models/list-invoices-response.ts +43 -0
  246. package/models/list-jobs-response.ts +43 -0
  247. package/models/list-policies-billing-dates-response.ts +43 -0
  248. package/models/list-policies-billings-response.ts +43 -0
  249. package/models/list-request.ts +66 -0
  250. package/models/localized-text.ts +36 -0
  251. package/models/match.ts +75 -0
  252. package/models/payment-term.ts +48 -0
  253. package/models/policy-billing.ts +145 -0
  254. package/models/request-bill-run-request.ts +36 -0
  255. package/models/request-bill-run-response.ts +31 -0
  256. package/models/resolved-billing-config.ts +134 -0
  257. package/models/revert-invoice-request.ts +30 -0
  258. package/models/revert-invoice-response.ts +31 -0
  259. package/models/slice.ts +36 -0
  260. package/models/status.ts +43 -0
  261. package/models/tax.ts +36 -0
  262. package/models/update-policy-billing-body.ts +30 -0
  263. package/models/update-policy-billing-response.ts +31 -0
  264. package/package.json +27 -4
  265. package/tsconfig.json +23 -0
@@ -0,0 +1,30 @@
1
+ /**
2
+ * EMIL Billing Service
3
+ * The billing service: bills, bill runs, invoices and policy billings.
4
+ *
5
+ * The version of the OpenAPI document: 2.0
6
+ *
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
+ * A highlighted range of a match\'s snippet, in characters, `end` exclusive.
14
+ * @export
15
+ * @interface Highlight
16
+ */
17
+ export interface Highlight {
18
+ /**
19
+ * The index after the last highlighted character.
20
+ * @type {number}
21
+ * @memberof Highlight
22
+ */
23
+ 'end'?: number;
24
+ /**
25
+ * The index of the first highlighted character.
26
+ * @type {number}
27
+ * @memberof Highlight
28
+ */
29
+ 'start'?: number;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Billing Service
6
+ * The billing service: bills, bill runs, invoices and policy billings.
7
+ *
8
+ * The version of the OpenAPI document: 2.0
9
+ *
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,75 @@
1
+ export * from './any';
2
+ export * from './bill';
3
+ export * from './bill-item';
4
+ export * from './bill-run';
5
+ export * from './cancel-job-response';
6
+ export * from './create-correction-invoices-request';
7
+ export * from './create-correction-invoices-response';
8
+ export * from './create-detail-export-job-request';
9
+ export * from './create-detail-export-job-response';
10
+ export * from './create-estimated-invoice-for-interval-request';
11
+ export * from './create-estimated-invoice-for-interval-response';
12
+ export * from './create-estimated-invoice-request';
13
+ export * from './create-estimated-invoice-response';
14
+ export * from './create-export-job-request';
15
+ export * from './create-export-job-response';
16
+ export * from './create-initial-invoice-request';
17
+ export * from './create-initial-invoice-response';
18
+ export * from './create-invoice-request';
19
+ export * from './create-invoice-response';
20
+ export * from './create-invoice-status-body';
21
+ export * from './create-invoice-status-response';
22
+ export * from './create-item-request';
23
+ export * from './create-policy-billing-request';
24
+ export * from './create-policy-billing-response';
25
+ export * from './create-recurring-invoice-request';
26
+ export * from './create-recurring-invoice-response';
27
+ export * from './create-termination-invoice-request';
28
+ export * from './create-termination-invoice-response';
29
+ export * from './create-withdraw-invoice-request';
30
+ export * from './create-withdraw-invoice-response';
31
+ export * from './estimate-history-entry';
32
+ export * from './export-column';
33
+ export * from './filter-field';
34
+ export * from './filter-value';
35
+ export * from './get-bill-response';
36
+ export * from './get-bill-run-filter-catalog-response';
37
+ export * from './get-bill-run-response';
38
+ export * from './get-invoice-filter-catalog-response';
39
+ export * from './get-invoice-response';
40
+ export * from './get-job-download-response';
41
+ export * from './get-job-filter-catalog-response';
42
+ export * from './get-job-response';
43
+ export * from './get-policies-billing-date-filter-catalog-response';
44
+ export * from './get-policies-billing-filter-catalog-response';
45
+ export * from './get-policy-billing-response';
46
+ export * from './highlight';
47
+ export * from './invoice';
48
+ export * from './invoice-item';
49
+ export * from './invoice-payment';
50
+ export * from './invoice-payments';
51
+ export * from './invoice-status';
52
+ export * from './job';
53
+ export * from './job-download';
54
+ export * from './job-error';
55
+ export * from './job-progress';
56
+ export * from './list-bill-runs-response';
57
+ export * from './list-invoices-response';
58
+ export * from './list-jobs-response';
59
+ export * from './list-policies-billing-dates-response';
60
+ export * from './list-policies-billings-response';
61
+ export * from './list-request';
62
+ export * from './localized-text';
63
+ export * from './match';
64
+ export * from './payment-term';
65
+ export * from './policy-billing';
66
+ export * from './request-bill-run-request';
67
+ export * from './request-bill-run-response';
68
+ export * from './resolved-billing-config';
69
+ export * from './revert-invoice-request';
70
+ export * from './revert-invoice-response';
71
+ export * from './slice';
72
+ export * from './status';
73
+ export * from './tax';
74
+ export * from './update-policy-billing-body';
75
+ export * from './update-policy-billing-response';
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./any"), exports);
18
+ __exportStar(require("./bill"), exports);
19
+ __exportStar(require("./bill-item"), exports);
20
+ __exportStar(require("./bill-run"), exports);
21
+ __exportStar(require("./cancel-job-response"), exports);
22
+ __exportStar(require("./create-correction-invoices-request"), exports);
23
+ __exportStar(require("./create-correction-invoices-response"), exports);
24
+ __exportStar(require("./create-detail-export-job-request"), exports);
25
+ __exportStar(require("./create-detail-export-job-response"), exports);
26
+ __exportStar(require("./create-estimated-invoice-for-interval-request"), exports);
27
+ __exportStar(require("./create-estimated-invoice-for-interval-response"), exports);
28
+ __exportStar(require("./create-estimated-invoice-request"), exports);
29
+ __exportStar(require("./create-estimated-invoice-response"), exports);
30
+ __exportStar(require("./create-export-job-request"), exports);
31
+ __exportStar(require("./create-export-job-response"), exports);
32
+ __exportStar(require("./create-initial-invoice-request"), exports);
33
+ __exportStar(require("./create-initial-invoice-response"), exports);
34
+ __exportStar(require("./create-invoice-request"), exports);
35
+ __exportStar(require("./create-invoice-response"), exports);
36
+ __exportStar(require("./create-invoice-status-body"), exports);
37
+ __exportStar(require("./create-invoice-status-response"), exports);
38
+ __exportStar(require("./create-item-request"), exports);
39
+ __exportStar(require("./create-policy-billing-request"), exports);
40
+ __exportStar(require("./create-policy-billing-response"), exports);
41
+ __exportStar(require("./create-recurring-invoice-request"), exports);
42
+ __exportStar(require("./create-recurring-invoice-response"), exports);
43
+ __exportStar(require("./create-termination-invoice-request"), exports);
44
+ __exportStar(require("./create-termination-invoice-response"), exports);
45
+ __exportStar(require("./create-withdraw-invoice-request"), exports);
46
+ __exportStar(require("./create-withdraw-invoice-response"), exports);
47
+ __exportStar(require("./estimate-history-entry"), exports);
48
+ __exportStar(require("./export-column"), exports);
49
+ __exportStar(require("./filter-field"), exports);
50
+ __exportStar(require("./filter-value"), exports);
51
+ __exportStar(require("./get-bill-response"), exports);
52
+ __exportStar(require("./get-bill-run-filter-catalog-response"), exports);
53
+ __exportStar(require("./get-bill-run-response"), exports);
54
+ __exportStar(require("./get-invoice-filter-catalog-response"), exports);
55
+ __exportStar(require("./get-invoice-response"), exports);
56
+ __exportStar(require("./get-job-download-response"), exports);
57
+ __exportStar(require("./get-job-filter-catalog-response"), exports);
58
+ __exportStar(require("./get-job-response"), exports);
59
+ __exportStar(require("./get-policies-billing-date-filter-catalog-response"), exports);
60
+ __exportStar(require("./get-policies-billing-filter-catalog-response"), exports);
61
+ __exportStar(require("./get-policy-billing-response"), exports);
62
+ __exportStar(require("./highlight"), exports);
63
+ __exportStar(require("./invoice"), exports);
64
+ __exportStar(require("./invoice-item"), exports);
65
+ __exportStar(require("./invoice-payment"), exports);
66
+ __exportStar(require("./invoice-payments"), exports);
67
+ __exportStar(require("./invoice-status"), exports);
68
+ __exportStar(require("./job"), exports);
69
+ __exportStar(require("./job-download"), exports);
70
+ __exportStar(require("./job-error"), exports);
71
+ __exportStar(require("./job-progress"), exports);
72
+ __exportStar(require("./list-bill-runs-response"), exports);
73
+ __exportStar(require("./list-invoices-response"), exports);
74
+ __exportStar(require("./list-jobs-response"), exports);
75
+ __exportStar(require("./list-policies-billing-dates-response"), exports);
76
+ __exportStar(require("./list-policies-billings-response"), exports);
77
+ __exportStar(require("./list-request"), exports);
78
+ __exportStar(require("./localized-text"), exports);
79
+ __exportStar(require("./match"), exports);
80
+ __exportStar(require("./payment-term"), exports);
81
+ __exportStar(require("./policy-billing"), exports);
82
+ __exportStar(require("./request-bill-run-request"), exports);
83
+ __exportStar(require("./request-bill-run-response"), exports);
84
+ __exportStar(require("./resolved-billing-config"), exports);
85
+ __exportStar(require("./revert-invoice-request"), exports);
86
+ __exportStar(require("./revert-invoice-response"), exports);
87
+ __exportStar(require("./slice"), exports);
88
+ __exportStar(require("./status"), exports);
89
+ __exportStar(require("./tax"), exports);
90
+ __exportStar(require("./update-policy-billing-body"), exports);
91
+ __exportStar(require("./update-policy-billing-response"), exports);
@@ -0,0 +1,204 @@
1
+ /**
2
+ * EMIL Billing Service
3
+ * The billing service: bills, bill runs, invoices and policy billings.
4
+ *
5
+ * The version of the OpenAPI document: 2.0
6
+ *
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
+ * One line of an invoice: a premium item over one window of the billing period. Money is in minor units as integers (`859` is 8.59 in a currency with two decimals). `quantity`, `pricePerUnit`, `taxRate`, `quantityPerDays` and `pricePerDay` are decimal numbers for display. They are the exact values written as decimals, and no calculation should be done with them: use the amounts.
14
+ * @export
15
+ * @interface InvoiceItem
16
+ */
17
+ export interface InvoiceItem {
18
+ /**
19
+ * For a `GROUP_ADJUSTMENT` line: the key of the adjustment, such as `negotiated_rebate`. Empty otherwise.
20
+ * @type {string}
21
+ * @memberof InvoiceItem
22
+ */
23
+ 'adjustmentKey'?: string;
24
+ /**
25
+ * The ERN (EIS Resource Name) of the bill the line was priced from. Empty on a reversal, a withdrawal and a manual line.
26
+ * @type {string}
27
+ * @memberof InvoiceItem
28
+ */
29
+ 'billErn'?: string;
30
+ /**
31
+ * The first day of the window the line covers, at midnight UTC. The window includes this day.
32
+ * @type {string}
33
+ * @memberof InvoiceItem
34
+ */
35
+ 'billingIntervalFrom'?: string;
36
+ /**
37
+ * The end of the window the line covers, at midnight UTC. The window does not include this day.
38
+ * @type {string}
39
+ * @memberof InvoiceItem
40
+ */
41
+ 'billingIntervalTo'?: string;
42
+ /**
43
+ * Not filled: always empty.
44
+ * @type {string}
45
+ * @memberof InvoiceItem
46
+ */
47
+ 'condition'?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof InvoiceItem
52
+ */
53
+ 'createdAt'?: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof InvoiceItem
58
+ */
59
+ 'createdBy'?: string;
60
+ /**
61
+ * What a negative line owes back, as a gross amount in minor units.
62
+ * @type {number}
63
+ * @memberof InvoiceItem
64
+ */
65
+ 'creditAmount'?: number;
66
+ /**
67
+ * The gross amount of the line, in minor units. On a correction it is the signed difference between `newAmount` and `previousAmount`.
68
+ * @type {number}
69
+ * @memberof InvoiceItem
70
+ */
71
+ 'grossAmount'?: number;
72
+ /**
73
+ * The group of the premium item.
74
+ * @type {string}
75
+ * @memberof InvoiceItem
76
+ */
77
+ 'group'?: string;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof InvoiceItem
82
+ */
83
+ 'id'?: string;
84
+ /**
85
+ * The type of the line: `NET` or `TOTAL` on a premium line, `SURCHARGE` or `DISCOUNT` on a group adjustment line, `OTHER` on a line of a manual invoice.
86
+ * @type {string}
87
+ * @memberof InvoiceItem
88
+ */
89
+ 'itemType'?: string;
90
+ /**
91
+ * The name of the premium item.
92
+ * @type {string}
93
+ * @memberof InvoiceItem
94
+ */
95
+ 'name'?: string;
96
+ /**
97
+ * The net amount of the line, in minor units.
98
+ * @type {number}
99
+ * @memberof InvoiceItem
100
+ */
101
+ 'netAmount'?: number;
102
+ /**
103
+ * On a correction: the gross amount that the re-priced bill charges, in minor units. On an initial or recurring invoice it equals `grossAmount`. It is 0 on a reversal or withdrawal.
104
+ * @type {number}
105
+ * @memberof InvoiceItem
106
+ */
107
+ 'newAmount'?: number;
108
+ /**
109
+ * The code of the policy the line bills: on a collective invoice, the member policy.
110
+ * @type {string}
111
+ * @memberof InvoiceItem
112
+ */
113
+ 'policyCode'?: string;
114
+ /**
115
+ * The key of the premium item the line comes from.
116
+ * @type {string}
117
+ * @memberof InvoiceItem
118
+ */
119
+ 'premiumFormulaCode'?: string;
120
+ /**
121
+ * On a correction, `final` or `withdraw` invoice: the gross amount the earlier bill charged for this item in this window, in minor units. On an initial or recurring invoice it is 0.
122
+ * @type {number}
123
+ * @memberof InvoiceItem
124
+ */
125
+ 'previousAmount'?: number;
126
+ /**
127
+ * On a correction, `final` or `withdraw` invoice: the ERN of the bill that the line is compared against.
128
+ * @type {string}
129
+ * @memberof InvoiceItem
130
+ */
131
+ 'previousBillErn'?: string;
132
+ /**
133
+ * The new amount divided by the covered days, in the currency\'s main unit with at most 5 decimals, for display. 0 on a manual line.
134
+ * @type {number}
135
+ * @memberof InvoiceItem
136
+ */
137
+ 'pricePerDay'?: number;
138
+ /**
139
+ * The gross premium per period that the line is priced from, such as `8.59`. The quantity times this price is the line\'s gross amount before rounding (the new amount on a correction).
140
+ * @type {number}
141
+ * @memberof InvoiceItem
142
+ */
143
+ 'pricePerUnit'?: number;
144
+ /**
145
+ * How many units the line bills: the covered fraction of the period for a monthly or yearly premium, the days for a daily one, `1` for a one-time one, as sent on a manual line.
146
+ * @type {number}
147
+ * @memberof InvoiceItem
148
+ */
149
+ 'quantity'?: number;
150
+ /**
151
+ * The covered days, for display.
152
+ * @type {number}
153
+ * @memberof InvoiceItem
154
+ */
155
+ 'quantityPerDays'?: number;
156
+ /**
157
+ * What the line bills: `MEMBER_PREMIUM` (the premium of a policy, the member\'s on a collective invoice) or `GROUP_ADJUSTMENT` (one adjustment of a group policy at one tax code, on its collective invoice, with `policyCode` set to the group policy).
158
+ * @type {string}
159
+ * @memberof InvoiceItem
160
+ */
161
+ 'source'?: string;
162
+ /**
163
+ * The tax amount of the line, in minor units. The net amount plus the tax amount is the gross amount.
164
+ * @type {number}
165
+ * @memberof InvoiceItem
166
+ */
167
+ 'taxAmount'?: number;
168
+ /**
169
+ * The tax code of the premium. A line issued before the tax was stated carries the code of the billing configuration, and so does a manual line.
170
+ * @type {string}
171
+ * @memberof InvoiceItem
172
+ */
173
+ 'taxCode'?: string;
174
+ /**
175
+ * The tax rate of the premium as a decimal (`0.19` is 19 %). A line issued before the tax was stated has rate 0. A manual line has rate 0: it is not taxed.
176
+ * @type {number}
177
+ * @memberof InvoiceItem
178
+ */
179
+ 'taxRate'?: number;
180
+ /**
181
+ * The unit the line counts: `day`, `month`, `quarter`, `halfYear`, `year` or `oneTimePayment`. A manual line is `oneTimePayment`.
182
+ * @type {string}
183
+ * @memberof InvoiceItem
184
+ */
185
+ 'unit'?: string;
186
+ /**
187
+ *
188
+ * @type {string}
189
+ * @memberof InvoiceItem
190
+ */
191
+ 'updatedAt'?: string;
192
+ /**
193
+ *
194
+ * @type {string}
195
+ * @memberof InvoiceItem
196
+ */
197
+ 'updatedBy'?: string;
198
+ /**
199
+ * The visibility of the line. Always `VISIBLE`.
200
+ * @type {string}
201
+ * @memberof InvoiceItem
202
+ */
203
+ 'visibility'?: string;
204
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Billing Service
6
+ * The billing service: bills, bill runs, invoices and policy billings.
7
+ *
8
+ * The version of the OpenAPI document: 2.0
9
+ *
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,108 @@
1
+ /**
2
+ * EMIL Billing Service
3
+ * The billing service: bills, bill runs, invoices and policy billings.
4
+ *
5
+ * The version of the OpenAPI document: 2.0
6
+ *
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
+ * A payment recorded against an invoice. No payment is recorded against an invoice yet: `Invoice.payments` is always empty and the paid amount of an invoice is always 0.
14
+ * @export
15
+ * @interface InvoicePayment
16
+ */
17
+ export interface InvoicePayment {
18
+ /**
19
+ * A comment on the payment.
20
+ * @type {string}
21
+ * @memberof InvoicePayment
22
+ */
23
+ 'comment'?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof InvoicePayment
28
+ */
29
+ 'createdAt'?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof InvoicePayment
34
+ */
35
+ 'createdBy'?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof InvoicePayment
40
+ */
41
+ 'id'?: string;
42
+ /**
43
+ * The gross amount of the invoice, in minor units.
44
+ * @type {number}
45
+ * @memberof InvoicePayment
46
+ */
47
+ 'invoiceGrossAmount'?: number;
48
+ /**
49
+ * The amount of the invoice that is paid after this payment, in minor units.
50
+ * @type {number}
51
+ * @memberof InvoicePayment
52
+ */
53
+ 'newInvoicePaidAmount'?: number;
54
+ /**
55
+ * The status of the invoice after this payment.
56
+ * @type {string}
57
+ * @memberof InvoicePayment
58
+ */
59
+ 'newInvoiceStatus'?: string;
60
+ /**
61
+ * The amount of the invoice that was paid before this payment, in minor units.
62
+ * @type {number}
63
+ * @memberof InvoicePayment
64
+ */
65
+ 'oldInvoicePaidAmount'?: number;
66
+ /**
67
+ * The status of the invoice before this payment.
68
+ * @type {string}
69
+ * @memberof InvoicePayment
70
+ */
71
+ 'oldInvoiceStatus'?: string;
72
+ /**
73
+ * The id of the payment in the payment service, kept as a string.
74
+ * @type {string}
75
+ * @memberof InvoicePayment
76
+ */
77
+ 'paymentId'?: string;
78
+ /**
79
+ * The amount of the payment, in minor units.
80
+ * @type {number}
81
+ * @memberof InvoicePayment
82
+ */
83
+ 'transactionAmount'?: number;
84
+ /**
85
+ * When the payment was made.
86
+ * @type {string}
87
+ * @memberof InvoicePayment
88
+ */
89
+ 'transactionDate'?: string;
90
+ /**
91
+ * The reference of the payment.
92
+ * @type {string}
93
+ * @memberof InvoicePayment
94
+ */
95
+ 'transactionReference'?: string;
96
+ /**
97
+ *
98
+ * @type {string}
99
+ * @memberof InvoicePayment
100
+ */
101
+ 'updatedAt'?: string;
102
+ /**
103
+ *
104
+ * @type {string}
105
+ * @memberof InvoicePayment
106
+ */
107
+ 'updatedBy'?: string;
108
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Billing Service
6
+ * The billing service: bills, bill runs, invoices and policy billings.
7
+ *
8
+ * The version of the OpenAPI document: 2.0
9
+ *
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 Billing Service
3
+ * The billing service: bills, bill runs, invoices and policy billings.
4
+ *
5
+ * The version of the OpenAPI document: 2.0
6
+ *
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 { InvoicePayment } from './invoice-payment';
13
+ /**
14
+ * The payments of an invoice.
15
+ * @export
16
+ * @interface InvoicePayments
17
+ */
18
+ export interface InvoicePayments {
19
+ /**
20
+ * The payments. Always empty for now.
21
+ * @type {Array<InvoicePayment>}
22
+ * @memberof InvoicePayments
23
+ */
24
+ 'payments'?: Array<InvoicePayment>;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Billing Service
6
+ * The billing service: bills, bill runs, invoices and policy billings.
7
+ *
8
+ * The version of the OpenAPI document: 2.0
9
+ *
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,54 @@
1
+ /**
2
+ * EMIL Billing Service
3
+ * The billing service: bills, bill runs, invoices and policy billings.
4
+ *
5
+ * The version of the OpenAPI document: 2.0
6
+ *
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
+ * One status row of an invoice.
14
+ * @export
15
+ * @interface InvoiceStatus
16
+ */
17
+ export interface InvoiceStatus {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof InvoiceStatus
22
+ */
23
+ 'createdAt'?: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof InvoiceStatus
28
+ */
29
+ 'createdBy'?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof InvoiceStatus
34
+ */
35
+ 'id'?: string;
36
+ /**
37
+ * The status: `open`, `paid`, `partially-paid`, `refunded` or `estimated`.
38
+ * @type {string}
39
+ * @memberof InvoiceStatus
40
+ */
41
+ 'status'?: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof InvoiceStatus
46
+ */
47
+ 'updatedAt'?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof InvoiceStatus
52
+ */
53
+ 'updatedBy'?: string;
54
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL Billing Service
6
+ * The billing service: bills, bill runs, invoices and policy billings.
7
+ *
8
+ * The version of the OpenAPI document: 2.0
9
+ *
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 });