com.konakart.wsapp
Class Promotion

java.lang.Object
  extended by com.konakart.wsapp.Promotion
All Implemented Interfaces:
java.io.Serializable

public class Promotion
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
Promotion()
           
Promotion(boolean active, OrderProduct[] applicableProducts, int categoryRule, Coupon coupon, boolean cumulative, java.lang.String custom1, java.lang.String custom10, java.lang.String custom2, java.lang.String custom3, java.lang.String custom4, java.lang.String custom5, java.lang.String custom6, java.lang.String custom7, java.lang.String custom8, java.lang.String custom9, int customerGroupRule, int customerRule, java.util.Calendar dateAdded, java.lang.String description, java.util.Calendar endDate, int id, java.util.Calendar lastModified, int manufacturerRule, int maxUse, java.lang.String name, java.lang.String orderTotalCode, int productRule, boolean requiresCoupon, java.util.Calendar startDate)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 OrderProduct[] getApplicableProducts()
          Gets the applicableProducts value for this Promotion.
 int getCategoryRule()
          Gets the categoryRule value for this Promotion.
 Coupon getCoupon()
          Gets the coupon value for this Promotion.
 java.lang.String getCustom1()
          Gets the custom1 value for this Promotion.
 java.lang.String getCustom10()
          Gets the custom10 value for this Promotion.
 java.lang.String getCustom2()
          Gets the custom2 value for this Promotion.
 java.lang.String getCustom3()
          Gets the custom3 value for this Promotion.
 java.lang.String getCustom4()
          Gets the custom4 value for this Promotion.
 java.lang.String getCustom5()
          Gets the custom5 value for this Promotion.
 java.lang.String getCustom6()
          Gets the custom6 value for this Promotion.
 java.lang.String getCustom7()
          Gets the custom7 value for this Promotion.
 java.lang.String getCustom8()
          Gets the custom8 value for this Promotion.
 java.lang.String getCustom9()
          Gets the custom9 value for this Promotion.
 int getCustomerGroupRule()
          Gets the customerGroupRule value for this Promotion.
 int getCustomerRule()
          Gets the customerRule value for this Promotion.
 java.util.Calendar getDateAdded()
          Gets the dateAdded value for this Promotion.
 java.lang.String getDescription()
          Gets the description value for this Promotion.
static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Deserializer
 java.util.Calendar getEndDate()
          Gets the endDate value for this Promotion.
 int getId()
          Gets the id value for this Promotion.
 java.util.Calendar getLastModified()
          Gets the lastModified value for this Promotion.
 int getManufacturerRule()
          Gets the manufacturerRule value for this Promotion.
 int getMaxUse()
          Gets the maxUse value for this Promotion.
 java.lang.String getName()
          Gets the name value for this Promotion.
 java.lang.String getOrderTotalCode()
          Gets the orderTotalCode value for this Promotion.
 int getProductRule()
          Gets the productRule value for this Promotion.
static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType, java.lang.Class _javaType, javax.xml.namespace.QName _xmlType)
          Get Custom Serializer
 java.util.Calendar getStartDate()
          Gets the startDate value for this Promotion.
static org.apache.axis.description.TypeDesc getTypeDesc()
          Return type metadata object
 int hashCode()
           
 boolean isActive()
          Gets the active value for this Promotion.
 boolean isCumulative()
          Gets the cumulative value for this Promotion.
 boolean isRequiresCoupon()
          Gets the requiresCoupon value for this Promotion.
 void setActive(boolean active)
          Sets the active value for this Promotion.
 void setApplicableProducts(OrderProduct[] applicableProducts)
          Sets the applicableProducts value for this Promotion.
 void setCategoryRule(int categoryRule)
          Sets the categoryRule value for this Promotion.
 void setCoupon(Coupon coupon)
          Sets the coupon value for this Promotion.
 void setCumulative(boolean cumulative)
          Sets the cumulative value for this Promotion.
 void setCustom1(java.lang.String custom1)
          Sets the custom1 value for this Promotion.
 void setCustom10(java.lang.String custom10)
          Sets the custom10 value for this Promotion.
 void setCustom2(java.lang.String custom2)
          Sets the custom2 value for this Promotion.
 void setCustom3(java.lang.String custom3)
          Sets the custom3 value for this Promotion.
 void setCustom4(java.lang.String custom4)
          Sets the custom4 value for this Promotion.
 void setCustom5(java.lang.String custom5)
          Sets the custom5 value for this Promotion.
 void setCustom6(java.lang.String custom6)
          Sets the custom6 value for this Promotion.
 void setCustom7(java.lang.String custom7)
          Sets the custom7 value for this Promotion.
 void setCustom8(java.lang.String custom8)
          Sets the custom8 value for this Promotion.
 void setCustom9(java.lang.String custom9)
          Sets the custom9 value for this Promotion.
 void setCustomerGroupRule(int customerGroupRule)
          Sets the customerGroupRule value for this Promotion.
 void setCustomerRule(int customerRule)
          Sets the customerRule value for this Promotion.
 void setDateAdded(java.util.Calendar dateAdded)
          Sets the dateAdded value for this Promotion.
 void setDescription(java.lang.String description)
          Sets the description value for this Promotion.
 void setEndDate(java.util.Calendar endDate)
          Sets the endDate value for this Promotion.
 void setId(int id)
          Sets the id value for this Promotion.
 void setLastModified(java.util.Calendar lastModified)
          Sets the lastModified value for this Promotion.
 void setManufacturerRule(int manufacturerRule)
          Sets the manufacturerRule value for this Promotion.
 void setMaxUse(int maxUse)
          Sets the maxUse value for this Promotion.
 void setName(java.lang.String name)
          Sets the name value for this Promotion.
 void setOrderTotalCode(java.lang.String orderTotalCode)
          Sets the orderTotalCode value for this Promotion.
 void setProductRule(int productRule)
          Sets the productRule value for this Promotion.
 void setRequiresCoupon(boolean requiresCoupon)
          Sets the requiresCoupon value for this Promotion.
 void setStartDate(java.util.Calendar startDate)
          Sets the startDate value for this Promotion.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Promotion

