Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Carts

Index

Methods

Methods

Protected create

  • create(location?: Location, opts?: { referralSource?: string; timezone?: string }): Promise<Cart>
  • async

    Creates a new Cart

    Parameters

    • Optional location: Location
    • Optional opts: { referralSource?: string; timezone?: string }
      • Optional referralSource?: string
      • Optional timezone?: string

        Optional time zone that CartBookableDate and CartBookableTime should be converted to, e.g. the client's time zone. The search range dates are also interpreted using this. When omitted, the browser timezone is used.

    Returns Promise<Cart>

Protected get

  • get(id: string, opts?: { timezone?: string }): Promise<Cart>
  • async

    Retrieves a cart by ID

    Parameters

    • id: string
    • Optional opts: { timezone?: string }
      • Optional timezone?: string

    Returns Promise<Cart>

Generated using TypeDoc