Class: SpreeCmCommissioner::Integrations::BookMeBusV1::SyncManager

Inherits:
SpreeCmCommissioner::Integrations::Base::SyncManager show all
Defined in:
app/services/spree_cm_commissioner/integrations/book_me_bus_v1/sync_manager.rb

Instance Method Summary collapse

Methods inherited from SpreeCmCommissioner::Integrations::Base::SyncManager

#initialize

Constructor Details

This class inherits a constructor from SpreeCmCommissioner::Integrations::Base::SyncManager

Instance Method Details

#sync_full!Object

Override full sync



3
4
5
6
7
8
9
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/sync_manager.rb', line 3

def sync_full!
  run_execution(:full) do
    SpreeCmCommissioner::Integrations::BookMeBusV1::SyncStrategies::FullSyncStrategy.new(
      integration: @integration
    ).call
  end
end

#sync_incremental!Object

Override incremental sync



12
13
14
15
16
17
18
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/sync_manager.rb', line 12

def sync_incremental!
  run_execution(:incremental) do
    SpreeCmCommissioner::Integrations::BookMeBusV1::SyncStrategies::IncrementalSyncStrategy.new(
      integration: @integration
    ).call
  end
end

#sync_webhook!(event_type:, event_data:) ⇒ Object

Override webhook sync (no-op)



21
# File 'app/services/spree_cm_commissioner/integrations/book_me_bus_v1/sync_manager.rb', line 21

def sync_webhook!(event_type:, event_data:); end