{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crunchtime-information-systems/json-schema/crunchtime-information-systems-check-menu-mix-details-list-schema.json",
  "title": "CheckMenuMixDetailsList",
  "description": "CheckMenuMixDetailsList description",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crunchtime-information-systems-check-menu-mix-service-api-openapi.yml#/components/schemas/CheckMenuMixDetailsList",
  "type": "object",
  "required": [
    "locationCode"
  ],
  "properties": {
    "checkMenuMixDetails": {
      "type": "array",
      "description": "Check Menu Mix details.",
      "items": {
        "$ref": "#/$defs/CheckMenuMixDetails"
      }
    },
    "locationCode": {
      "type": "string",
      "description": "Company Code for site name."
    }
  },
  "$defs": {
    "CheckMenuMixCheckDetailDto": {
      "type": "object",
      "required": [
        "checkNumber",
        "checkOpenTime",
        "timeOfSale"
      ],
      "properties": {
        "chargeTips": {
          "type": "number",
          "description": "The tips charged to a credit card."
        },
        "checkCloseTime": {
          "type": "string",
          "description": "Time the check was closed in format HH:mm (24hr format)."
        },
        "checkNumber": {
          "type": "string",
          "description": "The check number."
        },
        "checkOpenTime": {
          "type": "string",
          "description": "Time the check was opened in format HH:mm (24hr format)."
        },
        "excludeConsumptionFlag": {
          "type": "string",
          "description": "Exclude the sales data from this check in Consumption calculations."
        },
        "guestCount": {
          "type": "integer",
          "format": "int64",
          "description": "The number of guests listed on the check."
        },
        "timeOfSale": {
          "type": "string",
          "description": "Time sale time listed on the check in format HH:mm (24hr format)."
        }
      },
      "title": "CheckMenuMixCheckDetailDto",
      "description": "Check Menu Mix check item details."
    },
    "CheckMenuMixDetails": {
      "type": "object",
      "properties": {
        "checkMenuMixGroupDetails": {
          "type": "array",
          "description": "A list of Check Menu Mix set of details.",
          "items": {
            "$ref": "#/$defs/CheckMenuMixGroupDetails"
          }
        },
        "checkMenuMixHeaderDetails": {
          "$ref": "#/$defs/CheckMenuMixHeaderDto"
        }
      },
      "title": "CheckMenuMixDetails"
    },
    "CheckMenuMixGroupDetails": {
      "type": "object",
      "description": "CheckMenuMixGroupDetails description",
      "properties": {
        "checkMenuMixCheckDetails": {
          "description": "List of check details.",
          "type": "array",
          "items": {
            "$ref": "#/$defs/CheckMenuMixCheckDetailDto"
          }
        },
        "checkMenuMixItemDetails": {
          "type": "array",
          "description": "List of items on the check. ",
          "items": {
            "$ref": "#/$defs/CheckMenuMixItemDetailDto"
          }
        },
        "checkMenuMixMiscCheckDetails": {
          "type": "array",
          "description": "List of miscellaneous check details.",
          "items": {
            "$ref": "#/$defs/CheckMenuMixMiscCheckDetailDto"
          }
        },
        "checkMenuMixMiscItemDetails": {
          "type": "array",
          "description": "List of miscellaneous item details.",
          "items": {
            "$ref": "#/$defs/CheckMenuMixMiscItemDetailDto"
          }
        },
        "checkMenuMixTimeDetails": {
          "type": "array",
          "description": "List of time details on the check.",
          "items": {
            "$ref": "#/$defs/CheckMenuMixTimeDetailDto"
          }
        }
      },
      "title": "CheckMenuMixGroupDetails"
    },
    "CheckMenuMixHeaderDto": {
      "type": "object",
      "required": [
        "businessDate",
        "customerCode",
        "locationCode"
      ],
      "properties": {
        "businessDate": {
          "type": "string",
          "description": "Date the check was created."
        },
        "customerCode": {
          "type": "string",
          "description": "The Customer \"Code\" or \"Import Code\" for a Customer linked to \n the Location, or the Location \"Code\" or \"Import Code\"."
        },
        "locationCode": {
          "type": "string",
          "description": "Company Code for site name."
        }
      },
      "title": "CheckMenuMixHeaderDto",
      "description": "Check Menu Mix Header items."
    },
    "CheckMenuMixItemDetailDto": {
      "type": "object",
      "required": [
        "checkNumber",
        "pluNumber",
        "posLineNumber",
        "posPrice",
        "posQuantity",
        "posValue",
        "timeOfSale"
      ],
      "properties": {
        "checkNumber": {
          "type": "string",
          "description": "The check number."
        },
        "cost": {
          "type": "number",
          "description": "The cost of the Recipe item."
        },
        "itemType": {
          "type": "integer",
          "format": "int64",
          "description": "Identification for Price Lookup type (recipe vs discount)."
        },
        "parentLineNumber": {
          "type": "integer",
          "format": "int64",
          "description": "Parent Recipe item line number."
        },
        "pluNumber": {
          "type": "integer",
          "format": "int64",
          "description": "Price lookup number for Recipe item."
        },
        "posLineNumber": {
          "type": "integer",
          "format": "int64",
          "description": "The line number of the Recipe item on the check."
        },
        "posPrice": {
          "type": "number",
          "description": "The sale price of the Recipe item."
        },
        "posQuantity": {
          "type": "number",
          "description": "The quantity sold of the Recipe item."
        },
        "posValue": {
          "type": "number",
          "description": "The sale value of the Recipe item."
        },
        "productNumber": {
          "type": "string",
          "description": "The product number of the Recipe item."
        },
        "recipeName": {
          "description": "Recipe Name to help identify the Price lookup number.",
          "type": "string"
        },
        "revenueCenter": {
          "type": "string",
          "description": "Sale item revenue center code."
        },
        "serverID": {
          "type": "string",
          "description": "ID or code for server who sold the item."
        },
        "timeOfSale": {
          "type": "string",
          "description": "Item sale time in format HH:mm (24hr clock)."
        }
      },
      "title": "CheckMenuMixItemDetailDto",
      "description": "CheckMenuMixItemDetailDto description"
    },
    "CheckMenuMixMiscCheckDetailDto": {
      "type": "object",
      "required": [
        "checkNumber",
        "dataValue",
        "miscId"
      ],
      "properties": {
        "checkNumber": {
          "type": "string",
          "description": "The check number."
        },
        "dataValue": {
          "type": "string",
          "description": "Information linked to the miscellaneous id."
        },
        "miscId": {
          "type": "integer",
          "format": "int64",
          "description": "ID for miscellaneous information."
        }
      },
      "title": "CheckMenuMixMiscCheckDetailDto",
      "description": "CheckMenuMixMiscCheckDetailDto description"
    },
    "CheckMenuMixMiscItemDetailDto": {
      "type": "object",
      "required": [
        "checkNumber",
        "dataValue",
        "miscId",
        "pluNumber",
        "posLineNumber"
      ],
      "properties": {
        "checkNumber": {
          "type": "string",
          "description": "The check number."
        },
        "dataValue": {
          "type": "string",
          "description": "Information linked to the miscellaneous id."
        },
        "miscId": {
          "type": "integer",
          "format": "int64",
          "description": "ID for miscellaneous information"
        },
        "pluNumber": {
          "type": "integer",
          "format": "int64",
          "description": "Price lookup number for Recipe item."
        },
        "posLineNumber": {
          "type": "integer",
          "format": "int64",
          "description": "The line number of the Recipe item on the check"
        }
      },
      "title": "CheckMenuMixMiscItemDetailDto",
      "description": "CheckMenuMixMiscItemDetailDto description"
    },
    "CheckMenuMixTimeDetailDto": {
      "type": "object",
      "required": [
        "checkNumber",
        "posTimeId",
        "value"
      ],
      "properties": {
        "checkNumber": {
          "type": "string",
          "description": "The check number."
        },
        "posTimeId": {
          "type": "integer",
          "format": "int64",
          "description": "ID for time sensitive tasks."
        },
        "value": {
          "type": "number",
          "description": "Duration of a task in seconds."
        }
      },
      "title": "CheckMenuMixTimeDetailDto",
      "description": "CheckMenuMixTimeDetailDto description"
    }
  }
}