Functions for Stripe Coupons API
Functions for Stripe Coupons API
(coupon-id id)
Creates the id of a coupon. Requires the id as a string.
Creates the id of a coupon. Requires the id as a string.
(create-coupon p-off duration & extra-info)
Defines a create coupon operation. Requires: The percentage of discount (see percent-off). The duration of the coupon (see forever, once and repeating). Optionally accepts: The if of the coupon (see coupon-id) The maximum number of times the coupon can be redeemed (see max-redemptions) The limit date for redemption (see redeem-by).
Defines a create coupon operation. Requires: The percentage of discount (see percent-off). The duration of the coupon (see forever, once and repeating). Optionally accepts: The if of the coupon (see coupon-id) The maximum number of times the coupon can be redeemed (see max-redemptions) The limit date for redemption (see redeem-by).
(delete-coupon id)
Creates a delete coupon operation. Requires the ID of the coupon as a string.
Creates a delete coupon operation. Requires the ID of the coupon as a string.
(forever)
Specifies that a coupon is valid forever
Specifies that a coupon is valid forever
(get-all-coupons & extra-info)
Creates a get all coupons operation. Optionally accepts a count and an offset (see common/limit-count and common/offset) or alternatively an interval (see common/position).
Creates a get all coupons operation. Optionally accepts a count and an offset (see common/limit-count and common/offset) or alternatively an interval (see common/position).
(get-coupon id)
Defines a get coupon operation. Requires the ID of the coupon as a string.
Defines a get coupon operation. Requires the ID of the coupon as a string.
(max-redemptions m)
Specifies the maximum number of times a coupon will be redeemed before becoming invalid. Requires the number of times as a positive integer.
Specifies the maximum number of times a coupon will be redeemed before becoming invalid. Requires the number of times as a positive integer.
(once)
Specifies that a coupon is valid only once
Specifies that a coupon is valid only once
(percent-off p_off)
Percentage to discount when applying the coupon.
Percentage to discount when applying the coupon.
(redeem-by t)
Specifies the limit date for redeeming this coupon. Requires the UTC timestamp as a string.
Specifies the limit date for redeeming this coupon. Requires the UTC timestamp as a string.
(repeating months)
Specifies that a coupon is valid for a given number of times. Requires the number of months that the coupon is in vigor, as a positive integer.
Specifies that a coupon is valid for a given number of times. Requires the number of months that the coupon is in vigor, as a positive integer.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close