Class: Zavudev::Models::Senders::WhatsAppSyncHistory

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/zavudev/models/senders/whats_app_sync_history.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:, completed_at: nil, requested_at: nil) ⇒ Object

History sync status details.

Parameters:

  • can_sync (Boolean)

    Whether history sync can be initiated.

  • status (Symbol, Zavudev::Models::Senders::WhatsAppSyncHistory::Status)

    Status of WhatsApp message history sync.

  • completed_at (Time, nil) (defaults to: nil)

    When the sync was completed.

  • requested_at (Time, nil) (defaults to: nil)

    When the sync was last requested.



# File 'lib/zavudev/models/senders/whats_app_sync_history.rb', line 31

Instance Attribute Details

#can_syncBoolean

Whether history sync can be initiated.

Returns:

  • (Boolean)


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

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

#completed_atTime?

When the sync was completed.

Returns:

  • (Time, nil)


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

optional :completed_at, Time, api_name: :completedAt, nil?: true

#requested_atTime?

When the sync was last requested.

Returns:

  • (Time, nil)


29
# File 'lib/zavudev/models/senders/whats_app_sync_history.rb', line 29

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

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

Status of WhatsApp message history sync.



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

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