Package com.highdeal.pnr.tif
Class ChargedTransactionSet
java.lang.Object
com.highdeal.pnr.tif.ChargedTransactionSet
- All Implemented Interfaces:
XMLMarshallable
This
Java class describes a set of grouped charged transactions that must be cleared to be taken into account in a billing system; It includes
also the source rated transaction relating to the
dynamic pricing (rating) of a customer service use (usage, periodic, or one-off).- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="chargedTransactionSet">
<xs:complexType>
<xs:sequence>
<xs:element ref="entry" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="transactionSetId" type="xs:long"/>
<xs:attribute name="transactionSetIdType" type="xs:string"/>
</xs:complexType>
</xs:element><xs:element name="entry">
<xs:complexType>
<xs:sequence>
<xs:element ref="transac" minOccurs="1" maxOccurs="1"/>
<xs:element ref="taxedAmount" minOccurs="0" maxOccurs="1"/>
<xs:element ref="chargedTransaction" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="chargeType" type="ChargeTypeType"/>
<xs:attribute name="isMaster" type="xs:boolean"/>
<xs:attribute name="label" type="xs:string"/>
</xs:complexType>
</xs:element><xs:simpleType name="ChargeTypeType">
<xs:restriction base="xs:string">
<xs:enumeration value="closing"/>
<xs:enumeration value="refill"/>
<xs:enumeration value="internalCharge"/>
<xs:enumeration value="externalCharge"/>
<xs:enumeration value="notCharged"/>
</xs:restriction>
</xs:simpleType>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThisJava classrepresents an entry in thecharged transaction set; An entry is used to group multiplecharged transactions to be clearedstatic enumstatic interfaceThisJava interfaceis used to generate an identifier for a charged transaction set. -
Constructor Summary
ConstructorsConstructorDescriptionInitializes an empty charged transaction setChargedTransactionSet(ChargedTransactionSet.ChargedTransactionSetEntry master, ChargeableItem inputChargeableItem, OperationExecutionContext context) Initializes a charged transaction set with the master transaction of the set and the chargeable item.ChargedTransactionSet(ChargedTransactionSet.ChargedTransactionSetEntry master, OperationExecutionContext context) Initializes a charged transaction set with the master transaction of the set -
Method Summary
Modifier and TypeMethodDescriptionfinal voidvoidaddCharacterData(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.The execution context of the corresponding operation, with accessors for individual properties, grouped by domains.Returns the list of the dependent related to the mastersThe execution context of the corresponding operation, represented as a list of properties.Gets the input chargeable item of this transaction setReturns the master of this transaction setReturns the date when the date when the charging process was executed by the SAP CC systemReturns the transaction set IDReturns the transaction set ID typevoidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidsetProcessingDate(Date processingDate) Sets the date when the charging process was executed by the SAP CC systemvoidSets the transaction set IDvoidsetTransactionSetIDGenerator(ChargedTransactionSet.IChargedTransactionSetIdentifierGenerator idGenerator) Sets thegeneratorused to generate an identifier for the charged transaction set; It will be used to generate an identifier only if the charged transaction set has not been given an identifier with a call tosetTransactionSetID(Long).voidSets the transaction set ID type
-
Constructor Details
-
ChargedTransactionSet
Initializes an empty charged transaction set -
ChargedTransactionSet
public ChargedTransactionSet(ChargedTransactionSet.ChargedTransactionSetEntry master, OperationExecutionContext context) Initializes a charged transaction set with the master transaction of the set- Parameters:
master- The master transaction of this transaction set- Throws:
IllegalArgumentException- if master is null
-
ChargedTransactionSet
public ChargedTransactionSet(ChargedTransactionSet.ChargedTransactionSetEntry master, ChargeableItem inputChargeableItem, OperationExecutionContext context) Initializes a charged transaction set with the master transaction of the set and the chargeable item.- Parameters:
master- The master transaction of this transaction setinputChargeableItem- The input chargeable item relating to this transaction set- Throws:
IllegalArgumentException- if master is null
-
-
Method Details
-
getTransactionSetID
Returns the transaction set ID- Returns:
- The transaction set identifier if it is set,
nullotherwise
-
setTransactionSetID
Sets the transaction set ID- Parameters:
id- The transaction set identifier
-
setTransactionSetIDGenerator
public void setTransactionSetIDGenerator(ChargedTransactionSet.IChargedTransactionSetIdentifierGenerator idGenerator) Sets thegeneratorused to generate an identifier for the charged transaction set; It will be used to generate an identifier only if the charged transaction set has not been given an identifier with a call tosetTransactionSetID(Long).- Parameters:
idGenerator- The generator used to generate an identifier for the charged transaction set
-
getTransactionSetIDType
Returns the transaction set ID type- Returns:
- The transaction set ID type
-
setTransactionSetIDType
Sets the transaction set ID type- Parameters:
type- The transaction set ID type
-
getMaster
Returns the master of this transaction set- Returns:
- The master of this transaction set that cannot be
null
-
getInputChargeableItem
Gets the input chargeable item of this transaction set- Returns:
- The input chargeable item of this charged transaction set, or
nullif no input chargeable item is associated to this charged transaction set
-
getDependents
Returns the list of the dependent related to the masters- Returns:
- A list that can be empty but never null
-
getProcessingDate
Returns the date when the date when the charging process was executed by the SAP CC system- Returns:
- The date when the date when the charging process was performed
-
setProcessingDate
Sets the date when the charging process was executed by the SAP CC system- Parameters:
processingDate- The date when the charging process was performed
-
adaptTransactionAmounts
public final void adaptTransactionAmounts() -
getTransactionSet
-
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
-
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
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data 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
-
getExecutionContext
The execution context of the corresponding operation, represented as a list of properties.- Returns:
- the execution context of the corresponding operation, represented as a list of properties
-
getChargeExecutionContext
The execution context of the corresponding operation, with accessors for individual properties, grouped by domains.- Returns:
- the execution context of the corresponding operation, with accessors for individual properties, grouped by domains
-