# Cloud Commerce Consumer Procurement V1 API - Class Google::Cloud::Commerce::Consumer::Procurement::V1::Order (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.1 1.5.0 1.4.1 1.3.1 1.2.0 1.1.0 1.0.2 0.4.0 0.3.2 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Commerce Consumer Procurement V1 API class Google::Cloud::Commerce::Consumer::Procurement::V1::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.

<br />

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.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cancelled_line_items

    def cancelled_line_items() -> ::Array<::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItem>

**Returns**

- (::Array\<[::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItem](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItem)\>) --- Output only. Line items that were cancelled.

### #create_time

    def create_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The creation timestamp.

### #display_name

    def display_name() -> ::String

**Returns**

- (::String) --- Required. The user-specified name of the order.

### #display_name=

    def display_name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The user-specified name of the order.
**Returns**

- (::String) --- Required. The user-specified name of the order.

### #etag

    def etag() -> ::String

**Returns**

- (::String) --- The weak etag of the order.

### #etag=

    def etag=(value) -> ::String

**Parameter**

- **value** (::String) --- The weak etag of the order.
**Returns**

- (::String) --- The weak etag of the order.

### #line_items

    def line_items() -> ::Array<::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItem>

**Returns**

- (::Array\<[::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItem](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItem)\>) --- Output only. The items being purchased.

### #name

    def name() -> ::String

**Returns**

- (::String) --- Output only. The resource name of the order. Has the form `billingAccounts/{billing_account}/orders/{order}`.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Protobuf-Timestamp)) --- Output only. The last update timestamp.