# Cloud Commerce Consumer Procurement v1 API - Class ModifyOrderRequest.Types.Modification (1.6.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [1.6.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ModifyOrderRequest.Types.Modification)
- [1.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.5.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ModifyOrderRequest.Types.Modification)
- [1.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.4.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ModifyOrderRequest.Types.Modification)
- [1.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.3.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ModifyOrderRequest.Types.Modification)
- [1.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.2.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ModifyOrderRequest.Types.Modification)
- [1.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.1.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ModifyOrderRequest.Types.Modification)
- [1.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.0.0/Google.Cloud.Commerce.Consumer.Procurement.V1.ModifyOrderRequest.Types.Modification)

    public sealed class ModifyOrderRequest.Types.Modification : IMessage<ModifyOrderRequest.Types.Modification>, IEquatable<ModifyOrderRequest.Types.Modification>, IDeepCloneable<ModifyOrderRequest.Types.Modification>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Commerce Consumer Procurement v1 API class ModifyOrderRequest.Types.Modification.

Modifications to make on the order.

## Inheritance

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

## Implements

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

## 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)

## Assembly

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

## Constructors

### Modification()

    public Modification()

### Modification(Modification)

    public Modification(ModifyOrderRequest.Types.Modification other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ModifyOrderRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ModifyOrderRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.ModifyOrderRequest.Types.Modification` |

## Properties

### AutoRenewalBehavior

    public AutoRenewalBehavior AutoRenewalBehavior { get; set; }

Optional. Auto renewal behavior of the subscription for the update.
Applied when change_type is
\[LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE\]. Follows plan default
config when this field is not specified.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.AutoRenewalBehavior` |   |

### ChangeType

    public LineItemChangeType ChangeType { get; set; }

Required. Type of change to make.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.LineItemChangeType` |   |

### LineItemId

    public string LineItemId { get; set; }

Required. ID of the existing line item to make change to.
Required when change type is
\[LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE\] or
\[LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CANCEL\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### NewLineItemInfo

    public LineItemInfo NewLineItemInfo { get; set; }

Optional. The line item to update to.
Required when change_type is
\[LineItemChangeType.LINE_ITEM_CHANGE_TYPE_CREATE\] or
\[LineItemChangeType.LINE_ITEM_CHANGE_TYPE_UPDATE\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.LineItemInfo` |   |