Class: Stripe::SubscriptionScheduleCancelParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::SubscriptionScheduleCancelParams
- Defined in:
- lib/stripe/params/subscription_schedule_cancel_params.rb
Instance Attribute Summary collapse
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#invoice_now ⇒ Object
If the subscription schedule is ‘active`, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items.
-
#prorate ⇒ Object
If the subscription schedule is ‘active`, indicates if the cancellation should be prorated.
Instance Method Summary collapse
-
#initialize(expand: nil, invoice_now: nil, prorate: nil) ⇒ SubscriptionScheduleCancelParams
constructor
A new instance of SubscriptionScheduleCancelParams.
Methods inherited from RequestParams
Constructor Details
#initialize(expand: nil, invoice_now: nil, prorate: nil) ⇒ SubscriptionScheduleCancelParams
Returns a new instance of SubscriptionScheduleCancelParams.
13 14 15 16 17 |
# File 'lib/stripe/params/subscription_schedule_cancel_params.rb', line 13 def initialize(expand: nil, invoice_now: nil, prorate: nil) @expand = @invoice_now = invoice_now @prorate = prorate end |
Instance Attribute Details
#expand ⇒ Object
Specifies which fields in the response should be expanded.
7 8 9 |
# File 'lib/stripe/params/subscription_schedule_cancel_params.rb', line 7 def @expand end |
#invoice_now ⇒ Object
If the subscription schedule is ‘active`, indicates if a final invoice will be generated that contains any un-invoiced metered usage and new/pending proration invoice items. Defaults to `true`.
9 10 11 |
# File 'lib/stripe/params/subscription_schedule_cancel_params.rb', line 9 def invoice_now @invoice_now end |
#prorate ⇒ Object
If the subscription schedule is ‘active`, indicates if the cancellation should be prorated. Defaults to `true`.
11 12 13 |
# File 'lib/stripe/params/subscription_schedule_cancel_params.rb', line 11 def prorate @prorate end |