Order class

The Order resource encapsulates comprehensive information about a transaction made on Google Play.

It includes a variety of attributes that provide details about the order itself, the products purchased, and the history of events related to the order. The Orders APIs provide real-time access to your order data within the Google Play ecosystem. You can retrieve detailed information and metadata for both one-time and recurring orders, including transaction details like charges, taxes, and refunds, as well as metadata such as pricing phases for subscriptions. The Orders APIs let you automate tasks related to order management, reducing the need for manual checks via the Play Developer Console. The following are some of the use cases for this API: + Real-time order data retrieval - Get order details and metadata immediately after a purchase using an order ID. + Order update synchronization - Periodically sync order updates to maintain an up-to-date record of order information. Note: + The Orders API calls count towards your Play Developer API quota, which defaults to 200K daily, and may be insufficient to sync extensive order histories. + A maximum of 1000 orders can be retrieved per call. Using larger page sizes is recommended to minimize quota usage. Check your quota in the Cloud Console and request more if required.

Constructors

Order.new({BuyerAddress? buyerAddress, String? createTime, Money? developerRevenueInBuyerCurrency, String? lastEventTime, List<LineItem>? lineItems, OrderDetails? orderDetails, OrderHistory? orderHistory, String? orderId, PointsDetails? pointsDetails, String? purchaseToken, String? state, Money? tax, Money? total})
Order.fromJson(Map json_)

Properties

buyerAddress BuyerAddress?
Address information for the customer, for use in tax computation.
getter/setter pair
createTime String?
The time when the order was created.
getter/setter pair
developerRevenueInBuyerCurrency Money?
Your revenue for this order in the buyer's currency, including deductions of partial refunds, taxes and fees.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
lastEventTime String?
The time of the last event that occurred on the order.
getter/setter pair
lineItems List<LineItem>?
The individual line items making up this order.
getter/setter pair
orderDetails OrderDetails?
Detailed information about the order at creation time.
getter/setter pair
orderHistory OrderHistory?
Details about events which modified the order.
getter/setter pair
orderId String?
The order ID.
getter/setter pair
pointsDetails PointsDetails?
Play points applied to the order, including offer information, discount rate and point values.
getter/setter pair
purchaseToken String?
The token provided to the user's device when the subscription or item was purchased.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
The state of the order. Possible string values are:
getter/setter pair
tax Money?
The total tax paid as a part of this order.
getter/setter pair
total Money?
The final amount paid by the customer, taking into account discounts and taxes.
getter/setter pair

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.
inherited

Operators

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