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

    Constructors

    Properties

    _databaseService: DatabaseService = ...
    _priceService: PriceService = ...

    Methods

    • Adds a single product to an user's cart

      Parameters

      • amount: number

        the amount of a single product the user wants to buy

      • gameSku: string

        the id of the game or product the user wants to buy

      • userId: number

        the id of the current user

      Returns Promise<void>

    • Retrieves all the products in an user's shoppingcart

      Parameters

      • userId: number

        requires the id of the current user

      Returns Promise<IShoppingCart>

      returns an array of all the shoppingItems of the current user.