public class BatchChargeResult extends java.lang.Object implements OperationResult
Java class represents the result of the batch charging operation sent to the connected SAP CC system;
It includes a replied set of purchase orders and batchChargeFault
BatchServiceClientThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="batchChargeResult">
<xs:complexType>
<xs:sequence>
<xs:element ref="order" minOccurs="1" maxOccurs="unbounded"/> <!-- Purchase Order resulting from the charging process -->
<xs:element ref="batchChargeFault" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
| Modifier and Type | Class and Description |
|---|---|
static interface |
BatchChargeResult.BatchChargeResultHandler |
| Constructor and Description |
|---|
BatchChargeResult()
Builds an empty batch charge result.
|
| Modifier and Type | Method and Description |
|---|---|
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.Vector<BatchChargeException> |
getExceptions()
Gets the set of replied
Batch Charge exceptions. |
java.lang.String |
getName()
Returns the XML name of this operation result: batchChargeResult.
|
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.Vector<PurchaseOrder> |
getPurchaseOrders()
Gets the set of replied purchase orders.
|
void |
getSortedResults(BatchChargeResult.BatchChargeResultHandler handler)
Notifies the specified
handler with the order and the
BatchChargeExceptions sorted in the same order than their related chargeable items. |
java.lang.Long |
getSubscriptionID()
Gets the ID of the {com.highdeal.pnr.hci.SubscriptionModel subscription} (or contract) impacted by the initial batch charge operation.
|
boolean |
isInError()
Checks if at least one charging operation request has failed.
|
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 |
setSubscriptionID(java.lang.Long subscriptionID) |
public BatchChargeResult()
public java.lang.String getName()
public java.lang.String getOperandReference()
OperationResultnull.getOperandReference in interface OperationResultpublic java.util.Vector<PurchaseOrder> getPurchaseOrders()
resulting purchase orderspublic java.util.Vector<BatchChargeException> getExceptions()
Batch Charge exceptions.public boolean isInError()
true if this result has at least one Batch Charge exceptionpublic void setSubscriptionID(java.lang.Long subscriptionID)
public java.lang.Long getSubscriptionID()
public void getSortedResults(BatchChargeResult.BatchChargeResultHandler handler)
handler with the order and the
BatchChargeExceptions sorted in the same order than their related chargeable items.handler - The handler to be notifiedpublic 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 into