Class: Stripe::Checkout::SessionCreateParams::AdaptivePricing

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/params/checkout/session_create_params.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h

Constructor Details

#initialize(enabled: nil) ⇒ AdaptivePricing

Returns a new instance of AdaptivePricing.



11
12
13
# File 'lib/stripe/params/checkout/session_create_params.rb', line 11

def initialize(enabled: nil)
  @enabled = enabled
end

Instance Attribute Details

#enabledObject

If set to true, Adaptive Pricing is available on eligible sessions. Defaults to your dashboard setting.



9
10
11
# File 'lib/stripe/params/checkout/session_create_params.rb', line 9

def enabled
  @enabled
end