com.stripe.model
Class Customer
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.APIResource
com.stripe.model.Customer
public class Customer
- extends APIResource
|
Method Summary |
static CustomerCollection |
all(Map<String,Object> params)
|
static CustomerCollection |
all(Map<String,Object> params,
String apiKey)
|
Subscription |
cancelSubscription()
|
Subscription |
cancelSubscription(Map<String,Object> params)
|
Subscription |
cancelSubscription(Map<String,Object> params,
String apiKey)
|
Subscription |
cancelSubscription(String apiKey)
|
static Customer |
create(Map<String,Object> params)
|
static Customer |
create(Map<String,Object> params,
String apiKey)
|
DeletedCustomer |
delete()
|
DeletedCustomer |
delete(String apiKey)
|
void |
deleteDiscount()
|
void |
deleteDiscount(String apiKey)
|
Integer |
getAccountBalance()
|
Card |
getActiveCard()
|
Long |
getCreated()
|
Boolean |
getDeleted()
|
Boolean |
getDelinquent()
|
String |
getDescription()
|
Discount |
getDiscount()
|
String |
getEmail()
|
String |
getId()
|
Boolean |
getLivemode()
|
NextRecurringCharge |
getNextRecurringCharge()
|
String |
getPlan()
|
Subscription |
getSubscription()
|
Long |
getTrialEnd()
|
static Customer |
retrieve(String id)
|
static Customer |
retrieve(String id,
String apiKey)
|
void |
setAccountBalance(Integer accountBalance)
|
void |
setActiveCard(Card activeCard)
|
void |
setCreated(Long created)
|
void |
setDelinquent(Boolean delinquent)
|
void |
setDescription(String description)
|
void |
setDiscount(Discount discount)
|
void |
setEmail(String email)
|
void |
setId(String id)
|
void |
setLivemode(Boolean livemode)
|
void |
setNextRecurringCharge(NextRecurringCharge nextRecurringCharge)
|
void |
setPlan(String plan)
|
void |
setSubscription(Subscription subscription)
|
void |
setTrialEnd(Long trialEnd)
|
Customer |
update(Map<String,Object> params)
|
Customer |
update(Map<String,Object> params,
String apiKey)
|
Subscription |
updateSubscription(Map<String,Object> params)
|
Subscription |
updateSubscription(Map<String,Object> params,
String apiKey)
|
Customer
public Customer()
getCreated
public Long getCreated()
setCreated
public void setCreated(Long created)
getId
public String getId()
setId
public void setId(String id)
getLivemode
public Boolean getLivemode()
setLivemode
public void setLivemode(Boolean 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)
getDeleted
public Boolean getDeleted()
getDelinquent
public Boolean getDelinquent()
setDelinquent
public void setDelinquent(Boolean delinquent)
getAccountBalance
public Integer getAccountBalance()
setAccountBalance
public void setAccountBalance(Integer accountBalance)
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()
throws StripeException
- Throws:
StripeException
cancelSubscription
public Subscription cancelSubscription(Map<String,Object> params)
throws StripeException
- Throws:
StripeException
deleteDiscount
public void deleteDiscount()
throws StripeException
- Throws:
StripeException
create
public static Customer create(Map<String,Object> params,
String apiKey)
throws StripeException
- Throws:
StripeException
retrieve
public static Customer retrieve(String id,
String apiKey)
throws StripeException
- Throws:
StripeException
all
public static CustomerCollection all(Map<String,Object> params,
String apiKey)
throws StripeException
- Throws:
StripeException
update
public Customer update(Map<String,Object> params,
String apiKey)
throws StripeException
- Throws:
StripeException
delete
public DeletedCustomer delete(String apiKey)
throws StripeException
- Throws:
StripeException
updateSubscription
public Subscription updateSubscription(Map<String,Object> params,
String apiKey)
throws StripeException
- Throws:
StripeException
cancelSubscription
public Subscription cancelSubscription(String apiKey)
throws StripeException
- Throws:
StripeException
cancelSubscription
public Subscription cancelSubscription(Map<String,Object> params,
String apiKey)
throws StripeException
- Throws:
StripeException
deleteDiscount
public void deleteDiscount(String apiKey)
throws StripeException
- Throws:
StripeException
Copyright © 2013 Stripe. All Rights Reserved.