UtilityOrder class
Constructors
-
UtilityOrder({String? id, OrderOrigin? origin, UtilityOrderStatusEnum? status, Money? total, OrderPayment? payment, OrderActions? actions, List<UtilityOrderItem> items = const [], List<OrderTimelineEntry> timeline = const [], DateTime? createdAt, DateTime? updatedAt, int? fulfillmentVersion, String? referenceId})
-
Returns a new UtilityOrder instance.
Properties
-
actions
↔ OrderActions?
-
Whether payment retry and fulfillment retry are available now.
getter/setter pair
-
createdAt
↔ DateTime?
-
When the order was created (UTC).
getter/setter pair
-
fulfillmentVersion
↔ int?
-
Increases with every fulfillment change; matches the
order.fulfillment.updated webhook.
getter/setter pair
-
hashCode
→ int
-
The hash code for this object.
no setteroverride
-
id
↔ String?
-
Order id.
getter/setter pair
-
items
↔ List<UtilityOrderItem>
-
The order items, one per unit bought.
getter/setter pair
-
origin
↔ OrderOrigin?
-
Where the order was created.
getter/setter pair
-
payment
↔ OrderPayment?
-
The latest payment attempt;
null when none was made.
getter/setter pair
-
referenceId
↔ String?
-
Your own order reference, when one was sent.
getter/setter pair
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
status
↔ UtilityOrderStatusEnum?
-
Current order status.
getter/setter pair
-
timeline
↔ List<OrderTimelineEntry>
-
Every status the order has had, oldest first.
getter/setter pair
-
total
↔ Money?
-
What the order costs, in the order's currency: the item prices plus completed amendment charges, less completed amendment credits.
getter/setter pair
-
updatedAt
↔ DateTime?
-
When the order last changed (UTC).
getter/setter pair