Class: Sentdm::Models::ContactUpdateResponse::Data

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/sentdm/models/contact_update_response.rb

Overview

See Also:

Instance Attribute Summary collapse

Method Summary

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, #initialize, 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

This class inherits a constructor from Sentdm::Internal::Type::BaseModel

Instance Attribute Details

#available_channelsString?

Comma-separated list of available messaging channels (e.g., “sms,whatsapp”)

Returns:

  • (String, nil)


57
# File 'lib/sentdm/models/contact_update_response.rb', line 57

optional :available_channels, String

#country_codeString?

Country calling code (e.g., 1 for US/Canada)

Returns:

  • (String, nil)


63
# File 'lib/sentdm/models/contact_update_response.rb', line 63

optional :country_code, String

#created_atTime?

When the contact was created

Returns:

  • (Time, nil)


69
# File 'lib/sentdm/models/contact_update_response.rb', line 69

optional :created_at, Time

#default_channelString?

Default messaging channel to use (e.g., “sms” or “whatsapp”)

Returns:

  • (String, nil)


75
# File 'lib/sentdm/models/contact_update_response.rb', line 75

optional :default_channel, String

#format_e164String?

Phone number in E.164 format (e.g., +1234567890)

Returns:

  • (String, nil)


81
# File 'lib/sentdm/models/contact_update_response.rb', line 81

optional :format_e164, String

#format_internationalString?

Phone number in international format (e.g., +1 234-567-890)

Returns:

  • (String, nil)


87
# File 'lib/sentdm/models/contact_update_response.rb', line 87

optional :format_international, String

#format_nationalString?

Phone number in national format (e.g., (234) 567-890)

Returns:

  • (String, nil)


93
# File 'lib/sentdm/models/contact_update_response.rb', line 93

optional :format_national, String

#format_rfcString?

Phone number in RFC 3966 format (e.g., tel:+1-234-567-890)

Returns:

  • (String, nil)


99
# File 'lib/sentdm/models/contact_update_response.rb', line 99

optional :format_rfc, String

#idString?

Unique identifier for the contact

Returns:

  • (String, nil)


51
# File 'lib/sentdm/models/contact_update_response.rb', line 51

optional :id, String

#is_inheritedBoolean?

Whether this is an inherited contact (read-only)

Returns:

  • (Boolean, nil)


105
# File 'lib/sentdm/models/contact_update_response.rb', line 105

optional :is_inherited, Sentdm::Internal::Type::Boolean

#opt_outBoolean?

Whether the contact has opted out of messaging. Single source of truth — opt-out is per-contact, not per-channel.

Returns:

  • (Boolean, nil)


112
# File 'lib/sentdm/models/contact_update_response.rb', line 112

optional :opt_out, Sentdm::Internal::Type::Boolean

#phone_numberString?

Phone number in original format

Returns:

  • (String, nil)


118
# File 'lib/sentdm/models/contact_update_response.rb', line 118

optional :phone_number, String

#region_codeString?

ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)

Returns:

  • (String, nil)


124
# File 'lib/sentdm/models/contact_update_response.rb', line 124

optional :region_code, String

#updated_atTime?

When the contact was last updated

Returns:

  • (Time, nil)


130
# File 'lib/sentdm/models/contact_update_response.rb', line 130

optional :updated_at, Time, nil?: true