Interface SourcingBanService

  • All Known Implementing Classes:
    DefaultSourcingBanService

    public interface SourcingBanService
    The service is used create and fetch Bans by warehouses
    • Method Detail

      • createSourcingBan

        SourcingBanModel createSourcingBan​(WarehouseModel warehouseModel)
        creates Sourcing Ban
        Parameters:
        warehouseModel - warehouse that we want to ban
        Returns:
        SourcingBanModel linked to the passed Warehouse, this ban will expire in 1 day by default
      • getSourcingBan

        java.util.Collection<SourcingBanModel> getSourcingBan​(java.util.Collection<WarehouseModel> warehouseModels)
        gets SourcingBan by passing Warehouse
        Parameters:
        warehouseModels - collection of warehouse that we want to get bans for
        Returns:
        collection of SourcingBans that for warehouses that is active within configurable period (1 day by default)