com.stripe.model
Class Subscription
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.APIResource
com.stripe.model.Subscription
public class Subscription
- extends APIResource
Subscription
public Subscription()
update
public Subscription update(Map<String,Object> params)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
update
public Subscription update(Map<String,Object> params,
String apiKey)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
cancel
public Subscription cancel(Map<String,Object> params)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
cancel
public Subscription cancel(Map<String,Object> params,
String apiKey)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
deleteDiscount
public void deleteDiscount()
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
deleteDiscount
public void deleteDiscount(String apiKey)
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
- Throws:
AuthenticationException
InvalidRequestException
APIConnectionException
CardException
APIException
getInstanceURL
public String getInstanceURL()
getId
public String getId()
setId
public void setId(String id)
getCurrentPeriodEnd
public Long getCurrentPeriodEnd()
setCurrentPeriodEnd
public void setCurrentPeriodEnd(Long currentPeriodEnd)
getCurrentPeriodStart
public Long getCurrentPeriodStart()
setCurrentPeriodStart
public void setCurrentPeriodStart(Long currentPeriodStart)
getCancelAtPeriodEnd
public Boolean getCancelAtPeriodEnd()
setCancelAtPeriodEnd
public void setCancelAtPeriodEnd(Boolean cancelAtPeriodEnd)
getCustomer
public String getCustomer()
setCustomer
public void setCustomer(String customer)
getStart
public Long getStart()
setStart
public void setStart(Long start)
getStatus
public String getStatus()
setStatus
public void setStatus(String status)
getTrialStart
public Long getTrialStart()
setTrialStart
public void setTrialStart(Long trialStart)
getTrialEnd
public Long getTrialEnd()
setTrialEnd
public void setTrialEnd(Long trialEnd)
getPlan
public Plan getPlan()
setPlan
public void setPlan(Plan plan)
getCanceledAt
public Long getCanceledAt()
setCanceledAt
public void setCanceledAt(Long canceledAt)
getEndedAt
public Long getEndedAt()
setEndedAt
public void setEndedAt(Long endedAt)
getQuantity
public Integer getQuantity()
setQuantity
public void setQuantity(Integer quantity)
getDiscount
public Discount getDiscount()
setDiscount
public void setDiscount(Discount discount)
getApplicationFeePercent
public Double getApplicationFeePercent()
setApplicationFeePercent
public void setApplicationFeePercent(Double applicationFeePercent)
Copyright © 2014 Stripe. All rights reserved.