Class: Stripe::Checkout::Session::CreateParams::CustomField::Numeric
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::Session::CreateParams::CustomField::Numeric
- Defined in:
- lib/stripe/resources/checkout/session.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.
1283 1284 1285 1286 1287 |
# File 'lib/stripe/resources/checkout/session.rb', line 1283 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.
1277 1278 1279 |
# File 'lib/stripe/resources/checkout/session.rb', line 1277 def default_value @default_value end |
#maximum_length ⇒ Object
The maximum character length constraint for the customer’s input.
1279 1280 1281 |
# File 'lib/stripe/resources/checkout/session.rb', line 1279 def maximum_length @maximum_length end |
#minimum_length ⇒ Object
The minimum character length requirement for the customer’s input.
1281 1282 1283 |
# File 'lib/stripe/resources/checkout/session.rb', line 1281 def minimum_length @minimum_length end |