com.chargebee.models
Class CouponSet

java.lang.Object
  extended by com.chargebee.internal.Resource<CouponSet>
      extended by com.chargebee.models.CouponSet

public class CouponSet
extends Resource<CouponSet>


Nested Class Summary
static class CouponSet.AddCouponCodesRequest
           
static class CouponSet.CouponSetListRequest
           
static class CouponSet.CreateRequest
           
static class CouponSet.UpdateRequest
           
 
Field Summary
 
Fields inherited from class com.chargebee.internal.Resource
jsonObj
 
Constructor Summary
CouponSet(org.json.JSONObject jsonObj)
           
CouponSet(String jsonStr)
           
 
Method Summary
static CouponSet.AddCouponCodesRequest addCouponCodes(String id)
           
 Integer archivedCount()
           
 String couponId()
           
static CouponSet.CreateRequest create()
           
static Request delete(String id)
           
static Request deleteUnusedCouponCodes(String id)
           
 String id()
           
static CouponSet.CouponSetListRequest list()
           
 org.json.JSONObject metaData()
           
 String name()
           
 Integer redeemedCount()
           
static Request retrieve(String id)
           
 Integer totalCount()
           
static CouponSet.UpdateRequest update(String id)
           
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CouponSet

public CouponSet(String jsonStr)

CouponSet

public CouponSet(org.json.JSONObject jsonObj)
Method Detail

id

public String id()

couponId

public String couponId()

name

public String name()

totalCount

public Integer totalCount()

redeemedCount

public Integer redeemedCount()

archivedCount

public Integer archivedCount()

metaData

public org.json.JSONObject metaData()

create

public static CouponSet.CreateRequest create()
                                      throws IOException
Throws:
IOException

addCouponCodes

public static CouponSet.AddCouponCodesRequest addCouponCodes(String id)
                                                      throws IOException
Throws:
IOException

list

public static CouponSet.CouponSetListRequest list()
                                           throws IOException
Throws:
IOException

retrieve

public static Request retrieve(String id)
                        throws IOException
Throws:
IOException

update

public static CouponSet.UpdateRequest update(String id)
                                      throws IOException
Throws:
IOException

delete

public static Request delete(String id)
                      throws IOException
Throws:
IOException

deleteUnusedCouponCodes

public static Request deleteUnusedCouponCodes(String id)
                                       throws IOException
Throws:
IOException


Copyright © 2018 ChargeBee. All Rights Reserved.