Package google.registry.model.billing
Class BillingEvent
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.billing.BillingBase
-
- google.registry.model.billing.BillingEvent
-
- All Implemented Interfaces:
Buildable
,TransferData.TransferServerApproveEntity
,UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
@Entity public class BillingEvent extends BillingBase
A one-time billable event.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BillingEvent.Builder
A builder forBillingEvent
since it is immutable.-
Nested classes/interfaces inherited from class google.registry.model.billing.BillingBase
BillingBase.Flag, BillingBase.Reason, BillingBase.RenewalPriceBehavior
-
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, 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 Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BillingEvent.Builder
asBuilder()
Override Buildable.asBuilder() to give this method stronger typing.VKey<BillingEvent>
createVKey()
static VKey<BillingEvent>
createVKey(long id)
java.util.Optional<VKey<AllocationToken>>
getAllocationToken()
org.joda.time.DateTime
getBillingTime()
VKey<BillingRecurrence>
getCancellationMatchingBillingEvent()
org.joda.money.Money
getCost()
java.lang.Integer
getPeriodYears()
java.lang.Long
getRecurrenceHistoryRevisionId()
org.joda.time.DateTime
getSyntheticCreationTime()
-
Methods inherited from class google.registry.model.billing.BillingBase
getDomainHistoryRevisionId, getDomainRepoId, getEventTime, getFlags, getHistoryEntryId, getId, getReason, getRegistrarId, getTargetId
-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
-
-
-
Method Detail
-
getCost
public org.joda.money.Money getCost()
-
getBillingTime
public org.joda.time.DateTime getBillingTime()
-
getPeriodYears
public java.lang.Integer getPeriodYears()
-
getSyntheticCreationTime
public org.joda.time.DateTime getSyntheticCreationTime()
-
getCancellationMatchingBillingEvent
public VKey<BillingRecurrence> getCancellationMatchingBillingEvent()
-
getRecurrenceHistoryRevisionId
public java.lang.Long getRecurrenceHistoryRevisionId()
-
getAllocationToken
public java.util.Optional<VKey<AllocationToken>> getAllocationToken()
-
createVKey
public VKey<BillingEvent> createVKey()
- Specified by:
createVKey
in interfaceTransferData.TransferServerApproveEntity
- Specified by:
createVKey
in classBillingBase
-
createVKey
public static VKey<BillingEvent> createVKey(long id)
-
asBuilder
public BillingEvent.Builder asBuilder()
Description copied from class:BillingBase
Override Buildable.asBuilder() to give this method stronger typing.- Specified by:
asBuilder
in interfaceBuildable
- Specified by:
asBuilder
in classBillingBase
-
-