Class: Pago::V2026_04::Models::IntrospectTokenResponse

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])
{
  active: "active",
  client_id: "client_id",
  token_type: "token_type",
  scope: "scope",
  sub_type: "sub_type",
  sub: "sub",
  organizations: "organizations",
  aud: "aud",
  iss: "iss",
  exp: "exp",
  iat: "iat"
}.freeze
REQUIRED_KEYS =

Returns:

  • (Array[String])
["active", "client_id", "token_type", "scope", "sub_type", "sub", "organizations", "aud", "iss", "exp", "iat"].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(active:, client_id:, token_type:, scope:, sub_type:, sub:, organizations:, aud:, iss:, exp:, iat:) ⇒ IntrospectTokenResponse

Returns a new instance of IntrospectTokenResponse.

Parameters:

  • active: (Boolean)
  • client_id: (String)
  • token_type: (String)
  • scope: (String)
  • sub_type: (String)
  • sub: (String)
  • organizations: (Array[String])
  • aud: (String)
  • iss: (String)
  • exp: (Integer)
  • iat: (Integer)


26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133
26134
26135
26136
26137
26138
26139
26140
26141
26142
26143
26144
26145
26146
26147
26148
# File 'lib/pago/v2026_04/models.rb', line 26123

def initialize(
  active:,
  client_id:,
  token_type:,
  scope:,
  sub_type:,
  sub:,
  organizations:,
  aud:,
  iss:,
  exp:,
  iat:
)
  super()
  assign(:active, active)
  assign(:client_id, client_id)
  assign(:token_type, token_type)
  assign(:scope, scope)
  assign(:sub_type, sub_type)
  assign(:sub, sub)
  assign(:organizations, organizations)
  assign(:aud, aud)
  assign(:iss, iss)
  assign(:exp, exp)
  assign(:iat, iat)
end

Instance Attribute Details

#activeBoolean (readonly)

Returns:

  • (Boolean)


26091
26092
26093
# File 'lib/pago/v2026_04/models.rb', line 26091

def active
  @active
end

#audString (readonly)

Returns:

  • (String)


26112
26113
26114
# File 'lib/pago/v2026_04/models.rb', line 26112

def aud
  @aud
end

#client_idString (readonly)

Returns:

  • (String)


26094
26095
26096
# File 'lib/pago/v2026_04/models.rb', line 26094

def client_id
  @client_id
end

#expInteger (readonly)

Returns:

  • (Integer)


26118
26119
26120
# File 'lib/pago/v2026_04/models.rb', line 26118

def exp
  @exp
end

#iatInteger (readonly)

Returns:

  • (Integer)


26121
26122
26123
# File 'lib/pago/v2026_04/models.rb', line 26121

def iat
  @iat
end

#issString (readonly)

Returns:

  • (String)


26115
26116
26117
# File 'lib/pago/v2026_04/models.rb', line 26115

def iss
  @iss
end

#organizationsArray<String> (readonly)

Returns:

  • (Array<String>)


26109
26110
26111
# File 'lib/pago/v2026_04/models.rb', line 26109

def organizations
  @organizations
end

#scopeString (readonly)

Returns:

  • (String)


26100
26101
26102
# File 'lib/pago/v2026_04/models.rb', line 26100

def scope
  @scope
end

#subString (readonly)

Returns:

  • (String)


26106
26107
26108
# File 'lib/pago/v2026_04/models.rb', line 26106

def sub
  @sub
end

#sub_typeString (readonly)

Returns:

  • (String)


26103
26104
26105
# File 'lib/pago/v2026_04/models.rb', line 26103

def sub_type
  @sub_type
end

#token_typeString (readonly)

Returns:

  • (String)


26097
26098
26099
# File 'lib/pago/v2026_04/models.rb', line 26097

def token_type
  @token_type
end

Class Method Details

.from_json(data) ⇒ IntrospectTokenResponse?

Parameters:

  • data (Hash, String, nil)

Returns:



26152
26153
26154
26155
26156
26157
26158
26159
26160
26161
26162
26163
26164
26165
26166
26167
26168
26169
26170
26171
26172
26173
# File 'lib/pago/v2026_04/models.rb', line 26152

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(
      active: (data.key?("active") ? data["active"] : ::Pago::UNSET),
      client_id: (data.key?("client_id") ? data["client_id"] : ::Pago::UNSET),
      token_type: (data.key?("token_type") ? data["token_type"] : ::Pago::UNSET),
      scope: (data.key?("scope") ? data["scope"] : ::Pago::UNSET),
      sub_type: (data.key?("sub_type") ? data["sub_type"] : ::Pago::UNSET),
      sub: (data.key?("sub") ? data["sub"] : ::Pago::UNSET),
      organizations: (data.key?("organizations") ? data["organizations"] : ::Pago::UNSET),
      aud: (data.key?("aud") ? data["aud"] : ::Pago::UNSET),
      iss: (data.key?("iss") ? data["iss"] : ::Pago::UNSET),
      exp: (data.key?("exp") ? data["exp"] : ::Pago::UNSET),
      iat: (data.key?("iat") ? data["iat"] : ::Pago::UNSET)
    ),
    data
  )
end