Class: Sentdm::Models::ContactCreateResponse::Data
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Sentdm::Models::ContactCreateResponse::Data
- Defined in:
- lib/sentdm/models/contact_create_response.rb
Overview
Instance Attribute Summary collapse
-
#available_channels ⇒ String?
Comma-separated list of available messaging channels (e.g., “sms,whatsapp”).
-
#country_code ⇒ String?
Country calling code (e.g., 1 for US/Canada).
-
#created_at ⇒ Time?
When the contact was created.
-
#default_channel ⇒ String?
Default messaging channel to use (e.g., “sms” or “whatsapp”).
-
#format_e164 ⇒ String?
Phone number in E.164 format (e.g., +1234567890).
-
#format_international ⇒ String?
Phone number in international format (e.g., +1 234-567-890).
-
#format_national ⇒ String?
Phone number in national format (e.g., (234) 567-890).
-
#format_rfc ⇒ String?
Phone number in RFC 3966 format (e.g., tel:+1-234-567-890).
-
#id ⇒ String?
Unique identifier for the contact.
-
#is_inherited ⇒ Boolean?
Whether this is an inherited contact (read-only).
-
#opt_out ⇒ Boolean?
Whether the contact has opted out of messaging.
-
#phone_number ⇒ String?
Phone number in original format.
-
#region_code ⇒ String?
ISO 3166-1 alpha-2 country code (e.g., US, CA, GB).
-
#updated_at ⇒ Time?
When the contact was last updated.
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_channels ⇒ String?
Comma-separated list of available messaging channels (e.g., “sms,whatsapp”)
57 |
# File 'lib/sentdm/models/contact_create_response.rb', line 57 optional :available_channels, String |
#country_code ⇒ String?
Country calling code (e.g., 1 for US/Canada)
63 |
# File 'lib/sentdm/models/contact_create_response.rb', line 63 optional :country_code, String |
#created_at ⇒ Time?
When the contact was created
69 |
# File 'lib/sentdm/models/contact_create_response.rb', line 69 optional :created_at, Time |
#default_channel ⇒ String?
Default messaging channel to use (e.g., “sms” or “whatsapp”)
75 |
# File 'lib/sentdm/models/contact_create_response.rb', line 75 optional :default_channel, String |
#format_e164 ⇒ String?
Phone number in E.164 format (e.g., +1234567890)
81 |
# File 'lib/sentdm/models/contact_create_response.rb', line 81 optional :format_e164, String |
#format_international ⇒ String?
Phone number in international format (e.g., +1 234-567-890)
87 |
# File 'lib/sentdm/models/contact_create_response.rb', line 87 optional :format_international, String |
#format_national ⇒ String?
Phone number in national format (e.g., (234) 567-890)
93 |
# File 'lib/sentdm/models/contact_create_response.rb', line 93 optional :format_national, String |
#format_rfc ⇒ String?
Phone number in RFC 3966 format (e.g., tel:+1-234-567-890)
99 |
# File 'lib/sentdm/models/contact_create_response.rb', line 99 optional :format_rfc, String |
#id ⇒ String?
Unique identifier for the contact
51 |
# File 'lib/sentdm/models/contact_create_response.rb', line 51 optional :id, String |
#is_inherited ⇒ Boolean?
Whether this is an inherited contact (read-only)
105 |
# File 'lib/sentdm/models/contact_create_response.rb', line 105 optional :is_inherited, Sentdm::Internal::Type::Boolean |
#opt_out ⇒ Boolean?
Whether the contact has opted out of messaging. Single source of truth — opt-out is per-contact, not per-channel.
112 |
# File 'lib/sentdm/models/contact_create_response.rb', line 112 optional :opt_out, Sentdm::Internal::Type::Boolean |
#phone_number ⇒ String?
Phone number in original format
118 |
# File 'lib/sentdm/models/contact_create_response.rb', line 118 optional :phone_number, String |
#region_code ⇒ String?
ISO 3166-1 alpha-2 country code (e.g., US, CA, GB)
124 |
# File 'lib/sentdm/models/contact_create_response.rb', line 124 optional :region_code, String |
#updated_at ⇒ Time?
When the contact was last updated
130 |
# File 'lib/sentdm/models/contact_create_response.rb', line 130 optional :updated_at, Time, nil?: true |