Class: Zavudev::Models::Senders::WhatsAppSyncContacts

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/zavudev/models/senders/whats_app_sync_contacts.rb

Defined Under Namespace

Modules: Status

Instance Attribute Summary collapse

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(can_sync:, status:, requested_at: nil) ⇒ Object

Contacts sync status details.

Parameters:



# File 'lib/zavudev/models/senders/whats_app_sync_contacts.rb', line 25

Instance Attribute Details

#can_syncBoolean

Whether contacts sync can be initiated.

Returns:

  • (Boolean)


11
# File 'lib/zavudev/models/senders/whats_app_sync_contacts.rb', line 11

required :can_sync, Zavudev::Internal::Type::Boolean, api_name: :canSync

#requested_atTime?

When the sync was last requested.

Returns:

  • (Time, nil)


23
# File 'lib/zavudev/models/senders/whats_app_sync_contacts.rb', line 23

optional :requested_at, Time, api_name: :requestedAt, nil?: true

#statusSymbol, Zavudev::Models::Senders::WhatsAppSyncContacts::Status

Status of WhatsApp contacts sync.



17
# File 'lib/zavudev/models/senders/whats_app_sync_contacts.rb', line 17

required :status, enum: -> { Zavudev::Senders::WhatsAppSyncContacts::Status }