Class: Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact
- Defined in:
- lib/telnyx/models/message_send_whatsapp_response.rb
Defined Under Namespace
Classes: Address, Email, Org, Phone, URL
Instance Attribute Summary collapse
- #addresses ⇒ Array<Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Address>?
- #birthday ⇒ String?
- #emails ⇒ Array<Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Email>?
- #name ⇒ String?
- #org ⇒ Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Org?
- #phones ⇒ Array<Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Phone>?
- #urls ⇒ Array<Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::URL>?
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(phone: nil, type: nil, wa_id: nil) ⇒ Object
179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 |
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 179 class Contact < Telnyx::Internal::Type::BaseModel # @!attribute addresses # # @return [Array<Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Address>, nil] optional :addresses, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Address] } # @!attribute birthday # # @return [String, nil] optional :birthday, String # @!attribute emails # # @return [Array<Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Email>, nil] optional :emails, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Email] } # @!attribute name # # @return [String, nil] optional :name, String # @!attribute org # # @return [Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Org, nil] optional :org, -> { Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Org } # @!attribute phones # # @return [Array<Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Phone>, nil] optional :phones, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Phone] } # @!attribute urls # # @return [Array<Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::URL>, nil] optional :urls, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::URL] } # @!method initialize(addresses: nil, birthday: nil, emails: nil, name: nil, org: nil, phones: nil, urls: nil) # @param addresses [Array<Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Address>] # @param birthday [String] # @param emails [Array<Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Email>] # @param name [String] # @param org [Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Org] # @param phones [Array<Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Phone>] # @param urls [Array<Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::URL>] class Address < Telnyx::Internal::Type::BaseModel # @!attribute city # # @return [String, nil] optional :city, String # @!attribute country # # @return [String, nil] optional :country, String # @!attribute country_code # # @return [String, nil] optional :country_code, String # @!attribute state # # @return [String, nil] optional :state, String # @!attribute street # # @return [String, nil] optional :street, String # @!attribute type # # @return [String, nil] optional :type, String # @!attribute zip # # @return [String, nil] optional :zip, String # @!method initialize(city: nil, country: nil, country_code: nil, state: nil, street: nil, type: nil, zip: nil) # @param city [String] # @param country [String] # @param country_code [String] # @param state [String] # @param street [String] # @param type [String] # @param zip [String] end class Email < Telnyx::Internal::Type::BaseModel # @!attribute email # # @return [String, nil] optional :email, String # @!attribute type # # @return [String, nil] optional :type, String # @!method initialize(email: nil, type: nil) # @param email [String] # @param type [String] end # @see Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact#org class Org < Telnyx::Internal::Type::BaseModel # @!attribute company # # @return [String, nil] optional :company, String # @!attribute department # # @return [String, nil] optional :department, String # @!attribute title # # @return [String, nil] optional :title, String # @!method initialize(company: nil, department: nil, title: nil) # @param company [String] # @param department [String] # @param title [String] end class Phone < Telnyx::Internal::Type::BaseModel # @!attribute phone # # @return [String, nil] optional :phone, String # @!attribute type # # @return [String, nil] optional :type, String # @!attribute wa_id # # @return [String, nil] optional :wa_id, String # @!method initialize(phone: nil, type: nil, wa_id: nil) # @param phone [String] # @param type [String] # @param wa_id [String] end class URL < Telnyx::Internal::Type::BaseModel # @!attribute type # # @return [String, nil] optional :type, String # @!attribute url # # @return [String, nil] optional :url, String # @!method initialize(type: nil, url: nil) # @param type [String] # @param url [String] end end |
Instance Attribute Details
#addresses ⇒ Array<Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Address>?
183 184 |
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 183 optional :addresses, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Address] } |
#birthday ⇒ String?
189 |
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 189 optional :birthday, String |
#emails ⇒ Array<Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Email>?
194 195 |
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 194 optional :emails, -> { Telnyx::Internal::Type::ArrayOf[Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Email] } |
#name ⇒ String?
200 |
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 200 optional :name, String |
#org ⇒ Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Org?
205 |
# File 'lib/telnyx/models/message_send_whatsapp_response.rb', line 205 optional :org, -> { Telnyx::Models::MessageSendWhatsappResponse::Data::Body::Contact::Org } |