PurchaseIntent class final

A customer-facing intent to purchase a product at a configured price and quantity.

Presentation and variant data describe the buy page, while usage records how the intent may be or has been consumed.

Available extensions

Constructors

PurchaseIntent({required bool allowVariants, required DateTime createdAt, DateTime? expiresAt, required String id, DateTime? inactiveAt, Merchant? merchant, Price? price, Presentation? presentation, Product? product, required Quantity quantity, required Status status, DateTime? updatedAt, required Usage usage, VariantSet? variantSet})
const
PurchaseIntent.fromJson(Map<String, Object?> json)
factory

Properties

allowVariants → bool
final
createdAt → DateTime
final
expiresAt → DateTime?
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
inactiveAt → DateTime?
final
isActive → bool

Available on PurchaseIntent, provided by the PurchaseIntentSemantics extension

no setter
isSingleUse → bool

Available on PurchaseIntent, provided by the PurchaseIntentSemantics extension

no setter
merchant → Merchant?
final
presentation → Presentation?
final
price → Price?
final
product → Product?
final
quantity → Quantity
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status → Status
final
updatedAt → DateTime?
final
usage → Usage
final
usedOrderId → String?

Available on PurchaseIntent, provided by the PurchaseIntentSemantics extension

no setter
variantSet → VariantSet?
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited