Class: Stripe::V2::Billing::IntentCreateParams::Action::Deactivate

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/billing/intent_create_params.rb

Defined Under Namespace

Classes: CancellationDetails, EffectiveAt, PricingPlanSubscriptionDetails

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, 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.



202
203
204
205
206
207
208
209
210
211
212
213
214
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 202

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_detailsObject

Details about why the cancellation is being requested.



192
193
194
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 192

def cancellation_details
  @cancellation_details
end

#collect_atObject

When the invoice will be collected. If not specified, the default behavior is on_effective_at.



194
195
196
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 194

def collect_at
  @collect_at
end

#effective_atObject

When the deactivate action will take effect. If not specified, the default behavior is on_reserve.



196
197
198
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 196

def effective_at
  @effective_at
end

#pricing_plan_subscription_detailsObject

Details for deactivating a pricing plan subscription.



198
199
200
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 198

def pricing_plan_subscription_details
  @pricing_plan_subscription_details
end

#typeObject

Type of the action details.



200
201
202
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 200

def type
  @type
end