# Cloud Commerce Consumer Procurement V1 API - Class Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest (v1.8.0)

1.8.0 (latest) 1.7.0 1.6.1 1.5.0 1.4.1 1.3.1 1.2.0 1.1.0 1.0.2 0.4.0 0.3.2 0.2.0 0.1.0 Reference documentation and code samples for the Cloud Commerce Consumer Procurement V1 API class Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest.

Request message for
[ConsumerProcurementService.CancelOrder](https://docs.cloud.google.com/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)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #cancellation_policy

    def cancellation_policy() -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest::CancellationPolicy

**Returns**

- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest::CancellationPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest-CancellationPolicy)) --- Optional. Cancellation policy of this request.

### #cancellation_policy=

    def cancellation_policy=(value) -> ::Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest::CancellationPolicy

**Parameter**

- **value** ([::Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest::CancellationPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest-CancellationPolicy)) --- Optional. Cancellation policy of this request.
**Returns**

- ([::Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest::CancellationPolicy](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/latest/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest-CancellationPolicy)) --- Optional. Cancellation policy of this request.

### #etag

    def etag() -> ::String

**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.

### #etag=

    def etag=(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

    def name() -> ::String

**Returns**

- (::String) --- Required. The resource name of the order.

### #name=

    def name=(value) -> ::String

**Parameter**

- **value** (::String) --- Required. The resource name of the order.
**Returns**

- (::String) --- Required. The resource name of the order.