Package google.registry.model.domain
Class GracePeriodBase
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.domain.GracePeriodBase
-
- All Implemented Interfaces:
UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
- Direct Known Subclasses:
GracePeriod
,GracePeriod.GracePeriodHistory
@MappedSuperclass public class GracePeriodBase extends ImmutableObject implements UnsafeSerializable
Base class containing common fields and methods forGracePeriod
.- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description GracePeriodBase()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VKey<BillingEvent>
getBillingEvent()
Returns the one time billing event.VKey<BillingRecurrence>
getBillingRecurrence()
Returns the Recurrence.java.lang.String
getDomainRepoId()
org.joda.time.DateTime
getExpirationTime()
long
getGracePeriodId()
java.lang.String
getRegistrarId()
GracePeriodStatus
getType()
boolean
hasBillingEvent()
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
-
-
-
-
Method Detail
-
getGracePeriodId
public long getGracePeriodId()
-
getType
public GracePeriodStatus getType()
-
getDomainRepoId
public java.lang.String getDomainRepoId()
-
getExpirationTime
public org.joda.time.DateTime getExpirationTime()
-
getRegistrarId
public java.lang.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.
-
-