Class: Stripe::PaymentLink::UpdateParams::CustomField

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/payment_link.rb

Defined Under Namespace

Classes: Dropdown, Label, Numeric, Text

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#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.



1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
# File 'lib/stripe/resources/payment_link.rb', line 1147

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

Configuration for ‘type=dropdown` fields.



1133
1134
1135
# File 'lib/stripe/resources/payment_link.rb', line 1133

def dropdown
  @dropdown
end

#keyObject

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.



1135
1136
1137
# File 'lib/stripe/resources/payment_link.rb', line 1135

def key
  @key
end

#labelObject

The label for the field, displayed to the customer.



1137
1138
1139
# File 'lib/stripe/resources/payment_link.rb', line 1137

def label
  @label
end

#numericObject

Configuration for ‘type=numeric` fields.



1139
1140
1141
# File 'lib/stripe/resources/payment_link.rb', line 1139

def numeric
  @numeric
end

#optionalObject

Whether the customer is required to complete the field before completing the Checkout Session. Defaults to ‘false`.



1141
1142
1143
# File 'lib/stripe/resources/payment_link.rb', line 1141

def optional
  @optional
end

#textObject

Configuration for ‘type=text` fields.



1143
1144
1145
# File 'lib/stripe/resources/payment_link.rb', line 1143

def text
  @text
end

#typeObject

The type of the field.



1145
1146
1147
# File 'lib/stripe/resources/payment_link.rb', line 1145

def type
  @type
end