public class TransactionTemplateModel extends Object implements XMLMarshallable
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.ChargeConditionModelThe 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 and Description |
|---|
TransactionTemplateModel() |
TransactionTemplateModel(String dispatch1,
String dispatch2,
String dispatch3,
boolean filtering,
boolean filterLabel,
boolean filterChargeCode,
boolean filterOfferCode)
Constructs a full transaction template.
|
| 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. |
List<DetailTemplateModel> |
getDetailTemplates()
Gets the details List.
|
String |
getDispatch1()
Gets the dispatch property name number 1.
|
String |
getDispatch2()
Gets the dispatch property name number 2.
|
String |
getDispatch3()
Gets the dispatch property name number 3.
|
PrepaidTransactionMappingModel |
getPrepaidTransactionMapping() |
boolean |
isFilterChargeCode()
Checks if the main charge code field of transaction is filtered.
|
boolean |
isFiltering()
Checks if the transaction template is filtering.
|
boolean |
isFilterLabel()
Checks if the main label field of transaction is filtered.
|
boolean |
isFilterOfferCode()
Checks if the main offer code field of transaction is filtered.
|
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 |
setDispatch1(String name)
Sets the dispatch property name number 1.
|
void |
setDispatch2(String name)
Sets the dispatch property name number 2.
|
void |
setDispatch3(String name)
Sets the dispatch property name number 3.
|
void |
setFilterChargeCode(boolean filtering)
Determines if the charge code main field of transaction must be filtered.
|
void |
setFiltering(boolean filtering)
Sets the filtering flag.
|
void |
setFilterLabel(boolean filtering)
Determines if the label main field of transaction must be filtered.
|
void |
setFilterOfferCode(boolean filtering)
Determines if the offer code main field of transaction must be filtered.
|
void |
setPrepaidTransactionMappingModel(PrepaidTransactionMappingModel mapping) |
public TransactionTemplateModel()
public TransactionTemplateModel(String dispatch1, String dispatch2, String dispatch3, boolean filtering, boolean filterLabel, boolean filterChargeCode, boolean filterOfferCode)
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.public String getDispatch1()
public void setDispatch1(String name)
name - the dispatch property name.public String getDispatch2()
public void setDispatch2(String name)
name - the dispatch property name.public String getDispatch3()
public void setDispatch3(String name)
name - the dispatch property name.public List<DetailTemplateModel> getDetailTemplates()
Detail Template.public boolean isFiltering()
public void setFiltering(boolean filtering)
filtering - true if filtering, false otherwise.public boolean isFilterLabel()
public void setFilterLabel(boolean filtering)
filtering - true if filtering, false otherwise.public boolean isFilterChargeCode()
public void setFilterChargeCode(boolean filtering)
filtering - true if filtering, false otherwise.public boolean isFilterOfferCode()
public void setFilterOfferCode(boolean filtering)
filtering - true if filtering, false otherwise.public PrepaidTransactionMappingModel getPrepaidTransactionMapping()
public void setPrepaidTransactionMappingModel(PrepaidTransactionMappingModel mapping)
public void addCharacterData(String cData)
XMLMarshallableaddCharacterData in interface XMLMarshallablecData - The character data to be addedpublic 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 marshal(XMLOutputter output)
XMLMarshallablemarshal in interface XMLMarshallableoutput - The XML output to marshal the object into