Class: Stripe::V2::Billing::IntentService::CreateParams::Action::Subscribe
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::V2::Billing::IntentService::CreateParams::Action::Subscribe
- Defined in:
- lib/stripe/services/v2/billing/intent_service.rb
Defined Under Namespace
Classes: BillingDetails, EffectiveAt, PricingPlanSubscriptionDetails, V1SubscriptionDetails
Instance Attribute Summary collapse
-
#billing_details ⇒ Object
Configuration for the billing details.
-
#effective_at ⇒ Object
When the subscribe action will take 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(billing_details: nil, effective_at: nil, type: nil, pricing_plan_subscription_details: nil, v1_subscription_details: nil) ⇒ Subscribe
constructor
A new instance of Subscribe.
Methods inherited from RequestParams
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_details ⇒ Object
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_at ⇒ Object
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_details ⇒ Object
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 |
#type ⇒ Object
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_details ⇒ Object
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 |