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
attr_accessor, coerce_params, coerce_value, field_encodings, new, #to_h
Constructor Details
#initialize(default_value: nil, maximum_length: nil, minimum_length: nil) ⇒ Numeric
Returns a new instance of Numeric.
288 289 290 291 292 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 288 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.
282 283 284 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 282 def default_value @default_value end |
#maximum_length ⇒ Object
The maximum character length constraint for the customer’s input.
284 285 286 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 284 def maximum_length @maximum_length end |
#minimum_length ⇒ Object
The minimum character length requirement for the customer’s input.
286 287 288 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 286 def minimum_length @minimum_length end |