@hungr/types
    Preparing search index...

    Type Alias DiscountList

    DiscountList: {
        items: {
            id: string;
            createdAt: string;
            updatedAt: string;
            vendorId: string;
            name: string;
            description: string;
            isStudentOnly: boolean;
            maxUsesPerUser: number | null;
            maxUsesTotal: number | null;
            restrictions: string[];
            validFrom: string | null;
            expiresAt: string | null;
            timesUsed: number;
            rules: {
                id: string;
                menuId: string | null;
                menuItemId: string | null;
                discountKind: "flat" | "percent";
                discountAmount: number;
                maxDiscountAmount: number | null;
                maxDiscountQuantity: number | null;
                conditions: {
                    menuId: string | null;
                    menuItemId: string | null;
                    minQuantity: number | null;
                    minPrice: number | null;
                }[];
            }[];
        }[];
        total: number;
    }

    A page of discounts.

    Type Declaration

    • items: {
          id: string;
          createdAt: string;
          updatedAt: string;
          vendorId: string;
          name: string;
          description: string;
          isStudentOnly: boolean;
          maxUsesPerUser: number | null;
          maxUsesTotal: number | null;
          restrictions: string[];
          validFrom: string | null;
          expiresAt: string | null;
          timesUsed: number;
          rules: {
              id: string;
              menuId: string | null;
              menuItemId: string | null;
              discountKind: "flat" | "percent";
              discountAmount: number;
              maxDiscountAmount: number | null;
              maxDiscountQuantity: number | null;
              conditions: {
                  menuId: string | null;
                  menuItemId: string | null;
                  minQuantity: number | null;
                  minPrice: number | null;
              }[];
          }[];
      }[]

      The items on this page, newest first.

    • total: number

      Total number of items matching the query, across all pages.