Class: Stripe::V2::Billing::IntentAction::Subscribe

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/v2/billing/intent_action.rb

Defined Under Namespace

Classes: EffectiveAt, PricingPlanSubscriptionDetails, V1SubscriptionDetails

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

Class Method Summary collapse

Methods inherited from StripeObject

#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#collect_atObject (readonly)

Allows users to override the collect at behavior.



557
558
559
# File 'lib/stripe/resources/v2/billing/intent_action.rb', line 557

def collect_at
  @collect_at
end

#effective_atObject (readonly)

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



559
560
561
# File 'lib/stripe/resources/v2/billing/intent_action.rb', line 559

def effective_at
  @effective_at
end

#pricing_plan_subscription_detailsObject (readonly)

Details for subscribing to a Pricing Plan.



563
564
565
# File 'lib/stripe/resources/v2/billing/intent_action.rb', line 563

def pricing_plan_subscription_details
  @pricing_plan_subscription_details
end

#typeObject (readonly)

Type of the action details.



561
562
563
# File 'lib/stripe/resources/v2/billing/intent_action.rb', line 561

def type
  @type
end

#v1_subscription_detailsObject (readonly)

Details for subscribing to a V1 subscription.



565
566
567
# File 'lib/stripe/resources/v2/billing/intent_action.rb', line 565

def v1_subscription_details
  @v1_subscription_details
end

Class Method Details

.field_remappingsObject



575
576
577
# File 'lib/stripe/resources/v2/billing/intent_action.rb', line 575

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



567
568
569
570
571
572
573
# File 'lib/stripe/resources/v2/billing/intent_action.rb', line 567

def self.inner_class_types
  @inner_class_types = {
    effective_at: EffectiveAt,
    pricing_plan_subscription_details: PricingPlanSubscriptionDetails,
    v1_subscription_details: V1SubscriptionDetails,
  }
end