class Stripe::Plan
- Stripe::Plan
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
stripe/methods/core/plans/create_plan.crstripe/objects/core/plan.cr
Constructors
- .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
- .new(pull : JSON::PullParser)
Instance Method Summary
- #active : Bool | Nil
- #aggregate_usage : String | Nil
- #amount : Int32 | Nil
- #amount_decimal : String | Nil
- #billing_scheme : String | Nil
- #created : Time
- #currency : String | Nil
- #id : String
- #interval : String | Nil
- #interval_count : Int32 | Nil
- #livemode : Bool
- #metadata : Hash(String, String) | Nil
- #product : String | Nil | Stripe::Product | Nil
- #tiers : Hash(String, String | Int32) | Nil
- #tiers_mode : String | Nil
- #trial_period_days : Int32 | Nil
- #usage_type : String | Nil
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
#