Class: Stripe::V2::Billing::IntentCreateParams::Action::Subscribe

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

Defined Under Namespace

Classes: BillingDetails, EffectiveAt, PricingPlanSubscriptionDetails, V1SubscriptionDetails

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(billing_details: nil, effective_at: nil, type: nil, pricing_plan_subscription_details: nil, v1_subscription_details: nil) ⇒ Subscribe

Returns a new instance of Subscribe.



297
298
299
300
301
302
303
304
305
306
307
308
309
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 297

def initialize(
  billing_details: nil,
  effective_at: nil,
  type: nil,
  pricing_plan_subscription_details: nil,
  v1_subscription_details: nil
)
  @billing_details = billing_details
  @effective_at = effective_at
  @type = type
  @pricing_plan_subscription_details = pricing_plan_subscription_details
  @v1_subscription_details = v1_subscription_details
end

Instance Attribute Details

#billing_detailsObject

Configuration for the billing details. If not specified, see the default behavior for individual attributes.



287
288
289
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 287

def billing_details
  @billing_details
end

#effective_atObject

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



289
290
291
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 289

def effective_at
  @effective_at
end

#pricing_plan_subscription_detailsObject

Details for subscribing to a pricing plan.



293
294
295
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 293

def pricing_plan_subscription_details
  @pricing_plan_subscription_details
end

#typeObject

Type of the action details.



291
292
293
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 291

def type
  @type
end

#v1_subscription_detailsObject

Details for subscribing to a v1 subscription.



295
296
297
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 295

def v1_subscription_details
  @v1_subscription_details
end