# Cloud Commerce Consumer Procurement V1 API - Class Google::Cloud::Commerce::Consumer::Procurement::V1::LineItem (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::LineItem.

A single item within an order.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #change_history

    def change_history() -> ::Array<::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChange>

**Returns**

- (::Array\<[::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChange](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItemChange)\>) --- Output only. Changes made on the item that are not pending anymore which might be because they already took effect, were reverted by the customer, or were rejected by the partner. No more operations are allowed on these changes.

### #line_item_id

    def line_item_id() -> ::String

**Returns**

- (::String) --- Output only. Line item ID.

### #line_item_info

    def line_item_info() -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemInfo

**Returns**

- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemInfo](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItemInfo)) --- Output only. Current state and information of this item. It tells what, e.g. which offer, is currently effective.

### #pending_change

    def pending_change() -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChange

**Returns**

- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChange](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItemChange)) --- Output only. A change made on the item which is pending and not yet effective. Absence of this field indicates the line item is not undergoing a change.