Class TransactionSet

java.lang.Object
com.highdeal.pnr.tif.TransactionSet
All Implemented Interfaces:
XMLMarshallable

public class TransactionSet extends Object implements XMLMarshallable
This class represents a set of rated transactions computed by the SAP CC system during the charging process.

There are two types of rated transactions:

  • A master transaction relates to the master charge that initiates the rating and charging process.
  • The dependent transactions come from the execution of the dependent charges linked to the master charge.

See Also:

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:element name="transacSet" type="TransactionSetType"/>
   <xs:complexType name="TransactionSetType">
    <xs:sequence>
      <xs:element name="master" type="TransactionType" minOccurs="0" maxOccurs="1"/>
      <xs:element name="dependent" type="TransactionType" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
   </xs:complexType>

  • Constructor Details

    • TransactionSet

      public TransactionSet()
      Builds an empty transaction set.
  • Method Details

    • getName

      public String getName()
    • getTransactionSetID

      public Long getTransactionSetID()
      Returns the transaction set ID.
      Returns:
      The ID of the transaction set
    • setTransactionSetID

      public void setTransactionSetID(Long id)
      Sets transaction set ID.
      Parameters:
      id - The transaction set ID
    • getMaster

      public Transaction getMaster()
      Returns the master transaction.
      Returns:
      The master transaction
    • setMaster

      public void setMaster(Transaction m)
      Sets master transaction.
      Parameters:
      m - The master transaction
    • getDependents

      public List<Transaction> getDependents()
      Returns the dependent transactions.
      Returns:
      The list of dependent transactions
    • addDependent

      public void addDependent(Transaction t)
      Adds a dependent transaction to this transaction set.
      Parameters:
      t - The dependent transaction to add
    • getOrigin

      public int getOrigin()
      Returns the origin of this set; It corresponds to the origin of the master transaction which can be: usage, recurring, oneshot.
      Returns:
      The origin of this set
    • setSnapshotIdIfNull

      public void setSnapshotIdIfNull(Integer snapshotId)
    • getSnapshotId

      public Integer getSnapshotId()
    • getTransactionSet

      public TransactionSet getTransactionSet(boolean isFilterTransactions)
      Gets the transactionSet according to the isFilterTransaction value.
      Parameters:
      isFilterTransactions - true if the returned transactions of transactionSet must be filtered, false otherwise.
      Returns:
      The transactionSet with filtered transactions or not
    • adaptTransactionAmounts

      public void adaptTransactionAmounts()
    • setAttributes

      public void setAttributes(XMLAttributes atts)
      Description copied from interface: XMLMarshallable
      Sets the attributes of the XML representation of the element being processed.
      Specified by:
      setAttributes in interface XMLMarshallable
      Parameters:
      atts - The XML attributes of the current element
    • addChild

      public void addChild(String tagName, XMLMarshallable child)
      Description copied from interface: XMLMarshallable
      Adds a child to the object, the child representing the marshallable object which must be added to the element.
      Specified by:
      addChild in interface XMLMarshallable
      Parameters:
      tagName - The name of tag for the child
      child - The child to be added
    • addCharacterData

      public void addCharacterData(String cData)
      Description copied from interface: XMLMarshallable
      Adds character data to the content element.
      Specified by:
      addCharacterData in interface XMLMarshallable
      Parameters:
      cData - The character data to be added
    • marshal

      public void marshal(XMLOutputter output)
      Description copied from interface: XMLMarshallable
      Gives an XML representation of this object, including its children.
      Specified by:
      marshal in interface XMLMarshallable
      Parameters:
      output - The XML output to marshal the object into
    • marshal

      public void marshal(XMLOutputter output, String tagName)