Class: Stripe::Checkout::SessionCreateParams::CustomField::Dropdown
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::SessionCreateParams::CustomField::Dropdown
- Defined in:
- lib/stripe/params/checkout/session_create_params.rb
Defined Under Namespace
Classes: Option
Instance Attribute Summary collapse
-
#default_value ⇒ Object
The value that pre-fills the field on the payment page.Must match a ‘value` in the `options` array.
-
#options ⇒ Object
The options available for the customer to select.
Instance Method Summary collapse
-
#initialize(default_value: nil, options: nil) ⇒ Dropdown
constructor
A new instance of Dropdown.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(default_value: nil, options: nil) ⇒ Dropdown
Returns a new instance of Dropdown.
262 263 264 265 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 262 def initialize(default_value: nil, options: nil) @default_value = default_value @options = end |
Instance Attribute Details
#default_value ⇒ Object
The value that pre-fills the field on the payment page.Must match a ‘value` in the `options` array.
258 259 260 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 258 def default_value @default_value end |
#options ⇒ Object
The options available for the customer to select. Up to 200 options allowed.
260 261 262 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 260 def @options end |