com.stripe.model
Class Plan
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.APIResource
com.stripe.model.Plan
- All Implemented Interfaces:
- MetadataStore<Plan>
public class Plan
- extends APIResource
- implements MetadataStore<Plan>
|
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()
|
Integer |
getIntervalCount()
|
Boolean |
getLivemode()
|
Map<String,String> |
getMetadata()
|
String |
getName()
|
String |
getStatementDescription()
|
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 |
setIntervalCount(Integer intervalCount)
|
void |
setLivemode(Boolean livemode)
|
void |
setMetadata(Map<String,String> metadata)
|
void |
setName(String name)
|
void |
setStatementDescription(String statementDescription)
|
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 AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
retrieve
public static Plan retrieve(String id)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
update
public Plan update(Map<String,Object> params)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Specified by:
update in interface MetadataStore<Plan>
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
all
public static PlanCollection all(Map<String,Object> params)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
delete
public DeletedPlan delete()
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
create
public static Plan create(Map<String,Object> params,
String apiKey)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
retrieve
public static Plan retrieve(String id,
String apiKey)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
update
public Plan update(Map<String,Object> params,
String apiKey)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Specified by:
update in interface MetadataStore<Plan>
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
all
public static PlanCollection all(Map<String,Object> params,
String apiKey)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
delete
public DeletedPlan delete(String apiKey)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
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)
getIntervalCount
public Integer getIntervalCount()
setIntervalCount
public void setIntervalCount(Integer intervalCount)
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)
getMetadata
public Map<String,String> getMetadata()
- Specified by:
getMetadata in interface MetadataStore<Plan>
setMetadata
public void setMetadata(Map<String,String> metadata)
- Specified by:
setMetadata in interface MetadataStore<Plan>
getStatementDescription
public String getStatementDescription()
setStatementDescription
public void setStatementDescription(String statementDescription)
Copyright © 2014 Stripe. All rights reserved.