com.konakart.appif
Interface CouponIf


public interface CouponIf

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


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.
 

Method Detail

getCouponCode

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

Returns:
Returns the couponCode.

setCouponCode

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

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

setCustom1

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

getCustom2

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

setCustom2

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

getCustom3

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

setCustom3

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

getCustom4

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

setCustom4

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

getCustom5

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

setCustom5

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

getDescription

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

setDescription

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

getId

int getId()
Returns:
Returns the id.

setId

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

getMaxUse

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

Returns:
Returns the maxUse.

setMaxUse

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

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

setName

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

getTimesUsed

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

Returns:
Returns the timesUsed.

setTimesUsed

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

Parameters:
timesUsed - The timesUsed to set.

getDateAdded

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

setDateAdded

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

getLastModified

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

setLastModified

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


Copyright © 2006 DS Data Systems UK Ltd.