com.highdeal.pnr.hci
Class StopRateResult

java.lang.Object
  extended by com.highdeal.pnr.hci.StopRateResult
All Implemented Interfaces:
OperationResult, XMLMarshallable

public class StopRateResult
extends java.lang.Object
implements OperationResult

The result of a StopRateOp operation.
When the system parameter TRANSACTIONS_TO_CANCEL_IN_RESULT_ENABLED is set to "false", the list of transacSetToCancel is always empty and never returned. Also, the attribute amountToCancel is never present. When set to "false", this parameter completely skip the production of transactions to cancel.
The project team determines the appropriate value of this parameter when implementing the session-based charging services. If the value of this parameter is changed during the production operation phase, the impact is the following:


Example 1 - Let us consider the following sequence in the same session: The transactions to cancel corresponding to reservation1 are computed but not returned in the response of op2 because TRANSACTIONS_TO_CANCEL_IN_RESULT_ENABLED was set to "true" before op1 was executed. Then, the transactions to cancel corresponding to reservation2 are not computed nor returned in the response of op3.
Example 2 - Let us consider the following sequence in the same session:
The transactions to cancel corresponding to reservation1 are not computed nor returned in the response of op2 because TRANSACTIONS_TO_CANCEL_IN_RESULT_ENABLED was set to "false" before op1 was executed. Then, the transactions to cancel corresponding to reservation2 are computed and returned in the response of op3.

XML API for HCI

The XML APIs specify the following XSD fragment:

XSD Fragment

<xs:element name="stopRateResult">
   <xs:complexType>
     <xs:sequence>
       <xs:element name="transacSetToCleanup" type="TransactionSetType" minOccurs="0" maxOccurs="unbounded"/>
       <xs:element name="transacSetToConfirm" type="TransactionSetType" minOccurs="0" maxOccurs="unbounded"/>
       <xs:element name="transacSetToCancel" type="TransactionSetType" minOccurs="0" maxOccurs="unbounded"/>
     </xs:sequence>
     <xs:attribute name="amountToConfirm" type="xs:string"/>
     <xs:attribute name="amountToCancel" type="xs:string"/>
     <xs:attribute name="accumulatedAmount" type="xs:string"/>
   </xs:complexType>
 </xs:element>


Constructor Summary
StopRateResult()
          Constructs an empty stop session result.
 
Method Summary
 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.
 Money getAccumulatedAmount()
          Gets accumulated amount of the session.
 Money getAmountToCancel()
          Gets the amount to cancel =>CAN RETURN NULL
 Money getAmountToConfirm()
          Gets the amount to confirm.
 java.lang.String getName()
           
 java.lang.String getOperandReference()
          Gets the code or the reference (if no code exists) that identifies the operand of the operation request; If the operation is not auditable, the operand reference is null.
 java.util.List<TransactionSet> getTransacSetsToCancel()
          Gets the list of transactions sets to cancel.
 java.util.List<TransactionSet> getTransacSetsToCleanup()
          Gets the list of transactions set to cleanup.
 java.util.List<TransactionSet> getTransacSetsToConfirm()
          Gets the list of transactions sets to confirm.
 void marshal(XMLOutputter output)
          Gives an XML representation of this object, including its children.
 void setAccumulatedAmount(Money amount)
          Sets accumulated amount of the session.
 void setAmountToCancel(Money amount)
          Sets the amount to cancel.
 void setAmountToConfirm(Money amount)
          Sets the amount to confirm.
 void setAttributes(XMLAttributes atts)
          Sets the attributes of the XML representation of the element being processed.
 void setOperandReference(java.lang.String operandReference)
          Sets the reference of the operand.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StopRateResult

public StopRateResult()
Constructs an empty stop session result.

Method Detail

getOperandReference

public java.lang.String getOperandReference()
Description copied from interface: OperationResult
Gets the code or the reference (if no code exists) that identifies the operand of the operation request; If the operation is not auditable, the operand reference is null.

Specified by:
getOperandReference in interface OperationResult
Returns:
The operand reference of the operation result

setOperandReference

public void setOperandReference(java.lang.String operandReference)
Sets the reference of the operand.

Parameters:
operandReference - the reference of the operand.

getName

public java.lang.String getName()

getAccumulatedAmount

public Money getAccumulatedAmount()
Gets accumulated amount of the session.

Returns:
the accumulated amount.

setAccumulatedAmount

public void setAccumulatedAmount(Money amount)
Sets accumulated amount of the session.

Parameters:
amount - the accumulated amount.

getAmountToConfirm

public Money getAmountToConfirm()
Gets the amount to confirm.

Returns:
the amount to confirm.

setAmountToConfirm

public void setAmountToConfirm(Money amount)
Sets the amount to confirm.

Parameters:
amount - the amount to confirm.

getAmountToCancel

public Money getAmountToCancel()
Gets the amount to cancel =>CAN RETURN NULL

Returns:
the amount to cancel.

setAmountToCancel

public void setAmountToCancel(Money amount)
Sets the amount to cancel.

Parameters:
amount - the amount to cancel.

getTransacSetsToCleanup

public java.util.List<TransactionSet> getTransacSetsToCleanup()
Gets the list of transactions set to cleanup.

Returns:
the list of transactions set to cleanup;

getTransacSetsToConfirm

public java.util.List<TransactionSet> getTransacSetsToConfirm()
Gets the list of transactions sets to confirm.

Returns:
the list of transactions sets to confirm.

getTransacSetsToCancel

public java.util.List<TransactionSet> getTransacSetsToCancel()
Gets the list of transactions sets to cancel.

Returns:
the list of transactions sets to cancel.

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(java.lang.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(java.lang.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

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)