public sealed class Order : IMessage<Order>, IEquatable<Order>, IDeepCloneable<Order>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Commerce Consumer Procurement v1 API class Order.
Represents a purchase made by a customer on Cloud Marketplace.
Creating an order makes sure that both the Google backend systems
as well as external service provider's systems (if needed) allow use of
purchased products and ensures the appropriate billing events occur.
An Order can be made against one Product with multiple add-ons (optional) or
one Quote which might reference multiple products.
Customers typically choose a price plan for each Product purchased when
they create an order and can change their plan later, if the product allows.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eOrder\u003c/code\u003e class in the Google Cloud Commerce Consumer Procurement v1 API represents a customer's purchase on the Cloud Marketplace, ensuring that both Google and the service provider's systems facilitate the use of purchased products.\u003c/p\u003e\n"],["\u003cp\u003eAn \u003ccode\u003eOrder\u003c/code\u003e can be created for a single Product with optional add-ons or a Quote with potentially multiple products, with customers able to select or change their chosen pricing plans.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOrder\u003c/code\u003e class contains properties such as \u003ccode\u003eLineItems\u003c/code\u003e, \u003ccode\u003eCancelledLineItems\u003c/code\u003e, \u003ccode\u003eCreateTime\u003c/code\u003e, \u003ccode\u003eDisplayName\u003c/code\u003e, \u003ccode\u003eEtag\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eOrderName\u003c/code\u003e, and \u003ccode\u003eUpdateTime\u003c/code\u003e, providing details on the purchased items, timestamps, and resource identifiers.\u003c/p\u003e\n"],["\u003cp\u003eThis API class is the most current with the latest version being 1.4.0, but also has past versions 1.3.0, 1.2.0, 1.1.0, and 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe Order class inherits members from object and implements various interfaces such as IMessage, IEquatable, IDeepCloneable, and IBufferMessage.\u003c/p\u003e\n"]]],[],null,["# Cloud Commerce Consumer Procurement v1 API - Class Order (1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Order)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.4.0/Google.Cloud.Commerce.Consumer.Procurement.V1.Order)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.3.0/Google.Cloud.Commerce.Consumer.Procurement.V1.Order)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.2.0/Google.Cloud.Commerce.Consumer.Procurement.V1.Order)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.1.0/Google.Cloud.Commerce.Consumer.Procurement.V1.Order)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.0.0/Google.Cloud.Commerce.Consumer.Procurement.V1.Order) \n\n public sealed class Order : IMessage\u003cOrder\u003e, IEquatable\u003cOrder\u003e, IDeepCloneable\u003cOrder\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Commerce Consumer Procurement v1 API class Order.\n\nRepresents a purchase made by a customer on Cloud Marketplace.\nCreating an order makes sure that both the Google backend systems\nas well as external service provider's systems (if needed) allow use of\npurchased products and ensures the appropriate billing events occur.\n\nAn Order can be made against one Product with multiple add-ons (optional) or\none Quote which might reference multiple products.\n\nCustomers typically choose a price plan for each Product purchased when\nthey create an order and can change their plan later, if the product allows. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Order \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Order](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Order), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Order](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Order), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Order](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Order), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Commerce.Consumer.Procurement.V1](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Commerce.Consumer.Procurement.V1.dll\n\nConstructors\n------------\n\n### Order()\n\n public Order()\n\n### Order(Order)\n\n public Order(Order other)\n\nProperties\n----------\n\n### CancelledLineItems\n\n public RepeatedField\u003cLineItem\u003e CancelledLineItems { get; }\n\nOutput only. Line items that were cancelled.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. The creation timestamp.\n\n### DisplayName\n\n public string DisplayName { get; set; }\n\nRequired. The user-specified name of the order.\n\n### Etag\n\n public string Etag { get; set; }\n\nThe weak etag of the order.\n\n### LineItems\n\n public RepeatedField\u003cLineItem\u003e LineItems { get; }\n\nOutput only. The items being purchased.\n\n### Name\n\n public string Name { get; set; }\n\nOutput only. The resource name of the order.\nHas the form\n`billingAccounts/{billing_account}/orders/{order}`.\n\n### OrderName\n\n public OrderName OrderName { get; set; }\n\n[OrderName](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.OrderName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.Order#Google_Cloud_Commerce_Consumer_Procurement_V1_Order_Name) resource name property.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The last update timestamp."]]