Class: Stripe::Checkout::SessionCreateParams::CustomField
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Checkout::SessionCreateParams::CustomField
- Defined in:
- lib/stripe/params/checkout/session_create_params.rb
Defined Under Namespace
Classes: Dropdown, Label, Numeric, Text
Instance Attribute Summary collapse
-
#dropdown ⇒ Object
Configuration for
type=dropdownfields. -
#key ⇒ Object
String of your choice that your integration can use to reconcile this field.
-
#label ⇒ Object
The label for the field, displayed to the customer.
-
#numeric ⇒ Object
Configuration for
type=numericfields. -
#optional ⇒ Object
Whether the customer is required to complete the field before completing the Checkout Session.
-
#text ⇒ Object
Configuration for
type=textfields. -
#type ⇒ Object
The type of the field.
Instance Method Summary collapse
-
#initialize(dropdown: nil, key: nil, label: nil, numeric: nil, optional: nil, text: nil, type: nil) ⇒ CustomField
constructor
A new instance of CustomField.
Methods inherited from RequestParams
attr_accessor, coerce_params, coerce_value, discriminator, discriminator_fields, field_encodings, new, #to_h
Constructor Details
#initialize(dropdown: nil, key: nil, label: nil, numeric: nil, optional: nil, text: nil, type: nil) ⇒ CustomField
Returns a new instance of CustomField.
241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 241 def initialize( dropdown: nil, key: nil, label: nil, numeric: nil, optional: nil, text: nil, type: nil ) @dropdown = dropdown @key = key @label = label @numeric = numeric @optional = optional @text = text @type = type end |
Instance Attribute Details
#dropdown ⇒ Object
Configuration for type=dropdown fields.
227 228 229 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 227 def dropdown @dropdown end |
#key ⇒ Object
String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.
229 230 231 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 229 def key @key end |
#label ⇒ Object
The label for the field, displayed to the customer.
231 232 233 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 231 def label @label end |
#numeric ⇒ Object
Configuration for type=numeric fields.
233 234 235 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 233 def numeric @numeric end |
#optional ⇒ Object
Whether the customer is required to complete the field before completing the Checkout Session. Defaults to false.
235 236 237 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 235 def optional @optional end |
#text ⇒ Object
Configuration for type=text fields.
237 238 239 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 237 def text @text end |
#type ⇒ Object
The type of the field.
239 240 241 |
# File 'lib/stripe/params/checkout/session_create_params.rb', line 239 def type @type end |