public class Coupon extends RecurlyObject
| Modifier and Type | Field and Description |
|---|---|
static String |
COUPON_RESOURCE |
NIL_STR, NIL_VAL| Constructor and Description |
|---|
Coupon() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Integer |
getAppliesForMonths() |
Boolean |
getAppliesToAllPlans() |
String |
getCouponCode()
Gets the coupon code for a
Coupon |
Integer |
getDiscountInCents() |
Integer |
getDiscountPercent()
Gets the percentage discount for a coupon
|
String |
getDiscountType()
Gets the discount type associated with the
Coupon |
Integer |
getMaxRedemptions() |
String |
getName()
Gets the name of the
Coupon |
org.joda.time.DateTime |
getRedeemByDate() |
Boolean |
getSingleUse() |
String |
getState() |
int |
hashCode() |
void |
setAppliesForMonths(Object appliesForMonths) |
void |
setAppliesToAllPlans(Object appliesToAllPlans) |
void |
setCouponCode(Object couponCode)
Sets the coupon code for the
Coupon |
void |
setDiscountInCents(Object discountInCents) |
void |
setDiscountPercent(Object discountPercent) |
void |
setDiscountType(Object discountType)
Sets the discount type for a
Coupon |
void |
setMaxRedemptions(Object maxRedemptions) |
void |
setName(Object name)
Sets the name of the
Coupon |
void |
setRedeemByDate(Object redeemByDate) |
void |
setSingleUse(Object singleUse) |
void |
setState(Object state) |
String |
toString() |
booleanOrNull, dateTimeOrNull, getHref, integerOrNull, isNull, newXmlMapper, setHref, setRecurlyClient, stringOrNullpublic static final String COUPON_RESOURCE
public Coupon()
public void setName(Object name)
Couponname - The Name that is to be given to the Couponpublic String getCouponCode()
CouponCouponpublic void setCouponCode(Object couponCode)
CouponcouponCode - The coupon codepublic void setDiscountType(Object discountType)
CoupondiscountType - A String of: 'percent'; 'dollars';public String getDiscountType()
Couponpublic Integer getDiscountPercent()
public void setDiscountPercent(Object discountPercent)
public org.joda.time.DateTime getRedeemByDate()
public void setRedeemByDate(Object redeemByDate)
public Integer getAppliesForMonths()
public void setAppliesForMonths(Object appliesForMonths)
public Integer getMaxRedemptions()
public void setMaxRedemptions(Object maxRedemptions)
public Boolean getSingleUse()
public void setSingleUse(Object singleUse)
public Integer getDiscountInCents()
public void setDiscountInCents(Object discountInCents)
public Boolean getAppliesToAllPlans()
public void setAppliesToAllPlans(Object appliesToAllPlans)
Copyright © 2012-2014. All Rights Reserved.