Package com.highdeal.pnr.hci
Class StatelessRateResult
java.lang.Object
com.highdeal.pnr.hci.StatelessRateResult
- All Implemented Interfaces:
OperationResult,XMLMarshallable
Object which is returned to the client application from the stateless rate.
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="statelessRateResult">
<xs:complexType>
<xs:sequence>
<xs:element ref="transac"
minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="lastRatingDate" type="xs:dateTime"/>
<xs:attribute name="totalAmount" type="xs:string"/>
</xs:complexType>
</xs:element>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.Gets the list of returned counter effects.Gets the last rating date.Gets the code or the reference (if no code exists) that identifies the operand of the operation request; If the operation is not auditable, the operand reference isnull.Aggregate the amounts of transactions.Gets the list of returned transactions.getTransactions(boolean withUsage, boolean withRecurring, boolean withOneShot) Gets a selection of returned transactions.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetLastRatingDate(Date lastRatingDate) Sets the last rating date.voidUpdate counters and last rating date od the stateless rating context using results contained in this statelessRateResult instance.
-
Constructor Details
-
StatelessRateResult
public StatelessRateResult()
-
-
Method Details
-
getOperandReference
Description copied from interface:OperationResultGets the code or the reference (if no code exists) that identifies the operand of the operation request; If the operation is not auditable, the operand reference isnull.- Specified by:
getOperandReferencein interfaceOperationResult- Returns:
- The operand reference of the operation result
-
getLastRatingDate
Gets the last rating date.- Returns:
- the last rating date.
-
setLastRatingDate
Sets the last rating date.- Parameters:
lastRatingDate- the last rating date.
-
getTransactions
Gets the list of returned transactions.- Returns:
- the
transactionlist.
-
getTransactions
public Vector<Transaction> getTransactions(boolean withUsage, boolean withRecurring, boolean withOneShot) Gets a selection of returned transactions.- Parameters:
withUsage- true to select transaction of usage.withRecurring- true to select transaction of recurring.withOneShot- true to select transaction of one shot.- Returns:
- the
transactionselection.
-
getCounterEffects
Gets the list of returned counter effects.- Returns:
- the
statelessCoutnerEffectlist.
-
update
Update counters and last rating date od the stateless rating context using results contained in this statelessRateResult instance.- Parameters:
ctx- stateless rating context to update.
-
getTotalAmount
Aggregate the amounts of transactions.- Returns:
- the total amount.
- Throws:
IncompatibleCurrenciesException
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-