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

#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](docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions). Defaults to your [dashboard setting](dashboard.stripe.com/settings/adaptive-pricing).



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

def enabled
  @enabled
end