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

attr_accessor, coerce_params, coerce_value, field_encodings, new, #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.



541
542
543
544
545
546
547
548
549
550
551
552
553
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 541

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

When the invoice will be collected. If not specified, defaults to on_effective_at.



531
532
533
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 531

def collect_at
  @collect_at
end

#effective_atObject

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



533
534
535
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 533

def effective_at
  @effective_at
end

#pricing_plan_subscription_detailsObject

Details for subscribing to a pricing plan.



537
538
539
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 537

def pricing_plan_subscription_details
  @pricing_plan_subscription_details
end

#typeObject

Type of the action details.



535
536
537
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 535

def type
  @type
end

#v1_subscription_detailsObject

Details for subscribing to a v1 subscription.



539
540
541
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 539

def v1_subscription_details
  @v1_subscription_details
end