@webshop/root - v1.0.0
    Preparing search index...

    Front end service with filled in http requests for api endpoints

    Tim Denkers

    Index

    Constructors

    Methods

    • Adds a product to an user's shoppingcart for the first time. Can also change the amount of an already existing shoppingItem, but that is not its intended purpose. changeAmount() is better for that.

      Parameters

      • amount: number

        The amount of a product an user wants to add to their cart.

      • gameSku: string

        the sku of the product.

      Returns Promise<void>

      Tim Denkers

    • Changes the amount of a specific shoppingItem the logged in user has in their shoppingCart.

      Parameters

      • amount: number

        the amount of a product the user wants to have in their shoppingCart.

      • idShoppingCartItem: number

        the id of the shoppingItem.

      Returns Promise<void>

      Tim Denkers

    • Deletes a shoppingItem in the shoppingCart of a logged in user.

      Parameters

      • idShoppingCartItem: number

        the id of the shoppingItem.

      Returns Promise<void>

      Tim Denkers

    • retrieves the entire shoppingCart of the logged in user.

      Returns Promise<IShoppingCart | null>

      an IShoppingCart object

      Tim Denkers