mirror of
https://github.com/google/nomulus.git
synced 2025-06-27 06:44:51 +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
|
@ -113,7 +113,8 @@ public class DomainTransferRequestFlow
|
|||
}
|
||||
Registry registry = Registry.get(existingResource.getTld());
|
||||
automaticTransferTime = now.plus(registry.getAutomaticTransferLength());
|
||||
renewCost = registry.getDomainRenewCost(targetId, command.getPeriod().getValue(), now);
|
||||
renewCost = registry
|
||||
.getDomainRenewCost(targetId, now, getClientId(), command.getPeriod().getValue());
|
||||
transferBillingEvent = new BillingEvent.OneTime.Builder()
|
||||
.setReason(Reason.TRANSFER)
|
||||
.setTargetId(targetId)
|
||||
|
@ -151,9 +152,10 @@ public class DomainTransferRequestFlow
|
|||
protected final void verifyTransferRequestIsAllowed() throws EppException {
|
||||
verifyUnitIsYears(command.getPeriod());
|
||||
if (!superuser) {
|
||||
verifyPremiumNameIsNotBlocked(targetId, existingResource.getTld(), getClientId());
|
||||
verifyPremiumNameIsNotBlocked(targetId, now, getClientId(), existingResource.getTld());
|
||||
}
|
||||
validateFeeChallenge(targetId, existingResource.getTld(), feeTransfer, renewCost);
|
||||
validateFeeChallenge(
|
||||
targetId, existingResource.getTld(), now, getClientId(), feeTransfer, renewCost);
|
||||
checkAllowedAccessToTld(getAllowedTlds(), existingResource.getTld());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue