public class ChargeParameters extends Object implements XMLMarshallable
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:
set of properties
AsyncBatchServiceClient,
BatchServiceClientThe 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 and Description |
|---|
ChargeParameters()
Constructs an empty Charge parameters
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
long |
getActivationID()
Gets the activation ID for this charge operation.
|
Date |
getConsumptionDate()
Gets the consumption date of the customer service; this applies to the batch charging operation.
|
ChargeableItem |
getItem()
Returns the item to be charged.
|
String |
getName()
The tag of this class is "chargeParameters".
|
String |
getServiceID()
Gets the service ID for this batch charge operation.
|
String |
getUserID()
Gets the user ID for this batch charge operation.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setActivationID(long activationID)
Sets the activation ID for this charge operation.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setConsumptionDate(Date d)
Sets the consumption date of the customer service; this applies to all the items in this batch charge operation.
|
void |
setItem(ChargeableItem i)
Sets the item to be charged in batch mode.
|
void |
setServiceID(String serviceID)
Sets the service ID (SID) for this batch charge operation.
|
void |
setUserID(String userID)
Sets the user ID for this batch charge operation.
|
public String getName()
public ChargeableItem getItem()
public void setItem(ChargeableItem i)
i - The item to be chargedpublic Date getConsumptionDate()
public void setConsumptionDate(Date d)
d - The consumption date for this batch charge operationpublic String getUserID()
public void setUserID(String userID)
userID - The user ID for this batch charge operationpublic String getServiceID()
public void setServiceID(String serviceID)
serviceID - The service ID for this batch charge operationpublic long getActivationID()
public void setActivationID(long activationID)
activationID - The activation ID valuepublic void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void addChild(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 marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into