com.stripe.model
Class Plan
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.APIResource
com.stripe.model.Plan
public class Plan
- extends APIResource
|
Constructor Summary |
Plan()
|
|
Method Summary |
static PlanCollection |
all(Map<String,Object> params)
|
static PlanCollection |
all(Map<String,Object> params,
String apiKey)
|
static Plan |
create(Map<String,Object> params)
|
static Plan |
create(Map<String,Object> params,
String apiKey)
|
DeletedPlan |
delete()
|
DeletedPlan |
delete(String apiKey)
|
Integer |
getAmount()
|
String |
getCurrency()
|
String |
getId()
|
String |
getInterval()
|
Boolean |
getLivemode()
|
String |
getName()
|
Integer |
getTrialPeriodDays()
|
static Plan |
retrieve(String id)
|
static Plan |
retrieve(String id,
String apiKey)
|
void |
setAmount(Integer amount)
|
void |
setCurrency(String currency)
|
void |
setId(String id)
|
void |
setInterval(String interval)
|
void |
setLivemode(Boolean livemode)
|
void |
setName(String name)
|
void |
setTrialPeriodDays(Integer trialPeriodDays)
|
Plan |
update(Map<String,Object> params)
|
Plan |
update(Map<String,Object> params,
String apiKey)
|
Plan
public Plan()
create
public static Plan create(Map<String,Object> params)
throws StripeException
- Throws:
StripeException
retrieve
public static Plan retrieve(String id)
throws StripeException
- Throws:
StripeException
update
public Plan update(Map<String,Object> params)
throws StripeException
- Throws:
StripeException
all
public static PlanCollection all(Map<String,Object> params)
throws StripeException
- Throws:
StripeException
delete
public DeletedPlan delete()
throws StripeException
- Throws:
StripeException
create
public static Plan create(Map<String,Object> params,
String apiKey)
throws StripeException
- Throws:
StripeException
retrieve
public static Plan retrieve(String id,
String apiKey)
throws StripeException
- Throws:
StripeException
update
public Plan update(Map<String,Object> params,
String apiKey)
throws StripeException
- Throws:
StripeException
all
public static PlanCollection all(Map<String,Object> params,
String apiKey)
throws StripeException
- Throws:
StripeException
delete
public DeletedPlan delete(String apiKey)
throws StripeException
- Throws:
StripeException
getAmount
public Integer getAmount()
setAmount
public void setAmount(Integer amount)
getCurrency
public String getCurrency()
setCurrency
public void setCurrency(String currency)
getId
public String getId()
setId
public void setId(String id)
getInterval
public String getInterval()
setInterval
public void setInterval(String interval)
getName
public String getName()
setName
public void setName(String name)
getLivemode
public Boolean getLivemode()
setLivemode
public void setLivemode(Boolean livemode)
getTrialPeriodDays
public Integer getTrialPeriodDays()
setTrialPeriodDays
public void setTrialPeriodDays(Integer trialPeriodDays)
Copyright © 2013 Stripe. All Rights Reserved.