@emilgroup/billing-v2-sdk-node 0.0.0-stage → 1.0.1-beta.0
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,275 @@
|
|
|
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 { EstimateHistoryEntry } from './estimate-history-entry';
|
|
13
|
+
import { InvoiceItem } from './invoice-item';
|
|
14
|
+
import { InvoicePayments } from './invoice-payments';
|
|
15
|
+
import { InvoiceStatus } from './invoice-status';
|
|
16
|
+
import { Match } from './match';
|
|
17
|
+
/**
|
|
18
|
+
* An invoice: the statement sent to a policyholder for one billing period of a policy. An invoice\'s amounts and lines never change once it is issued; only its status moves. A change of amounts produces a new invoice, a correction or a reversal. Money is in minor units as integers (`859` is 8.59 in a currency with two decimals). The day-precision timestamps (`dueDate`, `billingIntervalFrom`, `billingIntervalTo`) are always midnight UTC of the calendar date. `type` is one of `initial`, `recurring`, `correction`, `estimated`, `final`, `withdraw` and `other`. `penalty` is accepted as a filter value only: no invoice has it. `status` is one of `open`, `paid`, `partially-paid`, `refunded` and `estimated`. Both are strings.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface Invoice
|
|
21
|
+
*/
|
|
22
|
+
export interface Invoice {
|
|
23
|
+
/**
|
|
24
|
+
* Not filled: always empty.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof Invoice
|
|
27
|
+
*/
|
|
28
|
+
'accountNumber'?: string;
|
|
29
|
+
/**
|
|
30
|
+
* The ERN of the bill the invoice shows. Empty on a collective invoice, whose lines each name the bill of their member.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Invoice
|
|
33
|
+
*/
|
|
34
|
+
'billErn'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* The ERN of the billing configuration the invoice was priced under: the one of the group tariff when the policy has one, otherwise the one of the tariff. Empty when the platform default applied.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Invoice
|
|
39
|
+
*/
|
|
40
|
+
'billingConfigErn'?: string;
|
|
41
|
+
/**
|
|
42
|
+
* The first day of the billing period the invoice covers, at midnight UTC. The period includes this day. On a `withdraw` invoice: the start of the earliest invoice it reverses.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Invoice
|
|
45
|
+
*/
|
|
46
|
+
'billingIntervalFrom'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* The end of the billing period the invoice covers, at midnight UTC. The period does not include this day. On a `withdraw` invoice: the end of the latest invoice it reverses.
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof Invoice
|
|
51
|
+
*/
|
|
52
|
+
'billingIntervalTo'?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Unique identifier for the object.
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof Invoice
|
|
57
|
+
*/
|
|
58
|
+
'code'?: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof Invoice
|
|
63
|
+
*/
|
|
64
|
+
'createdAt'?: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof Invoice
|
|
69
|
+
*/
|
|
70
|
+
'createdBy'?: string;
|
|
71
|
+
/**
|
|
72
|
+
* What the invoice owes back, as a gross amount in minor units. It is set when the total is negative.
|
|
73
|
+
* @type {number}
|
|
74
|
+
* @memberof Invoice
|
|
75
|
+
*/
|
|
76
|
+
'creditAmount'?: number;
|
|
77
|
+
/**
|
|
78
|
+
* The currency of the amounts, as a three-letter code such as `EUR`.
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof Invoice
|
|
81
|
+
*/
|
|
82
|
+
'currency'?: string;
|
|
83
|
+
/**
|
|
84
|
+
* The day the invoice is due, at midnight UTC. Not set on an `estimated` invoice.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof Invoice
|
|
87
|
+
*/
|
|
88
|
+
'dueDate'?: string;
|
|
89
|
+
/**
|
|
90
|
+
* The dunning fees, in minor units. Always 0.
|
|
91
|
+
* @type {number}
|
|
92
|
+
* @memberof Invoice
|
|
93
|
+
*/
|
|
94
|
+
'dunningFees'?: number;
|
|
95
|
+
/**
|
|
96
|
+
* The invoice\'s ERN (EIS Resource Name).
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof Invoice
|
|
99
|
+
*/
|
|
100
|
+
'ern'?: string;
|
|
101
|
+
/**
|
|
102
|
+
* On an `estimated` invoice read or listed with `expand=estimateHistory`: the earlier estimates of the same period that were replaced, newest first.
|
|
103
|
+
* @type {Array<EstimateHistoryEntry>}
|
|
104
|
+
* @memberof Invoice
|
|
105
|
+
*/
|
|
106
|
+
'estimateHistory'?: Array<EstimateHistoryEntry>;
|
|
107
|
+
/**
|
|
108
|
+
* On an `estimated` invoice: the run date of the estimate, as an RFC 3339 full-date.
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof Invoice
|
|
111
|
+
*/
|
|
112
|
+
'estimatedAt'?: string;
|
|
113
|
+
/**
|
|
114
|
+
* The gross amount of the invoice, in minor units.
|
|
115
|
+
* @type {number}
|
|
116
|
+
* @memberof Invoice
|
|
117
|
+
*/
|
|
118
|
+
'grossAmount'?: number;
|
|
119
|
+
/**
|
|
120
|
+
* The group policy the invoice belongs to. On a collective invoice and on the invoice of a direct member policy, it is the code of the group policy. Empty for a standalone policy.
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof Invoice
|
|
123
|
+
*/
|
|
124
|
+
'groupPolicyCode'?: string;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof Invoice
|
|
129
|
+
*/
|
|
130
|
+
'id'?: string;
|
|
131
|
+
/**
|
|
132
|
+
* The lines of the invoice. `GetInvoice` returns them; a list returns them when `expand` asks for `items`.
|
|
133
|
+
* @type {Array<InvoiceItem>}
|
|
134
|
+
* @memberof Invoice
|
|
135
|
+
*/
|
|
136
|
+
'invoiceItems'?: Array<InvoiceItem>;
|
|
137
|
+
/**
|
|
138
|
+
* The invoice number.
|
|
139
|
+
* @type {string}
|
|
140
|
+
* @memberof Invoice
|
|
141
|
+
*/
|
|
142
|
+
'invoiceNumber'?: string;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @type {Match}
|
|
146
|
+
* @memberof Invoice
|
|
147
|
+
*/
|
|
148
|
+
'match'?: Match;
|
|
149
|
+
/**
|
|
150
|
+
* Key-value data sent with the request that created the invoice, plus the service\'s own keys: `correctedInvoiceErn`, `terminatedFrom`, `revertedInvoiceErn` (on a reversal) and `reconciled`. Every value is a string.
|
|
151
|
+
* @type {object}
|
|
152
|
+
* @memberof Invoice
|
|
153
|
+
*/
|
|
154
|
+
'metadata'?: object;
|
|
155
|
+
/**
|
|
156
|
+
* The net amount of the invoice, in minor units.
|
|
157
|
+
* @type {number}
|
|
158
|
+
* @memberof Invoice
|
|
159
|
+
*/
|
|
160
|
+
'netAmount'?: number;
|
|
161
|
+
/**
|
|
162
|
+
* The amount still open, in minor units: the gross amount, negative on a credit, 0 on an estimate. A status change does not change it.
|
|
163
|
+
* @type {number}
|
|
164
|
+
* @memberof Invoice
|
|
165
|
+
*/
|
|
166
|
+
'openAmount'?: number;
|
|
167
|
+
/**
|
|
168
|
+
* The paid amount, in minor units. Always 0.
|
|
169
|
+
* @type {number}
|
|
170
|
+
* @memberof Invoice
|
|
171
|
+
*/
|
|
172
|
+
'paidAmount'?: number;
|
|
173
|
+
/**
|
|
174
|
+
* Not filled: always empty.
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @memberof Invoice
|
|
177
|
+
*/
|
|
178
|
+
'paymentMethodCode'?: string;
|
|
179
|
+
/**
|
|
180
|
+
* Not filled: always empty.
|
|
181
|
+
* @type {string}
|
|
182
|
+
* @memberof Invoice
|
|
183
|
+
*/
|
|
184
|
+
'paymentMethodPsp'?: string;
|
|
185
|
+
/**
|
|
186
|
+
* Not filled: always empty.
|
|
187
|
+
* @type {string}
|
|
188
|
+
* @memberof Invoice
|
|
189
|
+
*/
|
|
190
|
+
'paymentMethodType'?: string;
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @type {InvoicePayments}
|
|
194
|
+
* @memberof Invoice
|
|
195
|
+
*/
|
|
196
|
+
'payments'?: InvoicePayments;
|
|
197
|
+
/**
|
|
198
|
+
* The code of the policy the invoice is for.
|
|
199
|
+
* @type {string}
|
|
200
|
+
* @memberof Invoice
|
|
201
|
+
*/
|
|
202
|
+
'policyCode'?: string;
|
|
203
|
+
/**
|
|
204
|
+
* The policy\'s number. On an invoice that bills a member through its group, it is the group policy\'s number.
|
|
205
|
+
* @type {string}
|
|
206
|
+
* @memberof Invoice
|
|
207
|
+
*/
|
|
208
|
+
'policyNumber'?: string;
|
|
209
|
+
/**
|
|
210
|
+
* On a correction or a termination invoice: the ERN of the bill it was compared against.
|
|
211
|
+
* @type {string}
|
|
212
|
+
* @memberof Invoice
|
|
213
|
+
*/
|
|
214
|
+
'previousBillErn'?: string;
|
|
215
|
+
/**
|
|
216
|
+
* The code of the partner who receives the invoice. A name or an address is not part of the invoice.
|
|
217
|
+
* @type {string}
|
|
218
|
+
* @memberof Invoice
|
|
219
|
+
*/
|
|
220
|
+
'recipientPartnerId'?: string;
|
|
221
|
+
/**
|
|
222
|
+
* The version of the recipient partner at the time the invoice was issued.
|
|
223
|
+
* @type {number}
|
|
224
|
+
* @memberof Invoice
|
|
225
|
+
*/
|
|
226
|
+
'recipientPartnerVersion'?: number;
|
|
227
|
+
/**
|
|
228
|
+
* On a reversal: the ERN of the invoice it reverts.
|
|
229
|
+
* @type {string}
|
|
230
|
+
* @memberof Invoice
|
|
231
|
+
*/
|
|
232
|
+
'revertsInvoiceErn'?: string;
|
|
233
|
+
/**
|
|
234
|
+
* The current status of the invoice.
|
|
235
|
+
* @type {string}
|
|
236
|
+
* @memberof Invoice
|
|
237
|
+
*/
|
|
238
|
+
'status'?: string;
|
|
239
|
+
/**
|
|
240
|
+
* The status rows of the invoice: `open` when it is issued, `refunded` when a full reversal is issued, and the rows added with `CreateInvoiceStatus`, oldest first. Empty on an `estimated` invoice. `GetInvoice` returns them; a list returns them when `expand` asks for `statuses`.
|
|
241
|
+
* @type {Array<InvoiceStatus>}
|
|
242
|
+
* @memberof Invoice
|
|
243
|
+
*/
|
|
244
|
+
'statuses'?: Array<InvoiceStatus>;
|
|
245
|
+
/**
|
|
246
|
+
* The tax amount of the invoice, in minor units.
|
|
247
|
+
* @type {number}
|
|
248
|
+
* @memberof Invoice
|
|
249
|
+
*/
|
|
250
|
+
'taxAmount'?: number;
|
|
251
|
+
/**
|
|
252
|
+
* The total amount, in minor units: always equal to `grossAmount`, also on an estimate and a credit.
|
|
253
|
+
* @type {number}
|
|
254
|
+
* @memberof Invoice
|
|
255
|
+
*/
|
|
256
|
+
'totalAmount'?: number;
|
|
257
|
+
/**
|
|
258
|
+
* The type of the invoice.
|
|
259
|
+
* @type {string}
|
|
260
|
+
* @memberof Invoice
|
|
261
|
+
*/
|
|
262
|
+
'type'?: string;
|
|
263
|
+
/**
|
|
264
|
+
*
|
|
265
|
+
* @type {string}
|
|
266
|
+
* @memberof Invoice
|
|
267
|
+
*/
|
|
268
|
+
'updatedAt'?: string;
|
|
269
|
+
/**
|
|
270
|
+
*
|
|
271
|
+
* @type {string}
|
|
272
|
+
* @memberof Invoice
|
|
273
|
+
*/
|
|
274
|
+
'updatedBy'?: string;
|
|
275
|
+
}
|
|
@@ -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,36 @@
|
|
|
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 signed link to a file a service produced: one of a job\'s files, or a file it offers without a job.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface JobDownload
|
|
16
|
+
*/
|
|
17
|
+
export interface JobDownload {
|
|
18
|
+
/**
|
|
19
|
+
* When the link stops working.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof JobDownload
|
|
22
|
+
*/
|
|
23
|
+
'expiresAt'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The name the file is downloaded with.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof JobDownload
|
|
28
|
+
*/
|
|
29
|
+
'filename'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The signed link, valid for 5 minutes.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof JobDownload
|
|
34
|
+
*/
|
|
35
|
+
'url'?: string;
|
|
36
|
+
}
|
|
@@ -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,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
|
+
* Why a job failed.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface JobError
|
|
16
|
+
*/
|
|
17
|
+
export interface JobError {
|
|
18
|
+
/**
|
|
19
|
+
* The error code, such as `EXPORT_TOO_LARGE`.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof JobError
|
|
22
|
+
*/
|
|
23
|
+
'code'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* A text that describes the failure.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof JobError
|
|
28
|
+
*/
|
|
29
|
+
'message'?: string;
|
|
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,36 @@
|
|
|
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
|
+
* How far a job got, counted in rows.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface JobProgress
|
|
16
|
+
*/
|
|
17
|
+
export interface JobProgress {
|
|
18
|
+
/**
|
|
19
|
+
* How many of the processed rows failed.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof JobProgress
|
|
22
|
+
*/
|
|
23
|
+
'failed'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* How many rows it has processed so far.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof JobProgress
|
|
28
|
+
*/
|
|
29
|
+
'processed'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* How many rows the job has to process. 0 means unknown.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof JobProgress
|
|
34
|
+
*/
|
|
35
|
+
'total'?: string;
|
|
36
|
+
}
|
|
@@ -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,134 @@
|
|
|
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 { JobError } from './job-error';
|
|
13
|
+
import { JobProgress } from './job-progress';
|
|
14
|
+
/**
|
|
15
|
+
* One background job, as its creator reads it.
|
|
16
|
+
* @export
|
|
17
|
+
* @interface Job
|
|
18
|
+
*/
|
|
19
|
+
export interface Job {
|
|
20
|
+
/**
|
|
21
|
+
* How many times the job was started.
|
|
22
|
+
* @type {number}
|
|
23
|
+
* @memberof Job
|
|
24
|
+
*/
|
|
25
|
+
'attempts'?: number;
|
|
26
|
+
/**
|
|
27
|
+
* True once `CancelJob` was called while the job was queued or running. A running job stops at its next page or row and keeps what it already wrote; a queued job becomes `CANCELLED` at once.
|
|
28
|
+
* @type {boolean}
|
|
29
|
+
* @memberof Job
|
|
30
|
+
*/
|
|
31
|
+
'cancelRequested'?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Unique identifier for the object.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof Job
|
|
36
|
+
*/
|
|
37
|
+
'code'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof Job
|
|
42
|
+
*/
|
|
43
|
+
'createdAt'?: string;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof Job
|
|
48
|
+
*/
|
|
49
|
+
'createdBy'?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The job\'s ERN (EIS Resource Name).
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Job
|
|
54
|
+
*/
|
|
55
|
+
'ern'?: string;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {JobError}
|
|
59
|
+
* @memberof Job
|
|
60
|
+
*/
|
|
61
|
+
'error'?: JobError;
|
|
62
|
+
/**
|
|
63
|
+
* When the job\'s files are deleted: by default 24 hours after it finished for an export, 7 days for any other kind. Unset on a job cancelled before it started.
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof Job
|
|
66
|
+
*/
|
|
67
|
+
'expiresAt'?: string;
|
|
68
|
+
/**
|
|
69
|
+
* When the job finished.
|
|
70
|
+
* @type {string}
|
|
71
|
+
* @memberof Job
|
|
72
|
+
*/
|
|
73
|
+
'finishedAt'?: string;
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @type {string}
|
|
77
|
+
* @memberof Job
|
|
78
|
+
*/
|
|
79
|
+
'id'?: string;
|
|
80
|
+
/**
|
|
81
|
+
* What the job does, such as `export.list`: one of the kinds its service names at its `JobService`.
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof Job
|
|
84
|
+
*/
|
|
85
|
+
'kind'?: string;
|
|
86
|
+
/**
|
|
87
|
+
* What the client shows for the job, sent with the create request; a service may set a default when none is sent.
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof Job
|
|
90
|
+
*/
|
|
91
|
+
'label'?: string;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {JobProgress}
|
|
95
|
+
* @memberof Job
|
|
96
|
+
*/
|
|
97
|
+
'progress'?: JobProgress;
|
|
98
|
+
/**
|
|
99
|
+
* The create request, with its defaults filled in.
|
|
100
|
+
* @type {object}
|
|
101
|
+
* @memberof Job
|
|
102
|
+
*/
|
|
103
|
+
'request'?: object;
|
|
104
|
+
/**
|
|
105
|
+
* What the job produced: the service\'s own JSON, read by `kind`. It holds the JSON form of the kind\'s result message, which the service names at its `JobService`; an export\'s is `ExportResult`.
|
|
106
|
+
* @type {object}
|
|
107
|
+
* @memberof Job
|
|
108
|
+
*/
|
|
109
|
+
'result'?: object;
|
|
110
|
+
/**
|
|
111
|
+
* When the job started running.
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof Job
|
|
114
|
+
*/
|
|
115
|
+
'startedAt'?: string;
|
|
116
|
+
/**
|
|
117
|
+
* The job\'s status: `QUEUED`, `RUNNING`, `SUCCEEDED`, `FAILED`, `CANCELLED` or `EXPIRED`. A job never leaves a final status except to `EXPIRED`, which means its files are gone; the job itself, with its request and its progress, remains as the audit record.
|
|
118
|
+
* @type {string}
|
|
119
|
+
* @memberof Job
|
|
120
|
+
*/
|
|
121
|
+
'status'?: string;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @type {string}
|
|
125
|
+
* @memberof Job
|
|
126
|
+
*/
|
|
127
|
+
'updatedAt'?: string;
|
|
128
|
+
/**
|
|
129
|
+
*
|
|
130
|
+
* @type {string}
|
|
131
|
+
* @memberof Job
|
|
132
|
+
*/
|
|
133
|
+
'updatedBy'?: string;
|
|
134
|
+
}
|
|
@@ -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,37 @@
|
|
|
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 { BillRun } from './bill-run';
|
|
13
|
+
/**
|
|
14
|
+
* The response of `ListBillRuns`: one page of bill runs.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListBillRunsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ListBillRunsResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The runs of this page.
|
|
21
|
+
* @type {Array<BillRun>}
|
|
22
|
+
* @memberof ListBillRunsResponse
|
|
23
|
+
*/
|
|
24
|
+
'items'?: Array<BillRun>;
|
|
25
|
+
/**
|
|
26
|
+
* The page size this page was read with.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ListBillRunsResponse
|
|
29
|
+
*/
|
|
30
|
+
'itemsPerPage'?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The token of the next page. Empty on the last page.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ListBillRunsResponse
|
|
35
|
+
*/
|
|
36
|
+
'nextPageToken'?: string;
|
|
37
|
+
}
|
|
@@ -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,37 @@
|
|
|
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 { Invoice } from './invoice';
|
|
13
|
+
/**
|
|
14
|
+
* The response of `ListInvoices`: one page of invoices.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListInvoicesResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ListInvoicesResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The invoices of this page.
|
|
21
|
+
* @type {Array<Invoice>}
|
|
22
|
+
* @memberof ListInvoicesResponse
|
|
23
|
+
*/
|
|
24
|
+
'items'?: Array<Invoice>;
|
|
25
|
+
/**
|
|
26
|
+
* The page size this page was read with.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof ListInvoicesResponse
|
|
29
|
+
*/
|
|
30
|
+
'itemsPerPage'?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The token of the next page. Empty on the last page.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ListInvoicesResponse
|
|
35
|
+
*/
|
|
36
|
+
'nextPageToken'?: string;
|
|
37
|
+
}
|