Class: Stripe::PaymentLink::CustomField
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::PaymentLink::CustomField
- Defined in:
- lib/stripe/resources/payment_link.rb
Defined Under Namespace
Classes: Dropdown, Label, Numeric, Text
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#dropdown ⇒ Object
readonly
Attribute for field dropdown.
-
#key ⇒ Object
readonly
String of your choice that your integration can use to reconcile this field.
-
#label ⇒ Object
readonly
Attribute for field label.
-
#numeric ⇒ Object
readonly
Attribute for field numeric.
-
#optional ⇒ Object
readonly
Whether the customer is required to complete the field before completing the Checkout Session.
-
#text ⇒ Object
readonly
Attribute for field text.
-
#type ⇒ Object
readonly
The type of the field.
Attributes inherited from StripeObject
Class Method Summary collapse
Methods inherited from StripeObject
#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values
Constructor Details
This class inherits a constructor from Stripe::StripeObject
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject
Instance Attribute Details
#dropdown ⇒ Object (readonly)
Attribute for field dropdown
201 202 203 |
# File 'lib/stripe/resources/payment_link.rb', line 201 def dropdown @dropdown end |
#key ⇒ Object (readonly)
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.
203 204 205 |
# File 'lib/stripe/resources/payment_link.rb', line 203 def key @key end |
#label ⇒ Object (readonly)
Attribute for field label
205 206 207 |
# File 'lib/stripe/resources/payment_link.rb', line 205 def label @label end |
#numeric ⇒ Object (readonly)
Attribute for field numeric
207 208 209 |
# File 'lib/stripe/resources/payment_link.rb', line 207 def numeric @numeric end |
#optional ⇒ Object (readonly)
Whether the customer is required to complete the field before completing the Checkout Session. Defaults to ‘false`.
209 210 211 |
# File 'lib/stripe/resources/payment_link.rb', line 209 def optional @optional end |
#text ⇒ Object (readonly)
Attribute for field text
211 212 213 |
# File 'lib/stripe/resources/payment_link.rb', line 211 def text @text end |
#type ⇒ Object (readonly)
The type of the field.
213 214 215 |
# File 'lib/stripe/resources/payment_link.rb', line 213 def type @type end |
Class Method Details
.field_remappings ⇒ Object
219 220 221 |
# File 'lib/stripe/resources/payment_link.rb', line 219 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
215 216 217 |
# File 'lib/stripe/resources/payment_link.rb', line 215 def self.inner_class_types @inner_class_types = { dropdown: Dropdown, label: Label, numeric: Numeric, text: Text } end |