public class AmountAlertModel extends Object implements XMLMarshallable
notified by the SAP CC system when the balance reaches a certain amount.PrepaidAccountModel,
ExpirationAlertModel,
NotificationThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="amountAlert">
<xs:complexType>
<xs:attribute name="amount" type="xs:string" use="required"/>
<xs:attribute name="code" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
| Constructor and Description |
|---|
AmountAlertModel()
Builds an empty amount alert.
|
AmountAlertModel(String code,
BigDecimal amount)
Builds an amount alert.
|
| 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. |
BigDecimal |
getAmount()
Gets the amount of the amount alert.
|
String |
getCode()
Gets the code of the amount alert.
|
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAmount(BigDecimal amount)
Sets the amount of the amount alert.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setCode(String code)
Sets the code of the amount alert.
|
public AmountAlertModel()
public AmountAlertModel(String code, BigDecimal amount)
code - the code of the amount alert.amount - the amount of amount alert.public BigDecimal getAmount()
public void setAmount(BigDecimal amount)
amount - the amount of the amount alert.public String getCode()
public void setCode(String code)
code - the code of the amount alert.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 into