Class: Inttegro::Shared::ResponseMeta

Inherits:
T::Struct
  • Object
show all
Defined in:
lib/inttegro/shared/response_meta.rb

Overview

Curated response metadata. This is body metadata and does not replace native HTTP status or response headers.

This generated model is immutable. Construct it with .new, or decode a string-keyed API payload with .from_hash. #serialize produces a string-keyed hash using the original wire field names and serialized enum values.

Instance Attribute Summary collapse

Instance Attribute Details

#debug ⇒ Hash{String => Object}? (readonly)

Optional debug information returned only when explicitly enabled and authorized.

Optional in the API payload; omitted values default to nil. Wire name: debug.

Returns:

  • (Hash{String => Object}, nil)


30
31
32
33
# File 'lib/inttegro/shared/response_meta.rb', line 30

class ResponseMeta < T::Struct
  const :request_id, T.nilable(String), default: nil
  const :debug, T.nilable(T::Hash[String, Object]), default: nil
end

#request_id ⇒ String? (readonly)

Inttegro request identifier for this API response.

Optional in the API payload; omitted values default to nil. Wire name: request_id.

Returns:

  • (String, nil)


30
31
32
33
# File 'lib/inttegro/shared/response_meta.rb', line 30

class ResponseMeta < T::Struct
  const :request_id, T.nilable(String), default: nil
  const :debug, T.nilable(T::Hash[String, Object]), default: nil
end