@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.
- package/.openapi-generator/FILES +93 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +83 -2
- package/api/bill-runs-api.ts +472 -0
- package/api/bills-api.ts +149 -0
- package/api/invoices-api.ts +1534 -0
- package/api/jobs-api.ts +760 -0
- package/api/policy-billings-api.ts +595 -0
- package/api.ts +39 -0
- package/base.ts +396 -0
- package/common.ts +200 -0
- package/configuration.ts +118 -0
- package/dist/api/bill-runs-api.d.ts +266 -0
- package/dist/api/bill-runs-api.js +470 -0
- package/dist/api/bills-api.d.ts +87 -0
- package/dist/api/bills-api.js +211 -0
- package/dist/api/invoices-api.d.ts +847 -0
- package/dist/api/invoices-api.js +1357 -0
- package/dist/api/jobs-api.d.ts +426 -0
- package/dist/api/jobs-api.js +712 -0
- package/dist/api/policy-billings-api.d.ts +332 -0
- package/dist/api/policy-billings-api.js +565 -0
- package/dist/api.d.ts +16 -0
- package/dist/api.js +34 -0
- package/dist/base.d.ts +97 -0
- package/dist/base.js +493 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +278 -0
- package/dist/configuration.d.ts +96 -0
- package/dist/configuration.js +52 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/any.d.ts +25 -0
- package/dist/models/any.js +15 -0
- package/dist/models/bill-item.d.ts +132 -0
- package/dist/models/bill-item.js +15 -0
- package/dist/models/bill-run.d.ts +145 -0
- package/dist/models/bill-run.js +15 -0
- package/dist/models/bill.d.ts +194 -0
- package/dist/models/bill.js +15 -0
- package/dist/models/cancel-job-response.d.ts +25 -0
- package/dist/models/cancel-job-response.js +15 -0
- package/dist/models/create-correction-invoices-request.d.ts +72 -0
- package/dist/models/create-correction-invoices-request.js +15 -0
- package/dist/models/create-correction-invoices-response.d.ts +31 -0
- package/dist/models/create-correction-invoices-response.js +15 -0
- package/dist/models/create-detail-export-job-request.d.ts +56 -0
- package/dist/models/create-detail-export-job-request.js +15 -0
- package/dist/models/create-detail-export-job-response.d.ts +25 -0
- package/dist/models/create-detail-export-job-response.js +15 -0
- package/dist/models/create-estimated-invoice-for-interval-request.d.ts +42 -0
- package/dist/models/create-estimated-invoice-for-interval-request.js +15 -0
- package/dist/models/create-estimated-invoice-for-interval-response.d.ts +25 -0
- package/dist/models/create-estimated-invoice-for-interval-response.js +15 -0
- package/dist/models/create-estimated-invoice-request.d.ts +36 -0
- package/dist/models/create-estimated-invoice-request.js +15 -0
- package/dist/models/create-estimated-invoice-response.d.ts +25 -0
- package/dist/models/create-estimated-invoice-response.js +15 -0
- package/dist/models/create-export-job-request.d.ts +68 -0
- package/dist/models/create-export-job-request.js +15 -0
- package/dist/models/create-export-job-response.d.ts +25 -0
- package/dist/models/create-export-job-response.js +15 -0
- package/dist/models/create-initial-invoice-request.d.ts +72 -0
- package/dist/models/create-initial-invoice-request.js +15 -0
- package/dist/models/create-initial-invoice-response.d.ts +25 -0
- package/dist/models/create-initial-invoice-response.js +15 -0
- package/dist/models/create-invoice-request.d.ts +67 -0
- package/dist/models/create-invoice-request.js +15 -0
- package/dist/models/create-invoice-response.d.ts +25 -0
- package/dist/models/create-invoice-response.js +15 -0
- package/dist/models/create-invoice-status-body.d.ts +24 -0
- package/dist/models/create-invoice-status-body.js +15 -0
- package/dist/models/create-invoice-status-response.d.ts +25 -0
- package/dist/models/create-invoice-status-response.js +15 -0
- package/dist/models/create-item-request.d.ts +36 -0
- package/dist/models/create-item-request.js +15 -0
- package/dist/models/create-policy-billing-request.d.ts +42 -0
- package/dist/models/create-policy-billing-request.js +15 -0
- package/dist/models/create-policy-billing-response.d.ts +25 -0
- package/dist/models/create-policy-billing-response.js +15 -0
- package/dist/models/create-recurring-invoice-request.d.ts +72 -0
- package/dist/models/create-recurring-invoice-request.js +15 -0
- package/dist/models/create-recurring-invoice-response.d.ts +31 -0
- package/dist/models/create-recurring-invoice-response.js +15 -0
- package/dist/models/create-termination-invoice-request.d.ts +60 -0
- package/dist/models/create-termination-invoice-request.js +15 -0
- package/dist/models/create-termination-invoice-response.d.ts +25 -0
- package/dist/models/create-termination-invoice-response.js +15 -0
- package/dist/models/create-withdraw-invoice-request.d.ts +48 -0
- package/dist/models/create-withdraw-invoice-request.js +15 -0
- package/dist/models/create-withdraw-invoice-response.d.ts +25 -0
- package/dist/models/create-withdraw-invoice-response.js +15 -0
- package/dist/models/estimate-history-entry.d.ts +36 -0
- package/dist/models/estimate-history-entry.js +15 -0
- package/dist/models/export-column.d.ts +36 -0
- package/dist/models/export-column.js +15 -0
- package/dist/models/filter-field.d.ts +110 -0
- package/dist/models/filter-field.js +15 -0
- package/dist/models/filter-value.d.ts +37 -0
- package/dist/models/filter-value.js +15 -0
- package/dist/models/get-bill-response.d.ts +25 -0
- package/dist/models/get-bill-response.js +15 -0
- package/dist/models/get-bill-run-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-bill-run-filter-catalog-response.js +15 -0
- package/dist/models/get-bill-run-response.d.ts +25 -0
- package/dist/models/get-bill-run-response.js +15 -0
- package/dist/models/get-invoice-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-invoice-filter-catalog-response.js +15 -0
- package/dist/models/get-invoice-response.d.ts +25 -0
- package/dist/models/get-invoice-response.js +15 -0
- package/dist/models/get-job-download-response.d.ts +25 -0
- package/dist/models/get-job-download-response.js +15 -0
- package/dist/models/get-job-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-job-filter-catalog-response.js +15 -0
- package/dist/models/get-job-response.d.ts +25 -0
- package/dist/models/get-job-response.js +15 -0
- package/dist/models/get-policies-billing-date-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-policies-billing-date-filter-catalog-response.js +15 -0
- package/dist/models/get-policies-billing-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-policies-billing-filter-catalog-response.js +15 -0
- package/dist/models/get-policy-billing-response.d.ts +25 -0
- package/dist/models/get-policy-billing-response.js +15 -0
- package/dist/models/highlight.d.ts +30 -0
- package/dist/models/highlight.js +15 -0
- package/dist/models/index.d.ts +75 -0
- package/dist/models/index.js +91 -0
- package/dist/models/invoice-item.d.ts +204 -0
- package/dist/models/invoice-item.js +15 -0
- package/dist/models/invoice-payment.d.ts +108 -0
- package/dist/models/invoice-payment.js +15 -0
- package/dist/models/invoice-payments.d.ts +25 -0
- package/dist/models/invoice-payments.js +15 -0
- package/dist/models/invoice-status.d.ts +54 -0
- package/dist/models/invoice-status.js +15 -0
- package/dist/models/invoice.d.ts +275 -0
- package/dist/models/invoice.js +15 -0
- package/dist/models/job-download.d.ts +36 -0
- package/dist/models/job-download.js +15 -0
- package/dist/models/job-error.d.ts +30 -0
- package/dist/models/job-error.js +15 -0
- package/dist/models/job-progress.d.ts +36 -0
- package/dist/models/job-progress.js +15 -0
- package/dist/models/job.d.ts +134 -0
- package/dist/models/job.js +15 -0
- package/dist/models/list-bill-runs-response.d.ts +37 -0
- package/dist/models/list-bill-runs-response.js +15 -0
- package/dist/models/list-invoices-response.d.ts +37 -0
- package/dist/models/list-invoices-response.js +15 -0
- package/dist/models/list-jobs-response.d.ts +37 -0
- package/dist/models/list-jobs-response.js +15 -0
- package/dist/models/list-policies-billing-dates-response.d.ts +37 -0
- package/dist/models/list-policies-billing-dates-response.js +15 -0
- package/dist/models/list-policies-billings-response.d.ts +37 -0
- package/dist/models/list-policies-billings-response.js +15 -0
- package/dist/models/list-request.d.ts +60 -0
- package/dist/models/list-request.js +15 -0
- package/dist/models/localized-text.d.ts +30 -0
- package/dist/models/localized-text.js +15 -0
- package/dist/models/match.d.ts +69 -0
- package/dist/models/match.js +15 -0
- package/dist/models/payment-term.d.ts +42 -0
- package/dist/models/payment-term.js +15 -0
- package/dist/models/policy-billing.d.ts +139 -0
- package/dist/models/policy-billing.js +15 -0
- package/dist/models/request-bill-run-request.d.ts +30 -0
- package/dist/models/request-bill-run-request.js +15 -0
- package/dist/models/request-bill-run-response.d.ts +25 -0
- package/dist/models/request-bill-run-response.js +15 -0
- package/dist/models/resolved-billing-config.d.ts +130 -0
- package/dist/models/resolved-billing-config.js +15 -0
- package/dist/models/revert-invoice-request.d.ts +24 -0
- package/dist/models/revert-invoice-request.js +15 -0
- package/dist/models/revert-invoice-response.d.ts +25 -0
- package/dist/models/revert-invoice-response.js +15 -0
- package/dist/models/slice.d.ts +30 -0
- package/dist/models/slice.js +15 -0
- package/dist/models/status.d.ts +37 -0
- package/dist/models/status.js +15 -0
- package/dist/models/tax.d.ts +30 -0
- package/dist/models/tax.js +15 -0
- package/dist/models/update-policy-billing-body.d.ts +24 -0
- package/dist/models/update-policy-billing-body.js +15 -0
- package/dist/models/update-policy-billing-response.d.ts +25 -0
- package/dist/models/update-policy-billing-response.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/any.ts +32 -0
- package/models/bill-item.ts +138 -0
- package/models/bill-run.ts +151 -0
- package/models/bill.ts +200 -0
- package/models/cancel-job-response.ts +31 -0
- package/models/create-correction-invoices-request.ts +78 -0
- package/models/create-correction-invoices-response.ts +37 -0
- package/models/create-detail-export-job-request.ts +60 -0
- package/models/create-detail-export-job-response.ts +31 -0
- package/models/create-estimated-invoice-for-interval-request.ts +48 -0
- package/models/create-estimated-invoice-for-interval-response.ts +31 -0
- package/models/create-estimated-invoice-request.ts +42 -0
- package/models/create-estimated-invoice-response.ts +31 -0
- package/models/create-export-job-request.ts +74 -0
- package/models/create-export-job-response.ts +31 -0
- package/models/create-initial-invoice-request.ts +78 -0
- package/models/create-initial-invoice-response.ts +31 -0
- package/models/create-invoice-request.ts +73 -0
- package/models/create-invoice-response.ts +31 -0
- package/models/create-invoice-status-body.ts +30 -0
- package/models/create-invoice-status-response.ts +31 -0
- package/models/create-item-request.ts +42 -0
- package/models/create-policy-billing-request.ts +48 -0
- package/models/create-policy-billing-response.ts +31 -0
- package/models/create-recurring-invoice-request.ts +78 -0
- package/models/create-recurring-invoice-response.ts +37 -0
- package/models/create-termination-invoice-request.ts +66 -0
- package/models/create-termination-invoice-response.ts +31 -0
- package/models/create-withdraw-invoice-request.ts +54 -0
- package/models/create-withdraw-invoice-response.ts +31 -0
- package/models/estimate-history-entry.ts +42 -0
- package/models/export-column.ts +42 -0
- package/models/filter-field.ts +116 -0
- package/models/filter-value.ts +43 -0
- package/models/get-bill-response.ts +31 -0
- package/models/get-bill-run-filter-catalog-response.ts +37 -0
- package/models/get-bill-run-response.ts +31 -0
- package/models/get-invoice-filter-catalog-response.ts +37 -0
- package/models/get-invoice-response.ts +31 -0
- package/models/get-job-download-response.ts +31 -0
- package/models/get-job-filter-catalog-response.ts +37 -0
- package/models/get-job-response.ts +31 -0
- package/models/get-policies-billing-date-filter-catalog-response.ts +37 -0
- package/models/get-policies-billing-filter-catalog-response.ts +37 -0
- package/models/get-policy-billing-response.ts +31 -0
- package/models/highlight.ts +36 -0
- package/models/index.ts +75 -0
- package/models/invoice-item.ts +210 -0
- package/models/invoice-payment.ts +114 -0
- package/models/invoice-payments.ts +31 -0
- package/models/invoice-status.ts +60 -0
- package/models/invoice.ts +281 -0
- package/models/job-download.ts +42 -0
- package/models/job-error.ts +36 -0
- package/models/job-progress.ts +42 -0
- package/models/job.ts +140 -0
- package/models/list-bill-runs-response.ts +43 -0
- package/models/list-invoices-response.ts +43 -0
- package/models/list-jobs-response.ts +43 -0
- package/models/list-policies-billing-dates-response.ts +43 -0
- package/models/list-policies-billings-response.ts +43 -0
- package/models/list-request.ts +66 -0
- package/models/localized-text.ts +36 -0
- package/models/match.ts +75 -0
- package/models/payment-term.ts +48 -0
- package/models/policy-billing.ts +145 -0
- package/models/request-bill-run-request.ts +36 -0
- package/models/request-bill-run-response.ts +31 -0
- package/models/resolved-billing-config.ts +134 -0
- package/models/revert-invoice-request.ts +30 -0
- package/models/revert-invoice-response.ts +31 -0
- package/models/slice.ts +36 -0
- package/models/status.ts +43 -0
- package/models/tax.ts +36 -0
- package/models/update-policy-billing-body.ts +30 -0
- package/models/update-policy-billing-response.ts +31 -0
- package/package.json +27 -4
- package/tsconfig.json +23 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Billing Service
|
|
5
|
+
* The billing service: bills, bill runs, invoices and policy billings.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* One priced line of a bill: one premium item over one part of the billing period.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface BillItem
|
|
21
|
+
*/
|
|
22
|
+
export interface BillItem {
|
|
23
|
+
/**
|
|
24
|
+
* The first day the line covers, as an RFC 3339 full-date. The window includes this day.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof BillItem
|
|
27
|
+
*/
|
|
28
|
+
'coveredFrom'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The end of the window the line covers, as an RFC 3339 full-date. The window does not include this day.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof BillItem
|
|
33
|
+
*/
|
|
34
|
+
'coveredTo'?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof BillItem
|
|
39
|
+
*/
|
|
40
|
+
'createdAt'?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof BillItem
|
|
45
|
+
*/
|
|
46
|
+
'createdBy'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The gross amount of the line, in minor units.
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof BillItem
|
|
51
|
+
*/
|
|
52
|
+
'grossAmount'?: number;
|
|
53
|
+
/**
|
|
54
|
+
* The group of the premium item.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof BillItem
|
|
57
|
+
*/
|
|
58
|
+
'group'?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof BillItem
|
|
63
|
+
*/
|
|
64
|
+
'id'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* The key of the premium item.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof BillItem
|
|
69
|
+
*/
|
|
70
|
+
'itemKey'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* The type of the premium item, such as `NET` or `TOTAL`.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof BillItem
|
|
75
|
+
*/
|
|
76
|
+
'itemType'?: string;
|
|
77
|
+
/**
|
|
78
|
+
* The name of the premium item.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof BillItem
|
|
81
|
+
*/
|
|
82
|
+
'name'?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The net amount of the line, in minor units.
|
|
85
|
+
* @type {number}
|
|
86
|
+
* @memberof BillItem
|
|
87
|
+
*/
|
|
88
|
+
'netAmount'?: number;
|
|
89
|
+
/**
|
|
90
|
+
* The id of the policy state this line was priced from.
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof BillItem
|
|
93
|
+
*/
|
|
94
|
+
'policySnapshotId'?: string;
|
|
95
|
+
/**
|
|
96
|
+
* The period the premium is stated for: `PER_DAY`, `PER_MONTH`, `PER_YEAR` or `ONE_TIME`.
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof BillItem
|
|
99
|
+
*/
|
|
100
|
+
'premiumPeriod'?: string;
|
|
101
|
+
/**
|
|
102
|
+
* The gross premium for one unit, as an exact string (`8.59`): for one billing period on a monthly or yearly premium, for one day on a daily one. A decimal when it terminates within 10 places, otherwise a fraction.
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof BillItem
|
|
105
|
+
*/
|
|
106
|
+
'pricePerUnit'?: string;
|
|
107
|
+
/**
|
|
108
|
+
* How many units the line bills, as an exact string: the covered fraction of the period (`1`, `0.5`, `17/31`) for a monthly or yearly premium, the days covered for a daily one, `1` for a one-time one. A decimal when it terminates within 10 places, otherwise a fraction.
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof BillItem
|
|
111
|
+
*/
|
|
112
|
+
'quantity'?: string;
|
|
113
|
+
/**
|
|
114
|
+
* The tax amount of the line, in minor units.
|
|
115
|
+
* @type {number}
|
|
116
|
+
* @memberof BillItem
|
|
117
|
+
*/
|
|
118
|
+
'taxAmount'?: number;
|
|
119
|
+
/**
|
|
120
|
+
* The unit the line counts: the billing frequency word (`month`) for a monthly or yearly premium, `day` for a daily one, `oneTimePayment` for a one-time one.
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof BillItem
|
|
123
|
+
*/
|
|
124
|
+
'unit'?: string;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof BillItem
|
|
129
|
+
*/
|
|
130
|
+
'updatedAt'?: string;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {string}
|
|
134
|
+
* @memberof BillItem
|
|
135
|
+
*/
|
|
136
|
+
'updatedBy'?: string;
|
|
137
|
+
}
|
|
138
|
+
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Billing Service
|
|
5
|
+
* The billing service: bills, bill runs, invoices and policy billings.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { Match } from './match';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* One execution of a bill run: a pass over the policies for one run date. A run has one of three kinds: `INVOICE` creates the invoices that are due, `ESTIMATE` prices the running period of every active policy, and `RECONCILE` creates the invoices that are missing. A run can be repeated for the same date: what already exists is not created twice, and the report marks it as `already_existed`.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface BillRun
|
|
22
|
+
*/
|
|
23
|
+
export interface BillRun {
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier for the object.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BillRun
|
|
28
|
+
*/
|
|
29
|
+
'code'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* How many report entries have the outcome `created`. A policy can have several entries, so the sum of the three counts can exceed `selected`.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof BillRun
|
|
34
|
+
*/
|
|
35
|
+
'created'?: number;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BillRun
|
|
40
|
+
*/
|
|
41
|
+
'createdAt'?: string;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof BillRun
|
|
46
|
+
*/
|
|
47
|
+
'createdBy'?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The run\'s ERN (EIS Resource Name).
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof BillRun
|
|
52
|
+
*/
|
|
53
|
+
'ern'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The run\'s entity tag, which changes with every write.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof BillRun
|
|
58
|
+
*/
|
|
59
|
+
'etag'?: string;
|
|
60
|
+
/**
|
|
61
|
+
* How many report entries have the outcome `failed`.
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof BillRun
|
|
64
|
+
*/
|
|
65
|
+
'failed'?: number;
|
|
66
|
+
/**
|
|
67
|
+
* When the run ended. Not set while `outcome` is `RUNNING`.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof BillRun
|
|
70
|
+
*/
|
|
71
|
+
'finishedAt'?: string;
|
|
72
|
+
/**
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof BillRun
|
|
76
|
+
*/
|
|
77
|
+
'id'?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The kind of the run: `INVOICE`, `ESTIMATE` or `RECONCILE`.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof BillRun
|
|
82
|
+
*/
|
|
83
|
+
'kind'?: string;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Match}
|
|
87
|
+
* @memberof BillRun
|
|
88
|
+
*/
|
|
89
|
+
'match'?: Match;
|
|
90
|
+
/**
|
|
91
|
+
* The result of the run: `RUNNING` until it ends, then `SUCCEEDED` when no entry failed, `FAILED` when every entry failed, otherwise `PARTIAL`.
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof BillRun
|
|
94
|
+
*/
|
|
95
|
+
'outcome'?: string;
|
|
96
|
+
/**
|
|
97
|
+
* The report of the run: an object with `entries`, one or more per policy. An entry without `policyCode` means the run could not select its policies. Each entry has `policyCode`, `outcome` (`created`, `already_existed`, `skipped` or `failed`) and, when they apply, `invoiceCode`, `billCode` and `reason`.
|
|
98
|
+
* @type {object}
|
|
99
|
+
* @memberof BillRun
|
|
100
|
+
*/
|
|
101
|
+
'report'?: object;
|
|
102
|
+
/**
|
|
103
|
+
* The date the run is for, not the time it ran, as an RFC 3339 full-date (`2026-03-01`).
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof BillRun
|
|
106
|
+
*/
|
|
107
|
+
'runDate'?: string;
|
|
108
|
+
/**
|
|
109
|
+
* How many policies the run selected.
|
|
110
|
+
* @type {number}
|
|
111
|
+
* @memberof BillRun
|
|
112
|
+
*/
|
|
113
|
+
'selected'?: number;
|
|
114
|
+
/**
|
|
115
|
+
* How many report entries have the outcome `skipped` or `already_existed`.
|
|
116
|
+
* @type {number}
|
|
117
|
+
* @memberof BillRun
|
|
118
|
+
*/
|
|
119
|
+
'skipped'?: number;
|
|
120
|
+
/**
|
|
121
|
+
* When the run started.
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof BillRun
|
|
124
|
+
*/
|
|
125
|
+
'startedAt'?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Who started the run: `system:billing-run` for the daily scheduled run, otherwise the user who requested it.
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof BillRun
|
|
130
|
+
*/
|
|
131
|
+
'triggeredBy'?: string;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof BillRun
|
|
136
|
+
*/
|
|
137
|
+
'updatedAt'?: string;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {string}
|
|
141
|
+
* @memberof BillRun
|
|
142
|
+
*/
|
|
143
|
+
'updatedBy'?: string;
|
|
144
|
+
/**
|
|
145
|
+
* The version of the run record.
|
|
146
|
+
* @type {string}
|
|
147
|
+
* @memberof BillRun
|
|
148
|
+
*/
|
|
149
|
+
'version'?: string;
|
|
150
|
+
}
|
|
151
|
+
|
package/models/bill.ts
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Billing Service
|
|
5
|
+
* The billing service: bills, bill runs, invoices and policy billings.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { BillItem } from './bill-item';
|
|
17
|
+
import { ResolvedBillingConfig } from './resolved-billing-config';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* A bill: the priced statement of one policy for one billing period, or for two on a first bill. A bill never changes once it is written. An invoice is the difference between two bills, and an estimate is a bill without an invoice. Bills are not a list resource: `GetBill` reads one bill, for an audit, and invoices point to their bills with `billErn`. Amounts are in minor units as integers (`859` is 8.59 in a currency with two decimals). Rates and quantities are exact decimal strings.
|
|
21
|
+
* @export
|
|
22
|
+
* @interface Bill
|
|
23
|
+
*/
|
|
24
|
+
export interface Bill {
|
|
25
|
+
/**
|
|
26
|
+
* What the bill is for: `INVOICE` or `ESTIMATE`.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof Bill
|
|
29
|
+
*/
|
|
30
|
+
'billKind'?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The ERN of the billing configuration the bill was priced under.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof Bill
|
|
35
|
+
*/
|
|
36
|
+
'billingConfigErn'?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Unique identifier for the object.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Bill
|
|
41
|
+
*/
|
|
42
|
+
'code'?: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof Bill
|
|
47
|
+
*/
|
|
48
|
+
'createdAt'?: string;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof Bill
|
|
53
|
+
*/
|
|
54
|
+
'createdBy'?: string;
|
|
55
|
+
/**
|
|
56
|
+
* The currency of the amounts, as a three-letter code such as `EUR`.
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof Bill
|
|
59
|
+
*/
|
|
60
|
+
'currency'?: string;
|
|
61
|
+
/**
|
|
62
|
+
* How a part of a period is prorated: `CALENDAR_DAYS` or `COMMERCIAL_30_360`.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof Bill
|
|
65
|
+
*/
|
|
66
|
+
'dayCountBasis'?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The bill\'s ERN (EIS Resource Name).
|
|
69
|
+
* @type {string}
|
|
70
|
+
* @memberof Bill
|
|
71
|
+
*/
|
|
72
|
+
'ern'?: string;
|
|
73
|
+
/**
|
|
74
|
+
* For an `ESTIMATE`: the run date of the estimate, as an RFC 3339 full-date. Empty otherwise.
|
|
75
|
+
* @type {string}
|
|
76
|
+
* @memberof Bill
|
|
77
|
+
*/
|
|
78
|
+
'estimatedAt'?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The gross amount of the bill, in minor units: the net amount plus the tax amount.
|
|
81
|
+
* @type {number}
|
|
82
|
+
* @memberof Bill
|
|
83
|
+
*/
|
|
84
|
+
'grossAmount'?: number;
|
|
85
|
+
/**
|
|
86
|
+
* The ERN of the billing configuration of the group tariff, when the group policy has one.
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof Bill
|
|
89
|
+
*/
|
|
90
|
+
'groupBillingConfigErn'?: string;
|
|
91
|
+
/**
|
|
92
|
+
* The code of the group policy the policy belongs to. Empty for a standalone policy.
|
|
93
|
+
* @type {string}
|
|
94
|
+
* @memberof Bill
|
|
95
|
+
*/
|
|
96
|
+
'groupPolicyCode'?: string;
|
|
97
|
+
/**
|
|
98
|
+
* The ERN of the group tariff version the group policy was priced with. Empty for a standalone policy.
|
|
99
|
+
* @type {string}
|
|
100
|
+
* @memberof Bill
|
|
101
|
+
*/
|
|
102
|
+
'groupTariffVersionErn'?: string;
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @type {string}
|
|
106
|
+
* @memberof Bill
|
|
107
|
+
*/
|
|
108
|
+
'id'?: string;
|
|
109
|
+
/**
|
|
110
|
+
* A digest of the inputs the bill was priced from.
|
|
111
|
+
* @type {string}
|
|
112
|
+
* @memberof Bill
|
|
113
|
+
*/
|
|
114
|
+
'inputDigest'?: string;
|
|
115
|
+
/**
|
|
116
|
+
* The priced lines of the bill.
|
|
117
|
+
* @type {Array<BillItem>}
|
|
118
|
+
* @memberof Bill
|
|
119
|
+
*/
|
|
120
|
+
'items'?: Array<BillItem>;
|
|
121
|
+
/**
|
|
122
|
+
* The net amount of the bill, in minor units.
|
|
123
|
+
* @type {number}
|
|
124
|
+
* @memberof Bill
|
|
125
|
+
*/
|
|
126
|
+
'netAmount'?: number;
|
|
127
|
+
/**
|
|
128
|
+
* The first day of the billing period, as an RFC 3339 full-date (`2026-03-01`). The period includes this day.
|
|
129
|
+
* @type {string}
|
|
130
|
+
* @memberof Bill
|
|
131
|
+
*/
|
|
132
|
+
'periodFrom'?: string;
|
|
133
|
+
/**
|
|
134
|
+
* The end of the billing period, as an RFC 3339 full-date. The period does not include this day.
|
|
135
|
+
* @type {string}
|
|
136
|
+
* @memberof Bill
|
|
137
|
+
*/
|
|
138
|
+
'periodTo'?: string;
|
|
139
|
+
/**
|
|
140
|
+
* The business version of the policy the bill was priced from.
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof Bill
|
|
143
|
+
*/
|
|
144
|
+
'policyBusinessVersion'?: string;
|
|
145
|
+
/**
|
|
146
|
+
* The code of the policy the bill prices. For a group policy\'s own estimate or adjustment bill, the group policy\'s code.
|
|
147
|
+
* @type {string}
|
|
148
|
+
* @memberof Bill
|
|
149
|
+
*/
|
|
150
|
+
'policyCode'?: string;
|
|
151
|
+
/**
|
|
152
|
+
* The id of the policy state in force at the end of the period. Each item names the state it was priced from. Empty on a group policy\'s aggregate estimate.
|
|
153
|
+
* @type {string}
|
|
154
|
+
* @memberof Bill
|
|
155
|
+
*/
|
|
156
|
+
'policySnapshotId'?: string;
|
|
157
|
+
/**
|
|
158
|
+
*
|
|
159
|
+
* @type {ResolvedBillingConfig}
|
|
160
|
+
* @memberof Bill
|
|
161
|
+
*/
|
|
162
|
+
'resolvedConfig'?: ResolvedBillingConfig;
|
|
163
|
+
/**
|
|
164
|
+
* How amounts are rounded: `HALF_UP` or `NEAREST_0_05`.
|
|
165
|
+
* @type {string}
|
|
166
|
+
* @memberof Bill
|
|
167
|
+
*/
|
|
168
|
+
'roundingMode'?: string;
|
|
169
|
+
/**
|
|
170
|
+
* For an `ESTIMATE`: the code of the estimate bill that replaced this one. Empty when none did.
|
|
171
|
+
* @type {string}
|
|
172
|
+
* @memberof Bill
|
|
173
|
+
*/
|
|
174
|
+
'supersededBy'?: string;
|
|
175
|
+
/**
|
|
176
|
+
* The ERN of the tariff version the policy was priced with.
|
|
177
|
+
* @type {string}
|
|
178
|
+
* @memberof Bill
|
|
179
|
+
*/
|
|
180
|
+
'tariffVersionErn'?: string;
|
|
181
|
+
/**
|
|
182
|
+
* The tax amount of the bill, in minor units.
|
|
183
|
+
* @type {number}
|
|
184
|
+
* @memberof Bill
|
|
185
|
+
*/
|
|
186
|
+
'taxAmount'?: number;
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @type {string}
|
|
190
|
+
* @memberof Bill
|
|
191
|
+
*/
|
|
192
|
+
'updatedAt'?: string;
|
|
193
|
+
/**
|
|
194
|
+
*
|
|
195
|
+
* @type {string}
|
|
196
|
+
* @memberof Bill
|
|
197
|
+
*/
|
|
198
|
+
'updatedBy'?: string;
|
|
199
|
+
}
|
|
200
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Billing Service
|
|
5
|
+
* The billing service: bills, bill runs, invoices and policy billings.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { Job } from './job';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The response of `CancelJob`.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CancelJobResponse
|
|
22
|
+
*/
|
|
23
|
+
export interface CancelJobResponse {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Job}
|
|
27
|
+
* @memberof CancelJobResponse
|
|
28
|
+
*/
|
|
29
|
+
'job'?: Job;
|
|
30
|
+
}
|
|
31
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Billing Service
|
|
5
|
+
* The billing service: bills, bill runs, invoices and policy billings.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The request of `CreateCorrectionInvoices`. Only `policyCode`, the billing interval and `metadata` are read. Without an interval, every invoiced period is corrected; with it, the invoiced bills of that period.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface CreateCorrectionInvoicesRequest
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateCorrectionInvoicesRequest {
|
|
23
|
+
/**
|
|
24
|
+
* Ignored.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateCorrectionInvoicesRequest
|
|
27
|
+
*/
|
|
28
|
+
'accountNumber'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The first day of the period to correct, at midnight UTC. Optional.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateCorrectionInvoicesRequest
|
|
33
|
+
*/
|
|
34
|
+
'billingIntervalFrom'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The end of the period to correct, at midnight UTC; the period does not include this day. Optional.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateCorrectionInvoicesRequest
|
|
39
|
+
*/
|
|
40
|
+
'billingIntervalTo'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* Ignored.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreateCorrectionInvoicesRequest
|
|
45
|
+
*/
|
|
46
|
+
'dueDate'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Ignored: a correction always draws the next number of the sequence.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreateCorrectionInvoicesRequest
|
|
51
|
+
*/
|
|
52
|
+
'invoiceNumber'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Free key-value data, kept on the invoice.
|
|
55
|
+
* @type {object}
|
|
56
|
+
* @memberof CreateCorrectionInvoicesRequest
|
|
57
|
+
*/
|
|
58
|
+
'metadata'?: object;
|
|
59
|
+
/**
|
|
60
|
+
* The code of the policy to invoice.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CreateCorrectionInvoicesRequest
|
|
63
|
+
*/
|
|
64
|
+
'policyCode'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Ignored.
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof CreateCorrectionInvoicesRequest
|
|
69
|
+
*/
|
|
70
|
+
'policyNumber'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Ignored.
|
|
73
|
+
* @type {boolean}
|
|
74
|
+
* @memberof CreateCorrectionInvoicesRequest
|
|
75
|
+
*/
|
|
76
|
+
'shouldSetNextBillingDate'?: boolean;
|
|
77
|
+
}
|
|
78
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Billing Service
|
|
5
|
+
* The billing service: bills, bill runs, invoices and policy billings.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { Invoice } from './invoice';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* The response of `CreateCorrectionInvoices`.
|
|
20
|
+
* @export
|
|
21
|
+
* @interface CreateCorrectionInvoicesResponse
|
|
22
|
+
*/
|
|
23
|
+
export interface CreateCorrectionInvoicesResponse {
|
|
24
|
+
/**
|
|
25
|
+
* The correction invoices, one for each corrected period. Empty when `noChange` is true.
|
|
26
|
+
* @type {Array<Invoice>}
|
|
27
|
+
* @memberof CreateCorrectionInvoicesResponse
|
|
28
|
+
*/
|
|
29
|
+
'invoices'?: Array<Invoice>;
|
|
30
|
+
/**
|
|
31
|
+
* True when no correction invoice was needed.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof CreateCorrectionInvoicesResponse
|
|
34
|
+
*/
|
|
35
|
+
'noChange'?: boolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Billing Service
|
|
5
|
+
* The billing service: bills, bill runs, invoices and policy billings.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* The request of `CreateDetailExportJob`.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface CreateDetailExportJobRequest
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateDetailExportJobRequest {
|
|
23
|
+
/**
|
|
24
|
+
* What a client shows for the job. The file name starts with it.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateDetailExportJobRequest
|
|
27
|
+
*/
|
|
28
|
+
'label'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The translated sheet names and field labels, by key: `sheet.header`, `sheet.lines`, `column.field`, `column.value` and so on. A key missing here is shown as the key itself.
|
|
31
|
+
* @type {{ [key: string]: string; }}
|
|
32
|
+
* @memberof CreateDetailExportJobRequest
|
|
33
|
+
*/
|
|
34
|
+
'labels'?: { [key: string]: string; };
|
|
35
|
+
/**
|
|
36
|
+
* The language of the file, as `locale` of `CreateExportJobRequest`.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateDetailExportJobRequest
|
|
39
|
+
*/
|
|
40
|
+
'locale'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The invoice to export: `billingservice:invoice/<code>`.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreateDetailExportJobRequest
|
|
45
|
+
*/
|
|
46
|
+
'resource'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Not used: an issued invoice does not change.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof CreateDetailExportJobRequest
|
|
51
|
+
*/
|
|
52
|
+
'validAt'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* How long to wait for the job to finish. Default 2 seconds, at most 5 seconds.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof CreateDetailExportJobRequest
|
|
57
|
+
*/
|
|
58
|
+
'wait'?: string;
|
|
59
|
+
}
|
|
60
|
+
|