Package com.highdeal.pnr.hci
Class TransactionTemplateModel
java.lang.Object
com.highdeal.pnr.hci.TransactionTemplateModel
- All Implemented Interfaces:
XMLMarshallable
A
TransactionTemplateModel represents the required fields of the computed transactions.
Each dispatch field contains the name of a rating context property.
You configure this template in each charge customized in an offer.- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="transactionTemplate">
<xs:complexType>
<xs:sequence>
<xs:element ref="prepaidTransactionMapping" minOccurs="0" maxOccurs="1"/>
<xs:element ref="detailTemplate" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="dispatch1" type="xs:string"/>
<xs:attribute name="dispatch2" type="xs:string"/>
<xs:attribute name="dispatch3" type="xs:string"/>
<xs:attribute name="filtering" type="xs:boolean" default="true"/>
<xs:attribute name="filterLabel" type="xs:boolean" default="false"/>
<xs:attribute name="filterChargeCode" type="xs:boolean" default="false"/>
<xs:attribute name="filterOfferCode" type="xs:boolean" default="false"/>
</xs:complexType>
</xs:element>
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionTemplateModel(String dispatch1, String dispatch2, String dispatch3, boolean filtering, boolean filterLabel, boolean filterChargeCode, boolean filterOfferCode) Constructs a full transaction template. -
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.Gets the details List.Gets the dispatch property name number 1.Gets the dispatch property name number 2.Gets the dispatch property name number 3.booleanChecks if the main charge code field of transaction is filtered.booleanChecks if the transaction template is filtering.booleanChecks if the main label field of transaction is filtered.booleanChecks if the main offer code field of transaction is filtered.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.voidsetDispatch1(String name) Sets the dispatch property name number 1.voidsetDispatch2(String name) Sets the dispatch property name number 2.voidsetDispatch3(String name) Sets the dispatch property name number 3.voidsetFilterChargeCode(boolean filtering) Determines if the charge code main field of transaction must be filtered.voidsetFiltering(boolean filtering) Sets the filtering flag.voidsetFilterLabel(boolean filtering) Determines if the label main field of transaction must be filtered.voidsetFilterOfferCode(boolean filtering) Determines if the offer code main field of transaction must be filtered.void
-
Constructor Details
-
TransactionTemplateModel
public TransactionTemplateModel() -
TransactionTemplateModel
public TransactionTemplateModel(String dispatch1, String dispatch2, String dispatch3, boolean filtering, boolean filterLabel, boolean filterChargeCode, boolean filterOfferCode) Constructs a full transaction template.- Parameters:
dispatch1- the property full name number 1.dispatch2- the property full name number 2.dispatch3- the property full name number 3.filtering- the filtering mode.filterLabel- the filtering transaction label flag.filterChargeCode- the filetring transaction charge code flag.filterOfferCode- the filtering transaction offer code flag.
-
-
Method Details
-
getDispatch1
Gets the dispatch property name number 1.- Returns:
- the dispatch property name.
-
setDispatch1
Sets the dispatch property name number 1.- Parameters:
name- the dispatch property name.
-
getDispatch2
Gets the dispatch property name number 2.- Returns:
- the dispatch property name.
-
setDispatch2
Sets the dispatch property name number 2.- Parameters:
name- the dispatch property name.
-
getDispatch3
Gets the dispatch property name number 3.- Returns:
- the dispatch property name.
-
setDispatch3
Sets the dispatch property name number 3.- Parameters:
name- the dispatch property name.
-
getDetailTemplates
Gets the details List.- Returns:
- a List of
Detail Template.
-
isFiltering
public boolean isFiltering()Checks if the transaction template is filtering.- Returns:
- true if filtering, false otherwise.
-
setFiltering
public void setFiltering(boolean filtering) Sets the filtering flag.- Parameters:
filtering- true if filtering, false otherwise.
-
isFilterLabel
public boolean isFilterLabel()Checks if the main label field of transaction is filtered.- Returns:
- true if filtered, false otherwise.
-
setFilterLabel
public void setFilterLabel(boolean filtering) Determines if the label main field of transaction must be filtered.- Parameters:
filtering- true if filtering, false otherwise.
-
isFilterChargeCode
public boolean isFilterChargeCode()Checks if the main charge code field of transaction is filtered.- Returns:
- true if filtered, false otherwise.
-
setFilterChargeCode
public void setFilterChargeCode(boolean filtering) Determines if the charge code main field of transaction must be filtered.- Parameters:
filtering- true if filtering, false otherwise.
-
isFilterOfferCode
public boolean isFilterOfferCode()Checks if the main offer code field of transaction is filtered.- Returns:
- true if filtered, false otherwise.
-
setFilterOfferCode
public void setFilterOfferCode(boolean filtering) Determines if the offer code main field of transaction must be filtered.- Parameters:
filtering- true if filtering, false otherwise.
-
getPrepaidTransactionMapping
-
setPrepaidTransactionMappingModel
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Specified by:
addCharacterDatain interfaceXMLMarshallable- Parameters:
cData- The character data to be added
-
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
-
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
-