|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.TransactionTemplateModel
public class TransactionTemplateModel
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.
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 Summary | |
|---|---|
TransactionTemplateModel()
|
|
TransactionTemplateModel(java.lang.String dispatch1,
java.lang.String dispatch2,
java.lang.String dispatch3,
boolean filtering,
boolean filterLabel,
boolean filterChargeCode,
boolean filterOfferCode)
Constructs a full transaction template. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
java.util.List<DetailTemplateModel> |
getDetailTemplates()
Gets the details List. |
java.lang.String |
getDispatch1()
Gets the dispatch property name number 1. |
java.lang.String |
getDispatch2()
Gets the dispatch property name number 2. |
java.lang.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(java.lang.String name)
Sets the dispatch property name number 1. |
void |
setDispatch2(java.lang.String name)
Sets the dispatch property name number 2. |
void |
setDispatch3(java.lang.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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransactionTemplateModel()
public TransactionTemplateModel(java.lang.String dispatch1,
java.lang.String dispatch2,
java.lang.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.| Method Detail |
|---|
public java.lang.String getDispatch1()
public void setDispatch1(java.lang.String name)
name - the dispatch property name.public java.lang.String getDispatch2()
public void setDispatch2(java.lang.String name)
name - the dispatch property name.public java.lang.String getDispatch3()
public void setDispatch3(java.lang.String name)
name - the dispatch property name.public java.util.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(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public void addChild(java.lang.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)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object into
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||