Class EPPBalanceInfoResp
java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.balance.v02.EPPBalanceInfoResp
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
A concrete
EPPResponse that knows how to encode/decode Balance Info
response from/to XML and object instance.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault currency is "USD".static final StringThe balance XML tag namestatic final StringThe cashBalance XML tag namestatic final StringThe creditLimit XML tag namestatic final StringThe executionLimit XML tag namestatic final StringXML local name forEPPFeeCreData.static final StringThe poll data XML tag namestatic final StringThe notificationThreshold XML tag namestatic final BigDecimalDefault execution limit is 0.0.Fields inherited from class com.verisign.epp.codec.gen.EPPResponse
ELM_EXTENSION, ELM_MESSAGE_QUEUE, ELM_MESSAGE_QUEUE_QDATE, ELM_RESPONSE_DATA, extensions, TRANSFER_CLIENT_APPROVED, TRANSFER_CLIENT_CANCELLED, TRANSFER_CLIENT_REJECTED, TRANSFER_PENDING, TRANSFER_SERVER_APPROVED, TRANSFER_SERVER_CANCELLED -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorEPPBalanceInfoResp(EPPTransId aTransId, String aCurrency, BigDecimal aBalance, BigDecimal aCreditLimit, BigDecimal aCashBalance) EPPBalanceInfoRespthat takes all of the required attributes.EPPBalanceInfoResp(EPPTransId aTransId, String aCurrency, BigDecimal aBalance, BigDecimal aCreditLimit, BigDecimal aCashBalance, BigDecimal aExecutionLimit, BigDecimal aNotificationThreshold) EPPBalanceInfoRespthat takes all of the attributes. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPLowBalancePollResponse.voidPopulates the data of this instance from the given XML Element which is part of a DOM DocumentPut all data contained in this poll response into the given XML documentbooleanimplements a deepEPPBalanceInfoRespcompare.Gets the balance that represents the calculated Balance using the equation Balance (B) = Credit Limit (CL) + Cash Balance (CB).Gets the cash balance that represents the cash on hand that is impacted by client payments and billable transaction debits and credits, inclusive of the fees and taxes.Gets the credit Limit that represents the calculated level of credit based on the set of active credit instruments.Gets the currency value.Gets the execution limitReturns the XML namespace associated with theEPPResponse.Gets the notification thresholdbooleanIs the currency defined?booleanIs the execution limit defined?booleanIs the notification threshold defined?voidsetBalance(BigDecimal aBalance) Sets the balance that represents the calculated Balance using the equation Balance (B) = Credit Limit (CL) + Cash Balance (CB).voidsetCashBalance(BigDecimal aCashBalance) Sets the cash balance that represents the cash on hand that is impacted by client payments and billable transaction debits and credits, inclusive of the fees and taxes.voidsetCreditLimit(BigDecimal aCreditLimit) Sets the credit Limit that represents the calculated level of credit based on the set of active credit instruments.voidsetCurrency(String aCurrency) Sets the currency value.voidsetExecutionLimit(BigDecimal aExecutionLimit) Sets the execution limitvoidsetNotficationThreshold(BigDecimal aNotificationThreshold) Sets the notification thresholdMethods inherited from class com.verisign.epp.codec.gen.EPPResponse
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getMessageQueue, getMsgQueue, getMsgQueueCount, getMsgQueueDate, getMsgQueueMsg, getQDate, getResult, getResults, getTransId, getType, hasExtension, hasExtensions, hasMessageQueue, hasMsgQueue, hasResultCode, isSuccess, setExtension, setExtensions, setMsgQueue, setResult, setResult, setResult, setResult, setResults, setTransId, toString
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPFeeCreData.- See Also:
-
ELM_NAME
The poll data XML tag name- See Also:
-
CURRENCY_DEFAULT
Default currency is "USD". The specification doesn't include a default, but adding it to make it easier to transition from the proprietary Balance Mapping.- See Also:
-
EXECUTION_LIMIT_DEFAULT
Default execution limit is 0.0. -
ELM_BALANCE
The balance XML tag name- See Also:
-
ELM_CREDIT_LIMIT
The creditLimit XML tag name- See Also:
-
ELM_CASH_BALANCE
The cashBalance XML tag name- See Also:
-
ELM_EXECUTION_LIMIT
The executionLimit XML tag name- See Also:
-
ELM_NOTIFICATION_THRESHOLD
The notificationThreshold XML tag name- See Also:
-
-
Constructor Details
-
EPPBalanceInfoResp
public EPPBalanceInfoResp()Default constructor -
EPPBalanceInfoResp
public EPPBalanceInfoResp(EPPTransId aTransId, String aCurrency, BigDecimal aBalance, BigDecimal aCreditLimit, BigDecimal aCashBalance) EPPBalanceInfoRespthat takes all of the required attributes.- Parameters:
aTransId- Transaction identifier information (server and optional client)aBalance- Balance to setaCreditLimit- Credit limit to setaCashBalance- Cash balance to set
-
EPPBalanceInfoResp
public EPPBalanceInfoResp(EPPTransId aTransId, String aCurrency, BigDecimal aBalance, BigDecimal aCreditLimit, BigDecimal aCashBalance, BigDecimal aExecutionLimit, BigDecimal aNotificationThreshold) EPPBalanceInfoRespthat takes all of the attributes.- Parameters:
aTransId- Transaction identifier information (server and optional client)aBalance- Balance to setaCreditLimit- Credit limit to setaCashBalance- Cash balance to setaExecutionLimit- Execution limit to setaNotificationThreshold- Notification limit to set
-
-
Method Details
-
getNamespace
Returns the XML namespace associated with theEPPResponse.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
- XML namespace for the
EPPResponse.
-
doEncode
Put all data contained in this poll response into the given XML document- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- the DOM Document to attach data to.- Returns:
- the element that is a parent of the poll data
- Throws:
EPPEncodeException- Thrown if any errors occur during the encode process
-
doDecode
Populates the data of this instance from the given XML Element which is part of a DOM Document- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- the element that is a parent of the poll data- Throws:
EPPDecodeException- thrown if any errors occur during the decode operation
-
equals
implements a deepEPPBalanceInfoRespcompare.- Overrides:
equalsin classEPPResponse- Parameters:
aObject-EPPBalanceInfoRespinstance to compare with- Returns:
- true if equal false otherwise
-
clone
CloneEPPLowBalancePollResponse.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPLowBalancePollResponse - Throws:
CloneNotSupportedException- standard Object.clone exception
-
hasCurrency
public boolean hasCurrency()Is the currency defined?- Returns:
trueif the currency is defined;falseotherwise.
-
getCurrency
Gets the currency value.- Returns:
- Currency if defined;
nullotherwise.
-
setCurrency
Sets the currency value.- Parameters:
aCurrency- Currency value
-
getBalance
Gets the balance that represents the calculated Balance using the equation Balance (B) = Credit Limit (CL) + Cash Balance (CB).- Returns:
- balance if set;
nullotherwise.
-
setBalance
Sets the balance that represents the calculated Balance using the equation Balance (B) = Credit Limit (CL) + Cash Balance (CB).- Parameters:
aBalance- Balance to set
-
getCreditLimit
Gets the credit Limit that represents the calculated level of credit based on the set of active credit instruments.- Returns:
- credit limit if set;
nullotherwise.
-
setCreditLimit
Sets the credit Limit that represents the calculated level of credit based on the set of active credit instruments.- Parameters:
aCreditLimit- Credit limit to set
-
getCashBalance
Gets the cash balance that represents the cash on hand that is impacted by client payments and billable transaction debits and credits, inclusive of the fees and taxes.- Returns:
- cash balance if set;
nullotherwise.
-
setCashBalance
Sets the cash balance that represents the cash on hand that is impacted by client payments and billable transaction debits and credits, inclusive of the fees and taxes.- Parameters:
aCashBalance- Cash balance to set
-
hasExecutionLimit
public boolean hasExecutionLimit()Is the execution limit defined?- Returns:
trueif the execution limit is defined;falseotherwise.
-
getExecutionLimit
Gets the execution limit- Returns:
- Execution limit if set;
nullotherwise.
-
setExecutionLimit
Sets the execution limit- Parameters:
aExecutionLimit- Credit threshold to set
-
hasNotificationThreshold
public boolean hasNotificationThreshold()Is the notification threshold defined?- Returns:
trueif the notification threshold is defined;falseotherwise.
-
getNotificationThreshold
Gets the notification threshold- Returns:
- Notification threshold if set;
nullotherwise.
-
setNotficationThreshold
Sets the notification threshold- Parameters:
aNotificationThreshold- Credit threshold to set
-