|
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.tif.ChargedTransactionSet
public class ChargedTransactionSet
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).
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>
| Nested Class Summary | |
|---|---|
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 Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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. |
java.util.List<ChargedTransactionSet.ChargedTransactionSetEntry> |
getDependents()
Returns the list of the dependent related to the masters |
OperationExecutionContext |
getExecutionContext()
|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChargedTransactionSet(OperationExecutionContext context)
public ChargedTransactionSet(ChargedTransactionSet.ChargedTransactionSetEntry master,
OperationExecutionContext context)
master - The master transaction of this transaction set
java.lang.IllegalArgumentException - if master is null
public ChargedTransactionSet(ChargedTransactionSet.ChargedTransactionSetEntry master,
ChargeableItem inputChargeableItem,
OperationExecutionContext context)
master - The master transaction of this transaction setinputChargeableItem - The input chargeable item relating to this transaction set
java.lang.IllegalArgumentException - if master is null| Method Detail |
|---|
public 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)
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 OperationExecutionContext getExecutionContext()
|
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 | ||||||||