Class: Pago::V2026_04::Models::OrganizationIndividualLegalEntitySchema
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::OrganizationIndividualLegalEntitySchema
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ type: "type" }.freeze
- REQUIRED_KEYS =
["type"].freeze
Instance Attribute Summary collapse
- #type ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:) ⇒ OrganizationIndividualLegalEntitySchema
constructor
A new instance of OrganizationIndividualLegalEntitySchema.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(type:) ⇒ OrganizationIndividualLegalEntitySchema
Returns a new instance of OrganizationIndividualLegalEntitySchema.
34994 34995 34996 34997 34998 34999 |
# File 'lib/pago/v2026_04/models.rb', line 34994 def initialize( type: ) super() assign(:type, type) end |
Instance Attribute Details
#type ⇒ String (readonly)
34992 34993 34994 |
# File 'lib/pago/v2026_04/models.rb', line 34992 def type @type end |
Class Method Details
.from_json(data) ⇒ OrganizationIndividualLegalEntitySchema?
35003 35004 35005 35006 35007 35008 35009 35010 35011 35012 35013 35014 |
# File 'lib/pago/v2026_04/models.rb', line 35003 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( type: (data.key?("type") ? data["type"] : ::Pago::UNSET) ), data ) end |