public class Coupons extends AbstractApi
client| Modifier and Type | Method and Description |
|---|---|
protected String |
buildUrl() |
protected String |
buildUrl(String couponId) |
CouponResponse |
createCoupon(CreateCouponRequest request)
Create a coupon
https://stripe.com/docs/api#create_coupon
|
DeleteResponse |
deleteCoupon(String couponId)
Delete a coupon
https://stripe.com/docs/api#delete_coupon
|
CouponResponse |
getCoupon(String couponId)
Retrieve a coupon
https://stripe.com/docs/api#retrieve_coupon
|
public Coupons(Client client)
public CouponResponse createCoupon(CreateCouponRequest request)
public CouponResponse getCoupon(String couponId)
couponId - the id of the coupon to retrievepublic DeleteResponse deleteCoupon(String couponId)
couponId - the id of the coupon to be deletedprotected String buildUrl()
Copyright © 2014. All rights reserved.