Class: Pago::V2026_04::Models::IntrospectTokenResponse
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ 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 =
["active", "client_id", "token_type", "scope", "sub_type", "sub", "organizations", "aud", "iss", "exp", "iat"].freeze
Instance Attribute Summary collapse
- #active ⇒ Boolean readonly
- #aud ⇒ String readonly
- #client_id ⇒ String readonly
- #exp ⇒ Integer readonly
- #iat ⇒ Integer readonly
- #iss ⇒ String readonly
- #organizations ⇒ Array<String> readonly
- #scope ⇒ String readonly
- #sub ⇒ String readonly
- #sub_type ⇒ String readonly
- #token_type ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(active:, client_id:, token_type:, scope:, sub_type:, sub:, organizations:, aud:, iss:, exp:, iat:) ⇒ IntrospectTokenResponse
constructor
A new instance of IntrospectTokenResponse.
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.
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
#active ⇒ Boolean (readonly)
26091 26092 26093 |
# File 'lib/pago/v2026_04/models.rb', line 26091 def active @active end |
#aud ⇒ String (readonly)
26112 26113 26114 |
# File 'lib/pago/v2026_04/models.rb', line 26112 def aud @aud end |
#client_id ⇒ String (readonly)
26094 26095 26096 |
# File 'lib/pago/v2026_04/models.rb', line 26094 def client_id @client_id end |
#exp ⇒ Integer (readonly)
26118 26119 26120 |
# File 'lib/pago/v2026_04/models.rb', line 26118 def exp @exp end |
#iat ⇒ Integer (readonly)
26121 26122 26123 |
# File 'lib/pago/v2026_04/models.rb', line 26121 def iat @iat end |
#iss ⇒ String (readonly)
26115 26116 26117 |
# File 'lib/pago/v2026_04/models.rb', line 26115 def iss @iss end |
#organizations ⇒ Array<String> (readonly)
26109 26110 26111 |
# File 'lib/pago/v2026_04/models.rb', line 26109 def organizations @organizations end |
#scope ⇒ String (readonly)
26100 26101 26102 |
# File 'lib/pago/v2026_04/models.rb', line 26100 def scope @scope end |
#sub ⇒ String (readonly)
26106 26107 26108 |
# File 'lib/pago/v2026_04/models.rb', line 26106 def sub @sub end |
#sub_type ⇒ String (readonly)
26103 26104 26105 |
# File 'lib/pago/v2026_04/models.rb', line 26103 def sub_type @sub_type end |
#token_type ⇒ String (readonly)
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?
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 |