com.stripe.model
Class Coupon

java.lang.Object
  extended by com.stripe.model.StripeObject
      extended by com.stripe.net.APIResource
          extended by com.stripe.model.Coupon

public class Coupon
extends APIResource


Nested Class Summary
 
Nested classes/interfaces inherited from class com.stripe.net.APIResource
APIResource.RequestMethod
 
Field Summary
 
Fields inherited from class com.stripe.net.APIResource
CHARSET, gson
 
Fields inherited from class com.stripe.model.StripeObject
prettyPrintGson
 
Constructor Summary
Coupon()
           
 
Method Summary
static CouponCollection all(Map<String,Object> params)
           
static CouponCollection all(Map<String,Object> params, String apiKey)
           
static Coupon create(Map<String,Object> params)
           
static Coupon create(Map<String,Object> params, String apiKey)
           
 DeletedCoupon delete()
           
 DeletedCoupon delete(String apiKey)
           
 Integer getAmountOff()
           
 String getCurrency()
           
 String getDuration()
           
 Integer getDurationInMonths()
           
 String getId()
           
 Boolean getLivemode()
           
 Integer getMaxRedemptions()
           
 Integer getPercentOff()
           
 Integer getRedeemBy()
           
 Integer getTimesRedeemed()
           
static Coupon retrieve(String id)
           
static Coupon retrieve(String id, String apiKey)
           
 void setAmountOff(Integer amountOff)
           
 void setCurrency(String currency)
           
 void setDuration(String duration)
           
 void setDurationInMonths(Integer durationInMonths)
           
 void setId(String id)
           
 void setLivemode(Boolean livemode)
           
 void setMaxRedemptions(Integer maxRedemptions)
           
 void setPercentOff(Integer percentOff)
           
 void setRedeemBy(Integer redeemBy)
           
 void setTimesRedeemed(Integer timesRedeemed)
           
 
Methods inherited from class com.stripe.net.APIResource
_request, classURL, instanceURL, request, singleClassURL
 
Methods inherited from class com.stripe.model.StripeObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Coupon

public Coupon()
Method Detail

create

public static Coupon create(Map<String,Object> params)
                     throws StripeException
Throws:
StripeException

retrieve

public static Coupon retrieve(String id)
                       throws StripeException
Throws:
StripeException

all

public static CouponCollection all(Map<String,Object> params)
                            throws StripeException
Throws:
StripeException

delete

public DeletedCoupon delete()
                     throws StripeException
Throws:
StripeException

create

public static Coupon create(Map<String,Object> params,
                            String apiKey)
                     throws StripeException
Throws:
StripeException

retrieve

public static Coupon retrieve(String id,
                              String apiKey)
                       throws StripeException
Throws:
StripeException

all

public static CouponCollection all(Map<String,Object> params,
                                   String apiKey)
                            throws StripeException
Throws:
StripeException

delete

public DeletedCoupon delete(String apiKey)
                     throws StripeException
Throws:
StripeException

getPercentOff

public Integer getPercentOff()

setPercentOff

public void setPercentOff(Integer percentOff)

getAmountOff

public Integer getAmountOff()

setAmountOff

public void setAmountOff(Integer amountOff)

getCurrency

public String getCurrency()

setCurrency

public void setCurrency(String currency)

getDuration

public String getDuration()

setDuration

public void setDuration(String duration)

getId

public String getId()

setId

public void setId(String id)

getLivemode

public Boolean getLivemode()

setLivemode

public void setLivemode(Boolean livemode)

getDurationInMonths

public Integer getDurationInMonths()

setDurationInMonths

public void setDurationInMonths(Integer durationInMonths)

getMaxRedemptions

public Integer getMaxRedemptions()

setMaxRedemptions

public void setMaxRedemptions(Integer maxRedemptions)

getRedeemBy

public Integer getRedeemBy()

setRedeemBy

public void setRedeemBy(Integer redeemBy)

getTimesRedeemed

public Integer getTimesRedeemed()

setTimesRedeemed

public void setTimesRedeemed(Integer timesRedeemed)


Copyright © 2013 Stripe. All Rights Reserved.