class

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
Source
new(pull : JSON::PullParser)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
update(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
Source

Class methods

delete(id : String)
Source
delete(subscription : Stripe::Subscription)
Source
list(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)
Source
retrieve(id : String)
Source
retrieve(subscription : Stripe::Subscription)
Source

Instance methods

application_fee_percent
Source
billing
Source
billing_cycle_anchor
Source
billing_thresholds
Source
cancel_at
Source
cancel_at_period_end?
Source
canceled_at
Source
collection_method
Source
created
Source
current_period_end
Source
current_period_start
Source
customer
Source
days_until_due
Source
default_payment_method
Source
default_source
Source
default_tax_rates
Source
discount
Source
items
Source
latest_invoice
Source
livemode
Source
metadata
Source
pending_setup_intent
Source
schedule
Source
start
Source
start_date
Source
status
Source

Nested types