public class ChargedTransactionSet extends java.lang.Object implements XMLMarshallable
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).ITransactionProcessorThe 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>
| Modifier and Type | Class and Description |
|---|---|
static class |
ChargedTransactionSet.ChargedTransactionSetEntry
This
Java class represents an entry in the charged transaction set; An entry is used
to group multiple charged transactions to be cleared |
static class |
ChargedTransactionSet.ChargeType |
static interface |
ChargedTransactionSet.IChargedTransactionSetIdentifierGenerator
This
Java interface is used to generate an identifier for a charged transaction set. |
| Constructor and Description |
|---|
ChargedTransactionSet(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
|
ChargedTransactionSet(OperationExecutionContext context)
Initializes an empty charged transaction set
|
| Modifier and Type | Method and Description |
|---|---|
void |
adaptTransactionAmounts() |
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. |
ChargeExecutionContext |
getChargeExecutionContext()
The execution context of the corresponding operation, with accessors for individual properties, grouped by domains.
|
java.util.List<ChargedTransactionSet.ChargedTransactionSetEntry> |
getDependents()
Returns the list of the dependent related to the masters
|
OperationExecutionContext |
getExecutionContext()
The execution context of the corresponding operation, represented as a list of properties.
|
ChargeableItem |
getInputChargeableItem()
Gets the input chargeable item of this transaction set
|
ChargedTransactionSet.ChargedTransactionSetEntry |
getMaster()
Returns the master of this transaction set
|
java.util.Date |
getProcessingDate()
Returns the date when the date when the charging process was executed by the SAP CC system
|
TransactionSet |
getTransactionSet() |
java.lang.Long |
getTransactionSetID()
Returns the transaction set ID
|
java.lang.String |
getTransactionSetIDType()
Returns the transaction set ID type
|
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 |
setProcessingDate(java.util.Date processingDate)
Sets the date when the charging process was executed by the SAP CC system
|
void |
setTransactionSetID(java.lang.Long id)
Sets the transaction set ID
|
void |
setTransactionSetIDGenerator(ChargedTransactionSet.IChargedTransactionSetIdentifierGenerator idGenerator)
Sets the
generator used 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 to setTransactionSetID(Long). |
void |
setTransactionSetIDType(java.lang.String type)
Sets the transaction set ID type
|
public ChargedTransactionSet(OperationExecutionContext context)
public ChargedTransactionSet(ChargedTransactionSet.ChargedTransactionSetEntry master, OperationExecutionContext context)
master - The master transaction of this transaction setjava.lang.IllegalArgumentException - if master is nullpublic ChargedTransactionSet(ChargedTransactionSet.ChargedTransactionSetEntry master, ChargeableItem inputChargeableItem, OperationExecutionContext context)
master - The master transaction of this transaction setinputChargeableItem - The input chargeable item relating to this transaction setjava.lang.IllegalArgumentException - if master is nullpublic java.lang.Long getTransactionSetID()
null otherwisepublic void setTransactionSetID(java.lang.Long id)
id - The transaction set identifierpublic void setTransactionSetIDGenerator(ChargedTransactionSet.IChargedTransactionSetIdentifierGenerator idGenerator)
generator used 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 to setTransactionSetID(Long).idGenerator - The generator used to generate an identifier for the charged transaction setpublic java.lang.String getTransactionSetIDType()
public void setTransactionSetIDType(java.lang.String type)
type - The transaction set ID typepublic ChargedTransactionSet.ChargedTransactionSetEntry getMaster()
nullpublic ChargeableItem getInputChargeableItem()
null if no input chargeable item is associated
to this charged transaction setpublic java.util.List<ChargedTransactionSet.ChargedTransactionSetEntry> getDependents()
public java.util.Date getProcessingDate()
public void setProcessingDate(java.util.Date processingDate)
processingDate - The date when the charging process was performedpublic final void adaptTransactionAmounts()
public TransactionSet getTransactionSet()
public 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 intopublic OperationExecutionContext getExecutionContext()
public ChargeExecutionContext getChargeExecutionContext()