mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Add additional specific PricingEngineProxy methods
We already had methods to return just the create or just the renew price. I added more to return just the premium flag or just the fee class. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=136833071
This commit is contained in:
parent
fad0aa4ffa
commit
aecca10989
7 changed files with 29 additions and 19 deletions
|
@ -27,7 +27,7 @@ import static google.registry.model.domain.fee.Fee.FEE_EXTENSION_URIS;
|
|||
import static google.registry.model.eppoutput.Result.Code.SUCCESS;
|
||||
import static google.registry.model.index.DomainApplicationIndex.loadActiveApplicationsByDomainName;
|
||||
import static google.registry.model.registry.label.ReservationType.UNRESERVED;
|
||||
import static google.registry.pricing.PricingEngineProxy.getPricesForDomainName;
|
||||
import static google.registry.pricing.PricingEngineProxy.isDomainPremium;
|
||||
import static google.registry.util.CollectionUtils.nullToEmpty;
|
||||
|
||||
import com.google.common.base.Predicate;
|
||||
|
@ -158,7 +158,7 @@ public final class DomainCheckFlow extends LoggedInFlow {
|
|||
}
|
||||
ReservationType reservationType = getReservationType(domainName);
|
||||
if (reservationType == UNRESERVED
|
||||
&& getPricesForDomainName(domainName.toString(), now).isPremium()
|
||||
&& isDomainPremium(domainName.toString(), now)
|
||||
&& registry.getPremiumPriceAckRequired()
|
||||
&& Collections.disjoint(
|
||||
nullToEmpty(sessionMetadata.getServiceExtensionUris()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue