Class: Sentdm::Models::MeRetrieveResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Sentdm::Models::MeRetrieveResponse::Data
- Defined in:
- lib/sentdm/models/me_retrieve_response.rb
Overview
Defined Under Namespace
Instance Attribute Summary collapse
-
#channels ⇒ Sentdm::Models::MeRetrieveResponse::Data::Channels?
Messaging channel configuration.
-
#created_at ⇒ Time?
When the account was created.
-
#description ⇒ String?
Account description.
-
#email ⇒ String?
Contact email address.
-
#icon ⇒ String?
Account icon URL.
-
#id ⇒ String?
Customer ID (organization, account, or profile).
-
#name ⇒ String?
Account name.
-
#organization_id ⇒ String?
Organization ID (only for profile type — the parent organization).
-
#profiles ⇒ Array<Sentdm::Models::MeRetrieveResponse::Data::Profile>?
List of profiles (populated for organization type, empty for user and profile types).
-
#settings ⇒ Sentdm::Models::ProfileSettings?
Profile configuration settings.
-
#short_name ⇒ String?
Short name / abbreviation (only for profile type).
-
#status ⇒ String?
Profile status (only for profile type): incomplete, pending_review, approved, etc.
-
#type ⇒ String?
Account type: “organization” (has profiles), “user” (no profiles), or “profile” (child of an organization).
Instance Method Summary collapse
-
#initialize(business_name: nil, configured: nil, phone_number: nil) ⇒ Object
constructor
WhatsApp Business channel configuration.
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(business_name: nil, configured: nil, phone_number: nil) ⇒ Object
WhatsApp Business channel configuration. When configured, includes the WhatsApp phone number and business name.
|
|
# File 'lib/sentdm/models/me_retrieve_response.rb', line 132
|
Instance Attribute Details
#channels ⇒ Sentdm::Models::MeRetrieveResponse::Data::Channels?
Messaging channel configuration. All three channels are always present. Each channel has a “configured” flag; configured channels expose additional details.
60 |
# File 'lib/sentdm/models/me_retrieve_response.rb', line 60 optional :channels, -> { Sentdm::Models::MeRetrieveResponse::Data::Channels } |
#created_at ⇒ Time?
When the account was created
66 |
# File 'lib/sentdm/models/me_retrieve_response.rb', line 66 optional :created_at, Time |
#description ⇒ String?
Account description
72 |
# File 'lib/sentdm/models/me_retrieve_response.rb', line 72 optional :description, String, nil?: true |
#email ⇒ String?
Contact email address
78 |
# File 'lib/sentdm/models/me_retrieve_response.rb', line 78 optional :email, String, nil?: true |
#icon ⇒ String?
Account icon URL
84 |
# File 'lib/sentdm/models/me_retrieve_response.rb', line 84 optional :icon, String, nil?: true |
#id ⇒ String?
Customer ID (organization, account, or profile)
53 |
# File 'lib/sentdm/models/me_retrieve_response.rb', line 53 optional :id, String |
#name ⇒ String?
Account name
90 |
# File 'lib/sentdm/models/me_retrieve_response.rb', line 90 optional :name, String |
#organization_id ⇒ String?
Organization ID (only for profile type — the parent organization)
96 |
# File 'lib/sentdm/models/me_retrieve_response.rb', line 96 optional :organization_id, String, nil?: true |
#profiles ⇒ Array<Sentdm::Models::MeRetrieveResponse::Data::Profile>?
List of profiles (populated for organization type, empty for user and profile types)
103 104 |
# File 'lib/sentdm/models/me_retrieve_response.rb', line 103 optional :profiles, -> { Sentdm::Internal::Type::ArrayOf[Sentdm::Models::MeRetrieveResponse::Data::Profile] } |
#settings ⇒ Sentdm::Models::ProfileSettings?
Profile configuration settings
110 |
# File 'lib/sentdm/models/me_retrieve_response.rb', line 110 optional :settings, -> { Sentdm::ProfileSettings }, nil?: true |
#short_name ⇒ String?
Short name / abbreviation (only for profile type)
116 |
# File 'lib/sentdm/models/me_retrieve_response.rb', line 116 optional :short_name, String, nil?: true |
#status ⇒ String?
Profile status (only for profile type): incomplete, pending_review, approved, etc.
123 |
# File 'lib/sentdm/models/me_retrieve_response.rb', line 123 optional :status, String, nil?: true |
#type ⇒ String?
Account type: “organization” (has profiles), “user” (no profiles), or “profile” (child of an organization)
130 |
# File 'lib/sentdm/models/me_retrieve_response.rb', line 130 optional :type, String |