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: CancellationDetails, EffectiveAt, PricingPlanSubscriptionDetails

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of Deactivate.



128
129
130
131
132
133
134
135
136
137
138
139
140
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 128

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

Instance Attribute Details

#cancellation_detailsObject

Details about why the cancellation is being requested.



118
119
120
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 118

def cancellation_details
  @cancellation_details
end

#collect_atObject

Allows users to override the collect at behavior.



120
121
122
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 120

def collect_at
  @collect_at
end

#effective_atObject

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



122
123
124
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 122

def effective_at
  @effective_at
end

#pricing_plan_subscription_detailsObject

Details for deactivating a pricing plan subscription.



124
125
126
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 124

def pricing_plan_subscription_details
  @pricing_plan_subscription_details
end

#typeObject

Type of the action details.



126
127
128
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 126

def type
  @type
end