Reference documentation and code samples for the Google Cloud Commerce Consumer Procurement V1 Client 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.
Generated from protobuf messagegoogle.cloud.commerce.consumer.procurement.v1.Order
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Commerce Consumer Procurement V1 Client - Class Order (1.2.2)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.2 (latest)](/php/docs/reference/cloud-commerce-consumer-procurement/latest/V1.Order)\n- [1.2.1](/php/docs/reference/cloud-commerce-consumer-procurement/1.2.1/V1.Order)\n- [1.1.3](/php/docs/reference/cloud-commerce-consumer-procurement/1.1.3/V1.Order)\n- [1.0.0](/php/docs/reference/cloud-commerce-consumer-procurement/1.0.0/V1.Order)\n- [0.2.5](/php/docs/reference/cloud-commerce-consumer-procurement/0.2.5/V1.Order)\n- [0.1.1](/php/docs/reference/cloud-commerce-consumer-procurement/0.1.1/V1.Order) \nReference documentation and code samples for the Google Cloud Commerce Consumer Procurement V1 Client class Order.\n\nRepresents a purchase made by a customer on Cloud Marketplace.\n\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.\nAn Order can be made against one Product with multiple add-ons (optional) or\none Quote which might reference multiple products.\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\nGenerated from protobuf message `google.cloud.commerce.consumer.procurement.v1.Order`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Commerce \\\\ Consumer \\\\ Procurement \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nOutput only. The resource name of the order.\n\nHas the form\n`billingAccounts/{billing_account}/orders/{order}`.\n\n### setName\n\nOutput only. The resource name of the order.\n\nHas the form\n`billingAccounts/{billing_account}/orders/{order}`.\n\n### getDisplayName\n\nRequired. The user-specified name of the order.\n\n### setDisplayName\n\nRequired. The user-specified name of the order.\n\n### getLineItems\n\nOutput only. The items being purchased.\n\n### setLineItems\n\nOutput only. The items being purchased.\n\n### getCancelledLineItems\n\nOutput only. Line items that were cancelled.\n\n### setCancelledLineItems\n\nOutput only. Line items that were cancelled.\n\n### getCreateTime\n\nOutput only. The creation timestamp.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The creation timestamp.\n\n### getUpdateTime\n\nOutput only. The last update timestamp.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. The last update timestamp.\n\n### getEtag\n\nThe weak etag of the order.\n\n### setEtag\n\nThe weak etag of the order."]]