Package google.registry.flows.domain
Class FeesAndCredits
java.lang.Object
google.registry.model.ImmutableObject
google.registry.flows.domain.FeesAndCredits
A collection of fees and credits for a specific EPP transform.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder for constructingFeesAndCredits
objects, since they are immutable.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 TypeMethodDescriptionorg.joda.money.Money
Returns the create cost for the event.com.google.common.collect.ImmutableList
<Credit> Returns the list of credits for the event.final org.joda.money.CurrencyUnit
Returns the currency for all fees in the event.org.joda.money.Money
Returns the EAP cost for the event.com.google.common.collect.ImmutableList
<Fee> getFees()
Returns the list of fees for the event.com.google.common.collect.ImmutableList
<BaseFee> Returns all fees and credits for the event.org.joda.money.Money
Returns the renew cost for the event.org.joda.money.Money
Returns the restore cost for the event.org.joda.money.Money
Returns the total cost of all fees and credits for the event.boolean
boolean
boolean
Returns whether a custom fee is present that requires fee extension acknowledgement.Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Constructor Details
-
FeesAndCredits
public FeesAndCredits()
-
-
Method Details
-
hasPremiumFeesOfType
-
getTotalCost
public org.joda.money.Money getTotalCost()Returns the total cost of all fees and credits for the event. -
hasAnyPremiumFees
public boolean hasAnyPremiumFees() -
getCreateCost
public org.joda.money.Money getCreateCost()Returns the create cost for the event. -
getEapCost
public org.joda.money.Money getEapCost()Returns the EAP cost for the event. -
getRenewCost
public org.joda.money.Money getRenewCost()Returns the renew cost for the event. -
getRestoreCost
public org.joda.money.Money getRestoreCost()Returns the restore cost for the event. -
getFees
Returns the list of fees for the event. -
isFeeExtensionRequired
public boolean isFeeExtensionRequired()Returns whether a custom fee is present that requires fee extension acknowledgement. -
getCredits
Returns the list of credits for the event. -
getCurrency
public final org.joda.money.CurrencyUnit getCurrency()Returns the currency for all fees in the event. -
getFeesAndCredits
Returns all fees and credits for the event. -
asBuilder
-