Package google.registry.model.domain.fee
Class Credit
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.domain.fee.BaseFee
google.registry.model.domain.fee.Credit
- All Implemented Interfaces:
Cloneable
A credit, in currency units specified elsewhere in the xml, and with an optional description.
-
Nested Class Summary
Nested classes/interfaces inherited from class google.registry.model.domain.fee.BaseFee
BaseFee.AppliedType, BaseFee.FeeType
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
Field Summary
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Credit
create
(BigDecimal cost, BaseFee.FeeType type, Object... descriptionArgs) Creates a Credit for the given amount and type with the default description.static Credit
createWithCustomDescription
(BigDecimal cost, BaseFee.FeeType type, String description) Creates a Credit for the given amount and type with a custom description.Methods inherited from class google.registry.model.domain.fee.BaseFee
getApplied, getCost, getDescription, getGracePeriod, getRefundable, getType, getValidDateRange, hasDefaultAttributes, hasValidDateRange, hasZeroCost, isPremium, parseDescriptionForTypes
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Constructor Details
-
Credit
public Credit()
-
-
Method Details
-
create
Creates a Credit for the given amount and type with the default description. -
createWithCustomDescription
public static Credit createWithCustomDescription(BigDecimal cost, BaseFee.FeeType type, String description) Creates a Credit for the given amount and type with a custom description.
-