Class: Zavudev::Models::InvitationCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/zavudev/models/invitation_create_params.rb,
sig/zavudev/models/invitation_create_params.rbs

Overview

See Also:

  • Zavudev::Resources::Invitations#create

Defined Under Namespace

Modules: ConnectionType

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(allowed_phone_countries: nil, client_email: nil, client_name: nil, client_phone: nil, connection_type: nil, expires_in_days: nil, phone_number_id: nil, request_options: {}) ⇒ Object

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

Parameters:

  • allowed_phone_countries (Array<String>) (defaults to: nil)

    ISO country codes for allowed phone numbers.

  • client_email (String) (defaults to: nil)

    Email of the client being invited.

  • client_name (String) (defaults to: nil)

    Name of the client being invited.

  • client_phone (String) (defaults to: nil)

    Phone number of the client in E.164 format.

  • connection_type (Symbol, Zavudev::Models::InvitationCreateParams::ConnectionType) (defaults to: nil)

    How the client connects WhatsApp. whatsapp_waba (default) runs Meta's embedded

  • expires_in_days (Integer) (defaults to: nil)

    Number of days until the invitation expires.

  • phone_number_id (String) (defaults to: nil)

    ID of a Zavu phone number to pre-assign for WhatsApp registration. If provided,

  • request_options (Zavudev::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/zavudev/models/invitation_create_params.rb', line 60

Instance Attribute Details

#allowed_phone_countriesArray<String>?

ISO country codes for allowed phone numbers.

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


14
15
16
# File 'lib/zavudev/models/invitation_create_params.rb', line 14

optional :allowed_phone_countries,
Zavudev::Internal::Type::ArrayOf[String],
api_name: :allowedPhoneCountries

#client_emailString?

Email of the client being invited.

Parameters:

  • (String)

Returns:

  • (String, nil)


22
# File 'lib/zavudev/models/invitation_create_params.rb', line 22

optional :client_email, String, api_name: :clientEmail

#client_nameString?

Name of the client being invited.

Parameters:

  • (String)

Returns:

  • (String, nil)


28
# File 'lib/zavudev/models/invitation_create_params.rb', line 28

optional :client_name, String, api_name: :clientName

#client_phoneString?

Phone number of the client in E.164 format.

Parameters:

  • (String)

Returns:

  • (String, nil)


34
# File 'lib/zavudev/models/invitation_create_params.rb', line 34

optional :client_phone, String, api_name: :clientPhone

#connection_typeSymbol, ...

How the client connects WhatsApp. whatsapp_waba (default) runs Meta's embedded signup to link an official WhatsApp Business Account. whatsapp_alt links the number by scanning a QR code — available only to teams with the WhatsApp Alternative feature enabled.



43
44
45
# File 'lib/zavudev/models/invitation_create_params.rb', line 43

optional :connection_type,
enum: -> { Zavudev::InvitationCreateParams::ConnectionType },
api_name: :connectionType

#expires_in_daysInteger?

Number of days until the invitation expires.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


51
# File 'lib/zavudev/models/invitation_create_params.rb', line 51

optional :expires_in_days, Integer, api_name: :expiresInDays

#phone_number_idString?

ID of a Zavu phone number to pre-assign for WhatsApp registration. If provided, the client will use this number instead of their own.

Parameters:

  • (String)

Returns:

  • (String, nil)


58
# File 'lib/zavudev/models/invitation_create_params.rb', line 58

optional :phone_number_id, String, api_name: :phoneNumberId

Instance Method Details

#to_hash{

Returns:

  • ({)


60
# File 'sig/zavudev/models/invitation_create_params.rbs', line 60

def to_hash: -> {