public class ClearPrepaidAccountOp extends java.lang.Object implements MessageOperation
subscriber account;
It sets the balance amount of the prepaid account to 0.
This operation has to be alone in an envelope or with others Clear Prepaid Account operations
or Refill Prepaid Account operation.
Note
If a ClearPrepaidAccountOp is present in an envelope with others operations that are neither ClearPrepaidAccountOp
or RefillPrepaidAccountOp, then an incompatibleOperationFault
is returned.
IncompatibleOperationException ClearPrepaidAccountResult The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="clearPrepaidAccount">
<xs:complexType>
<xs:sequence>
<xs:element name="prepaidAccountCode" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="value" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="subscriberAccountId" type="xs:integer"/>
<xs:attribute name="subscriberAccountCode" type="xs:string" use="required"/>
<xs:attribute name="serviceProvider" type="xs:string" use="required"/>
<xs:attribute name="enableAmountAlert" type="xs:boolean" default="false"/>
</xs:complexType>
</xs:element>
You can send this operation request in HCI messages to the following final target types of instances in the connected SAP CC system:
| Edition | Final Target Instances | |||||
| rater | updater | guider | bulkLoader | taxer | dispatcher | |
| charge | No | Yes | No | No | No | No |
This operation is audited by the system as part of the audit domain: CUSTOMER. Consult the IT administrator.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
OPERATION_NAME
The XML tag name of this service operation request: "clearPrepaidAccount"
|
| Constructor and Description |
|---|
ClearPrepaidAccountOp()
Builds an empty clear subscriber account operation.
|
| 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.lang.String |
getName()
Gets the name of the clear prepaid account operation.
|
java.util.List<java.lang.String> |
getPrepaidAccountCodes()
Returns the list of codes of prepaid accounts.
|
java.lang.String |
getServiceProvider()
Gets the service provider of the clear prepaid account operation.
|
java.lang.String |
getSubscriberAccountCode()
Gets the subscriber account code of the clear prepaid account operation.
|
java.lang.Long |
getSubscriberAccountId()
Gets the ID of the subscriber account.
|
boolean |
isAmountAlertEnabled()
Tests if the amount alert is enabled for this clear prepaid account operation.
|
void |
isAmountAlertEnabled(boolean amountAlertEnabled)
Enables or disables the amount alert on this clear prepaid account operation.
|
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 |
setServiceProvider(java.lang.String serviceProvider)
Sets service provider of the clear prepaid account operation.
|
void |
setSubscriberAccountCode(java.lang.String subscriberAccountCode)
Sets the subscriber account code of the clear prepaid account operation.
|
void |
setSubscriberAccountId(java.lang.Long suacId)
Sets the ID of the subscriber account.
|
public static final java.lang.String OPERATION_NAME
public ClearPrepaidAccountOp()
public java.lang.String getName()
getName in interface MessageOperationpublic boolean isAmountAlertEnabled()
true if the amount alert has to be enabled, false otherwisepublic void isAmountAlertEnabled(boolean amountAlertEnabled)
amountAlertEnabled - true to enable the amount alert on this clear prepaid operation, false otherwisepublic java.util.List<java.lang.String> getPrepaidAccountCodes()
public java.lang.String getServiceProvider()
public void setServiceProvider(java.lang.String serviceProvider)
serviceProvider - The service provider of the clear prepaid account operationpublic java.lang.String getSubscriberAccountCode()
public void setSubscriberAccountCode(java.lang.String subscriberAccountCode)
subscriberAccountCode - The subscriber account code of the clear prepaid account operationpublic void setSubscriberAccountId(java.lang.Long suacId)
suacId - The identifier of the subscriber accountpublic java.lang.Long getSubscriberAccountId()
public 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