public class Subscription extends APIResource implements MetadataStore<Subscription>
APIResource.RequestMethod, APIResource.RequestTypeCHARSET, GSONPRETTY_PRINT_GSON| Constructor and Description |
|---|
Subscription() |
classURL, classURL, instanceURL, instanceURL, multipartRequest, request, setStripeResponseGetter, singleClassURL, singleClassURL, urlEncodeequals, toStringpublic Subscription update(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update in interface MetadataStore<Subscription>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIException@Deprecated public Subscription update(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Subscription update(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update in interface MetadataStore<Subscription>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIExceptionpublic Subscription cancel(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public Subscription cancel(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Subscription cancel(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public void deleteDiscount()
throws AuthenticationException,
InvalidRequestException,
APIConnectionException,
CardException,
APIException
@Deprecated public void deleteDiscount(String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public void deleteDiscount(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public String getInstanceURL()
public String getId()
public void setId(String id)
public Long getCurrentPeriodEnd()
public void setCurrentPeriodEnd(Long currentPeriodEnd)
public Long getCurrentPeriodStart()
public void setCurrentPeriodStart(Long currentPeriodStart)
public Boolean getCancelAtPeriodEnd()
public void setCancelAtPeriodEnd(Boolean cancelAtPeriodEnd)
public String getCustomer()
public void setCustomer(String customer)
public Long getStart()
public void setStart(Long start)
public String getStatus()
public void setStatus(String status)
public Long getTrialStart()
public void setTrialStart(Long trialStart)
public Long getTrialEnd()
public void setTrialEnd(Long trialEnd)
public Plan getPlan()
public void setPlan(Plan plan)
public Long getCanceledAt()
public void setCanceledAt(Long canceledAt)
public Long getEndedAt()
public void setEndedAt(Long endedAt)
public Integer getQuantity()
public void setQuantity(Integer quantity)
public Discount getDiscount()
public void setDiscount(Discount discount)
public Double getApplicationFeePercent()
public void setApplicationFeePercent(Double applicationFeePercent)
public Double getTaxPercent()
public void setTaxPercent(Double taxPercent)
public Map<String,String> getMetadata()
getMetadata in interface MetadataStore<Subscription>Copyright © 2015 Stripe. All rights reserved.