Class: SpreeCmCommissioner::Integrations::VireakBuntham::SyncManager

Inherits:
Base::SyncManager
  • Object
show all
Defined in:
app/services/spree_cm_commissioner/integrations/vireak_buntham/sync_manager.rb

Instance Method Summary collapse

Methods inherited from Base::SyncManager

#initialize, #sync_webhook!

Constructor Details

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

Instance Method Details

#sync_full!Object



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

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

#sync_incremental!Object



10
11
12
13
14
15
16
# File 'app/services/spree_cm_commissioner/integrations/vireak_buntham/sync_manager.rb', line 10

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