Reference documentation and code samples for the Cloud Commerce Consumer Procurement V1 API class Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest.
(::String) — 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.
#etag=
defetag=(value)->::String
Parameter
value (::String) — 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.
Returns
(::String) — 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.
#name
defname()->::String
Returns
(::String) — Required. The resource name of the order.
#name=
defname=(value)->::String
Parameter
value (::String) — Required. The resource name of the order.
Returns
(::String) — Required. The resource name of the order.
[[["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::CancelOrderRequest (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-CancelOrderRequest)\n- [1.4.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.4.0/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest)\n- [1.3.1](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.3.1/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.2.0/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.1.0/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest)\n- [1.0.2](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.0.2/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest)\n- [0.4.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.4.0/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest)\n- [0.3.2](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.3.2/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest)\n- [0.2.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.2.0/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest)\n- [0.1.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.1.0/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest) \nReference documentation and code samples for the Cloud Commerce Consumer Procurement V1 API class Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest.\n\nRequest message for\n[ConsumerProcurementService.CancelOrder](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-ConsumerProcurementService-Client#Google__Cloud__Commerce__Consumer__Procurement__V1__ConsumerProcurementService__Client_cancel_order_instance_ \"Google::Cloud::Commerce::Consumer::Procurement::V1::ConsumerProcurementService::Client#cancel_order (method)\"). \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### #cancellation_policy\n\n def cancellation_policy() -\u003e ::Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest::CancellationPolicy\n\n**Returns**\n\n- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest::CancellationPolicy](./Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest-CancellationPolicy)) --- Optional. Cancellation policy of this request.\n\n### #cancellation_policy=\n\n def cancellation_policy=(value) -\u003e ::Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest::CancellationPolicy\n\n**Parameter**\n\n- **value** ([::Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest::CancellationPolicy](./Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest-CancellationPolicy)) --- Optional. Cancellation policy of this request. \n**Returns**\n\n- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest::CancellationPolicy](./Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest-CancellationPolicy)) --- Optional. Cancellation policy of this request.\n\n### #etag\n\n def etag() -\u003e ::String\n\n**Returns**\n\n- (::String) --- 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.\n\n### #etag=\n\n def etag=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- 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. \n**Returns**\n\n- (::String) --- 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.\n\n### #name\n\n def name() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The resource name of the order.\n\n### #name=\n\n def name=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The resource name of the order. \n**Returns**\n\n- (::String) --- Required. The resource name of the order."]]