Package google.registry.pricing
Class PricingEngineProxy
java.lang.Object
google.registry.pricing.PricingEngineProxy
A global proxy providing static methods for getting premium prices that dispatches requests
correctly to the relevant
PremiumPricingEngine
implementation per TLD.-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.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.getPricesForDomainName
(String domainName, org.joda.time.DateTime priceTime) Returns the fullPremiumPricingEngine.DomainPrices
details for the given domain name by dispatching to the appropriatePremiumPricingEngine
based on what is configured for the TLD that the domain is under.static boolean
isDomainPremium
(String domainName, org.joda.time.DateTime priceTime) Returns true if the specified domain name is premium.
-
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
Returns true if the specified domain name is premium. -
getPricesForDomainName
public static PremiumPricingEngine.DomainPrices getPricesForDomainName(String domainName, org.joda.time.DateTime priceTime) Returns the fullPremiumPricingEngine.DomainPrices
details for the given domain name by dispatching to the appropriatePremiumPricingEngine
based on what is configured for the TLD that the domain is under.
-