Reference documentation and code samples for the Cloud Commerce Consumer Procurement V1 API class Google::Cloud::Commerce::Consumer::Procurement::V1::LineItem.
(::Array<::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.
[[["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-08-28 UTC."],[],[],null,["# Cloud Commerce Consumer Procurement V1 API - Class Google::Cloud::Commerce::Consumer::Procurement::V1::LineItem (v1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItem)\n- [1.4.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.4.0/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItem)\n- [1.3.1](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.3.1/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItem)\n- [1.2.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.2.0/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItem)\n- [1.1.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.1.0/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItem)\n- [1.0.2](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.0.2/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItem)\n- [0.4.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.4.0/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItem)\n- [0.3.2](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.3.2/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItem)\n- [0.2.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.2.0/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItem)\n- [0.1.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.1.0/Google-Cloud-Commerce-Consumer-Procurement-V1-LineItem) \nReference documentation and code samples for the Cloud Commerce Consumer Procurement V1 API class Google::Cloud::Commerce::Consumer::Procurement::V1::LineItem.\n\nA single item within an order. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #change_history\n\n def change_history() -\u003e ::Array\u003c::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChange\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChange](./Google-Cloud-Commerce-Consumer-Procurement-V1-LineItemChange)\\\u003e) --- 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.\n\n### #line_item_id\n\n def line_item_id() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Output only. Line item ID.\n\n### #line_item_info\n\n def line_item_info() -\u003e ::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemInfo\n\n**Returns**\n\n- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemInfo](./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.\n\n### #pending_change\n\n def pending_change() -\u003e ::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChange\n\n**Returns**\n\n- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::LineItemChange](./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."]]