Package google.registry.model.billing
Enum Class BillingBase.RenewalPriceBehavior
java.lang.Object
java.lang.Enum<BillingBase.RenewalPriceBehavior>
google.registry.model.billing.BillingBase.RenewalPriceBehavior
- All Implemented Interfaces:
Serializable
,Comparable<BillingBase.RenewalPriceBehavior>
,Constable
- Enclosing class:
BillingBase
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThis indicates the renewal price is the default price.This indicates the domain will be renewed at standard price even if it's a premium domain.This indicates that the renewalPrice inBillingRecurrence
will be used for domain renewal. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static BillingBase.RenewalPriceBehavior[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
This indicates that the renewalPrice inBillingRecurrence
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 Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-