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

    Service that communicates with the discount API endpoint

    Abdelrahmen Sobhy

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Validates a discount code against the given cart total.

      Parameters

      • code: string

        The discount code entered by the user

      • total: number

        The current cart total

      Returns Promise<DiscountResult>

      Abdelrahmen Sobhy