Class: Telnyx::Models::Whatsapp::BusinessAccounts::SettingUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/telnyx/models/whatsapp/business_accounts/setting_update_params.rb

Overview

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(id:, name: nil, timezone: nil, webhook_enabled: nil, webhook_events: nil, webhook_failover_url: nil, webhook_url: nil, request_options: {}) ⇒ Object

Parameters:

  • id (String)
  • name (String) (defaults to: nil)
  • timezone (String) (defaults to: nil)

    IANA timezone identifier

  • webhook_enabled (Boolean) (defaults to: nil)

    Enable/disable receiving Whatsapp events

  • webhook_events (Array<String>) (defaults to: nil)
  • webhook_failover_url (String) (defaults to: nil)

    Failover URL to send Whatsapp events

  • webhook_url (String) (defaults to: nil)

    URL to send Whatsapp events

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


# File 'lib/telnyx/models/whatsapp/business_accounts/setting_update_params.rb', line 51

Instance Attribute Details

#idString

Returns:

  • (String)


15
# File 'lib/telnyx/models/whatsapp/business_accounts/setting_update_params.rb', line 15

required :id, String

#nameString?

Returns:

  • (String, nil)


20
# File 'lib/telnyx/models/whatsapp/business_accounts/setting_update_params.rb', line 20

optional :name, String

#timezoneString?

IANA timezone identifier

Returns:

  • (String, nil)


26
# File 'lib/telnyx/models/whatsapp/business_accounts/setting_update_params.rb', line 26

optional :timezone, String

#webhook_enabledBoolean?

Enable/disable receiving Whatsapp events

Returns:

  • (Boolean, nil)


32
# File 'lib/telnyx/models/whatsapp/business_accounts/setting_update_params.rb', line 32

optional :webhook_enabled, Telnyx::Internal::Type::Boolean

#webhook_eventsArray<String>?

Returns:

  • (Array<String>, nil)


37
# File 'lib/telnyx/models/whatsapp/business_accounts/setting_update_params.rb', line 37

optional :webhook_events, Telnyx::Internal::Type::ArrayOf[String]

#webhook_failover_urlString?

Failover URL to send Whatsapp events

Returns:

  • (String, nil)


43
# File 'lib/telnyx/models/whatsapp/business_accounts/setting_update_params.rb', line 43

optional :webhook_failover_url, String

#webhook_urlString?

URL to send Whatsapp events

Returns:

  • (String, nil)


49
# File 'lib/telnyx/models/whatsapp/business_accounts/setting_update_params.rb', line 49

optional :webhook_url, String