Class: SpreeCmCommissioner::Integrations::StadiumXV1::SyncManager
- Inherits:
-
Base::SyncManager
- Object
- Base::SyncManager
- SpreeCmCommissioner::Integrations::StadiumXV1::SyncManager
- Defined in:
- app/services/spree_cm_commissioner/integrations/stadium_x_v1/sync_manager.rb
Instance Method Summary collapse
-
#sync_full! ⇒ Object
override.
-
#sync_incremental! ⇒ Object
override.
-
#sync_webhook!(event_type:, event_data:) ⇒ Object
override.
Methods inherited from Base::SyncManager
Constructor Details
This class inherits a constructor from SpreeCmCommissioner::Integrations::Base::SyncManager
Instance Method Details
#sync_full! ⇒ Object
override
4 5 6 7 8 9 10 11 |
# File 'app/services/spree_cm_commissioner/integrations/stadium_x_v1/sync_manager.rb', line 4 def sync_full! run_execution(:full) do SyncStrategies::FullSyncStrategy.new( client: @client, integration: @integration ).call end end |
#sync_incremental! ⇒ Object
override
14 15 16 17 18 19 20 21 |
# File 'app/services/spree_cm_commissioner/integrations/stadium_x_v1/sync_manager.rb', line 14 def sync_incremental! run_execution(:incremental) do SyncStrategies::IncrementalSyncStrategy.new( client: @client, integration: @integration ).call end end |
#sync_webhook!(event_type:, event_data:) ⇒ Object
override
24 25 26 27 28 29 30 31 32 33 |
# File 'app/services/spree_cm_commissioner/integrations/stadium_x_v1/sync_manager.rb', line 24 def sync_webhook!(event_type:, event_data:) run_execution(:webhook) do SyncStrategies::WebhookSyncStrategy.new( client: @client, integration: @integration, event_type: event_type, event_data: event_data ).call end end |