com.chargebee.models
Class Addon

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

public class Addon
extends Resource<Addon>


Nested Class Summary
static class Addon.AddonListRequest
           
static class Addon.ChargeType
           
static class Addon.CopyRequest
           
static class Addon.CreateRequest
           
static class Addon.PeriodUnit
           
static class Addon.Status
           
static class Addon.Type
           
static class Addon.UpdateRequest
           
 
Field Summary
 
Fields inherited from class com.chargebee.internal.Resource
jsonObj
 
Constructor Summary
Addon(org.json.JSONObject jsonObj)
           
Addon(String jsonStr)
           
 
Method Summary
 String accountingCategory1()
           
 String accountingCategory2()
           
 String accountingCode()
           
 Timestamp archivedAt()
           
 Addon.ChargeType chargeType()
           
static Addon.CopyRequest copy()
           
static Addon.CreateRequest create()
           
 String currencyCode()
           
static Request delete(String id)
           
 String description()
           
 Boolean enabledInPortal()
           
 String id()
           
 String invoiceName()
           
 String invoiceNotes()
           
static Addon.AddonListRequest list()
           
 org.json.JSONObject metaData()
           
 String name()
           
 Integer period()
           
 Addon.PeriodUnit periodUnit()
           
 Integer price()
           
 Long resourceVersion()
           
static Request retrieve(String id)
           
 String sku()
           
 Addon.Status status()
           
 Boolean taxable()
           
 String taxCode()
           
 String taxProfileId()
           
 Addon.Type type()
           
static Request unarchive(String id)
           
 String unit()
           
static Addon.UpdateRequest update(String id)
           
 Timestamp updatedAt()
           
 
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

Addon

public Addon(String jsonStr)

Addon

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

id

public String id()

name

public String name()

invoiceName

public String invoiceName()

description

public String description()

type

public Addon.Type type()

chargeType

public Addon.ChargeType chargeType()

price

public Integer price()

currencyCode

public String currencyCode()

period

public Integer period()

periodUnit

public Addon.PeriodUnit periodUnit()

unit

public String unit()

status

public Addon.Status status()

archivedAt

public Timestamp archivedAt()

enabledInPortal

public Boolean enabledInPortal()

taxCode

public String taxCode()

sku

public String sku()

accountingCode

public String accountingCode()

accountingCategory1

public String accountingCategory1()

accountingCategory2

public String accountingCategory2()

resourceVersion

public Long resourceVersion()

updatedAt

public Timestamp updatedAt()

invoiceNotes

public String invoiceNotes()

taxable

public Boolean taxable()

taxProfileId

public String taxProfileId()

metaData

public org.json.JSONObject metaData()

create

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

update

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

list

public static Addon.AddonListRequest 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 Addon.CopyRequest copy()
                              throws IOException
Throws:
IOException

unarchive

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


Copyright © 2017 ChargeBee. All Rights Reserved.