Class: Stripe::V2::Billing::IntentCreateParams::Action::Subscribe
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::IntentCreateParams::Action::Subscribe
- Defined in:
- lib/stripe/params/v2/billing/intent_create_params.rb
Defined Under Namespace
Classes: EffectiveAt, PricingPlanSubscriptionDetails, V1SubscriptionDetails
Instance Attribute Summary collapse
-
#collect_at ⇒ Object
When the invoice is collected.
-
#effective_at ⇒ Object
When the subscribe action takes effect.
-
#pricing_plan_subscription_details ⇒ Object
Details for subscribing to a pricing plan.
-
#type ⇒ Object
Type of the action details.
-
#v1_subscription_details ⇒ Object
Details for subscribing to a v1 subscription.
Instance Method Summary collapse
-
#initialize(collect_at: nil, effective_at: nil, pricing_plan_subscription_details: nil, type: nil, v1_subscription_details: nil) ⇒ Subscribe
constructor
A new instance of Subscribe.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(collect_at: nil, effective_at: nil, pricing_plan_subscription_details: nil, type: nil, v1_subscription_details: nil) ⇒ Subscribe
Returns a new instance of Subscribe.
544 545 546 547 548 549 550 551 552 553 554 555 556 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 544 def initialize( collect_at: nil, effective_at: nil, pricing_plan_subscription_details: nil, type: nil, v1_subscription_details: nil ) @collect_at = collect_at @effective_at = effective_at @pricing_plan_subscription_details = pricing_plan_subscription_details @type = type @v1_subscription_details = v1_subscription_details end |
Instance Attribute Details
#collect_at ⇒ Object
When the invoice is collected. If not specified, defaults to on_effective_at.
534 535 536 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 534 def collect_at @collect_at end |
#effective_at ⇒ Object
When the subscribe action takes effect. If not specified, the default behavior is on_reserve.
536 537 538 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 536 def effective_at @effective_at end |
#pricing_plan_subscription_details ⇒ Object
Details for subscribing to a pricing plan.
538 539 540 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 538 def pricing_plan_subscription_details @pricing_plan_subscription_details end |
#type ⇒ Object
Type of the action details.
540 541 542 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 540 def type @type end |
#v1_subscription_details ⇒ Object
Details for subscribing to a v1 subscription.
542 543 544 |
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 542 def v1_subscription_details @v1_subscription_details end |