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) #

[View source]

Class Method Detail

def self.retrieve(id : String) #

[View source]
def self.retrieve(coupon : Stripe::Coupon) #

[View source]

Instance Method Detail

def amount_off : Int32 | Nil #

[View source]
def created : Time | Nil #

[View source]
def currency : String | Nil #

[View source]
def duration : String | Nil #

[View source]
def duration_in_months : Int32 | Nil #

[View source]
def id : String #

[View source]
def livemode : Bool | Nil #

[View source]
def max_redemptions : Int32 | Nil #

[View source]
def metadata : Hash(String, String | Nil) | Nil #

[View source]
def name : String | Nil #

[View source]
def percent_off : Float32 | Nil #

[View source]
def redeem_by : Time | Nil #

[View source]
def times_redeemed : Int32 | Nil #

[View source]
def valid : Bool | Nil #

[View source]