Package com.highdeal.pnr.hci
Class StatelessRatingContext
java.lang.Object
com.highdeal.pnr.hci.StatelessRatingContext
- All Implemented Interfaces:
XMLMarshallable
This
Java class represents the stateless rating context that must be speficied when
your client application triggers a rating operation request (see the online charging services)
in the connected SAP CC system.
Note
For more information about how to implement the sending of stateless rating operations,
refer to the method:
Structure
If a stateless rating operation is performed on a multicurrency charge component, the stateless rating context must specify the currency
which must be used during rating.
If a stateless rating operation is performed on a monocurrency charge component, the currency specified in the context is ignored.
Implementation in Your Client Application
You design and develop the management of rating contexts in your rating client: identification, storage, life cycle.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="statelessRatingContext">
<xs:complexType>
<xs:sequence>
<xs:element ref="counter"
minOccurs="0"
maxOccurs="unbounded"/>
<xs:element ref="parameter"
minOccurs="0"
maxOccurs="unbounded"/>
<xs:element ref="tableInstance"
minOccurs="0"
maxOccurs="unbounded"/>
<xs:element ref="tierTableInstance"
minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="contextID" type="xs:string" use="optional"/>
<xs:attribute name="effectiveDate" type="xs:dateTime" use="required"/>
<xs:attribute name="lastRatingDate" type="xs:dateTime" use="optional"/>
<xs:attribute name="currency" type="xs:string" use="optional"/>
</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.Returns the context identifier.Gets the list ofcounters.Gets the currency code.Gets the effective date.Gets the last rating date.Gets the list ofparameters.Gets the list ofTierTableInstanceModel.Gets the list ofTranslationInstanceModel.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.voidsetContextID(String contextID) Sets the context identifier; This ID is mainly for external use in the integration code.voidsetCurrencyCode(String currencyCode) Sets the currency code.voidsetEffectiveDate(Date effectiveDate) Sets the effective date.voidsetLastRatingDate(Date lastRatingDate) Sets the last rating date.
-
Constructor Details
-
StatelessRatingContext
public StatelessRatingContext()
-
-
Method Details
-
setContextID
Sets the context identifier; This ID is mainly for external use in the integration code.- Parameters:
contextID- The context ID
-
getContextID
Returns the context identifier.- Returns:
- The context ID
- See Also:
-
getEffectiveDate
Gets the effective date.- Returns:
- The effective date value
-
setEffectiveDate
Sets the effective date.- Parameters:
effectiveDate- The effective date value
-
getLastRatingDate
Gets the last rating date.- Returns:
- The last rating date value
-
setCurrencyCode
Sets the currency code.- Parameters:
currencyCode- The currency code value
-
getCurrencyCode
Gets the currency code.- Returns:
- The currency code value
-
setLastRatingDate
Sets the last rating date.- Parameters:
lastRatingDate- The last rating date value
-
getCounters
Gets the list ofcounters.- Returns:
- The list of
counters
-
getParameters
Gets the list ofparameters.- Returns:
- The list of
parameters
-
getTranslationInstances
Gets the list ofTranslationInstanceModel.- Returns:
- The list of
TranslationInstanceModel
-
getTierTableInstances
Gets the list ofTierTableInstanceModel.- Returns:
- The list of
TierTableInstanceModel
-
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
-