Package com.highdeal.pnr.hci
Class ExternalAccountModel
java.lang.Object
com.highdeal.pnr.hci.ExternalAccountModel
- All Implemented Interfaces:
XMLMarshallable
This
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.- See Also:
XML API for HCI
The 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>
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBuilds an empty external account.ExternalAccountModel(String code, String description, String currency, String externalAccountCode, String systemCode, ExternalAccountModel.ExternalAccountType type) Builds an external account. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.getCode()Gets the code of the external account.getContext(ContextualNode child) Gets the currency code of the external account.Gets the comprehensive description of the external account.Gets the external account code of the external account.Gets the system code of the external account.getType()Gets the type of the external account.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.voidSets the code of the external account.voidsetCurrencyCode(String currencyCode) Sets the currency code of the external account.voidsetDescription(String description) Sets the comprehensive description of the external account.voidsetExternalAccountCode(String externalAccountCode) Sets the external account code of the external account.voidsetSystemCode(String systemCode) Sets the system code of the external account.voidSets the type of the external account.
-
Constructor Details
-
ExternalAccountModel
public ExternalAccountModel()Builds an empty external account. -
ExternalAccountModel
public ExternalAccountModel(String code, String description, String currency, String externalAccountCode, String systemCode, ExternalAccountModel.ExternalAccountType type) Builds an external account.- Parameters:
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 account
-
-
Method Details
-
getCode
Gets the code of the external account.- Returns:
- The code of the external account
-
setCode
Sets the code of the external account.- Parameters:
code- The code of the external account
-
getDescription
Gets the comprehensive description of the external account.- Returns:
- The text description of the external account
-
setDescription
Sets the comprehensive description of the external account.- Parameters:
description- The text description of the external account
-
getCurrencyCode
Gets the currency code of the external account.- Returns:
- The currency code of the external account
-
setCurrencyCode
Sets the currency code of the external account.- Parameters:
currencyCode- The currency code of the external account
-
getExternalAccountCode
Gets the external account code of the external account.- Returns:
- The external account code of the external account
-
setExternalAccountCode
Sets the external account code of the external account.- Parameters:
externalAccountCode- The external account code of the external account
-
getSystemCode
Gets the system code of the external account.- Returns:
- The system code of the external account
-
setSystemCode
Sets the system code of the external account.- Parameters:
systemCode- The system code of the external account
-
getType
Gets the type of the external account.- Returns:
- The type of the external account
- See Also:
-
setType
Sets the type of the external account.- Parameters:
type- The type of the external account Available types are:- See Also:
-
getContext
-
inheritedContext
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Specified by:
setAttributesin interfaceXMLMarshallable- Parameters:
atts- TheXML attributesof the current element
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Specified by:
addChildin interfaceXMLMarshallable- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Specified by:
marshalin interfaceXMLMarshallable- Parameters:
output- TheXML outputto marshal the object into
-