mirror of
https://github.com/google/nomulus.git
synced 2025-08-05 17:28:25 +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
|
@ -179,9 +179,10 @@ public class DomainCreateFlowTest extends ResourceFlowTestCase<DomainCreateFlow,
|
|||
.setReason(Reason.CREATE)
|
||||
.setTargetId(getUniqueIdFromCommand())
|
||||
.setClientId("TheRegistrar")
|
||||
.setCost(Registry.get(domainTld).isPremiumName(getUniqueIdFromCommand())
|
||||
? Money.of(USD, 200)
|
||||
: Money.of(USD, 26))
|
||||
.setCost(Registry.get(domainTld)
|
||||
.isPremiumName(getUniqueIdFromCommand(), clock.nowUtc(), "TheRegistrar")
|
||||
? Money.of(USD, 200)
|
||||
: Money.of(USD, 26))
|
||||
.setPeriodYears(2)
|
||||
.setEventTime(clock.nowUtc())
|
||||
.setBillingTime(billingTime)
|
||||
|
|
|
@ -185,6 +185,7 @@ public class DomainTransferFlowTestCase<F extends Flow, R extends EppResource>
|
|||
return createBillingEventForTransfer(
|
||||
domain,
|
||||
historyEntry,
|
||||
"NewRegistrar",
|
||||
TRANSFER_REQUEST_TIME,
|
||||
TRANSFER_EXPIRATION_TIME,
|
||||
EXTENDED_REGISTRATION_YEARS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue