Class PricingEngineProxy

java.lang.Object
google.registry.pricing.PricingEngineProxy

public final class PricingEngineProxy extends Object
A global proxy providing static methods for getting premium prices that dispatches requests correctly to the relevant PremiumPricingEngine implementation per TLD.
  • Method Details

    • getDomainCreateCost

      public static org.joda.money.Money getDomainCreateCost(String domainName, org.joda.time.DateTime priceTime, int years)
      Returns the billing cost for registering the specified domain name for this many years.
    • getDomainRenewCost

      public static org.joda.money.Money getDomainRenewCost(String domainName, org.joda.time.DateTime priceTime, int years)
      Returns the billing cost for renewing the specified domain name for this many years.
    • isDomainPremium

      public static boolean isDomainPremium(String domainName, org.joda.time.DateTime priceTime)
      Returns true if the specified domain name is premium.
    • getPricesForDomainName

      public static PremiumPricingEngine.DomainPrices getPricesForDomainName(String domainName, org.joda.time.DateTime priceTime)
      Returns the full PremiumPricingEngine.DomainPrices details for the given domain name by dispatching to the appropriate PremiumPricingEngine based on what is configured for the TLD that the domain is under.