mirror of
https://github.com/google/nomulus.git
synced 2025-05-28 16:30:12 +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
|
@ -424,6 +424,7 @@ public class DatastoreHelper {
|
|||
public static BillingEvent.OneTime createBillingEventForTransfer(
|
||||
DomainResource domain,
|
||||
HistoryEntry historyEntry,
|
||||
String gainingClientId,
|
||||
DateTime costLookupTime,
|
||||
DateTime eventTime,
|
||||
Integer extendedRegistrationYears) {
|
||||
|
@ -437,8 +438,9 @@ public class DatastoreHelper {
|
|||
.setPeriodYears(extendedRegistrationYears)
|
||||
.setCost(Registry.get(domain.getTld()).getDomainRenewCost(
|
||||
domain.getFullyQualifiedDomainName(),
|
||||
extendedRegistrationYears,
|
||||
costLookupTime))
|
||||
costLookupTime,
|
||||
gainingClientId,
|
||||
extendedRegistrationYears))
|
||||
.setParent(historyEntry)
|
||||
.build();
|
||||
}
|
||||
|
@ -499,6 +501,7 @@ public class DatastoreHelper {
|
|||
BillingEvent.OneTime transferBillingEvent = persistResource(createBillingEventForTransfer(
|
||||
domain,
|
||||
historyEntryDomainTransfer,
|
||||
"NewRegistrar",
|
||||
requestTime,
|
||||
expirationTime,
|
||||
extendedRegistrationYears));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue