Class: Stripe::V2::Billing::IntentCreateParams::Action::Deactivate

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/v2/billing/intent_create_params.rb

Defined Under Namespace

Classes: EffectiveAt, PricingPlanSubscriptionDetails

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of Deactivate.



114
115
116
117
118
119
120
121
122
123
124
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 114

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

Instance Attribute Details

#collect_atObject

Allows users to override the collect at behavior.



106
107
108
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 106

def collect_at
  @collect_at
end

#effective_atObject

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



108
109
110
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 108

def effective_at
  @effective_at
end

#pricing_plan_subscription_detailsObject

Details for deactivating a pricing plan subscription.



110
111
112
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 110

def pricing_plan_subscription_details
  @pricing_plan_subscription_details
end

#typeObject

Type of the action details.



112
113
114
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 112

def type
  @type
end