com.chargebee.models
Class CouponCode

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

public class CouponCode
extends Resource<CouponCode>


Nested Class Summary
static class CouponCode.CouponCodeListRequest
           
static class CouponCode.CreateRequest
           
static class CouponCode.Status
           
 
Field Summary
 
Fields inherited from class com.chargebee.internal.Resource
jsonObj
 
Constructor Summary
CouponCode(org.json.JSONObject jsonObj)
           
CouponCode(String jsonStr)
           
 
Method Summary
static Request archive(String id)
           
 String code()
           
 String couponId()
           
 String couponSetId()
           
 String couponSetName()
           
static CouponCode.CreateRequest create()
          Deprecated. 
static CouponCode.CouponCodeListRequest list()
           
static Request retrieve(String id)
           
 CouponCode.Status status()
           
 
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

CouponCode

public CouponCode(String jsonStr)

CouponCode

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

code

public String code()

status

public CouponCode.Status status()

couponId

public String couponId()

couponSetId

public String couponSetId()

couponSetName

public String couponSetName()

create

@Deprecated
public static CouponCode.CreateRequest create()
                                       throws IOException
Deprecated. 

Throws:
IOException

retrieve

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

list

public static CouponCode.CouponCodeListRequest list()
                                             throws IOException
Throws:
IOException

archive

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


Copyright © 2018 ChargeBee. All Rights Reserved.