{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/toast/refs/heads/main/json-structure/orders-gift-card-info-structure.json",
  "name": "GiftCardInfo",
  "description": "Reserved for future use.",
  "type": "object",
  "required": [
    "cardNumberIdentifier",
    "last4CardDigits"
  ],
  "allOf": [
    {
      "$ref": "#/definitions/ToastReference"
    },
    {
      "type": "object",
      "properties": {
        "last4CardDigits": {
          "type": "string",
          "description": "The last 4 digits of the gift card that was used."
        },
        "first5CardDigits": {
          "x-toast-read-only": true,
          "type": "string",
          "description": "The first 5 digits of the gift card that was used. Response only."
        }
      }
    }
  ]
}