public Promotion()

Promotion

public Promotion(boolean active,
                 OrderProduct[] applicableProducts,
                 int categoryRule,
                 Coupon coupon,
                 boolean cumulative,
                 java.lang.String custom1,
                 java.lang.String custom10,
                 java.lang.String custom2,
                 java.lang.String custom3,
                 java.lang.String custom4,
                 java.lang.String custom5,
                 java.lang.String custom6,
                 java.lang.String custom7,
                 java.lang.String custom8,
                 java.lang.String custom9,
                 int customerGroupRule,
                 int customerRule,
                 java.util.Calendar dateAdded,
                 java.lang.String description,
                 java.util.Calendar endDate,
                 int id,
                 java.util.Calendar lastModified,
                 int manufacturerRule,
                 int maxUse,
                 java.lang.String name,
                 java.lang.String orderTotalCode,
                 int productRule,
                 boolean requiresCoupon,
                 java.util.Calendar startDate)
Method Detail

isActive

public boolean isActive()
Gets the active value for this Promotion.

Returns:
active

setActive

public void setActive(boolean active)
Sets the active value for this Promotion.

Parameters:
active -

getApplicableProducts

public OrderProduct[] getApplicableProducts()
Gets the applicableProducts value for this Promotion.

Returns:
applicableProducts

setApplicableProducts

public void setApplicableProducts(OrderProduct[] applicableProducts)
Sets the applicableProducts value for this Promotion.

Parameters:
applicableProducts -

getCategoryRule

public int getCategoryRule()
Gets the categoryRule value for this Promotion.

Returns:
categoryRule

setCategoryRule

public void setCategoryRule(int categoryRule)
Sets the categoryRule value for this Promotion.

Parameters:
categoryRule -

getCoupon

public Coupon getCoupon()
Gets the coupon value for this Promotion.

Returns:
coupon

setCoupon

public void setCoupon(Coupon coupon)
Sets the coupon value for this Promotion.

Parameters:
coupon -

isCumulative

public boolean isCumulative()
Gets the cumulative value for this Promotion.

Returns:
cumulative

setCumulative

public void setCumulative(boolean cumulative)
Sets the cumulative value for this Promotion.

Parameters:
cumulative -

getCustom1

public java.lang.String getCustom1()
Gets the custom1 value for this Promotion.

Returns:
custom1

setCustom1

public void setCustom1(java.lang.String custom1)
Sets the custom1 value for this Promotion.

Parameters:
custom1 -

getCustom10

public java.lang.String getCustom10()
Gets the custom10 value for this Promotion.

Returns:
custom10

setCustom10

public void setCustom10(java.lang.String custom10)
Sets the custom10 value for this Promotion.

Parameters:
custom10 -

getCustom2

public java.lang.String getCustom2()
Gets the custom2 value for this Promotion.

Returns:
custom2

setCustom2

public void setCustom2(java.lang.String custom2)
Sets the custom2 value for this Promotion.

Parameters:
custom2 -

getCustom3

public java.lang.String getCustom3()
Gets the custom3 value for this Promotion.

Returns:
custom3

setCustom3

public void setCustom3(java.lang.String custom3)
Sets the custom3 value for this Promotion.

Parameters:
custom3 -

getCustom4

public java.lang.String getCustom4()
Gets the custom4 value for this Promotion.

Returns:
custom4

setCustom4

public void setCustom4(java.lang.String custom4)
Sets the custom4 value for this Promotion.

Parameters:
custom4 -

getCustom5

public java.lang.String getCustom5()
Gets the custom5 value for this Promotion.

Returns:
custom5

setCustom5

public void setCustom5(java.lang.String custom5)
Sets the custom5 value for this Promotion.

Parameters:
custom5 -

getCustom6

public java.lang.String getCustom6()
Gets the custom6 value for this Promotion.

Returns:
custom6

setCustom6

public void setCustom6(java.lang.String custom6)
Sets the custom6 value for this Promotion.

