public class Coupon extends APIResource
APIResource.RequestMethodCHARSET, GSONPRETTY_PRINT_GSON| Constructor and Description |
|---|
Coupon() |
_request, classURL, instanceURL, request, singleClassURLtoStringpublic 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 static CouponCollection all(Map<String,Object> params) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public DeletedCoupon delete() throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Coupon create(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static Coupon retrieve(String id, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public static CouponCollection all(Map<String,Object> params, String apiKey) throws AuthenticationException, InvalidRequestException, APIConnectionException, CardException, APIException
public DeletedCoupon delete(String apiKey) 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 Integer getMaxRedemptions()
public void setMaxRedemptions(Integer maxRedemptions)
public Long getRedeemBy()
public void setRedeemBy(Long redeemBy)
public Integer getTimesRedeemed()
public void setTimesRedeemed(Integer timesRedeemed)
Copyright © 2014 Stripe. All rights reserved.