Reference documentation and code samples for the Cloud Commerce Consumer Procurement V1 API module Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest::CancellationPolicy.
Indicates the cancellation policy the customer uses to cancel the order.
Constants
CANCELLATION_POLICY_UNSPECIFIED
value: 0 If unspecified, cancellation will try to cancel the order, if order
cannot be immediately cancelled, auto renewal will be turned off.
However, caller should avoid using the value as it will yield a
non-deterministic result. This is still supported mainly to maintain
existing integrated usages and ensure backwards compatibility.
CANCELLATION_POLICY_CANCEL_IMMEDIATELY
value: 1 Request will cancel the whole order immediately, if order cannot be
immediately cancelled, the request will fail.
CANCELLATION_POLICY_CANCEL_AT_TERM_END
value: 2 Request will cancel the auto renewal, if order is not subscription based,
the request will fail.
[[["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 - Module Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest::CancellationPolicy (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-CancellationPolicy)\n- [1.4.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.4.0/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest-CancellationPolicy)\n- [1.3.1](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.3.1/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest-CancellationPolicy)\n- [1.2.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.2.0/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest-CancellationPolicy)\n- [1.1.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.1.0/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest-CancellationPolicy)\n- [1.0.2](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/1.0.2/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest-CancellationPolicy)\n- [0.4.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.4.0/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest-CancellationPolicy)\n- [0.3.2](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.3.2/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest-CancellationPolicy)\n- [0.2.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.2.0/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest-CancellationPolicy)\n- [0.1.0](/ruby/docs/reference/google-cloud-commerce-consumer-procurement-v1/0.1.0/Google-Cloud-Commerce-Consumer-Procurement-V1-CancelOrderRequest-CancellationPolicy) \nReference documentation and code samples for the Cloud Commerce Consumer Procurement V1 API module Google::Cloud::Commerce::Consumer::Procurement::V1::CancelOrderRequest::CancellationPolicy.\n\nIndicates the cancellation policy the customer uses to cancel the order.\n\nConstants\n---------\n\n### CANCELLATION_POLICY_UNSPECIFIED\n\n**value:** 0 \nIf unspecified, cancellation will try to cancel the order, if order\ncannot be immediately cancelled, auto renewal will be turned off.\nHowever, caller should avoid using the value as it will yield a\nnon-deterministic result. This is still supported mainly to maintain\nexisting integrated usages and ensure backwards compatibility.\n\n### CANCELLATION_POLICY_CANCEL_IMMEDIATELY\n\n**value:** 1 \nRequest will cancel the whole order immediately, if order cannot be\nimmediately cancelled, the request will fail.\n\n### CANCELLATION_POLICY_CANCEL_AT_TERM_END\n\n**value:** 2 \nRequest will cancel the auto renewal, if order is not subscription based,\nthe request will fail."]]