Class: Pago::V2026_04::Models::CustomFieldSelectProperties
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::CustomFieldSelectProperties
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
form_label: "form_label",
form_help_text: "form_help_text",
form_placeholder: "form_placeholder",
options: "options"
}.freeze
- REQUIRED_KEYS =
["options"].freeze
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(form_label: ::Pago::UNSET, form_help_text: ::Pago::UNSET, form_placeholder: ::Pago::UNSET, options:) ⇒ CustomFieldSelectProperties
Returns a new instance of CustomFieldSelectProperties.
14161
14162
14163
14164
14165
14166
14167
14168
14169
14170
14171
14172
|
# File 'lib/pago/v2026_04/models.rb', line 14161
def initialize(
form_label: ::Pago::UNSET,
form_help_text: ::Pago::UNSET,
form_placeholder: ::Pago::UNSET,
options:
)
super()
assign(:form_label, form_label)
assign(:form_help_text, form_help_text)
assign(:form_placeholder, form_placeholder)
assign(:options, options)
end
|
Instance Attribute Details
#form_help_text ⇒ String
14153
14154
14155
|
# File 'lib/pago/v2026_04/models.rb', line 14153
def form_help_text
@form_help_text
end
|
14150
14151
14152
|
# File 'lib/pago/v2026_04/models.rb', line 14150
def form_label
@form_label
end
|
14156
14157
14158
|
# File 'lib/pago/v2026_04/models.rb', line 14156
def form_placeholder
@form_placeholder
end
|
14159
14160
14161
|
# File 'lib/pago/v2026_04/models.rb', line 14159
def options
@options
end
|
Class Method Details
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189
14190
|
# File 'lib/pago/v2026_04/models.rb', line 14176
def self.from_json(data)
data = ::JSON.parse(data) if data.is_a?(String)
data = ::Pago::Serde.object(data)
return nil if data.nil?
wrap_raw(
new(
form_label: (data.key?("form_label") ? data["form_label"] : ::Pago::UNSET),
form_help_text: (data.key?("form_help_text") ? data["form_help_text"] : ::Pago::UNSET),
form_placeholder: (data.key?("form_placeholder") ? data["form_placeholder"] : ::Pago::UNSET),
options: (data.key?("options") ? ::Pago::Serde.array(data["options"]) { |item0| Models::CustomFieldSelectOption.from_json(item0) } : ::Pago::UNSET)
),
data
)
end
|