com.chargebee.models
Class Plan
java.lang.Object
com.chargebee.internal.Resource<Plan>
com.chargebee.models.Plan
public class Plan
- extends Resource<Plan>
|
Constructor Summary |
Plan(org.json.JSONObject jsonObj)
|
Plan(String jsonStr)
|
| 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 |
Plan
public Plan(String jsonStr)
Plan
public Plan(org.json.JSONObject jsonObj)
id
public String id()
name
public String name()
invoiceName
public String invoiceName()
description
public String description()
price
public Integer price()
currencyCode
public String currencyCode()
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()
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 Plan.CreateRequest create()
throws IOException
- Throws:
IOException
update
public static Plan.UpdateRequest update(String id)
throws IOException
- Throws:
IOException
list
public static Plan.PlanListRequest 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 Plan.CopyRequest copy()
throws IOException
- Throws:
IOException
unarchive
public static Request unarchive(String id)
throws IOException
- Throws:
IOException
Copyright © 2017 ChargeBee. All Rights Reserved.