• Get location product count handler

    Parameters

    • productStatisticsDataService: Pick<ProductStatisticsDataService, "getLocationProductCount">

      injected service use to handle the location related operations

      • getLocationProductCount
    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

      request context [headers, body, params, query].

    Returns Promise<adapter.AdapterHandlerResponse>

    200 Status Ok

    • data: location product count

    Description

    This handler is used to get a location product count by applying the following steps in sequence:

    1. Get the locationIds from the request params

    2. Get the location product count (productStatisticsDataService.getLocationProductCount)

    3. Return the location product count

    Throws

    400 NBError Bad Request

    • missing locationIds

Generated using TypeDoc