com.konakart.json.app
Class J_Coupon

java.lang.Object
  extended by com.konakart.json.app.J_Coupon
All Implemented Interfaces:
java.io.Serializable

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

The Coupon class contains information about the coupon which can be used to activate promotions on an order.

See Also:
Serialized Form

Constructor Summary
J_Coupon()
           
 
Method Summary
 java.lang.String getCouponCode()
          The code of the coupon is the string used by a customer to activate it.
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.lang.String getCustom3()
           
 java.lang.String getCustom4()
           
 java.lang.String getCustom5()
           
 java.util.Calendar getDateAdded()
           
 java.lang.String getDescription()
           
 int getId()
           
 java.util.Calendar getLastModified()
           
 int getMaxUse()
          The maximum number of times that a coupon may be used.
 java.lang.String getName()
           
 int getTimesUsed()
          The number of times that a coupon has been used.
 void setCouponCode(java.lang.String _couponCode)
          The code of the coupon is the string used by a customer to activate it.
 void setCustom1(java.lang.String _custom1)
           
 void setCustom2(java.lang.String _custom2)
           
 void setCustom3(java.lang.String _custom3)
           
 void setCustom4(java.lang.String _custom4)
           
 void setCustom5(java.lang.String _custom5)
           
 void setDateAdded(java.util.Calendar _dateAdded)
           
 void setDescription(java.lang.String _description)
           
 void setId(int _id)
           
 void setLastModified(java.util.Calendar _lastModified)
           
 void setMaxUse(int _maxUse)
          The maximum number of times that a coupon may be used.
 void setName(java.lang.String _name)
           
 void setTimesUsed(int _timesUsed)
          The number of times that a coupon has been used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J_Coupon

public J_Coupon()
Method Detail

getCouponCode

public java.lang.String getCouponCode()
The code of the coupon is the string used by a customer to activate it.

Returns:
Returns the couponCode.

setCouponCode

public void setCouponCode(java.lang.String _couponCode)
The code of the coupon is the string used by a customer to activate it.

Parameters:
_couponCode - The couponCode to set.

getCustom1

public java.lang.String getCustom1()
Returns:
Returns the custom1.

setCustom1

public void setCustom1(java.lang.String _custom1)
Parameters:
_custom1 - The custom1 to set.

getCustom2

public java.lang.String getCustom2()
Returns:
Returns the custom2.

setCustom2

public void setCustom2(java.lang.String _custom2)
Parameters:
_custom2 - The custom2 to set.

getCustom3

public java.lang.String getCustom3()
Returns:
Returns the custom3.

setCustom3

public void setCustom3(java.lang.String _custom3)
Parameters:
_custom3 - The custom3 to set.

getCustom4

public java.lang.String getCustom4()
Returns:
Returns the custom4.

setCustom4

public void setCustom4(java.lang.String _custom4)
Parameters:
_custom4 - The custom4 to set.

getCustom5

public java.lang.String getCustom5()
Returns:
Returns the custom5.

setCustom5

public void setCustom5(java.lang.String _custom5)
Parameters:
_custom5 - The custom5 to set.

getDescription

public java.lang.String getDescription()
Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String _description)
Parameters:
_description - The description to set.

getId

public int getId()
Returns:
Returns the id.

setId

public void setId(int _id)
Parameters:
_id - The id to set.

getMaxUse

public int getMaxUse()
The maximum number of times that a coupon may be used. -1 indicates unlimited use.

Returns:
Returns the maxUse.

setMaxUse

public void setMaxUse(int _maxUse)
The maximum number of times that a coupon may be used. -1 indicates unlimited use.

Parameters:
_maxUse - The maxUse to set.

getName

public java.lang.String getName()
Returns:
Returns the name.

setName

public void setName(java.lang.String _name)
Parameters:
_name - The name to set.

getTimesUsed

public int getTimesUsed()
The number of times that a coupon has been used.

Returns:
Returns the timesUsed.

setTimesUsed

public void setTimesUsed(int _timesUsed)
The number of times that a coupon has been used.

Parameters:
_timesUsed - The timesUsed to set.

getDateAdded

public java.util.Calendar getDateAdded()
Returns:
Returns the dateAdded.

setDateAdded

public void setDateAdded(java.util.Calendar _dateAdded)
Parameters:
_dateAdded - The dateAdded to set.

getLastModified

public java.util.Calendar getLastModified()
Returns:
Returns the lastModified.

setLastModified

public void setLastModified(java.util.Calendar _lastModified)
Parameters:
_lastModified - The lastModified to set.


Copyright © 2011 DS Data Systems UK Ltd.