{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/toast/refs/heads/main/json-structure/orders-applicable-discount-structure.json",
  "name": "ApplicableDiscount",
  "description": "A wrapper object that contains information about a discount that you\ncan apply to an order, and which checks or menu item selections\nyou can apply it to.\n",
  "type": "object",
  "required": [
    "discount"
  ],
  "properties": {
    "discount": {
      "x-toast-read-only": true,
      "description": "A `ToastReference` object containing the identifiers of the discount.\nResponse only.\n",
      "type": "object",
      "$ref": "#/definitions/ToastReference"
    },
    "applicableChecks": {
      "description": "If the discount is applicable to a check, this value holds an\narray of `ExternalReference` objects containing the identifiers of the checks.\n",
      "type": "array",
      "items": {
        "$ref": "#/definitions/ExternalReference"
      }
    },
    "applicableSelections": {
      "description": "If the discount is applicable to a menu item selection, this\nvalue holds an array of `ExternalReference` objects containing\nthe identifiers of the menu items.\n",
      "type": "array",
      "items": {
        "$ref": "#/definitions/ExternalReference"
      }
    }
  }
}