com.stripe.model
Class Customer

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

public class Customer
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
 
Constructor Summary
Customer()
           
 
Method Summary
static CustomerCollection all(Map<String,Object> params)
           
 Subscription cancelSubscription(Map<String,Object> params)
           
static Customer create(Map<String,Object> params)
           
 DeletedCustomer delete()
           
 Card getActiveCard()
           
 Long getCreated()
           
 String getDescription()
           
 Discount getDiscount()
           
 String getEmail()
           
 String getId()
           
 String getLivemode()
           
 NextRecurringCharge getNextRecurringCharge()
           
 String getPlan()
           
 Subscription getSubscription()
           
 Long getTrialEnd()
           
static Customer retrieve(String id)
           
 void setActiveCard(Card activeCard)
           
 void setCreated(Long created)
           
 void setDescription(String description)
           
 void setDiscount(Discount discount)
           
 void setEmail(String email)
           
 void setId(String id)
           
 void setLivemode(String livemode)
           
 void setNextRecurringCharge(NextRecurringCharge nextRecurringCharge)
           
 void setPlan(String plan)
           
 void setSubscription(Subscription subscription)
           
 void setTrialEnd(Long trialEnd)
           
 Customer update(Map<String,Object> params)
           
 Subscription updateSubscription(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

Customer

public Customer()
Method Detail

getCreated

public Long getCreated()

setCreated

public void setCreated(Long created)

getId

public String getId()

setId

public void setId(String id)

getLivemode

public String getLivemode()

setLivemode

public void setLivemode(String livemode)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)

getActiveCard

public Card getActiveCard()

setActiveCard

public void setActiveCard(Card activeCard)

getEmail

public String getEmail()

setEmail

public void setEmail(String email)

getPlan

public String getPlan()

setPlan

public void setPlan(String plan)

getTrialEnd

public Long getTrialEnd()

setTrialEnd

public void setTrialEnd(Long trialEnd)

getDiscount

public Discount getDiscount()

setDiscount

public void setDiscount(Discount discount)

getNextRecurringCharge

public NextRecurringCharge getNextRecurringCharge()

setNextRecurringCharge

public void setNextRecurringCharge(NextRecurringCharge nextRecurringCharge)

getSubscription

public Subscription getSubscription()

setSubscription

public void setSubscription(Subscription subscription)

create

public static Customer create(Map<String,Object> params)
                       throws StripeException
Throws:
StripeException

retrieve

public static Customer retrieve(String id)
                         throws StripeException
Throws:
StripeException

all

public static CustomerCollection all(Map<String,Object> params)
                              throws StripeException
Throws:
StripeException

update

public Customer update(Map<String,Object> params)
                throws StripeException
Throws:
StripeException

delete

public DeletedCustomer delete()
                       throws StripeException
Throws:
StripeException

updateSubscription

public Subscription updateSubscription(Map<String,Object> params)
                                throws StripeException
Throws:
StripeException

cancelSubscription

public Subscription cancelSubscription(Map<String,Object> params)
                                throws StripeException
Throws:
StripeException


Copyright © 2011 Stripe. All Rights Reserved.