Liking cljdoc? Tell your friends :D

clj-stripe.coupons

Functions for Stripe Coupons API

Functions for Stripe Coupons API
raw docstring

coupon-idclj

(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.
sourceraw docstring

create-couponclj

(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).
sourceraw docstring

delete-couponclj

(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.
sourceraw docstring

foreverclj

(forever)

Specifies that a coupon is valid forever

Specifies that a coupon is valid forever
sourceraw docstring

get-all-couponsclj

(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).
sourceraw docstring

get-couponclj

(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.
sourceraw docstring

max-redemptionsclj

(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.
sourceraw docstring

onceclj

(once)

Specifies that a coupon is valid only once

Specifies that a coupon is valid only once
sourceraw docstring

percent-offclj

(percent-off p_off)

Percentage to discount when applying the coupon.

Percentage to discount when applying the coupon.
sourceraw docstring

redeem-byclj

(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.
sourceraw docstring

repeatingclj

(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.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close