Class: Sentdm::Models::MeRetrieveResponse::Data::Channels::Whatsapp

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

Overview

See Also:

  • Sentdm::Models::MeRetrieveResponse::Data::Channels#whatsapp

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

#initializeObject



208
# File 'sig/sentdm/models/me_retrieve_response.rbs', line 208

def initialize: (

Instance Attribute Details

#business_nameString?

WhatsApp Business display name

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :business_name, String, nil?: true

#configuredBoolean?

Whether WhatsApp is configured for this account

Parameters:

  • (Boolean)

Returns:

  • (Boolean, nil)


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

optional :configured, Sentdm::Internal::Type::Boolean

#phone_numberString?

WhatsApp phone number in E.164 format

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

optional :phone_number, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


214
# File 'sig/sentdm/models/me_retrieve_response.rbs', line 214

def to_hash: -> {