Class: Stripe::V2::Billing::IntentCreateParams::Action::Deactivate
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::IntentCreateParams::Action::Deactivate
- Defined in:
- lib/stripe/params/v2/billing/intent_create_params.rb
Defined Under Namespace
Classes: CancellationDetails, EffectiveAt, PricingPlanSubscriptionDetails
Instance Attribute Summary collapse
-
#cancellation_details ⇒ Object
Details about why the cancellation is being requested.
-
#collect_at ⇒ Object
When the invoice is collected.
-
#effective_at ⇒ Object
When the deactivate action takes effect.
-
#pricing_plan_subscription_details ⇒ Object
Details for deactivating a pricing plan subscription.
-
#type ⇒ Object
Type of the action details.
Instance Method Summary collapse
-
#initialize(cancellation_details: nil, collect_at: nil, effective_at: nil, pricing_plan_subscription_details: nil, type: nil) ⇒ Deactivate
constructor
A new instance of Deactivate.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(cancellation_details: nil, collect_at: nil, effective_at: nil, pricing_plan_subscription_details: nil, type: nil) ⇒ Deactivate
Returns a new instance of Deactivate.
246 247 248 249 250 251 252 253 254 255 256 257 258 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 246 def initialize( cancellation_details: nil, collect_at: nil, effective_at: nil, pricing_plan_subscription_details: nil, type: nil ) @cancellation_details = cancellation_details @collect_at = collect_at @effective_at = effective_at @pricing_plan_subscription_details = pricing_plan_subscription_details @type = type end |
Instance Attribute Details
#cancellation_details ⇒ Object
Details about why the cancellation is being requested.
236 237 238 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 236 def cancellation_details @cancellation_details end |
#collect_at ⇒ Object
When the invoice is collected. If not specified, the default behavior is on_effective_at.
238 239 240 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 238 def collect_at @collect_at end |
#effective_at ⇒ Object
When the deactivate action takes effect. If not specified, the default behavior is on_reserve.
240 241 242 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 240 def effective_at @effective_at end |
#pricing_plan_subscription_details ⇒ Object
Details for deactivating a pricing plan subscription.
242 243 244 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 242 def pricing_plan_subscription_details @pricing_plan_subscription_details end |
#type ⇒ Object
Type of the action details.
244 245 246 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 244 def type @type end |