public class PaymentTypeFilter extends java.lang.Object implements Filter
XML Snippet for this type of Filter:
<Filter impl="com.ibm.commerce.marketing.promotion.condition.PaymentTypeFilter"> <IncludePaymentType> <PaymentMethodName>VISA</PaymentMethodName> </IncludePaymentType> </Filter>
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
PaymentTypeFilter()
Constructor for PaymentTypeFilter.
|
Modifier and Type | Method and Description |
---|---|
protected boolean | containsInInclusionList(java.lang.String paymethname)
This method checks if a payment method name belongs to the inclusion list.
|
LineItemSet | filter(LineItemSet input, PromotionContext context)
This method returns the LineItemSet containing order items which are qualified for promotion through filtering payment method types.
|
void | fromXML(org.w3c.dom.Node anXMLNode)
Transforms the XML node into its corresponding real Object.
|
java.util.List | getInclusionList()
This method gets the list of payment method names in the inclusion list.
|
protected java.util.List | getOrderPaymentMethods(Order aOrder)
Gets a list of payment method name that are used by the order.
|
java.lang.String | toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public java.util.List getInclusionList()
protected boolean containsInInclusionList(java.lang.String paymethname)
protected java.util.List getOrderPaymentMethods(Order aOrder)
public LineItemSet filter(LineItemSet input, PromotionContext context)
public void fromXML(org.w3c.dom.Node anXMLNode) throws DeXMLizationException
public java.lang.String toXML() throws XMLizationException