Invoice class
Constructors
-
Invoice({int? amountDueCents, int? amountPaidCents, String? createdAt, String? currency, String? customerEmail, String? id, List<InvoiceLine> lines = const [], String? number, String? paymentRef, String? status, int? subtotalCents, String? userId})
-
Returns a new Invoice instance.
Properties
-
amountDueCents
↔ int?
-
AmountDueCents is what remains collectible.
getter/setter pair
-
amountPaidCents
↔ int?
-
AmountPaidCents is what has been collected so far.
getter/setter pair
-
createdAt
↔ String?
-
CreatedAt is when the draft was raised, RFC3339.
getter/setter pair
-
currency
↔ String?
-
Currency is the ISO 4217 code.
getter/setter pair
-
customerEmail
↔ String?
-
CustomerEmail is where it is sent.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setteroverride
-
id
↔ String?
-
ID is the invoice id — what the issue, collect and void ops address.
getter/setter pair
-
lines
↔ List<InvoiceLine>
-
Lines are the charges on the invoice.
getter/setter pair
-
number
↔ String?
-
Number is the human-facing invoice number, e.g. "INV-0042". A draft has none; issuing assigns it.
getter/setter pair
-
paymentRef
↔ String?
-
PaymentRef is the processor reference for the collection, once paid.
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
status
↔ String?
-
Status is draft, open, paid, void or uncollectible. A draft is not collectible; issuing moves it to open.
getter/setter pair
-
subtotalCents
↔ int?
-
SubtotalCents is the sum of the lines.
getter/setter pair
-
userId
↔ String?
-
UserID is the customer billed.
getter/setter pair