Invoice.
One invoice: the lines by kind of usage from the metered rows, the fee, the amount recomputed from the record, the provider's id and the state
Figure 1Invoicespecified
- kind
- fact
- scope
- tenant
- key
- the tenant and the period
- store
- postgres
- family
- operations
Fields#
| field | type | required | note |
|---|---|---|---|
period | Window | yes | |
lines | [json] | yes | kind, quantity, price, amount |
fee | money | yes | |
amount | money | yes | recomputed from the rows |
currency | text | yes | |
provider_invoice_id | text | no | |
state | one of draft | issued | paid | failed | void | yes |
Routes that use it#
No route takes or returns Invoice directly. The record holds it, and the objects that point at it reach it.