Collected class

Constructors

Collected({int? balanceUsedCents, int? cardChargedCents, int? creditUsedCents, Invoice? invoice, bool? paid, String? processorRef, String? reason})
Returns a new Collected instance.

Properties

balanceUsedCents ↔ int?
BalanceUsedCents is how much was covered by prepaid balance.
getter/setter pair
cardChargedCents ↔ int?
CardChargedCents is how much was charged to the card on file.
getter/setter pair
creditUsedCents ↔ int?
CreditUsedCents is how much was covered by credit grants.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
invoice ↔ Invoice?
Invoice is the invoice AFTER the attempt — its status is the authority on what happened, not this struct's other fields.
getter/setter pair
Paid reports whether the invoice is now settled in full. A false here with no error is a DECLINE: the invoice stays open and may be collected again.
getter/setter pair
processorRef ↔ String?
ProcessorRef is the processor's reference for any card charge — the field that proves money moved at the gateway rather than only in our ledger.
getter/setter pair
reason ↔ String?
Reason explains a decline or partial collection. Empty on success.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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

Constants

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