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

public static enum BillingBase.RenewalPriceBehavior extends Enum<BillingBase.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 Details

    • DEFAULT

      public static final BillingBase.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 BillingBase.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 BillingBase.RenewalPriceBehavior SPECIFIED
      This indicates that the renewalPrice in BillingRecurrence 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

      public static BillingBase.RenewalPriceBehavior[] 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

      public static BillingBase.RenewalPriceBehavior valueOf(String name)
      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 name
      NullPointerException - if the argument is null