com.chargebee.models
Class Coupon
java.lang.Object
com.chargebee.internal.Resource<Coupon>
com.chargebee.models.Coupon
public class Coupon
- extends Resource<Coupon>
Methods inherited from class com.chargebee.internal.Resource |
apiVersionCheck, nullCheck, optBigDecimal, optBoolean, optDouble, optEnum, optInteger, optJSONObject, optList, optLong, optString, optSubResource, optTimestamp, reqBigDecimal, reqBoolean, reqDouble, reqEnum, reqInteger, reqJSONObject, reqList, reqLong, reqString, reqSubResource, reqTimestamp, toJson, toString, uri |
Coupon
public Coupon(String jsonStr)
Coupon
public Coupon(org.json.JSONObject jsonObj)
id
public String id()
name
public String name()
invoiceName
public String invoiceName()
discountType
public Coupon.DiscountType discountType()
discountPercentage
public Double discountPercentage()
discountAmount
public Integer discountAmount()
discountQuantity
@Deprecated
public Integer discountQuantity()
- Deprecated.
currencyCode
public String currencyCode()
durationType
public Coupon.DurationType durationType()
durationMonth
public Integer durationMonth()
validTill
public Timestamp validTill()
maxRedemptions
public Integer maxRedemptions()
status
public Coupon.Status status()
applyDiscountOn
@Deprecated
public Coupon.ApplyDiscountOn applyDiscountOn()
- Deprecated.
applyOn
public Coupon.ApplyOn applyOn()
planConstraint
public Coupon.PlanConstraint planConstraint()
addonConstraint
public Coupon.AddonConstraint addonConstraint()
createdAt
public Timestamp createdAt()
archivedAt
public Timestamp archivedAt()
resourceVersion
public Long resourceVersion()
updatedAt
public Timestamp updatedAt()
planIds
public List<String> planIds()
addonIds
public List<String> addonIds()
redemptions
public Integer redemptions()
invoiceNotes
public String invoiceNotes()
metaData
public org.json.JSONObject metaData()
create
public static Coupon.CreateRequest create()
throws IOException
- Throws:
IOException
list
public static Coupon.CouponListRequest list()
throws IOException
- Throws:
IOException
retrieve
public static Request retrieve(String id)
throws IOException
- Throws:
IOException
delete
public static Request delete(String id)
throws IOException
- Throws:
IOException
copy
public static Coupon.CopyRequest copy()
throws IOException
- Throws:
IOException
unarchive
public static Request unarchive(String id)
throws IOException
- Throws:
IOException
Copyright © 2017 ChargeBee. All Rights Reserved.