class Stripe::Coupon

Overview

https://stripe.com/docs/api/coupons/object

Included Modules

Defined in:

stripe/objects/core/coupon.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

Class Method Detail

def self.retrieve(id : String) #

def self.retrieve(coupon : Stripe::Coupon) #

Instance Method Detail

def amount_off : Int32 | Nil #

def created : Time | Nil #

def currency : String | Nil #

def duration : String | Nil #

def duration_in_months : Int32 | Nil #

def id : String #

def livemode : Bool | Nil #

def max_redemptions : Int32 | Nil #

def metadata : Hash(String, String | Nil) | Nil #

def name : String | Nil #

def percent_off : Float32 | Nil #

def redeem_by : Time | Nil #

def times_redeemed : Int32 | Nil #

def valid : Bool | Nil #