Package google.registry.model.billing
Class BillingEvent.Modification
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.billing.BillingEvent
-
- google.registry.model.billing.BillingEvent.Modification
-
- All Implemented Interfaces:
Buildable
,DatastoreEntity
,DatastoreOnlyEntity
,TransferData.TransferServerApproveEntity
,UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
- Enclosing class:
- BillingEvent
public static class BillingEvent.Modification extends BillingEvent implements DatastoreOnlyEntity
An event representing a modification of an existing one-time billing event.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BillingEvent.Modification.Builder
A builder forBillingEvent.Modification
since it is immutable.-
Nested classes/interfaces inherited from class google.registry.model.billing.BillingEvent
BillingEvent.Cancellation, BillingEvent.Flag, BillingEvent.Modification, BillingEvent.OneTime, BillingEvent.Reason, BillingEvent.Recurring, BillingEvent.RenewalPriceBehavior
-
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotCompare, ImmutableObject.DoNotHydrate, ImmutableObject.EmptySetToNull, 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 Modification()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BillingEvent.Modification.Builder
asBuilder()
Override Buildable.asBuilder() to give this method stronger typing.static BillingEvent.Modification
createRefundFor(BillingEvent.OneTime billingEvent, DomainHistory historyEntry, java.lang.String description)
Create a new Modification billing event which is a refund of the given OneTime billing event and that is parented off the given HistoryEntry.VKey<BillingEvent.Modification>
createVKey()
static VKey<BillingEvent.Modification>
createVKey(com.googlecode.objectify.Key<BillingEvent.Modification> key)
org.joda.money.Money
getCost()
java.lang.String
getDescription()
com.googlecode.objectify.Key<BillingEvent.OneTime>
getEventKey()
-
Methods inherited from class google.registry.model.billing.BillingEvent
getDomainHistoryRevisionId, getDomainRepoId, getEventTime, getFlags, getId, getParentKey, getReason, getRegistrarId, getTargetId
-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface google.registry.model.replay.DatastoreEntity
beforeDatastoreSaveOnReplay
-
Methods inherited from interface google.registry.model.replay.DatastoreOnlyEntity
toSqlEntity
-
-
-
-
Method Detail
-
getCost
public org.joda.money.Money getCost()
-
getEventKey
public com.googlecode.objectify.Key<BillingEvent.OneTime> getEventKey()
-
getDescription
public java.lang.String getDescription()
-
asBuilder
public BillingEvent.Modification.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
-
createVKey
public VKey<BillingEvent.Modification> createVKey()
- Specified by:
createVKey
in interfaceTransferData.TransferServerApproveEntity
-
createVKey
public static VKey<BillingEvent.Modification> createVKey(com.googlecode.objectify.Key<BillingEvent.Modification> key)
-
createRefundFor
public static BillingEvent.Modification createRefundFor(BillingEvent.OneTime billingEvent, DomainHistory historyEntry, java.lang.String description)
Create a new Modification billing event which is a refund of the given OneTime billing event and that is parented off the given HistoryEntry.Note that this method may appear to be unused most of the time, but it is kept around because it is needed by one-off scrap tools that need to make billing adjustments.
-
-