Class TaxDataModel
- All Implemented Interfaces:
XMLMarshallable
Java class specifies some specific tax settings that must configured in the tax settings of a subscriber account (in customer master data of the service provider);
These specific tax settings are adapted to each invoicing tax system supported by SAP Convergent Charging.
You can:
- Define certain VAT tax settings for a subscriber account
- Customer country code
- Business category
- Redefine certain EZTax settings for a subscriber account
- Origination
- Termination
- Service address
- Customer type
- Resale flag
- Incorporated code
Note
This EZTax configuration data is related to an end customer of the service provider. This EZTax data overrides the EZTax data which is pricing catalog of the service provider. Tax settings are set at pricing catalog level in a charge customized in an offer (see
ChargeConditionModel) (or in a charge plan). Refer to BillSoft EZTax product documentation for more information about the role of this tax data.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="taxData">
<xs:complexType>
<xs:choice>
<xs:element name="eztaxData" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="value" type="xs:string"/>
<xs:attribute name="type" type="TaxDataType" default="string"/>
</xs:complexType>
</xs:element>
<xs:element name="vatData" minOccurs="0" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="name" type="xs:string"/>
<xs:attribute name="value" type="xs:string"/>
<xs:attribute name="type" type="TaxDataType" default="string"/>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element><xs:simpleType name="TaxDataType">
<xs:restriction base="xs:string">
<xs:enumeration value="string"/>
<xs:enumeration value="number"/>
<xs:enumeration value="date"/>
</xs:restriction>
</xs:simpleType>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThisenumerationlists the typesstatic enumThisenumerationlists the type of tax data as string, number, or date. -
Constructor Summary
ConstructorsConstructorDescriptionBuilds an empty tax data.TaxDataModel(String taxDataStr) Builds an empty tax data. -
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.voidaddEZTaxData(String name, String value) Sets a description associated with a language.voidaddVatData(String name, String value) Sets a description associated with a language.voidclear()Clears all descriptions associated with a language.getEZTaxData(String name) Gets the description associated with the given language, if exists.getVatData(String name) Gets the description associated with the given language, if exists.booleanReturns true if the tax data is empty.booleanReturns true if the tax data is empty.booleanisEmpty()Returns true if the tax data is empty.voidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidremoveEZTaxData(String name) Removes a description associated with a language.voidremoveVatData(String name) Removes a description associated with a language.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.toString()Returns a string representation of the tax data.
-
Constructor Details
-
TaxDataModel
public TaxDataModel()Builds an empty tax data. -
TaxDataModel
Builds an empty tax data.For VAT, the CSV string contains only values ordered as follows: VAT_CUSTOMER_COUNTRY_CODE; VAT_BUSINESS_CATEGORY
For EZTax, the CSV string contains only values ordered as follows: EZTAX_ORIGINATION; EZTAX_TERMINATION; EZTAX_SERVICE_ADDRESS; EZTAX_CUSTOMER_TYPE; EZTAX_RESALE_FLAG; EZTAX_INC_CODE
- Parameters:
taxDataStr- A string that contains a tax data as a CSV string
-
-
Method Details
-
addVatData
Sets a description associated with a language.- Parameters:
name- The name of the tax datavalue- The value associated with the given tax data
-
addEZTaxData
Sets a description associated with a language.- Parameters:
name- The name of the tax datavalue- The value associated with the given tax data
-
clear
public void clear()Clears all descriptions associated with a language. -
removeVatData
Removes a description associated with a language.- Parameters:
name- The name of the tax data
-
removeEZTaxData
Removes a description associated with a language.- Parameters:
name- The name of the tax data
-
getVatData
Gets the description associated with the given language, if exists.- Parameters:
name- The name of the tax data- Returns:
- The value associated with the given name, if exists, null otherwise.
-
getEZTaxData
Gets the description associated with the given language, if exists.- Parameters:
name- The name of the tax data- Returns:
- The value associated with the given name, if exists, null otherwise
-
isEmpty
public boolean isEmpty()Returns true if the tax data is empty.- Returns:
- true if the tax data is empty, false otherwise
-
hasVatData
public boolean hasVatData()Returns true if the tax data is empty.- Returns:
- true if the tax data is empty, false otherwise
-
hasEZTaxData
public boolean hasEZTaxData()Returns true if the tax data is empty.- Returns:
- true if the tax data is empty, false otherwise
-
toString
Returns a string representation of the tax data. -
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
-