Package google.registry.model.domain.fee
Class Fee
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.domain.fee.BaseFee
-
- google.registry.model.domain.fee.Fee
-
- All Implemented Interfaces:
java.lang.Cloneable
public class Fee extends BaseFee
A fee, in currency units specified elsewhere in the xml, with type of the fee an optional fee 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.DoNotCompare, ImmutableObject.DoNotHydrate, ImmutableObject.EmptySetToNull, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
-
Field Summary
Fields Modifier and Type Field Description static com.google.common.collect.ImmutableSet<java.lang.String>
FEE_EXTENSION_URIS
-
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
-
Constructor Summary
Constructors Constructor Description Fee()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Fee
create(java.math.BigDecimal cost, BaseFee.FeeType type, boolean isPremium, com.google.common.collect.Range<org.joda.time.DateTime> validDateRange, java.lang.Object... descriptionArgs)
Creates a Fee for the given cost, type, and valid date range with the default description.static Fee
create(java.math.BigDecimal cost, BaseFee.FeeType type, boolean isPremium, java.lang.Object... descriptionArgs)
Creates a Fee for the given cost and type with the default 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
-
-
-
-
Method Detail
-
create
public static Fee create(java.math.BigDecimal cost, BaseFee.FeeType type, boolean isPremium, java.lang.Object... descriptionArgs)
Creates a Fee for the given cost and type with the default description.
-
create
public static Fee create(java.math.BigDecimal cost, BaseFee.FeeType type, boolean isPremium, com.google.common.collect.Range<org.joda.time.DateTime> validDateRange, java.lang.Object... descriptionArgs)
Creates a Fee for the given cost, type, and valid date range with the default description.
-
-