CheckoutOrder class final
Client-safe Order snapshot attached to Checkout lifecycle events.
Constructors
-
CheckoutOrder({required String id, required CheckoutOrderStatus status, required CheckoutMerchant merchant, required CheckoutMoney amount, required List<
CheckoutLineItem> lineItems, required CheckoutDocuments documents, DateTime? expiresAt}) -
Creates a client-safe Order snapshot.
const
-
CheckoutOrder.fromJson(Map<
Object?, Object?> value) -
Parses and validates an Order snapshot from the native bridge.
factory
Properties
- amount → CheckoutMoney
-
Total amount payable for the Order.
final
- documents → CheckoutDocuments
-
Secure invoice and receipt links available for the Order.
final
- expiresAt → DateTime?
-
Time after which the Order can no longer be paid.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
Public Order identifier.
final
-
lineItems
→ List<
CheckoutLineItem> -
Client-safe summary of the Order contents.
final
- merchant → CheckoutMerchant
-
Merchant identity safe to display to the customer.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → CheckoutOrderStatus
-
Current Order state.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited