Package google.registry.model.billing
Class BillingEvent.OneTime
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.billing.BillingEvent
-
- google.registry.model.billing.BillingEvent.OneTime
-
- All Implemented Interfaces:
Buildable
,TransferData.TransferServerApproveEntity
,UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
- Enclosing class:
- BillingEvent
@Entity(name="BillingEvent") public static class BillingEvent.OneTime extends BillingEvent
A one-time billable event.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BillingEvent.OneTime.Builder
A builder forBillingEvent.OneTime
since it is immutable.-
Nested classes/interfaces inherited from class google.registry.model.billing.BillingEvent
BillingEvent.Cancellation, BillingEvent.Flag, BillingEvent.OneTime, BillingEvent.Reason, BillingEvent.Recurring, BillingEvent.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 OneTime()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BillingEvent.OneTime.Builder
asBuilder()
Override Buildable.asBuilder() to give this method stronger typing.VKey<BillingEvent.OneTime>
createVKey()
static VKey<BillingEvent.OneTime>
createVKey(long id)
java.util.Optional<VKey<AllocationToken>>
getAllocationToken()
org.joda.time.DateTime
getBillingTime()
VKey<BillingEvent.Recurring>
getCancellationMatchingBillingEvent()
org.joda.money.Money
getCost()
java.lang.Integer
getPeriodYears()
java.lang.Long
getRecurringEventHistoryRevisionId()
org.joda.time.DateTime
getSyntheticCreationTime()
-
Methods inherited from class google.registry.model.billing.BillingEvent
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<BillingEvent.Recurring> getCancellationMatchingBillingEvent()
-
getRecurringEventHistoryRevisionId
public java.lang.Long getRecurringEventHistoryRevisionId()
-
getAllocationToken
public java.util.Optional<VKey<AllocationToken>> getAllocationToken()
-
createVKey
public VKey<BillingEvent.OneTime> createVKey()
- Specified by:
createVKey
in interfaceTransferData.TransferServerApproveEntity
- Specified by:
createVKey
in classBillingEvent
-
createVKey
public static VKey<BillingEvent.OneTime> createVKey(long id)
-
asBuilder
public BillingEvent.OneTime.Builder asBuilder()
Description copied from class:BillingEvent
Override Buildable.asBuilder() to give this method stronger typing.- Specified by:
asBuilder
in interfaceBuildable
- Specified by:
asBuilder
in classBillingEvent
-
-