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

A change made on a line item.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #change_effective_time

    def change_effective_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. A time at which the change became or will become (in case of pending change) effective.

### #change_id

    def change_id() -> ::String

**Returns**

- (::String) --- Output only. Change ID. All changes made within one order update operation have the same change_id.

### #change_state

    def change_state() -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChangeState

**Returns**

- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChangeState](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItemChangeState)) --- Output only. State of the change.

### #change_state_reason_type

    def change_state_reason_type() -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChangeStateReasonType

**Returns**

- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChangeStateReasonType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItemChangeStateReasonType)) --- Output only. Predefined enum types for why this line item change is in current state. For example, a line item change's state could be `LINE_ITEM_CHANGE_STATE_COMPLETED` because of end-of-term expiration, immediate cancellation initiated by the user, or system-initiated cancellation.

### #change_type

    def change_type() -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChangeType

**Returns**

- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChangeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItemChangeType)) --- Required. Type of the change to make.

### #change_type=

    def change_type=(value) -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChangeType

**Parameter**

- **value** ([::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChangeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItemChangeType)) --- Required. Type of the change to make.
**Returns**

- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChangeType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItemChangeType)) --- Required. Type of the change to make.

### #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 time when change was initiated.

### #new_line_item_info

    def new_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)) --- Line item info after the change.

### #new_line_item_info=

    def new_line_item_info=(value) -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemInfo

**Parameter**

- **value** ([::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)) --- Line item info after the change.
**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)) --- Line item info after the change.

### #old_line_item_info

    def old_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. Line item info before the change.

### #state_reason

    def state_reason() -> ::String

**Returns**

- (::String) --- Output only. Provider-supplied message explaining the LineItemChange's state. Mainly used to communicate progress and ETA for provisioning in the case of `PENDING_APPROVAL`, and to explain why the change request was denied or canceled in the case of `REJECTED` and `CANCELED` states.

### #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 time when change was updated, e.g. approved/rejected by partners or cancelled by the user.