stripity-stripe v1.4.0 Stripe.Coupons

Handles coupons to the Stripe API. (API ref: https://stripe.com/docs/api#coupons)

Operations:

  • create (TODO)
  • retrieve
  • update (TODO)
  • delete (TODO)
  • list (TODO)

Summary

Functions

Retrieves the coupon with the given ID. Returns a coupon if a valid coupon ID was provided. Throws an error otherwise

Functions

retrieve(params)

Retrieves the coupon with the given ID. Returns a coupon if a valid coupon ID was provided. Throws an error otherwise.

Examples

  params = "free-1-month"

  {:ok, result} = Stripe.Coupons.retrieve params