1.6.0 (latest) 1.5.0 1.4.0 1.3.0 1.2.0 1.1.0 1.0.0

    public sealed class LineItem : IMessage<LineItem>, IEquatable<LineItem>, IDeepCloneable<LineItem>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Commerce Consumer Procurement v1 API class LineItem.

A single item within an order.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> LineItem

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[LineItem](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.LineItem.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LineItem](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.LineItem.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[LineItem](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.LineItem.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Commerce.Consumer.Procurement.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.md.txt)

## Assembly

Google.Cloud.Commerce.Consumer.Procurement.V1.dll

## Constructors

### LineItem()

    public LineItem()

### LineItem(LineItem)

    public LineItem(LineItem other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `LineItem` |

## Properties

### ChangeHistory

    public RepeatedField<LineItemChange> ChangeHistory { get; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldLineItemChange` |   |

### LineItemId

    public string LineItemId { get; set; }

Output only. Line item ID.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### LineItemInfo

    public LineItemInfo LineItemInfo { get; set; }

Output only. Current state and information of this item. It tells what,
e.g. which offer, is currently effective.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LineItemInfo` |   |

### PendingChange

    public LineItemChange PendingChange { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LineItemChange` |   |