Service for Carton entity

Constructors

Methods

  • Finds a carton by its ID.

    Parameters

    • id: number

      The ID to find the carton.

    Returns Promise<null | Carton>

    The found carton.

  • Deletes an existing carton.

    Parameters

    • id: number

      The ID to find the carton to delete.

    Returns Promise<void>

    Void.

  • Updates an existing carton.

    Parameters

    • id: number

      The ID to find the carton to update.

    • data: Partial<Carton>

      The data to update the carton with.

    Returns Promise<null | Carton>

    The updated carton.