PaymentOut class

Constructors

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

Properties

balanceCents ↔ int?
BalanceCents is the org's balance AFTER this payment, read back from the same key just credited so it matches what the balance endpoint reports.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the ledger transaction id for the credit. It is what getPayment reads back, and the customer-visible receipt for the money.
getter/setter pair
processorRef ↔ String?
ProcessorRef is the payment processor's own reference for the charge (Square's payment id). It is the field that proves money actually moved at the gateway rather than only in our ledger — the thing to quote when reconciling against a processor dashboard.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is "ok" on a settled charge. A charge that did not settle is an error with the processor's reason, never a status field to inspect.
getter/setter pair
test ↔ bool?
Test reports which bucket this credited: true is a SANDBOX charge crediting the test balance, false is live money. It is always stated so a receipt can never be mistaken for the other kind.
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) → PaymentOut?
Returns a new PaymentOut instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<PaymentOut>
mapFromJson(dynamic json) → Map<String, PaymentOut>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<PaymentOut>>

Constants

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