Remittance class

Constructors

Remittance({int? amountCents, int? createdAt, String? id, String? method, String? reference, String? txn})
Returns a new Remittance instance.

Properties

amountCents ↔ int?
AmountCents is the amount disbursed, in cents. It was reserved against pending commission atomically when recorded, so it never exceeds what was owed.
getter/setter pair
createdAt ↔ int?
CreatedAt is when the payout was recorded, Unix seconds UTC — when the balance moved, not necessarily when the cash landed.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the payout row's server-minted handle, "apo_"-prefixed.
getter/setter pair
method ↔ String?
Method is how it was settled. "credits" issued a commerce grant into the affiliate org's own wallet; any other value (wire, paypal, check, …) is a RECORD of cash a human moved out of band.
getter/setter pair
reference ↔ String?
Reference is the operator's settlement note — a bank id, a ledger ref. Free text, absent when none was given.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
txn ↔ String?
Txn is the commerce ledger transaction id, set ONLY where a "credits" payout actually issued the grant. Absent for cash methods, which write no ledger row.
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) → Remittance?
Returns a new Remittance instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<Remittance>
mapFromJson(dynamic json) → Map<String, Remittance>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<Remittance>>

Constants

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