Sha256: addbdfedcc285a5b22da6b1cf467e123091c7b5cadb19985cb9f00a6f8d17a05

Contents?: true

Size: 1.19 KB

Versions: 15

Compression:

Stored size: 1.19 KB

Contents

# This file contains descriptions of all your statically defined
# stripe coupons. You may wish to define unique one-off coupons
# elsewhere, but for ones you will use many times, and will be
# shared between users, this is a good place.

# Example
# Stripe::Coupons::Gold25 #=> 'gold25'

# Stripe.coupon :gold25 do |coupon|
#
#   # specify if this coupon is useable 'once', 'forever', or 'repeating
#   coupon.duration = 'repeating'
#
#   # absolute amount, in cents, to discount
#   coupon.amount_off = 199
#
#   # what currency to interpret the coupon amount
#   coupon.currency = 'usd'
#
#   # how long will this coupon last? (only valid for duration of 'repeating')
#   coupon.duration_in_months = 6
#
#   # percentage off
#   coupon.percent_off = 25
#
#   UTC timestamp specifying the last time at which the coupon can be redeemed
#   coupon.reedem_by = (Time.now + 15.days).utc
#
#   # How many times can this coupon be redeemed?
#   coupon.max_redemptions = 10
# end
#
# Once you have your coupons defined, you can run
#
#   rake stripe:prepare
#
# This will export any new coupons to stripe.com so that you can
# begin using them in your API calls. Any coupons found that are not in this
# file will be left as-is.

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
stripe-rails-1.1.1 lib/generators/templates/coupons.rb
stripe-rails-1.1.0 lib/generators/templates/coupons.rb
stripe-rails-1.0.2 lib/generators/templates/coupons.rb
stripe-rails-1.0.1 lib/generators/templates/coupons.rb
stripe-rails-1.0.0 lib/generators/templates/coupons.rb
stripe-rails-0.4.1 lib/generators/templates/coupons.rb
stripe-rails-0.4.0 lib/generators/templates/coupons.rb
stripe-rails-0.3.1 lib/generators/templates/coupons.rb
stripe-rails-0.3.0 lib/generators/templates/coupons.rb
stripe-rails-0.2.6 lib/generators/templates/coupons.rb
stripe-rails-0.2.5 lib/generators/templates/coupons.rb
stripe-rails-0.2.4 lib/generators/templates/coupons.rb
stripe-rails-0.2.3 lib/generators/templates/coupons.rb
stripe-rails-0.2.2 lib/generators/templates/coupons.rb
stripe-rails-0.2.1 lib/generators/templates/coupons.rb