CreateRequest class final
Parameters for creating a purchase intent.
Carries product, productId, price, and priceId, among other supported fields.
Constructors
- CreateRequest({CreateRequestProduct? product, String? productId, CreateRequestPrice? price, String? priceId, CreateRequestUsage? usage, DateTime? expiresAt, Presentation? presentation, required CreateRequestQuantity quantity})
-
const
-
CreateRequest.fromJson(Map<
String, Object?> json) -
factory
Properties
- expiresAt → DateTime?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- presentation → Presentation?
-
final
- price → CreateRequestPrice?
-
final
- priceId → String?
-
final
- product → CreateRequestProduct?
-
final
- productId → String?
-
final
- quantity → CreateRequestQuantity
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- usage → CreateRequestUsage?
-
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