public final class DomainRestoreFeeResponseExtension extends ResponseExtension
Extension for the EPP Domain Renew response, representing the Fee extension.
Use this to acknowledge the price associated with this domain name as part of an EPP Domain Renew command compliant with RFC5730 and RFC5731. The "currency" and "fee" values supplied, should match the fees that are set for the domain name for the requested period. The response expected from a server should be handled by a Domain Renew Response.
CHK_DATA, CREATE, DATA, EXTENSION_EXPR, INFO, RENEW, TRANSFER, UPDATE
Constructor and Description |
---|
DomainRestoreFeeResponseExtension(java.lang.String responseType) |
Modifier and Type | Method and Description |
---|---|
void |
fromXML(XMLDocument xmlDoc)
Initialises the instance from the given XML document.
|
java.lang.String |
getCurrency() |
java.math.BigDecimal |
getRenewFee() |
java.math.BigDecimal |
getRestoreFee() |
boolean |
isInitialised()
Indicates whether fromXML() completed successfully and the extension was
successfully initialised from the EPP response.
|
replaceResponseType
public DomainRestoreFeeResponseExtension(java.lang.String responseType)
public void fromXML(XMLDocument xmlDoc) throws javax.xml.xpath.XPathExpressionException
ResponseExtension
fromXML
in class ResponseExtension
xmlDoc
- EPP Response XMLjavax.xml.xpath.XPathExpressionException
public boolean isInitialised()
ResponseExtension
isInitialised
in class ResponseExtension
public java.lang.String getCurrency()
public java.math.BigDecimal getRestoreFee()
public java.math.BigDecimal getRenewFee()