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:
Cloneable
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.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
Field Summary
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Fee
create
(BigDecimal cost, BaseFee.FeeType type, boolean isPremium, com.google.common.collect.Range<org.joda.time.DateTime> validDateRange, Object... descriptionArgs) Creates a Fee for the given cost, type, and valid date range with the default description.static Fee
create
(BigDecimal cost, BaseFee.FeeType type, boolean isPremium, 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
-
Field Details
-
FEE_EXTENSION_URIS
-
-
Constructor Details
-
Fee
public Fee()
-
-
Method Details
-
create
public static Fee create(BigDecimal cost, BaseFee.FeeType type, boolean isPremium, Object... descriptionArgs) Creates a Fee for the given cost and type with the default description. -
create
public static Fee create(BigDecimal cost, BaseFee.FeeType type, boolean isPremium, com.google.common.collect.Range<org.joda.time.DateTime> validDateRange, Object... descriptionArgs) Creates a Fee for the given cost, type, and valid date range with the default description.
-