Class: Pago::V2026_04::Models::OrganizationIndividualLegalEntitySchema

Inherits:
Model
  • Object
show all
Defined in:
lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs

Constant Summary collapse

JSON_KEYS =

Returns:

  • (Hash[Symbol, String])
{
  type: "type"
}.freeze
REQUIRED_KEYS =

Returns:

  • (Array[String])
["type"].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(type:) ⇒ OrganizationIndividualLegalEntitySchema

Returns a new instance of OrganizationIndividualLegalEntitySchema.

Parameters:

  • type: (String)


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

#typeString (readonly)

Returns:

  • (String)


34992
34993
34994
# File 'lib/pago/v2026_04/models.rb', line 34992

def type
  @type
end

Class Method Details

.from_json(data) ⇒ OrganizationIndividualLegalEntitySchema?

Parameters:

  • data (Hash, String, nil)

Returns:



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