Class FeeCheckCommandExtensionItemV12
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.domain.fee.FeeQueryCommandExtensionItem
-
- google.registry.model.domain.fee.FeeCheckCommandExtensionItem
-
- google.registry.model.domain.fee12.FeeCheckCommandExtensionItemV12
-
- All Implemented Interfaces:
java.lang.Cloneable
public class FeeCheckCommandExtensionItemV12 extends FeeCheckCommandExtensionItem
An individual price check item in version 0.12 of the fee extension on domain check commands. Items look like:
In a change from previous versions of the extension, items do not contain domain names; instead, the names from the non-extension check element are used.<fee:command name="renew" phase="sunrise" subphase="hello"> <fee:period unit="y">1</fee:period> <fee:class>premium</fee:class> <fee:date>2017-05-17T13:22:21.0Z</fee:date> </fee:command>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class google.registry.model.domain.fee.FeeQueryCommandExtensionItem
FeeQueryCommandExtensionItem.CommandName
-
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotCompare, ImmutableObject.DoNotHydrate, ImmutableObject.EmptySetToNull, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
-
Field Summary
-
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
-
Constructor Summary
Constructors Constructor Description FeeCheckCommandExtensionItemV12()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeeCheckResponseExtensionItemV12.Builder
createResponseBuilder()
Create a builder for a matching fee check response item.FeeQueryCommandExtensionItem.CommandName
getCommandName()
The name of the command being checked.org.joda.money.CurrencyUnit
getCurrency()
Three-character ISO4217 currency code.java.lang.String
getDomainName()
The domain name being checked; throws an exception if domain names are not supported.java.util.Optional<org.joda.time.DateTime>
getEffectiveDate()
The as-of date for the fee extension to run.java.lang.String
getPhase()
The phase of the command being checked.java.lang.String
getSubphase()
The subphase of the command being checked.java.lang.String
getUnparsedCommandName()
The command name before being parsed into an enum, for use in error strings.boolean
isDomainNameSupported()
Version .12 does not support domain name or currency in fee extension items.-
Methods inherited from class google.registry.model.domain.fee.FeeQueryCommandExtensionItem
getPeriod
-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
-
-
-
Method Detail
-
isDomainNameSupported
public boolean isDomainNameSupported()
Version .12 does not support domain name or currency in fee extension items.- Specified by:
isDomainNameSupported
in classFeeCheckCommandExtensionItem
-
getDomainName
public java.lang.String getDomainName()
Description copied from class:FeeCheckCommandExtensionItem
The domain name being checked; throws an exception if domain names are not supported.- Specified by:
getDomainName
in classFeeCheckCommandExtensionItem
-
getCurrency
public org.joda.money.CurrencyUnit getCurrency()
Description copied from class:FeeQueryCommandExtensionItem
Three-character ISO4217 currency code.Returns null if this version of the fee extension doesn't specify currency at the top level.
- Specified by:
getCurrency
in classFeeQueryCommandExtensionItem
-
getUnparsedCommandName
public java.lang.String getUnparsedCommandName()
Description copied from class:FeeQueryCommandExtensionItem
The command name before being parsed into an enum, for use in error strings.- Specified by:
getUnparsedCommandName
in classFeeQueryCommandExtensionItem
-
getCommandName
public FeeQueryCommandExtensionItem.CommandName getCommandName()
Description copied from class:FeeQueryCommandExtensionItem
The name of the command being checked.- Specified by:
getCommandName
in classFeeQueryCommandExtensionItem
-
getPhase
public java.lang.String getPhase()
Description copied from class:FeeQueryCommandExtensionItem
The phase of the command being checked.- Specified by:
getPhase
in classFeeQueryCommandExtensionItem
-
getSubphase
public java.lang.String getSubphase()
Description copied from class:FeeQueryCommandExtensionItem
The subphase of the command being checked.- Specified by:
getSubphase
in classFeeQueryCommandExtensionItem
-
createResponseBuilder
public FeeCheckResponseExtensionItemV12.Builder createResponseBuilder()
Description copied from class:FeeCheckCommandExtensionItem
Create a builder for a matching fee check response item.- Specified by:
createResponseBuilder
in classFeeCheckCommandExtensionItem
-
getEffectiveDate
public java.util.Optional<org.joda.time.DateTime> getEffectiveDate()
Description copied from class:FeeQueryCommandExtensionItem
The as-of date for the fee extension to run.- Specified by:
getEffectiveDate
in classFeeQueryCommandExtensionItem
-
-