Class: Stripe::PaymentLinkUpdateParams::CustomField
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::PaymentLinkUpdateParams::CustomField
- Defined in:
- lib/stripe/params/payment_link_update_params.rb
Defined Under Namespace
Classes: Dropdown, Label, Numeric, Text
Instance Attribute Summary collapse
-
#dropdown ⇒ Object
Configuration for ‘type=dropdown` fields.
-
#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=numeric` fields.
-
#optional ⇒ Object
Whether the customer is required to complete the field before completing the Checkout Session.
-
#text ⇒ Object
Configuration for ‘type=text` fields.
-
#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
Constructor Details
#initialize(dropdown: nil, key: nil, label: nil, numeric: nil, optional: nil, text: nil, type: nil) ⇒ CustomField
Returns a new instance of CustomField.
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 |
# File 'lib/stripe/params/payment_link_update_params.rb', line 143 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.
129 130 131 |
# File 'lib/stripe/params/payment_link_update_params.rb', line 129 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.
131 132 133 |
# File 'lib/stripe/params/payment_link_update_params.rb', line 131 def key @key end |
#label ⇒ Object
The label for the field, displayed to the customer.
133 134 135 |
# File 'lib/stripe/params/payment_link_update_params.rb', line 133 def label @label end |
#numeric ⇒ Object
Configuration for ‘type=numeric` fields.
135 136 137 |
# File 'lib/stripe/params/payment_link_update_params.rb', line 135 def numeric @numeric end |
#optional ⇒ Object
Whether the customer is required to complete the field before completing the Checkout Session. Defaults to ‘false`.
137 138 139 |
# File 'lib/stripe/params/payment_link_update_params.rb', line 137 def optional @optional end |
#text ⇒ Object
Configuration for ‘type=text` fields.
139 140 141 |
# File 'lib/stripe/params/payment_link_update_params.rb', line 139 def text @text end |
#type ⇒ Object
The type of the field.
141 142 143 |
# File 'lib/stripe/params/payment_link_update_params.rb', line 141 def type @type end |