mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Add clientId and time parameters to pricing methods
This is a broken-out refactoring from [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=121603352
This commit is contained in:
parent
4a9be60e0b
commit
6f69e96465
18 changed files with 105 additions and 62 deletions
|
@ -77,7 +77,7 @@ public class DomainCheckFlow extends BaseDomainCheckFlow {
|
|||
ReservationType reservationType = getReservationType(domainName);
|
||||
Registry registry = Registry.get(domainName.parent().toString());
|
||||
if (reservationType == UNRESERVED
|
||||
&& registry.isPremiumName(domainName)
|
||||
&& registry.isPremiumName(domainName, now, getClientId())
|
||||
&& registry.getPremiumPriceAckRequired()
|
||||
&& !nullToEmpty(sessionMetadata.getServiceExtensionUris()).contains(
|
||||
ServiceExtension.FEE_0_6.getUri())) {
|
||||
|
@ -114,7 +114,8 @@ public class DomainCheckFlow extends BaseDomainCheckFlow {
|
|||
throw new OnlyCheckedNamesCanBeFeeCheckedException();
|
||||
}
|
||||
FeeCheck.Builder builder = new FeeCheck.Builder();
|
||||
handleFeeRequest(domainCheck, builder, domainName, getTldFromSld(domainName), now);
|
||||
handleFeeRequest(
|
||||
domainCheck, builder, domainName, getTldFromSld(domainName), getClientId(), now);
|
||||
feeChecksBuilder.add(builder.setName(domainName).build());
|
||||
}
|
||||
return ImmutableList.of(FeeCheckResponseExtension.create(feeChecksBuilder.build()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue