com.stripe.model
Class Plan

java.lang.Object
  extended by com.stripe.model.StripeObject
      extended by com.stripe.net.APIResource
          extended by com.stripe.model.Plan

public class Plan
extends APIResource


Nested Class Summary
 
Nested classes/interfaces inherited from class com.stripe.net.APIResource
APIResource.RequestMethod
 
Field Summary
 
Fields inherited from class com.stripe.net.APIResource
CHARSET, gson
 
Fields inherited from class com.stripe.model.StripeObject
prettyPrintGson
 
Constructor Summary
Plan()
           
 
Method Summary
static PlanCollection all(Map<String,Object> params)
           
static Plan create(Map<String,Object> params)
           
 DeletedPlan delete()
           
 Integer getAmount()
           
 String getCurrency()
           
 String getId()
           
 String getInterval()
           
 Boolean getLivemode()
           
 String getName()
           
 Integer getTrialPeriodDays()
           
static Plan retrieve(String id)
           
 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)
           
 
Methods inherited from class com.stripe.net.APIResource
classURL, instanceURL, request
 
Methods inherited from class com.stripe.model.StripeObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Plan

public Plan()
Method Detail

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

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 © 2012 Stripe. All Rights Reserved.