Class: Zavudev::Models::ConversationListResponse::Whatsapp

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

Overview

See Also:

  • Zavudev::Models::ConversationListResponse#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

#initialize(bsuid: nil, username: nil) ⇒ Whatsapp

WhatsApp identity, present when the contact adopted a username.

Parameters:

  • bsuid (String) (defaults to: nil) —

    Business-scoped user ID. Can be used as to when sending.

  • username (String) (defaults to: nil)
  • bsuid: (String) (defaults to: nil)
  • username: (String) (defaults to: nil)


# File 'lib/zavudev/models/conversation_list_response.rb', line 217

Instance Attribute Details

#bsuid ⇒ String?

Business-scoped user ID. Can be used as to when sending.

Parameters:

  • (String)

Returns:

  • (String, nil)


210
# File 'lib/zavudev/models/conversation_list_response.rb', line 210

optional :bsuid, String

#username ⇒ String?

Parameters:

  • (String)

Returns:

  • (String, nil)


215
# File 'lib/zavudev/models/conversation_list_response.rb', line 215

optional :username, String

Instance Method Details

#to_hash ⇒ { bsuid: String, username: String }

Returns:

  • ({ bsuid: String, username: String })


180
# File 'sig/zavudev/models/conversation_list_response.rbs', line 180

def to_hash: -> { bsuid: String, username: String }