• Delete many product variants handler

    Parameters

    • productVariantService: ProductVariantDataService

      injected service use to handle the catalog related operations

    • logger: Logger

      injected logger used to handle the logging

    • context: AdapterHandlerContext

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

      • body.ids is required

    Returns Promise<adapter.AdapterHandlerResponse>

    204 Status No Content

    Description

    This handler is used to delete many product variants by applying the following steps in sequence:

    1. Get the ids from body

    2. Delete the product variants (productVariantService.deleteManyProductVariants)

    3. Return the status

    Throws

    500 NBError Internal Server Error

    • Error happen when delete product variants failed

Generated using TypeDoc