Package google.registry.model.billing
Class BillingCancellation
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.billing.BillingBase
google.registry.model.billing.BillingCancellation
- All Implemented Interfaces:
Buildable
,TransferData.TransferServerApproveEntity
,UnsafeSerializable
,Serializable
,Cloneable
An event representing a cancellation of one of the other two billable event types.
This is implemented as a separate event rather than a bit on BillingEvent in order to preserve the immutability of billing events.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder forBillingCancellation
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
<BillingCancellation> createVKey
(long id) static BillingCancellation
forGracePeriod
(GracePeriod gracePeriod, org.joda.time.DateTime eventTime, HistoryEntry.HistoryEntryId domainHistoryId, String targetId) Creates a cancellation billing event (parented on the provided history key, and with the corresponding event time) that will cancel out the provided grace period's billing event, using the supplied targetId and deriving other metadata (clientId, billing time, and the cancellation reason) from the grace period.org.joda.time.DateTime
VKey
<? extends BillingBase> 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
-
BillingCancellation
public BillingCancellation()
-
-
Method Details
-
getBillingTime
public org.joda.time.DateTime getBillingTime() -
getEventKey
-
forGracePeriod
public static BillingCancellation forGracePeriod(GracePeriod gracePeriod, org.joda.time.DateTime eventTime, HistoryEntry.HistoryEntryId domainHistoryId, String targetId) Creates a cancellation billing event (parented on the provided history key, and with the corresponding event time) that will cancel out the provided grace period's billing event, using the supplied targetId and deriving other metadata (clientId, billing time, and the cancellation reason) from the grace period. -
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
-