Package google.registry.model.domain
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
Field Summary
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the one time billing event.Returns the Recurrence.org.joda.time.DateTime
long
getType()
boolean
Returns true if this GracePeriod has an associated BillingEvent; i.e.Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Constructor Details
-
GracePeriodBase
public GracePeriodBase()
-
-
Method Details
-
getGracePeriodId
public long getGracePeriodId() -
getType
-
getDomainRepoId
-
getExpirationTime
public org.joda.time.DateTime getExpirationTime() -
getRegistrarId
-
hasBillingEvent
public boolean hasBillingEvent()Returns true if this GracePeriod has an associated BillingEvent; i.e. if it's refundable. -
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
Returns the Recurrence. The value will only be non-null if the type of this grace period is AUTO_RENEW.
-