Class: Stripe::Checkout::SessionCreateParams::AdaptivePricing
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::SessionCreateParams::AdaptivePricing
- Defined in:
- lib/stripe/params/checkout/session_create_params.rb
Instance Attribute Summary collapse
-
#enabled ⇒ Object
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).
Instance Method Summary collapse
-
#initialize(enabled: nil) ⇒ AdaptivePricing
constructor
A new instance of AdaptivePricing.
Methods inherited from RequestParams
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
#enabled ⇒ Object
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 |