CrossmintCheckoutNewOrder class final

Create a new order inline with line items, recipient, and locale.

The raw lineItems constructor remains available as the forward-compatible escape hatch. Prefer CrossmintCheckoutNewOrder.typed when the current SDK models the line-item shape you need.

Inheritance

Constructors

CrossmintCheckoutNewOrder({required List<Map<String, Object?>> lineItems, CrossmintCheckoutRecipient? recipient, String? locale, Map<String, Object?>? metadata})
const
CrossmintCheckoutNewOrder.typed({required List<CrossmintCheckoutLineItem> lineItems, CrossmintCheckoutRecipient? recipient, String? locale, Map<String, Object?>? metadata})

Properties

hashCode → int
The hash code for this object.
no setterinherited
lineItems → List<Map<String, Object?>>
Line items in the order, each represented as a raw JSON map. Prefer the CrossmintCheckoutNewOrder.typed constructor and pass typed CrossmintCheckoutLineItem values; use the raw map shape only when a new API field is not yet modeled by the SDK.
final
locale → String?
Optional BCP 47 locale tag (for example en-US, es, pt-BR) used to localize the hosted checkout UI. Defaults to the buyer's browser locale when null.
final
metadata → Map<String, Object?>?
Optional opaque metadata attached to the order. Forwarded verbatim to the Crossmint orders API and returned on order webhooks and status reads.
final
recipient → CrossmintCheckoutRecipient?
Optional recipient for the order. When omitted, the hosted checkout collects recipient details from the buyer.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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