Class StatelessRatingContext

java.lang.Object
com.highdeal.pnr.hci.StatelessRatingContext
All Implemented Interfaces:
XMLMarshallable

public class StatelessRatingContext extends Object implements 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.

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 Details

    • StatelessRatingContext

      public StatelessRatingContext()
  • Method Details

    • setContextID

      public void setContextID(String contextID)
      Sets the context identifier; This ID is mainly for external use in the integration code.
      Parameters:
      contextID - The context ID
    • getContextID

      public String getContextID()
      Returns the context identifier.
      Returns:
      The context ID
      See Also:
    • getEffectiveDate

      public Date getEffectiveDate()
      Gets the effective date.
      Returns:
      The effective date value
    • setEffectiveDate

      public void setEffectiveDate(Date effectiveDate)
      Sets the effective date.
      Parameters:
      effectiveDate - The effective date value
    • getLastRatingDate

      public Date getLastRatingDate()
      Gets the last rating date.
      Returns:
      The last rating date value
    • setCurrencyCode

      public void setCurrencyCode(String currencyCode)
      Sets the currency code.
      Parameters:
      currencyCode - The currency code value
    • getCurrencyCode

      public String getCurrencyCode()
      Gets the currency code.
      Returns:
      The currency code value
    • setLastRatingDate

      public void setLastRatingDate(Date lastRatingDate)
      Sets the last rating date.
      Parameters:
      lastRatingDate - The last rating date value
    • getCounters

      public Vector<CounterModel> getCounters()
      Gets the list of counters.
      Returns:
      The list of counters
    • getParameters

      public Vector<ParameterModel> getParameters()
      Gets the list of parameters.
      Returns:
      The list of parameters
    • getTranslationInstances

      public Vector<TranslationInstanceModel> getTranslationInstances()
      Gets the list of TranslationInstanceModel.
      Returns:
      The list of TranslationInstanceModel
    • getTierTableInstances

      public Vector<TierTableInstanceModel> getTierTableInstances()
      Gets the list of TierTableInstanceModel.
      Returns:
      The list of TierTableInstanceModel
    • setAttributes

      public void setAttributes(XMLAttributes atts)
      Description copied from interface: XMLMarshallable
      Sets the attributes of the XML representation of the element being processed.
      Specified by:
      setAttributes in interface XMLMarshallable
      Parameters:
      atts - The XML attributes of the current element
    • addChild

      public void addChild(String tagName, XMLMarshallable child)
      Description copied from interface: XMLMarshallable
      Adds a child to the object, the child representing the marshallable object which must be added to the element.
      Specified by:
      addChild in interface XMLMarshallable
      Parameters:
      tagName - The name of tag for the child
      child - The child to be added
    • addCharacterData

      public void addCharacterData(String cData)
      Description copied from interface: XMLMarshallable
      Adds character data to the content element.
      Specified by:
      addCharacterData in interface XMLMarshallable
      Parameters:
      cData - The character data to be added
    • marshal

      public void marshal(XMLOutputter output)
      Description copied from interface: XMLMarshallable
      Gives an XML representation of this object, including its children.
      Specified by:
      marshal in interface XMLMarshallable
      Parameters:
      output - The XML output to marshal the object into