mirror of
https://github.com/google/nomulus
synced 2026-03-27 12:55:28 +00:00
Record domain transaction for domain transfers
This is the last of many cls adding explicit logging in all our domain mutation flows to facilitate transaction reporting. The transfer process is as follows: GAINING sends a TransferRequest to LOSING LOSING either acks (TransferApprove), nacks (TransferReject) or does nothing (auto approve). For acks and autoapproves, we produce a +1 counter for GAINING and LOSING for domain-gaining/losing-successful for each registrar, to be reported on the approve date + the transfer grace period. For nacks, we produce a +1 counter for domain-gaining/losing-nacked for each registrar. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=166535579
This commit is contained in:
@@ -262,7 +262,7 @@ public class DomainCreateFlow implements TransactionalFlow {
|
||||
String repoId = createDomainRepoId(ObjectifyService.allocateId(), registry.getTldStr());
|
||||
DateTime registrationExpirationTime = leapSafeAddYears(now, years);
|
||||
HistoryEntry historyEntry = buildHistoryEntry(
|
||||
repoId, period, now, registry.getAddGracePeriodLength(), registry.getTldStr());
|
||||
repoId, registry.getTldStr(), now, period, registry.getAddGracePeriodLength());
|
||||
// Bill for the create.
|
||||
BillingEvent.OneTime createBillingEvent =
|
||||
createOneTimeBillingEvent(
|
||||
@@ -365,7 +365,7 @@ public class DomainCreateFlow implements TransactionalFlow {
|
||||
}
|
||||
|
||||
private HistoryEntry buildHistoryEntry(
|
||||
String repoId, Period period, DateTime now, Duration addGracePeriod, String tld) {
|
||||
String repoId, String tld, DateTime now, Period period, Duration addGracePeriod) {
|
||||
return historyBuilder
|
||||
.setType(HistoryEntry.Type.DOMAIN_CREATE)
|
||||
.setPeriod(period)
|
||||
|
||||
Reference in New Issue
Block a user