com.chargebee.models
Class Plan

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

public class Plan
extends Resource<Plan>


Nested Class Summary
static class Plan.ChargeModel
           
static class Plan.CreateRequest
           
static class Plan.PeriodUnit
           
static class Plan.Status
           
static class Plan.TrialPeriodUnit
           
static class Plan.UpdateRequest
           
 
Field Summary
 
Fields inherited from class com.chargebee.internal.Resource
jsonObj
 
Constructor Summary
Plan(org.json.JSONObject jsonObj)
           
Plan(String jsonStr)
           
 
Method Summary
 Timestamp archivedAt()
           
 Integer billingCycles()
           
 Plan.ChargeModel chargeModel()
           
static Plan.CreateRequest create()
           
static Request delete(String id)
           
 String description()
           
 Double downgradePenalty()
          Deprecated. 
 Boolean enabledInHostedPages()
           
 Integer freeQuantity()
           
 String id()
           
 String invoiceName()
           
 String invoiceNotes()
           
static ListRequest list()
           
 String name()
           
 Integer period()
           
 Plan.PeriodUnit periodUnit()
           
 Integer price()
           
 String redirectUrl()
           
static Request retrieve(String id)
           
 Integer setupCost()
           
 Plan.Status status()
           
 Boolean taxable()
           
 Integer trialPeriod()
           
 Plan.TrialPeriodUnit trialPeriodUnit()
           
static Plan.UpdateRequest update(String id)
           
 
Methods inherited from class com.chargebee.internal.Resource
nullCheck, optBoolean, optDouble, optEnum, optInteger, optJSONObject, optList, optLong, optString, optSubResource, optTimestamp, 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

Plan

public Plan(String jsonStr)

Plan

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

id

public String id()

name

public String name()

invoiceName

public String invoiceName()

description

public String description()

price

public Integer price()

period

public Integer period()

periodUnit

public Plan.PeriodUnit periodUnit()

trialPeriod

public Integer trialPeriod()

trialPeriodUnit

public Plan.TrialPeriodUnit trialPeriodUnit()

chargeModel

public Plan.ChargeModel chargeModel()

freeQuantity

public Integer freeQuantity()

setupCost

public Integer setupCost()

downgradePenalty

@Deprecated
public Double downgradePenalty()
Deprecated. 


status

public Plan.Status status()

archivedAt

public Timestamp archivedAt()

billingCycles

public Integer billingCycles()

redirectUrl

public String redirectUrl()

enabledInHostedPages

public Boolean enabledInHostedPages()

invoiceNotes

public String invoiceNotes()

taxable

public Boolean taxable()

create

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

update

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

list

public static ListRequest 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


Copyright © 2015 ChargeBee. All Rights Reserved.