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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

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

Returns a new instance of Deactivate.



93
94
95
96
97
98
99
100
101
102
103
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 93

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

Instance Attribute Details

#billing_detailsObject

Configuration for the billing details.



85
86
87
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 85

def billing_details
  @billing_details
end

#effective_atObject

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



87
88
89
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 87

def effective_at
  @effective_at
end

#pricing_plan_subscription_detailsObject

Details for deactivating a pricing plan subscription.



89
90
91
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 89

def pricing_plan_subscription_details
  @pricing_plan_subscription_details
end

#typeObject

Type of the action details.



91
92
93
# File 'lib/stripe/params/v2/billing/intent_create_params.rb', line 91

def type
  @type
end