class Stripe::Plan

Included Modules

Defined in:

stripe/methods/core/plans/create_plan.cr
stripe/objects/core/plan.cr

Constructors

Instance Method Summary

Constructor Detail

def self.create(currency : String, interval : String, product : String | Product, amount : Int32 | Nil = nil, active : Bool | Nil = nil, metadata : Hash | Nil = nil, nickname : String | Nil = nil, id : String | Nil = nil, tiers : Array(Hash) | Nil = nil, tiers_mode : String | Nil = nil, aggregate_usage : String | Nil = nil, amount_decimal : String | Nil = nil, billing_scheme : String | Nil = nil, interval_count : Int32 | Nil = nil, trial_period_days : Int32 | Nil = nil, usage_type : String | Nil = nil) : Plan forall T, U #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def active : Bool | Nil #

[View source]
def aggregate_usage : String | Nil #

[View source]
def amount : Int32 | Nil #

[View source]
def amount_decimal : String | Nil #

[View source]
def billing_scheme : String | Nil #

[View source]
def created : Time #

[View source]
def currency : String | Nil #

[View source]
def id : String #

[View source]
def interval : String | Nil #

[View source]
def interval_count : Int32 | Nil #

[View source]
def livemode : Bool #

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

[View source]
def product : String | Nil | Stripe::Product | Nil #

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

[View source]
def tiers_mode : String | Nil #

[View source]
def trial_period_days : Int32 | Nil #

[View source]
def usage_type : String | Nil #

[View source]