Class DomainTransferUtils

java.lang.Object
google.registry.flows.domain.DomainTransferUtils

public final class DomainTransferUtils extends Object
Utility logic for facilitating domain transfers.
  • Method Details

    • createPendingTransferData

      public static DomainTransferData createPendingTransferData(String domainRepoId, Long historyId, DomainTransferData.Builder transferDataBuilder, com.google.common.collect.ImmutableSet<TransferData.TransferServerApproveEntity> serverApproveEntities, Period transferPeriod)
      Sets up TransferData for a domain with links to entities for server approval.
    • createTransferServerApproveEntities

      public static com.google.common.collect.ImmutableSet<TransferData.TransferServerApproveEntity> createTransferServerApproveEntities(org.joda.time.DateTime automaticTransferTime, org.joda.time.DateTime serverApproveNewExpirationTime, HistoryEntry.HistoryEntryId domainHistoryId, Domain existingDomain, BillingRecurrence existingBillingRecurrence, Trid trid, String gainingRegistrarId, Optional<org.joda.money.Money> transferCost, org.joda.time.DateTime now)
      Returns a set of entities created speculatively in anticipation of a server approval.

      This set consists of:

      • The one-time billing event charging the gaining registrar for the transfer
      • A cancellation of an autorenew charge for the losing registrar, if the autorenew grace period will apply at transfer time
      • A new post-transfer autorenew billing event for the domain (and gaining registrar)
      • A new post-transfer autorenew poll message for the domain (and gaining registrar)
      • A poll message for the gaining registrar
      • A poll message for the losing registrar
    • createGainingTransferPollMessage

      public static PollMessage createGainingTransferPollMessage(String targetId, TransferData transferData, @Nullable org.joda.time.DateTime extendedRegistrationExpirationTime, org.joda.time.DateTime now, HistoryEntry.HistoryEntryId domainHistoryId)
      Create a poll message for the gaining client in a transfer.
    • createLosingTransferPollMessage

      public static PollMessage createLosingTransferPollMessage(String targetId, TransferData transferData, @Nullable org.joda.time.DateTime extendedRegistrationExpirationTime, HistoryEntry.HistoryEntryId domainHistoryId)
      Create a poll message for the losing client in a transfer.