Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "sdk-sales/src/sdk/clearCart"

Index

Functions

Functions

clearCart

  • clearCart(): Promise<APIErrorResponse | Cart>
  • Returns Promise<APIErrorResponse | Cart>

    Promise resolving to the cleared cart. The cart property will be overwritten by the data fetched.

    On success (resolves)
    {
      "total": 0,
      "subtotal": 0,
      "tax": 0,
      "shipping": 0,
      "items": []
    }