Class: SpreeCmCommissioner::Integration

Inherits:
Base
  • Object
show all
Includes:
StoreMetadata
Defined in:
app/models/spree_cm_commissioner/integration.rb

Instance Method Summary collapse

Instance Method Details

#restock_external_inventory!(_order, _line_items) ⇒ Object

Raises:

  • (NotImplementedError)


21
22
23
# File 'app/models/spree_cm_commissioner/integration.rb', line 21

def restock_external_inventory!(_order, _line_items)
  raise NotImplementedError, 'Subclasses must implement the restock_external_inventory! method'
end

#sync_managerObject

Raises:

  • (NotImplementedError)


17
18
19
# File 'app/models/spree_cm_commissioner/integration.rb', line 17

def sync_manager
  raise NotImplementedError, 'Subclasses must implement the sync_manager method'
end

#unstock_external_inventory!(_order, _line_items) ⇒ Object

Raises:

  • (NotImplementedError)


25
26
27
# File 'app/models/spree_cm_commissioner/integration.rb', line 25

def unstock_external_inventory!(_order, _line_items)
  raise NotImplementedError, 'Subclasses must implement the unstock_external_inventory! method'
end