public class StatelessRatingContext extends java.lang.Object implements XMLMarshallable
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:
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.
You design and develop the management of rating contexts in your rating client: identification, storage, life cycle.
StatelessServiceClient.statelessRate(java.lang.String, java.util.Date, com.highdeal.pnr.hci.StatelessRatingEvent, com.highdeal.pnr.hci.StatelessRatingContext, boolean, boolean)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 and Description |
|---|
StatelessRatingContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.lang.String |
getContextID()
Returns the context identifier.
|
java.util.Vector<CounterModel> |
getCounters()
Gets the list of
counters. |
java.lang.String |
getCurrencyCode()
Gets the currency code.
|
java.util.Date |
getEffectiveDate()
Gets the effective date.
|
java.util.Date |
getLastRatingDate()
Gets the last rating date.
|
java.util.Vector<ParameterModel> |
getParameters()
Gets the list of
parameters. |
java.util.Vector<TierTableInstanceModel> |
getTierTableInstances()
Gets the list of
TierTableInstanceModel. |
java.util.Vector<TranslationInstanceModel> |
getTranslationInstances()
Gets the list of
TranslationInstanceModel. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setContextID(java.lang.String contextID)
Sets the context identifier; This ID is mainly for external use in the integration code.
|
void |
setCurrencyCode(java.lang.String currencyCode)
Sets the currency code.
|
void |
setEffectiveDate(java.util.Date effectiveDate)
Sets the effective date.
|
void |
setLastRatingDate(java.util.Date lastRatingDate)
Sets the last rating date.
|
public void setContextID(java.lang.String contextID)
contextID - The context IDpublic java.lang.String getContextID()
setContextID(String)public java.util.Date getEffectiveDate()
public void setEffectiveDate(java.util.Date effectiveDate)
effectiveDate - The effective date valuepublic java.util.Date getLastRatingDate()
public void setCurrencyCode(java.lang.String currencyCode)
currencyCode - The currency code valuepublic java.lang.String getCurrencyCode()
public void setLastRatingDate(java.util.Date lastRatingDate)
lastRatingDate - The last rating date valuepublic java.util.Vector<CounterModel> getCounters()
counters.counterspublic java.util.Vector<ParameterModel> getParameters()
parameters.parameterspublic java.util.Vector<TranslationInstanceModel> getTranslationInstances()
TranslationInstanceModel.TranslationInstanceModelpublic java.util.Vector<TierTableInstanceModel> getTierTableInstances()
TierTableInstanceModel.TierTableInstanceModelpublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.addChild in interface XMLMarshallabletagName - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into