Package google.registry.flows.domain
Class DomainPricingLogic
java.lang.Object
google.registry.flows.domain.DomainPricingLogic
Provides pricing for create, renew, etc, operations, with call-outs that can be customized by
providing a
DomainPricingCustomLogic
implementation that operates on cross-TLD or per-TLD
logic.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
An allocation token was provided that is invalid for premium domains. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetRenewPrice
(Tld tld, String domainName, org.joda.time.DateTime dateTime, int years, BillingRecurrence billingRecurrence, Optional<AllocationToken> allocationToken) Returns a new renewal cost for the pricer.
-
Constructor Details
-
DomainPricingLogic
-
-
Method Details
-
getRenewPrice
public FeesAndCredits getRenewPrice(Tld tld, String domainName, org.joda.time.DateTime dateTime, int years, @Nullable BillingRecurrence billingRecurrence, Optional<AllocationToken> allocationToken) throws DomainPricingLogic.AllocationTokenInvalidForCurrencyException, DomainPricingLogic.AllocationTokenInvalidForPremiumNameException Returns a new renewal cost for the pricer.
-