OrderRequest class
An order request object.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
-
OrderRequest({required OrderRequestIntent intent, Payer? payer, required List<
PurchaseUnitRequest> purchaseUnits, ApplicationContext? applicationContext}) -
const
-
OrderRequest.fromJson(Map<
String, dynamic> json) -
factory
Properties
- applicationContext → ApplicationContext?
-
Customize the payer experience during the approval process for the payment
with PayPal.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- intent → OrderRequestIntent
-
The intent to either capture payment immediately or authorize a payment
for an order after order creation.
final
- payer → Payer?
-
The customer who approves and pays for the order. The customer is also known
as the payer.
final
-
purchaseUnits
→ List<
PurchaseUnitRequest> -
An array of purchase units. Each purchase unit establishes a contract
between a payer and the payee. Each purchase unit represents either a full
or partial order that the payer intends to purchase from the payee.
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
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited