PaymentRecord class

Constructors

PaymentRecord({int? amountCents, String? createdAt, String? currency, String? id, String? notes, String? status, String? subject, bool? test})
Returns a new PaymentRecord instance.

Properties

amountCents ↔ int?
AmountCents is the credited amount in whole cents.
getter/setter pair
createdAt ↔ String?
CreatedAt is when the credit was written, RFC3339.
getter/setter pair
currency ↔ String?
Currency is the ISO 4217 code.
getter/setter pair
hashCode → int
The hash code for this object.
no setteroverride
id ↔ String?
ID is the ledger transaction id.
getter/setter pair
notes ↔ String?
Notes is the ledger memo, carrying the processor and its reference.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
Status is the payment's state. This ledger writes a deposit only AFTER the processor settled, so a payment that can be read is one that succeeded.
getter/setter pair
subject ↔ String?
Subject is the billing key this payment credited.
getter/setter pair
test ↔ bool?
Test reports whether this was a sandbox charge (test balance) or live money.
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) → PaymentRecord?
Returns a new PaymentRecord instance and imports its values from value if it's a Map, null otherwise.
listFromJson(dynamic json, {bool growable = false}) → List<PaymentRecord>
mapFromJson(dynamic json) → Map<String, PaymentRecord>
mapListFromJson(dynamic json, {bool growable = false}) → Map<String, List<PaymentRecord>>

Constants

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