public class ExternalAccountModel extends Object implements XMLMarshallable
Java class represents an external account defined in a subscriber account
stored in customer master data owned by a service provider;
An external account is a reference to an account that is managed by a third-party accounting system in a postpaid environment.SubscriberAccountModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="externalAccount">
<xs:complexType>
<xs:attribute name="code" type="xs:string" use="required"/>
<xs:attribute name="description" type="xs:string"/>
<xs:attribute name="currency" type="xs:string"/>
<xs:attribute name="externalAccountCode" type="xs:string"/>
<xs:attribute name="systemCode" type="xs:string"/>
<xs:attribute name="type" type="ExternalAccountType"/>
</xs:complexType>
</xs:element><xs:simpleType name="ExternalAccountType"> <xs:restriction base="xs:string"> <xs:enumeration value="payable"/> <xs:enumeration value="receivable"/> <xs:enumeration value="undefined"/> </xs:restriction> </xs:simpleType>
| Modifier and Type | Class and Description |
|---|---|
static class |
ExternalAccountModel.ExternalAccountType |
| Constructor and Description |
|---|
ExternalAccountModel()
Builds an empty external account.
|
ExternalAccountModel(String code,
String description,
String currency,
String externalAccountCode,
String systemCode,
ExternalAccountModel.ExternalAccountType type)
Builds an external account.
|
| 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. |
String |
getCode()
Gets the code of the external account.
|
RatingContextDescription |
getContext(ContextualNode child) |
String |
getCurrencyCode()
Gets the currency code of the external account.
|
String |
getDescription()
Gets the comprehensive description of the external account.
|
String |
getExternalAccountCode()
Gets the external account code of the external account.
|
String |
getSystemCode()
Gets the system code of the external account.
|
ExternalAccountModel.ExternalAccountType |
getType()
Gets the type of the external account.
|
RatingContextDescription |
inheritedContext() |
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 |
setCode(String code)
Sets the code of the external account.
|
void |
setCurrencyCode(String currencyCode)
Sets the currency code of the external account.
|
void |
setDescription(String description)
Sets the comprehensive description of the external account.
|
void |
setExternalAccountCode(String externalAccountCode)
Sets the external account code of the external account.
|
void |
setSystemCode(String systemCode)
Sets the system code of the external account.
|
void |
setType(ExternalAccountModel.ExternalAccountType type)
Sets the type of the external account.
|
public ExternalAccountModel()
public ExternalAccountModel(String code, String description, String currency, String externalAccountCode, String systemCode, ExternalAccountModel.ExternalAccountType type)
code - The code of the external accountdescription - The description of the external accountcurrency - The currency of the external accountexternalAccountCode - The external account code of the external accountsystemCode - The system code of the external accounttype - The type of the external accountpublic String getCode()
public void setCode(String code)
code - The code of the external accountpublic String getDescription()
public void setDescription(String description)
description - The text description of the external accountpublic String getCurrencyCode()
public void setCurrencyCode(String currencyCode)
currencyCode - The currency code of the external accountpublic String getExternalAccountCode()
public void setExternalAccountCode(String externalAccountCode)
externalAccountCode - The external account code of the external accountpublic String getSystemCode()
public void setSystemCode(String systemCode)
systemCode - The system code of the external accountpublic ExternalAccountModel.ExternalAccountType getType()
ExternalAccountModel.ExternalAccountType.PAYABLE,
ExternalAccountModel.ExternalAccountType.RECEIVABLE,
ExternalAccountModel.ExternalAccountType.UNDEFINEDpublic void setType(ExternalAccountModel.ExternalAccountType type)
type - The type of the external account
Available types are:ExternalAccountModel.ExternalAccountType.PAYABLE,
ExternalAccountModel.ExternalAccountType.RECEIVABLE,
ExternalAccountModel.ExternalAccountType.UNDEFINEDpublic RatingContextDescription getContext(ContextualNode child)
public RatingContextDescription inheritedContext()
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