Stripe::Subscription
Inherits StripeMethods / JSON::Serializable / Reference / Object
https://stripe.com/docs/api/subscriptions/object
Constructors
create(customer : String | Customer | Nil = nil, coupon : String | Nil = nil, default_source : String | Token | Nil = nil, default_payment_method : String | Token | Nil = nil, off_session : Bool | Nil = nil, metadata : Hash | Nil = nil, items : U | Nil = nil, add_invoice_items : U | Nil = nil, trial_end : Time | Nil = nil, expand : Array(String) | Nil = nil) : Subscription forall T, U
Sourcenew(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
Sourceupdate(subscription : String | Subscription, cancel_at_period_end : Bool | Unset = Unset.new, customer : String | Customer | Nil | Unset = Unset.new, coupon : String | Nil | Unset = Unset.new, default_source : String | Token | Nil | Unset = Unset.new, default_payment_method : String | Token | Nil | Unset = Unset.new, metadata : Hash | Nil | Unset = Unset.new, items : U | Nil | Unset = Unset.new, add_invoice_items : U | Nil | Unset = Unset.new) : Subscription forall T, U
SourceClass methods
delete(id : String)
Sourcedelete(subscription : Stripe::Subscription)
Sourcelist(customer : String | Nil = nil, status : String | Nil | Stripe::Subscription::Status | Nil = nil, limit : Int32 | Nil = nil, starting_after : String | Nil = nil, ending_before : String | Nil = nil) : List(Stripe::Subscription)
Sourceretrieve(id : String)
Sourceretrieve(subscription : Stripe::Subscription)
SourceInstance methods
application_fee_percent
Sourcebilling
Sourcebilling_cycle_anchor
Sourcebilling_thresholds
Sourcecancel_at
Sourcecancel_at_period_end?
Sourcecanceled_at
Sourcecollection_method
Sourcecreated
Sourcecurrent_period_end
Sourcecurrent_period_start
Sourcecustomer
Sourcedays_until_due
Sourcedefault_payment_method
Sourcedefault_source
Sourcedefault_tax_rates
Sourcediscount
Sourceid
Sourceitems
Sourcelatest_invoice
Sourcelivemode
Sourcemetadata
Sourcepending_setup_intent
Sourceschedule
Sourcestart
Sourcestart_date
Sourcestatus
Source