OrderPayment class
Constructors
- OrderPayment({OrderPaymentStatusEnum? status, OrderPaymentMethodEnum? method, Money? amount, OrderPaymentWallet? wallet, PaymentFailure? failure})
- Returns a new OrderPayment instance.
Properties
- amount ↔ Money?
-
The amount charged, in the order's currency.
getter/setter pair
- failure ↔ PaymentFailure?
-
Why the payment failed;
nullunless it failed.getter/setter pair - hashCode → int
-
The hash code for this object.
no setteroverride
- method ↔ OrderPaymentMethodEnum?
-
How the payment was made;
balancefor wallet payments.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ OrderPaymentStatusEnum?
-
Payment status.
getter/setter pair
- wallet ↔ OrderPaymentWallet?
-
The wallet charged by a balance payment, when known; otherwise
null.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) → OrderPayment? -
Returns a new OrderPayment instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< OrderPayment> -
mapFromJson(
dynamic json) → Map< String, OrderPayment> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< OrderPayment> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.