public class UpdateRateResult extends Object implements OperationResult
UpdateRateOp operation.
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 XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="updateRateResult">
<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="transacSetToReserve" 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="amountToReserve" type="xs:string"/>
<xs:attribute name="amountToCancel" type="xs:string"/>
<xs:attribute name="accumulatedAmount" type="xs:string"/>
<xs:attribute name="limit" type="xs:decimal"/>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
UpdateRateResult()
Constructs an empty update session result.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
void |
addStartRateResult(StartRateResult startRateResult) |
void |
addStopRateResult(StopRateResult stopRateResult) |
Money |
getAccumulatedAmount()
Gets accumulated amount of the session.
|
Money |
getAmountToCancel()
Gets the amount to cancel.
|
Money |
getAmountToConfirm()
Gets the amount to confirm.
|
Money |
getAmountToReserve()
Gets the amount to reserve.
|
BigDecimal |
getLimit()
Gets the limit of the reservation in case of best effort one.
|
String |
getName() |
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. |
List<TransactionSet> |
getTransacSetsToCancel()
Gets the list of transactions sets to cancel.
|
List<TransactionSet> |
getTransacSetsToCleanup()
Gets the list of transactions sets to cleanup.
|
List<TransactionSet> |
getTransacSetsToConfirm()
Gets the list of transactions sets to confirm.
|
List<TransactionSet> |
getTransacSetsToReserve()
Gets the list of transactions sets to reserve.
|
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 |
setAmountToReserve(Money amount)
Sets the amount to reserve.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setLimit(BigDecimal limit)
Sets the limit of the reservation in case of best effort one.
|
void |
setOperandReference(String operandReference)
Sets the reference of the operand.
|
public UpdateRateResult()
public String getOperandReference()
OperationResultnull.getOperandReference in interface OperationResultpublic void setOperandReference(String operandReference)
operandReference - The reference of the operandpublic String getName()
public Money getAccumulatedAmount()
public void setAccumulatedAmount(Money amount)
amount - The accumulated amountpublic BigDecimal getLimit()
public void setLimit(BigDecimal limit)
limit - The limit valuepublic List<TransactionSet> getTransacSetsToCleanup()
public Money getAmountToConfirm()
public void setAmountToConfirm(Money amount)
amount - The amount to confirmpublic List<TransactionSet> getTransacSetsToConfirm()
public Money getAmountToReserve()
public void setAmountToReserve(Money amount)
amount - The amount to reservepublic List<TransactionSet> getTransacSetsToReserve()
public Money getAmountToCancel()
public void setAmountToCancel(Money amount)
amount - The amount to cancelpublic List<TransactionSet> getTransacSetsToCancel()
public void setAttributes(XMLAttributes atts)
XMLMarshallablesetAttributes in interface XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(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(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 void addStopRateResult(StopRateResult stopRateResult)
public void addStartRateResult(StartRateResult startRateResult)