{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paytronix/json-schema/paytronix-gift-redeem-request-schema.json",
  "title": "GiftRedeemRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paytronix-gift-api-openapi.yml#/components/schemas/GiftRedeemRequest",
  "allOf": [
    {
      "$ref": "#/$defs/GiftRequest"
    },
    {
      "type": "object",
      "properties": {
        "tip": {
          "type": "number"
        }
      }
    }
  ],
  "$defs": {
    "CardInfo": {
      "type": "object",
      "description": "Identifies a card for transaction operations.",
      "properties": {
        "printedCardNumber": {
          "type": "string"
        },
        "magstripe": {
          "type": "string"
        },
        "cardTemplateCode": {
          "type": "string"
        }
      }
    },
    "GiftRequest": {
      "type": "object",
      "required": [
        "merchantId",
        "storeCode",
        "cardInfo",
        "amount"
      ],
      "properties": {
        "merchantId": {
          "type": "integer"
        },
        "storeCode": {
          "type": "string"
        },
        "cardInfo": {
          "$ref": "#/$defs/CardInfo"
        },
        "amount": {
          "type": "number"
        },
        "checkNumber": {
          "type": "string"
        },
        "cashier": {
          "type": "string"
        },
        "terminalId": {
          "type": "string"
        },
        "externalTransactionId": {
          "type": "string"
        }
      }
    }
  }
}