class Stripe::PromotionCode

Overview

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

Included Modules

Defined in:

stripe/objects/core/promotion_code.cr

Constructors

Instance Method Summary

Constructor Detail

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

Instance Method Detail

def active : Bool #

def code : String #

def coupon : Stripe::Coupon | Nil #

def created : Time | Nil #

def customer : String | Nil | Stripe::Customer | Nil #

def expires_at : Time | Nil #

def id : String #

def livemode : Bool | Nil #

def max_redemptions : Int32 | Nil #

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

def times_redeemed : Int32 | Nil #