Package google.registry.model.billing
Enum BillingEvent.RenewalPriceBehavior
- java.lang.Object
-
- java.lang.Enum<BillingEvent.RenewalPriceBehavior>
-
- google.registry.model.billing.BillingEvent.RenewalPriceBehavior
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<BillingEvent.RenewalPriceBehavior>
- Enclosing class:
- BillingEvent
public static enum BillingEvent.RenewalPriceBehavior extends java.lang.Enum<BillingEvent.RenewalPriceBehavior>
Sets of renewal price behaviors that can be applied to billing recurrences.When a client renews a domain, they could be charged differently, depending on factors such as the client type and the domain itself.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DEFAULT
This indicates the renewal price is the default price.NONPREMIUM
This indicates the domain will be renewed at standard price even if it's a premium domain.SPECIFIED
This indicates that the renewalPrice inBillingEvent.Recurring
will be used for domain renewal.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BillingEvent.RenewalPriceBehavior
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static BillingEvent.RenewalPriceBehavior[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DEFAULT
public static final BillingEvent.RenewalPriceBehavior DEFAULT
This indicates the renewal price is the default price.By default, if the domain is premium, then premium price will be used. Otherwise, the standard price of the TLD will be used.
-
NONPREMIUM
public static final BillingEvent.RenewalPriceBehavior NONPREMIUM
This indicates the domain will be renewed at standard price even if it's a premium domain.We chose to name this "NONPREMIUM" rather than simply "STANDARD" to avoid confusion between "STANDARD" and "DEFAULT".
This price behavior is used with anchor tenants.
-
SPECIFIED
public static final BillingEvent.RenewalPriceBehavior SPECIFIED
This indicates that the renewalPrice inBillingEvent.Recurring
will be used for domain renewal.The renewalPrice has a non-null value iff the price behavior is set to "SPECIFIED". This behavior is used with internal registrations.
-
-
Method Detail
-
values
public static BillingEvent.RenewalPriceBehavior[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BillingEvent.RenewalPriceBehavior c : BillingEvent.RenewalPriceBehavior.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BillingEvent.RenewalPriceBehavior valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-