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: EffectiveAt, PricingPlanSubscriptionDetails, V1SubscriptionDetails

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of Subscribe.



383
384
385
386
387
388
389
390
391
392
393
394
395
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 383

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

Instance Attribute Details

#collect_atObject

Allows users to override the collect at behavior.



373
374
375
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 373

def collect_at
  @collect_at
end

#effective_atObject

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



375
376
377
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 375

def effective_at
  @effective_at
end

#pricing_plan_subscription_detailsObject

Details for subscribing to a pricing plan.



379
380
381
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 379

def pricing_plan_subscription_details
  @pricing_plan_subscription_details
end

#typeObject

Type of the action details.



377
378
379
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 377

def type
  @type
end

#v1_subscription_detailsObject

Details for subscribing to a v1 subscription.



381
382
383
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 381

def v1_subscription_details
  @v1_subscription_details
end