Parameters:
custom6 -

getCustom7

public java.lang.String getCustom7()
Gets the custom7 value for this Promotion.

Returns:
custom7

setCustom7

public void setCustom7(java.lang.String custom7)
Sets the custom7 value for this Promotion.

Parameters:
custom7 -

getCustom8

public java.lang.String getCustom8()
Gets the custom8 value for this Promotion.

Returns:
custom8

setCustom8

public void setCustom8(java.lang.String custom8)
Sets the custom8 value for this Promotion.

Parameters:
custom8 -

getCustom9

public java.lang.String getCustom9()
Gets the custom9 value for this Promotion.

Returns:
custom9

setCustom9

public void setCustom9(java.lang.String custom9)
Sets the custom9 value for this Promotion.

Parameters:
custom9 -

getCustomerGroupRule

public int getCustomerGroupRule()
Gets the customerGroupRule value for this Promotion.

Returns:
customerGroupRule

setCustomerGroupRule

public void setCustomerGroupRule(int customerGroupRule)
Sets the customerGroupRule value for this Promotion.

Parameters:
customerGroupRule -

getCustomerRule

public int getCustomerRule()
Gets the customerRule value for this Promotion.

Returns:
customerRule

setCustomerRule

public void setCustomerRule(int customerRule)
Sets the customerRule value for this Promotion.

Parameters:
customerRule -

getDateAdded

public java.util.Calendar getDateAdded()
Gets the dateAdded value for this Promotion.

Returns:
dateAdded

setDateAdded

public void setDateAdded(java.util.Calendar dateAdded)
Sets the dateAdded value for this Promotion.

Parameters:
dateAdded -

getDescription

public java.lang.String getDescription()
Gets the description value for this Promotion.

Returns:
description

setDescription

public void setDescription(java.lang.String description)
Sets the description value for this Promotion.

Parameters:
description -

getEndDate

public java.util.Calendar getEndDate()
Gets the endDate value for this Promotion.

Returns:
endDate

setEndDate

public void setEndDate(java.util.Calendar endDate)
Sets the endDate value for this Promotion.

Parameters:
endDate -

getId

public int getId()
Gets the id value for this Promotion.

Returns:
id

setId

public void setId(int id)
Sets the id value for this Promotion.

Parameters:
id -

getLastModified

public java.util.Calendar getLastModified()
Gets the lastModified value for this Promotion.

Returns:
lastModified

setLastModified

public void setLastModified(java.util.Calendar lastModified)
Sets the lastModified value for this Promotion.

Parameters:
lastModified -

getManufacturerRule

public int getManufacturerRule()
Gets the manufacturerRule value for this Promotion.

Returns:
manufacturerRule

setManufacturerRule

public void setManufacturerRule(int manufacturerRule)
Sets the manufacturerRule value for this Promotion.

Parameters:
manufacturerRule -

getMaxUse

public int getMaxUse()
Gets the maxUse value for this Promotion.

Returns:
maxUse

setMaxUse

public void setMaxUse(int maxUse)
Sets the maxUse value for this Promotion.

Parameters:
maxUse -

getName

public java.lang.String getName()
Gets the name value for this Promotion.

Returns:
name

setName

public void setName(java.lang.String name)
Sets the name value for this Promotion.

Parameters:
name -

getOrderTotalCode

public java.lang.String getOrderTotalCode()
Gets the orderTotalCode value for this Promotion.

Returns:
orderTotalCode

setOrderTotalCode

public void setOrderTotalCode(java.lang.String orderTotalCode)
Sets the orderTotalCode value for this Promotion.

Parameters:
orderTotalCode -

getProductRule

public int getProductRule()
Gets the productRule value for this Promotion.

Returns:
productRule

setProductRule

public void setProductRule(int productRule)
Sets the productRule value for this Promotion.

Parameters:
productRule -

isRequiresCoupon

public boolean isRequiresCoupon()
Gets the requiresCoupon value for this Promotion.

Returns:
requiresCoupon

setRequiresCoupon

public void setRequiresCoupon(boolean requiresCoupon)
Sets the requiresCoupon value for this Promotion.

Parameters:
requiresCoupon -

getStartDate

public java.util.Calendar getStartDate()
Gets the startDate value for this Promotion.

Returns:
startDate

setStartDate

public void setStartDate(java.util.Calendar startDate)
Sets the startDate value for this Promotion.

Parameters:
startDate -

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getTypeDesc

public static org.apache.axis.description.TypeDesc getTypeDesc()
Return type metadata object


getSerializer

public static org.apache.axis.encoding.Serializer getSerializer(java.lang.String mechType,
                                                                java.lang.Class _javaType,
                                                                javax.xml.namespace.QName _xmlType)
Get Custom Serializer


getDeserializer

public static org.apache.axis.encoding.Deserializer getDeserializer(java.lang.String mechType,
                                                                    java.lang.Class _javaType,
                                                                    javax.xml.namespace.QName _xmlType)
Get Custom Deserializer



Copyright © 2011 DS Data Systems UK Ltd.