public class AdminCoupon
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
couponCode
The value of the coupon code
|
private java.lang.String |
custom1
Custom fields
|
private java.lang.String |
custom2 |
private java.lang.String |
custom3 |
private java.lang.String |
custom4 |
private java.lang.String |
custom5 |
private java.util.Date |
dateAdded
The value for the dateAdded field
|
private java.lang.String |
description
Description
|
private int |
id
The value for the couponId field
|
private java.util.Date |
lastModified
The value for the lastModified field
|
private int |
maxUse
The maximum number of times that the coupon can be used
|
private java.lang.String |
name
Name
|
private AdminPromotion[] |
promotions
An array of promotions that the coupon is associated with
|
private int |
timesUsed
The number of times that the coupon has been used
|
Constructor and Description |
---|
AdminCoupon()
Constructor
|
AdminCoupon(com.workingdogs.village.Record vr,
com.konakart.db.KKCriteria c)
Instantiates the attributes of the Promotion object from a Record object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCouponCode() |
java.lang.String |
getCustom1() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom3() |
java.lang.String |
getCustom4() |
java.lang.String |
getCustom5() |
java.util.Date |
getDateAdded() |
java.lang.String |
getDescription() |
int |
getId() |
java.util.Date |
getLastModified() |
int |
getMaxUse() |
java.lang.String |
getName() |
AdminPromotion[] |
getPromotions() |
int |
getTimesUsed() |
boolean |
isValid()
Determines whether the coupon is valid based on the number of times that it has been used.
|
void |
setCouponCode(java.lang.String couponCode) |
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.Date dateAdded) |
void |
setDescription(java.lang.String description) |
void |
setId(int id) |
void |
setLastModified(java.util.Date lastModified) |
void |
setMaxUse(int maxUse) |
void |
setName(java.lang.String name) |
void |
setPromotions(AdminPromotion[] promotions) |
void |
setTimesUsed(int timesUsed) |
java.lang.String |
toString() |
java.lang.String |
toStringBrief() |
private int id
private java.lang.String description
private java.lang.String name
private java.lang.String couponCode
private int maxUse
private int timesUsed
private java.util.Date lastModified
private java.util.Date dateAdded
private java.lang.String custom1
private java.lang.String custom2
private java.lang.String custom3
private java.lang.String custom4
private java.lang.String custom5
private AdminPromotion[] promotions
public AdminCoupon()
public AdminCoupon(com.workingdogs.village.Record vr, com.konakart.db.KKCriteria c) throws com.workingdogs.village.DataSetException
vr
- Record containing datac
- Criteria containing column namescom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringBrief()
public boolean isValid()
public java.lang.String getCouponCode()
public void setCouponCode(java.lang.String couponCode)
couponCode
- The couponCode to set.public java.lang.String getCustom1()
public void setCustom1(java.lang.String custom1)
custom1
- The custom1 to set.public java.lang.String getCustom2()
public void setCustom2(java.lang.String custom2)
custom2
- The custom2 to set.public java.lang.String getCustom3()
public void setCustom3(java.lang.String custom3)
custom3
- The custom3 to set.public java.lang.String getCustom4()
public void setCustom4(java.lang.String custom4)
custom4
- The custom4 to set.public java.lang.String getCustom5()
public void setCustom5(java.lang.String custom5)
custom5
- The custom5 to set.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- The description to set.public int getId()
public void setId(int id)
id
- The id to set.public int getMaxUse()
public void setMaxUse(int maxUse)
maxUse
- The maxUse to set.public java.lang.String getName()
public void setName(java.lang.String name)
name
- The name to set.public int getTimesUsed()
public void setTimesUsed(int timesUsed)
timesUsed
- The timesUsed to set.public java.util.Date getDateAdded()
public void setDateAdded(java.util.Date dateAdded)
dateAdded
- The dateAdded to set.public java.util.Date getLastModified()
public void setLastModified(java.util.Date lastModified)
lastModified
- The lastModified to set.public AdminPromotion[] getPromotions()
public void setPromotions(AdminPromotion[] promotions)
promotions
- The promotions to set.Copyright © 2018 DS Data Systems UK Ltd.