public class Coupon extends APIResource implements MetadataStore<Coupon>
APIResource.RequestMethod, APIResource.RequestTypeCHARSET, GSONPRETTY_PRINT_GSON| Constructor and Description |
|---|
Coupon() |
classURL, classURL, instanceURL, instanceURL, multipartRequest, request, setStripeResponseGetter, singleClassURL, singleClassURL, urlEncodeequals, toStringpublic Map<String,String> getMetadata()
getMetadata in interface MetadataStore<Coupon>public static Coupon create(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Coupon retrieve(String id) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Coupon update(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update in interface MetadataStore<Coupon>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIException@Deprecated public Coupon update(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Coupon update(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
update in interface MetadataStore<Coupon>AuthenticationExceptionInvalidRequestExceptionAPIConnectionExceptionCardExceptionAPIException@Deprecated public static Coupon create(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Coupon create(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static Coupon retrieve(String id, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Coupon retrieve(String id, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static CouponCollection all(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public static CouponCollection all(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static CouponCollection all(Map<String,Object> params, RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public DeletedCoupon delete() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
@Deprecated public DeletedCoupon delete(String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public DeletedCoupon delete(RequestOptions options) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public Integer getPercentOff()
public void setPercentOff(Integer percentOff)
public Integer getAmountOff()
public void setAmountOff(Integer amountOff)
public String getCurrency()
public void setCurrency(String currency)
public String getDuration()
public void setDuration(String duration)
public String getId()
public void setId(String id)
public Boolean getLivemode()
public void setLivemode(Boolean livemode)
public Integer getDurationInMonths()
public void setDurationInMonths(Integer durationInMonths)
public Long getMaxRedemptions()
public void setMaxRedemptions(Long maxRedemptions)
public Long getRedeemBy()
public void setRedeemBy(Long redeemBy)
public Integer getTimesRedeemed()
public void setTimesRedeemed(Integer timesRedeemed)
public Boolean getValid()
public void setValid(Boolean valid)
Copyright © 2015 Stripe. All rights reserved.