Package google.registry.flows.domain
Record Class DomainCreateFlow.RenewalPriceInfo
java.lang.Object
java.lang.Record
google.registry.flows.domain.DomainCreateFlow.RenewalPriceInfo
- Enclosing class:
DomainCreateFlow
public static record DomainCreateFlow.RenewalPriceInfo(BillingBase.RenewalPriceBehavior renewalPriceBehavior, @Nullable org.joda.money.Money renewalPrice)
extends Record
A record to store renewal info used in
BillingRecurrence
billing events.-
Constructor Summary
ConstructorDescriptionRenewalPriceInfo
(BillingBase.RenewalPriceBehavior renewalPriceBehavior, org.joda.money.Money renewalPrice) Creates an instance of aRenewalPriceInfo
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.org.joda.money.Money
Returns the value of therenewalPrice
record component.Returns the value of therenewalPriceBehavior
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RenewalPriceInfo
public RenewalPriceInfo(BillingBase.RenewalPriceBehavior renewalPriceBehavior, @Nullable org.joda.money.Money renewalPrice) Creates an instance of aRenewalPriceInfo
record class.- Parameters:
renewalPriceBehavior
- the value for therenewalPriceBehavior
record componentrenewalPrice
- the value for therenewalPrice
record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
renewalPriceBehavior
Returns the value of therenewalPriceBehavior
record component.- Returns:
- the value of the
renewalPriceBehavior
record component
-
renewalPrice
@Nullable public org.joda.money.Money renewalPrice()Returns the value of therenewalPrice
record component.- Returns:
- the value of the
renewalPrice
record component
-