|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.StatelessRatingEvent
public class StatelessRatingEvent
This Java class represents a stateless rating event, you specify this information in the
rating operation requests.
The event includes:
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="statelessRatingEvent">
<xs:complexType>
<xs:sequence>
<xs:element ref="ci"
minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="userId" type="xs:string"/>
<xs:attribute name="serviceId" type="xs:string"/>
<xs:attribute name="type" type="StatelessRatingEventType" default="usage"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="StatelessRatingEventType">
<xs:restriction base="xs:string">
<xs:enumeration value="activation"/>
<xs:enumeration value="usage"/>
<xs:enumeration value="suspension"/>
<xs:enumeration value="resumption"/>
<xs:enumeration value="cancellation"/>
<xs:enumeration value="earlyCancellation"/>
</xs:restriction>
</xs:simpleType>
| Field Summary | |
|---|---|
static int |
ACTIVATION
Constant for type activation. |
static int |
CANCELLATION
Constant for type cancellation. |
static int |
EARLY_CANCELLATION
Constant for type early cancellation. |
static int |
RESUMPTION
Constant for type resumption. |
static int |
SUSPENSION
Constant for type suspension. |
static int |
USAGE
Constant for type usage. |
| Constructor Summary | |
|---|---|
StatelessRatingEvent()
|
|
| Method Summary | |
|---|---|
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. |
ChargeableItem |
getChargeableItem()
Returns the chargeable item to be rated. |
java.lang.String |
getServiceId()
Gets the customer service identifier (a technical ID). |
int |
getType()
Gets the stateless rating event type. |
static int |
getTypeCode(java.lang.String typeName)
Gets the code of the stateless event. |
static java.lang.String |
getTypeName(int type)
Gets the name of the stateless rating event. |
java.lang.String |
getUserId()
Gets the technical identifier of the end customer within the customer service. |
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 |
setChargeableItem(ChargeableItem chargeableItem)
Sets the chargeable item to be rated (dynamically priced) by the connected SAP CC system. |
void |
setServiceId(java.lang.String serviceId)
Sets the customer service identifier (a technical ID). |
void |
setType(int type)
Sets the stateless rating event type. |
void |
setUserId(java.lang.String userId)
Sets the technical identifier of the end customer within the customer service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ACTIVATION
type activation.
The name of this type is "activation".
public static final int USAGE
type usage.
The name of this type is "usage".
public static final int SUSPENSION
type suspension.
The name of this type is "suspension".
public static final int RESUMPTION
type resumption.
The name of this type is "resumption".
public static final int CANCELLATION
type cancellation.
The name of this type is "cancellation".
public static final int EARLY_CANCELLATION
type early cancellation.
The name of this type is "earlyCancellation".
| Constructor Detail |
|---|
public StatelessRatingEvent()
| Method Detail |
|---|
public ChargeableItem getChargeableItem()
public void setChargeableItem(ChargeableItem chargeableItem)
chargeable item to be rated (dynamically priced) by the connected SAP CC system.
The chargeable item represents the consumption of a digital service.
chargeableItem - The chargeable item to be ratedpublic java.lang.String getUserId()
public void setUserId(java.lang.String userId)
userId - The user IDpublic java.lang.String getServiceId()
public void setServiceId(java.lang.String serviceId)
serviceId - The technical ID of the customer servicepublic int getType()
public void setType(int type)
type - The stateless rating event type
java.lang.IllegalArgumentException - when type is not valid.
The type must be in:
ACTIVATION, USAGE, SUSPENSION, RESUMPTION,
CANCELLATION, EARLY_CANCELLATION.public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public 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)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object intopublic static final java.lang.String getTypeName(int type)
type - The type of the stateless rating event
null if the type is not valid
public static final int getTypeCode(java.lang.String typeName)
throws java.lang.IllegalArgumentException
typeName - The name of the stateless event type
java.lang.IllegalArgumentException - when the typeName is not a name of stateless event type.
The type name must be in:
activation, usage, suspension,
resumption,
cancellation, earlyCancellation.
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||