Class: Stripe::Checkout::SessionCreateParams::CustomField::Numeric
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::SessionCreateParams::CustomField::Numeric
- Defined in:
- lib/stripe/params/checkout/session_create_params.rb
Instance Attribute Summary collapse
-
#default_value ⇒ Object
The value that pre-fills the field on the payment page.
-
#maximum_length ⇒ Object
The maximum character length constraint for the customer’s input.
-
#minimum_length ⇒ Object
The minimum character length requirement for the customer’s input.
Instance Method Summary collapse
-
#initialize(default_value: nil, maximum_length: nil, minimum_length: nil) ⇒ Numeric
constructor
A new instance of Numeric.
Methods inherited from RequestParams
Constructor Details
#initialize(default_value: nil, maximum_length: nil, minimum_length: nil) ⇒ Numeric
Returns a new instance of Numeric.
273 274 275 276 277 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 273 def initialize(default_value: nil, maximum_length: nil, minimum_length: nil) @default_value = default_value @maximum_length = maximum_length @minimum_length = minimum_length end |
Instance Attribute Details
#default_value ⇒ Object
The value that pre-fills the field on the payment page.
267 268 269 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 267 def default_value @default_value end |
#maximum_length ⇒ Object
The maximum character length constraint for the customer’s input.
269 270 271 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 269 def maximum_length @maximum_length end |
#minimum_length ⇒ Object
The minimum character length requirement for the customer’s input.
271 272 273 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 271 def minimum_length @minimum_length end |