Class: Stripe::V2::Billing::IntentService::CreateParams::Action::Subscribe

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/v2/billing/intent_service.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.



314
315
316
317
318
319
320
321
322
323
324
325
326
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 314

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.



304
305
306
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 304

def billing_details
  @billing_details
end

#effective_atObject

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



306
307
308
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 306

def effective_at
  @effective_at
end

#pricing_plan_subscription_detailsObject

Details for subscribing to a pricing plan.



310
311
312
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 310

def pricing_plan_subscription_details
  @pricing_plan_subscription_details
end

#typeObject

Type of the action details.



308
309
310
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 308

def type
  @type
end

#v1_subscription_detailsObject

Details for subscribing to a v1 subscription.



312
313
314
# File 'lib/stripe/services/v2/billing/intent_service.rb', line 312

def v1_subscription_details
  @v1_subscription_details
end