public class XMLAccountInfo extends java.lang.Object implements IXMLEncodable
<AccountInfo> <Balance> <AccountNumber> ..</AccountNumber> <Deposit>...</Deposit> <Spent>....</Spent> <Validtime>...</Validtime> <Timestamp>...</Timestamp> <Signature> //Unterschrift der BI ... </Signature> </Balance> <CostConfirmations> //Kostenbestätigungen, die von den einzelnen AI's abgerechnet wurden <CC>...</CC> <CC>...</CC> </CostConfirmations> </AccountInfo>
Modifier and Type | Class and Description |
---|---|
static class |
XMLAccountInfo.PastMonthsVolumeBytes |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
XML_ELEMENT_NAME |
static java.lang.String |
XML_ELEMENT_NAME_COST_CONFIRMATIONS |
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
Constructor and Description |
---|
XMLAccountInfo() |
XMLAccountInfo(org.w3c.dom.Document document)
XMLAccountInfo
|
XMLAccountInfo(org.w3c.dom.Element xml)
Creates a Balance from an existing XML docuemnt
|
XMLAccountInfo(java.lang.String xml)
Creates an AccountInfo object from a string.
|
XMLAccountInfo(XMLBalance bal) |
Modifier and Type | Method and Description |
---|---|
long |
addCC(XMLEasyCC a_cc,
boolean a_bForcedAdd)
Adds a cost confirmation xml structure to the accountinfo.
|
void |
addPastMonthlyVolumeBytes(XMLAccountInfo.PastMonthsVolumeBytes a_monthlyBytes) |
void |
addPastMonthlyVolumeBytes(XMLAccountInfo a_info) |
void |
checkMonthlyBytesUpdatedOn() |
long |
getAllCCsTransferredBytes()
returns the overall sum of all the transfered bytes of all
CCs belonging to this account.
|
XMLBalance |
getBalance() |
XMLEasyCC |
getCC(java.lang.String priceCertHash)
getCC - returns the cost confirmation with the specified aiName
|
java.util.Enumeration |
getCCs()
Returns an enumeration of all the available cost confirmations for
this account.
|
java.sql.Timestamp |
getLastBalanceUpdateLocalTime() |
void |
setAccountCallback(PayAccount a_callbackAccount) |
void |
setBalance(XMLBalance b1)
setBalance
|
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Return an element that can be appended to the document.
|
public static final java.lang.String XML_ELEMENT_NAME
public static final java.lang.String XML_ELEMENT_NAME_COST_CONFIRMATIONS
public XMLAccountInfo(XMLBalance bal)
public XMLAccountInfo(java.lang.String xml) throws java.lang.Exception
java.lang.Exception
public XMLAccountInfo()
public XMLAccountInfo(org.w3c.dom.Element xml) throws java.lang.Exception
xml
- the node that represents the Balanceverifier
- JAPSignature must be initialized and ready to verify XML (or null)java.lang.Exception
- on invalid xml format or invalid signaturepublic XMLAccountInfo(org.w3c.dom.Document document) throws java.lang.Exception
document
- Documentjava.lang.Exception
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
IXMLEncodable
toXmlElement
in interface IXMLEncodable
a_doc
- a documentpublic long addCC(XMLEasyCC a_cc, boolean a_bForcedAdd)
xmlCC
- XMLEasyCCpublic void addPastMonthlyVolumeBytes(XMLAccountInfo a_info) throws java.lang.Exception
java.lang.Exception
public void addPastMonthlyVolumeBytes(XMLAccountInfo.PastMonthsVolumeBytes a_monthlyBytes)
public XMLBalance getBalance()
public XMLEasyCC getCC(java.lang.String priceCertHash)
string
- Stringpublic void setAccountCallback(PayAccount a_callbackAccount)
public void checkMonthlyBytesUpdatedOn()
public java.util.Enumeration getCCs()
public long getAllCCsTransferredBytes()
public void setBalance(XMLBalance b1)
b1
- XMLBalancepublic java.sql.Timestamp getLastBalanceUpdateLocalTime()
Copyright © 2023. All rights reserved.