Package google.registry.model.billing
Class BillingRecurrence
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.billing.BillingBase
google.registry.model.billing.BillingRecurrence
- All Implemented Interfaces:
Buildable
,TransferData.TransferServerApproveEntity
,UnsafeSerializable
,Serializable
,Cloneable
A recurring billable event.
Unlike BillingEvent
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder forBillingRecurrence
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
-
Method Summary
Modifier and TypeMethodDescriptionOverride Buildable.asBuilder() to give this method stronger typing.static VKey
<BillingRecurrence> createVKey
(Long id) org.joda.time.DateTime
org.joda.time.DateTime
Optional
<org.joda.money.Money> 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
-
Constructor Details
-
BillingRecurrence
public BillingRecurrence()
-
-
Method Details
-
getRecurrenceEndTime
public org.joda.time.DateTime getRecurrenceEndTime() -
getRecurrenceLastExpansion
public org.joda.time.DateTime getRecurrenceLastExpansion() -
getRecurrenceTimeOfYear
-
getRenewalPriceBehavior
-
getRenewalPrice
-
createVKey
- Specified by:
createVKey
in interfaceTransferData.TransferServerApproveEntity
- Specified by:
createVKey
in classBillingBase
-
createVKey
-
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
-