public sealed class CancelOrderRequest : IMessage<CancelOrderRequest>, IEquatable<CancelOrderRequest>, IDeepCloneable<CancelOrderRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Commerce Consumer Procurement v1 API class CancelOrderRequest.
Request message for
[ConsumerProcurementService.CancelOrder][google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.CancelOrder].
Optional. The weak etag, which can be optionally populated, of the order
that this cancel request is based on. Validation checking will only happen
if the invoker supplies this field.
[[["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."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eCancelOrderRequest\u003c/code\u003e class within the Google Cloud Commerce Consumer Procurement v1 API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eCancelOrderRequest\u003c/code\u003e is a class used to request the cancellation of an order through the \u003ccode\u003eConsumerProcurementService.CancelOrder\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCancelOrderRequest\u003c/code\u003e class includes properties like \u003ccode\u003eCancellationPolicy\u003c/code\u003e, \u003ccode\u003eEtag\u003c/code\u003e, and \u003ccode\u003eName\u003c/code\u003e for specifying details of the cancellation request.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes information about the class's inheritance, implemented interfaces, constructors, and available versions, with the latest version being 1.4.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eCancelOrderRequest\u003c/code\u003e class can be found in the \u003ccode\u003eGoogle.Cloud.Commerce.Consumer.Procurement.V1\u003c/code\u003e namespace, with the documentation available for versions from 1.0.0 to 1.4.0.\u003c/p\u003e\n"]]],[],null,["# Cloud Commerce Consumer Procurement v1 API - Class CancelOrderRequest (1.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.CancelOrderRequest)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.4.0/Google.Cloud.Commerce.Consumer.Procurement.V1.CancelOrderRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.3.0/Google.Cloud.Commerce.Consumer.Procurement.V1.CancelOrderRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.2.0/Google.Cloud.Commerce.Consumer.Procurement.V1.CancelOrderRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.1.0/Google.Cloud.Commerce.Consumer.Procurement.V1.CancelOrderRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/1.0.0/Google.Cloud.Commerce.Consumer.Procurement.V1.CancelOrderRequest) \n\n public sealed class CancelOrderRequest : IMessage\u003cCancelOrderRequest\u003e, IEquatable\u003cCancelOrderRequest\u003e, IDeepCloneable\u003cCancelOrderRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Commerce Consumer Procurement v1 API class CancelOrderRequest.\n\nRequest message for\n\\[ConsumerProcurementService.CancelOrder\\]\\[google.cloud.commerce.consumer.procurement.v1.ConsumerProcurementService.CancelOrder\\]. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e CancelOrderRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[CancelOrderRequest](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.CancelOrderRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[CancelOrderRequest](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.CancelOrderRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[CancelOrderRequest](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1.CancelOrderRequest), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Commerce.Consumer.Procurement.V1](/dotnet/docs/reference/Google.Cloud.Commerce.Consumer.Procurement.V1/latest/Google.Cloud.Commerce.Consumer.Procurement.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Commerce.Consumer.Procurement.V1.dll\n\nConstructors\n------------\n\n### CancelOrderRequest()\n\n public CancelOrderRequest()\n\n### CancelOrderRequest(CancelOrderRequest)\n\n public CancelOrderRequest(CancelOrderRequest other)\n\nProperties\n----------\n\n### CancellationPolicy\n\n public CancelOrderRequest.Types.CancellationPolicy CancellationPolicy { get; set; }\n\nOptional. Cancellation policy of this request.\n\n### Etag\n\n public string Etag { get; set; }\n\nOptional. The weak etag, which can be optionally populated, of the order\nthat this cancel request is based on. Validation checking will only happen\nif the invoker supplies this field.\n\n### Name\n\n public string Name { get; set; }\n\nRequired. The resource name of the order."]]