Class GracePeriodBase

java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.domain.GracePeriodBase
All Implemented Interfaces:
UnsafeSerializable, Serializable, Cloneable
Direct Known Subclasses:
GracePeriod, GracePeriod.GracePeriodHistory

@MappedSuperclass public class GracePeriodBase extends ImmutableObject implements UnsafeSerializable
Base class containing common fields and methods for GracePeriod.
See Also:
  • Constructor Details

    • GracePeriodBase

      public GracePeriodBase()
  • Method Details

    • getGracePeriodId

      public long getGracePeriodId()
    • getType

      public GracePeriodStatus getType()
    • getDomainRepoId

      public String getDomainRepoId()
    • getExpirationTime

      public org.joda.time.DateTime getExpirationTime()
    • getRegistrarId

      public String getRegistrarId()
    • hasBillingEvent

      public boolean hasBillingEvent()
      Returns true if this GracePeriod has an associated BillingEvent; i.e. if it's refundable.
    • getBillingEvent

      public VKey<BillingEvent> getBillingEvent()
      Returns the one time billing event. The value will only be non-null if the type of this grace period is not AUTO_RENEW.
    • getBillingRecurrence

      public VKey<BillingRecurrence> getBillingRecurrence()
      Returns the Recurrence. The value will only be non-null if the type of this grace period is AUTO_RENEW.