Touch & Sell JS API
    Preparing search index...

    Class TSCart

    Index

    Properties

    id: string

    Methods

    • Parameters

      • tscontact: TSContact

        The contact to be added to the presentation.

      Returns Promise<void>

    • Parameters

      • tsdocument: TSDocument

        The document to be added to the cart.

      Returns Promise<void>

    • Parameters

      • key: string

        The key for the cart attribute.

      Returns Promise<unknown>

      the value for the key or NULL.

    • Returns Promise<Record<string, unknown>>

      the hash map of all the keys and values for the cart.

    • Parameters

      • email: string

        The Email of the contact to be retrieved

      Returns Promise<TSContact | null>

      the found contact or undefined

    • Returns Promise<TSContact[]>

      the whole list of contacts currently in the presentation.

    • Returns Promise<(TSDocument | null)[]>

      the whole list of documents currently in the cart.

    • Parameters

      • tsdocument: TSDocument

        The document to be checked.

      Returns Promise<boolean>

    • Returns Promise<boolean>

    • Parameters

      • tscontact: TSContact

        The contact to be removed from the presentation.

      Returns Promise<void>

    • Parameters

      • tsdocument: TSDocument

        The document to be removed from the cart.

      Returns Promise<void>

    • Submit the cart to the synchronization system. Then use TouchSell.push() to really send it or wait the user to press the synchronization button.

      Returns Promise<void>

    • Parameters

      • key: string

        The key for the cart attribute.

      • value: string

        The value corresponding to “key”.

      Returns Promise<void>