Package google.registry.model.billing
Class BillingEvent
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.billing.BillingEvent
-
- All Implemented Interfaces:
Buildable
,TransferData.TransferServerApproveEntity
,UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
- Direct Known Subclasses:
BillingEvent.Cancellation
,BillingEvent.OneTime
,BillingEvent.Recurring
@MappedSuperclass public abstract class BillingEvent extends ImmutableObject implements Buildable, TransferData.TransferServerApproveEntity, UnsafeSerializable
A billable event in a domain's lifecycle.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BillingEvent.Builder<T extends BillingEvent,B extends BillingEvent.Builder<?,?>>
An abstract builder forBillingEvent
.static class
BillingEvent.Cancellation
An event representing a cancellation of one of the other two billable event types.static class
BillingEvent.Flag
Set of flags that can be applied to billing events.static class
BillingEvent.OneTime
A one-time billable event.static class
BillingEvent.Reason
The reason for the bill, which maps 1:1 to skus in go/registry-billing-skus.static class
BillingEvent.Recurring
A recurring billable event.static class
BillingEvent.RenewalPriceBehavior
Sets of renewal price behaviors that can be applied to billing recurrences.-
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotCompare, ImmutableObject.DoNotHydrate, ImmutableObject.EmptySetToNull, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
Nested classes/interfaces inherited from interface google.registry.model.Buildable
Buildable.GenericBuilder<S,B extends Buildable.GenericBuilder<?,?>>, Buildable.Overlayable<T>
-
-
Field Summary
-
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
-
Constructor Summary
Constructors Constructor Description BillingEvent()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract BillingEvent.Builder<?,?>
asBuilder()
Override Buildable.asBuilder() to give this method stronger typing.DomainHistory.DomainHistoryId
getDomainHistoryId()
long
getDomainHistoryRevisionId()
java.lang.String
getDomainRepoId()
org.joda.time.DateTime
getEventTime()
com.google.common.collect.ImmutableSet<BillingEvent.Flag>
getFlags()
long
getId()
BillingEvent.Reason
getReason()
java.lang.String
getRegistrarId()
java.lang.String
getTargetId()
-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface google.registry.model.transfer.TransferData.TransferServerApproveEntity
createVKey
-
-
-
-
Method Detail
-
getRegistrarId
public java.lang.String getRegistrarId()
-
getDomainHistoryRevisionId
public long getDomainHistoryRevisionId()
-
getDomainRepoId
public java.lang.String getDomainRepoId()
-
getEventTime
public org.joda.time.DateTime getEventTime()
-
getId
public long getId()
-
getReason
public BillingEvent.Reason getReason()
-
getTargetId
public java.lang.String getTargetId()
-
getDomainHistoryId
public DomainHistory.DomainHistoryId getDomainHistoryId()
-
getFlags
public com.google.common.collect.ImmutableSet<BillingEvent.Flag> getFlags()
-
asBuilder
public abstract BillingEvent.Builder<?,?> asBuilder()
Override Buildable.asBuilder() to give this method stronger typing.
-
-