Class: Stripe::Checkout::SessionCreateParams::CustomField::Text
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::SessionCreateParams::CustomField::Text
- 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) ⇒ Text
constructor
A new instance of Text.
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) ⇒ Text
Returns a new instance of Text.
310 311 312 313 314 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 310 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.
304 305 306 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 304 def default_value @default_value end |
#maximum_length ⇒ Object
The maximum character length constraint for the customer's input.
306 307 308 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 306 def maximum_length @maximum_length end |
#minimum_length ⇒ Object
The minimum character length requirement for the customer's input.
308 309 310 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 308 def minimum_length @minimum_length end |