Class: Stripe::Checkout::SessionService::CreateParams::CustomField::Numeric
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::SessionService::CreateParams::CustomField::Numeric
- Defined in:
- lib/stripe/services/checkout/session_service.rb
Instance Attribute Summary collapse
-
#default_value ⇒ Object
The value that will pre-fill 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.
223 224 225 226 227 |
# File 'lib/stripe/services/checkout/session_service.rb', line 223 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 will pre-fill the field on the payment page.
217 218 219 |
# File 'lib/stripe/services/checkout/session_service.rb', line 217 def default_value @default_value end |
#maximum_length ⇒ Object
The maximum character length constraint for the customer’s input.
219 220 221 |
# File 'lib/stripe/services/checkout/session_service.rb', line 219 def maximum_length @maximum_length end |
#minimum_length ⇒ Object
The minimum character length requirement for the customer’s input.
221 222 223 |
# File 'lib/stripe/services/checkout/session_service.rb', line 221 def minimum_length @minimum_length end |