Order class Null safety

Order.

Production access (all methods) requires the order manager role. Sandbox access does not.

Constructors

Order({bool? acknowledged, List<OrderOrderAnnotation>? annotations, OrderAddress? billingAddress, OrderCustomer? customer, OrderDeliveryDetails? deliveryDetails, String? id, String? kind, List<OrderLineItem>? lineItems, String? merchantId, String? merchantOrderId, Price? netPriceAmount, Price? netTaxAmount, String? paymentStatus, OrderPickupDetails? pickupDetails, String? placedDate, List<OrderPromotion>? promotions, List<OrderRefund>? refunds, List<OrderShipment>? shipments, Price? shippingCost, Price? shippingCostTax, String? status, String? taxCollector})
Order.fromJson(Map json_)

Properties

acknowledged bool?
Whether the order was acknowledged.
read / write
annotations List<OrderOrderAnnotation>?
List of key-value pairs that are attached to a given order.
read / write
billingAddress OrderAddress?
The billing address.
read / write
customer OrderCustomer?
The details of the customer who placed the order.
read / write
deliveryDetails OrderDeliveryDetails?
Delivery details for shipments of type delivery.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
id String?
The REST ID of the order.
read / write
kind String?
Identifies what kind of resource this is.
read / write
lineItems List<OrderLineItem>?
Line items that are ordered.
read / write
merchantId String?
read / write
merchantOrderId String?
Merchant-provided ID of the order.
read / write
netPriceAmount Price?
The net amount for the order (price part).
read / write
netTaxAmount Price?
The net amount for the order (tax part).
read / write
paymentStatus String?
The status of the payment.
read / write
pickupDetails OrderPickupDetails?
Pickup details for shipments of type pickup.
read / write
placedDate String?
The date when the order was placed, in ISO 8601 format.
read / write
promotions List<OrderPromotion>?
Promotions associated with the order.
read / write
refunds List<OrderRefund>?
Refunds for the order.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
shipments List<OrderShipment>?
Shipments of the order.
read / write
shippingCost Price?
The total cost of shipping for all items.
read / write
shippingCostTax Price?
The tax for the total shipping cost.
read / write
status String?
The status of the order.
read / write
taxCollector String?
The party responsible for collecting and remitting taxes.
read / write

Methods

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

Operators

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