Class: Sentdm::Models::MeRetrieveResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/sentdm/models/me_retrieve_response.rb

Overview

Defined Under Namespace

Classes: Data

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(data: nil, error: nil, meta: nil, success: nil) ⇒ Object

Some parameter documentations has been truncated, see Sentdm::Models::MeRetrieveResponse for more details.

Standard API response envelope for all v3 endpoints

Parameters:



# File 'lib/sentdm/models/me_retrieve_response.rb', line 33

Instance Attribute Details

#dataSentdm::Models::MeRetrieveResponse::Data?

Account response for GET /v3/me endpoint. Returns organization (with profiles), user (standalone), or profile (child of an organization) data depending on the API key type. Always includes messaging channel configuration.



13
# File 'lib/sentdm/models/me_retrieve_response.rb', line 13

optional :data, -> { Sentdm::Models::MeRetrieveResponse::Data }, nil?: true

#errorSentdm::Models::ErrorDetail?

Error information

Returns:



19
# File 'lib/sentdm/models/me_retrieve_response.rb', line 19

optional :error, -> { Sentdm::ErrorDetail }, nil?: true

#metaSentdm::Models::APIMeta?

Request and response metadata

Returns:



25
# File 'lib/sentdm/models/me_retrieve_response.rb', line 25

optional :meta, -> { Sentdm::APIMeta }

#successBoolean?

Indicates whether the request was successful

Returns:

  • (Boolean, nil)


31
# File 'lib/sentdm/models/me_retrieve_response.rb', line 31

optional :success, Sentdm::Internal::Type::Boolean