Class: Zavudev::Models::Invitation::ConnectedAccount

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

Overview

See Also:

  • Zavudev::Models::Invitation#connected_account

Defined Under Namespace

Modules: Channel

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(id:, channel:, name: nil) ⇒ Object

Some parameter documentations has been truncated, see Zavudev::Models::Invitation::ConnectedAccount for more details.

The account the client linked, populated once the invitation is completed. Null before that. Use it to show the partner what was connected without fetching the sender.

Parameters:

  • id (String)

    Provider-side identifier: the WhatsApp phone number ID, or the Facebook Page ID.

  • channel (Symbol, Zavudev::Models::Invitation::ConnectedAccount::Channel)
  • name (String, nil) (defaults to: nil)

    Display name of the connected account: the WhatsApp verified name, or the Facebo



# File 'lib/zavudev/models/invitation.rb', line 211

Instance Attribute Details

#channelSymbol, Zavudev::Models::Invitation::ConnectedAccount::Channel

Parameters:

  • value (Zavudev::Models::Invitation::ConnectedAccount::channel)

Returns:



202
# File 'lib/zavudev/models/invitation.rb', line 202

required :channel, enum: -> { Zavudev::Invitation::ConnectedAccount::Channel }

#idString

Provider-side identifier: the WhatsApp phone number ID, or the Facebook Page ID.

Parameters:

  • value (String)

Returns:

  • (String)


197
# File 'lib/zavudev/models/invitation.rb', line 197

required :id, String

#nameString?

Display name of the connected account: the WhatsApp verified name, or the Facebook Page name.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


209
# File 'lib/zavudev/models/invitation.rb', line 209

optional :name, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


149
# File 'sig/zavudev/models/invitation.rbs', line 149

def to_hash: -> {