Enum CancelOrderRequest.CancellationPolicy (0.53.0)

public enum CancelOrderRequest.CancellationPolicy extends Enum<CancelOrderRequest.CancellationPolicy> implements ProtocolMessageEnum

Indicates the cancellation policy the customer uses to cancel the order.

Protobuf enum google.cloud.commerce.consumer.procurement.v1.CancelOrderRequest.CancellationPolicy

Implements

ProtocolMessageEnum

Static Fields

Name Description
CANCELLATION_POLICY_CANCEL_AT_TERM_END

Request will cancel the auto renewal, if order is not subscription based, the request will fail.

CANCELLATION_POLICY_CANCEL_AT_TERM_END = 2;

CANCELLATION_POLICY_CANCEL_AT_TERM_END_VALUE

Request will cancel the auto renewal, if order is not subscription based, the request will fail.

CANCELLATION_POLICY_CANCEL_AT_TERM_END = 2;

CANCELLATION_POLICY_CANCEL_IMMEDIATELY

Request will cancel the whole order immediately, if order cannot be immediately cancelled, the request will fail.

CANCELLATION_POLICY_CANCEL_IMMEDIATELY = 1;

CANCELLATION_POLICY_CANCEL_IMMEDIATELY_VALUE

Request will cancel the whole order immediately, if order cannot be immediately cancelled, the request will fail.

CANCELLATION_POLICY_CANCEL_IMMEDIATELY = 1;

CANCELLATION_POLICY_UNSPECIFIED

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_UNSPECIFIED = 0;

CANCELLATION_POLICY_UNSPECIFIED_VALUE

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_UNSPECIFIED = 0;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()