Charged class

Constructors

Charged({int? balanceCents, String? processorRef, String? status, bool? test, String? transactionId})
Returns a new Charged instance.

Properties

balanceCents ↔ int?
BalanceCents is the subject's balance AFTER the charge settled, in cents, so a caller does not have to re-read to show the new number.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
processorRef ↔ String?
ProcessorRef is the payment processor's own reference. It is the only field that proves money moved at the GATEWAY rather than merely in our ledger, which is why it is answered and not only logged. Absent where the processor returned none.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is how the charge ended. Read it rather than inferring success from the HTTP status: the call succeeded whenever this field is present, and what the PROCESSOR did is what this says.
getter/setter pair
test ↔ bool?
Test states which bucket was credited — sandbox money or real money — so no reader has to guess whether a receipt is real. Sandbox and live funds are physically separate ledgers, and a reader that conflates them restates the company's revenue.
getter/setter pair
transactionId ↔ String?
TransactionID is the ledger entry this charge created. It is the handle a later read or a refund names, and it is minted by the ledger rather than by the caller.
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) → Charged?
Returns a new Charged instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Charged>
mapFromJson(dynamic json) → Map<String, Charged>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Charged>>

Constants

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