Package com.highdeal.pnr.hci
Class ChargeParameters
java.lang.Object
com.highdeal.pnr.hci.ChargeParameters
- All Implemented Interfaces:
XMLMarshallable
This
Java class represents a list of chargeable items sent in a batch charging operation request;
See the offline charging services in com.highdeal.cnd.message.
It includes:
- USID: The technical ID of the end customer who consumed the customer service (USID: User Service ID)
- SID: The technical ID of the customer service
- The consumption date of the customer service that applies to all the chargeable items
- The activation ID
- A list of chargeable items to be charged in batch mode and that include the service consumtion data in a
set of properties
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargeParameters">
<xs:complexType>
<xs:sequence>
<xs:element ref="ci" minOccurs="1" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="userID" type="xs:string" use="required" />
<xs:attribute name="serviceID" type="xs:string" use="required" />
<xs:attribute name="consumptionDate" type="xs:dateTime" use="required"/>
<xs:attribute name="activationID" type="xs:integer" />
</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.longGets the activation ID for this charge operation.Gets the consumption date of the customer service; this applies to the batch charging operation.getItem()Returns the item to be charged.getName()The tag of this class is "chargeParameters".Gets the service ID for this batch charge operation.Gets the user ID for this batch charge operation.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetActivationID(long activationID) Sets the activation ID for this charge operation.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidSets the consumption date of the customer service; this applies to all the items in this batch charge operation.voidSets the item to be charged in batch mode.voidsetServiceID(String serviceID) Sets the service ID (SID) for this batch charge operation.voidSets the user ID for this batch charge operation.
-
Constructor Details
-
ChargeParameters
public ChargeParameters()Constructs an empty Charge parameters
-
-
Method Details
-
getName
The tag of this class is "chargeParameters".- Returns:
- "chargeParameters"
-
getItem
Returns the item to be charged.- Returns:
- The item to be charged
-
setItem
Sets the item to be charged in batch mode.- Parameters:
i- The item to be charged
-
getConsumptionDate
Gets the consumption date of the customer service; this applies to the batch charging operation.- Returns:
- The consumption date for this batch charge operation
-
setConsumptionDate
Sets the consumption date of the customer service; this applies to all the items in this batch charge operation.- Parameters:
d- The consumption date for this batch charge operation
-
getUserID
Gets the user ID for this batch charge operation.- Returns:
- The user id for this batch charge operation
-
setUserID
Sets the user ID for this batch charge operation.- Parameters:
userID- The user ID for this batch charge operation
-
getServiceID
Gets the service ID for this batch charge operation.- Returns:
- The service ID for this batch charge operation
-
setServiceID
Sets the service ID (SID) for this batch charge operation.- Parameters:
serviceID- The service ID for this batch charge operation
-
getActivationID
public long getActivationID()Gets the activation ID for this charge operation.- Returns:
- The activation ID
-
setActivationID
public void setActivationID(long activationID) Sets the activation ID for this charge operation.- Parameters:
activationID- The activation ID value
-
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
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
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
-
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
-