Package google.registry.model.billing
Class BillingEvent.Recurring
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.billing.BillingEvent
-
- google.registry.model.billing.BillingEvent.Recurring
-
- All Implemented Interfaces:
Buildable
,TransferData.TransferServerApproveEntity
,UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
- Enclosing class:
- BillingEvent
@Entity(name="BillingRecurrence") public static class BillingEvent.Recurring extends BillingEvent
A recurring billable event.Unlike
BillingEvent.OneTime
events, these do not store an explicit cost, since the cost of the recurring event might change and each time we bill for it, we need to bill at the current cost, not the value that was in use at the time the recurrence was created.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BillingEvent.Recurring.Builder
A builder forBillingEvent.Recurring
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 Recurring()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BillingEvent.Recurring.Builder
asBuilder()
Override Buildable.asBuilder() to give this method stronger typing.VKey<BillingEvent.Recurring>
createVKey()
static VKey<BillingEvent.Recurring>
createVKey(java.lang.Long id)
org.joda.time.DateTime
getRecurrenceEndTime()
org.joda.time.DateTime
getRecurrenceLastExpansion()
TimeOfYear
getRecurrenceTimeOfYear()
java.util.Optional<org.joda.money.Money>
getRenewalPrice()
BillingEvent.RenewalPriceBehavior
getRenewalPriceBehavior()
-
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
-
getRecurrenceEndTime
public org.joda.time.DateTime getRecurrenceEndTime()
-
getRecurrenceLastExpansion
public org.joda.time.DateTime getRecurrenceLastExpansion()
-
getRecurrenceTimeOfYear
public TimeOfYear getRecurrenceTimeOfYear()
-
getRenewalPriceBehavior
public BillingEvent.RenewalPriceBehavior getRenewalPriceBehavior()
-
getRenewalPrice
public java.util.Optional<org.joda.money.Money> getRenewalPrice()
-
createVKey
public VKey<BillingEvent.Recurring> createVKey()
- Specified by:
createVKey
in interfaceTransferData.TransferServerApproveEntity
- Specified by:
createVKey
in classBillingEvent
-
createVKey
public static VKey<BillingEvent.Recurring> createVKey(java.lang.Long id)
-
asBuilder
public BillingEvent.Recurring.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
-
-