Charge class

Constructors

Charge({int? amountCents, String? asOf, String? code, String? label, bool? passThrough, String? recurring, String? source_, bool? stale})
Returns a new Charge instance.

Properties

amountCents ↔ int?
AmountCents is what this line costs.
getter/setter pair
asOf ↔ String?
AsOf is when a pass-through amount was last checked against its source.
getter/setter pair
code ↔ String?
Code names the line so a caller can branch on it without reading prose.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
label ↔ String?
Label is what the payer sees on the invoice.
getter/setter pair
passThrough ↔ bool?
PassThrough marks money we collect and remit rather than keep — the state's fee is not our revenue, and a quote that hides that is a quote that reads as a bigger margin than it is.
getter/setter pair
recurring ↔ String?
Recurring marks a line that repeats. An agent of record is billed every year for as long as the entity stands, and a payer agreeing to a one-time total is not agreeing to that.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
source_ ↔ String?
Source names who publishes this amount, for a line we merely pass through. Empty for a price of ours, which needs no external authority.
getter/setter pair
stale ↔ bool?
Stale reports that AsOf is older than the review window — the figure may have moved and nobody has looked. It does not block; it tells.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromJson(dynamic value) → Charge?
Returns a new Charge instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Charge>
mapFromJson(dynamic json) → Map<String, Charge>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Charge>>

Constants

requiredKeys → const Set<String>
The list of required keys that must be present in a JSON.