{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adyen/refs/heads/main/json-schema/terminal-stored-value-request-schema.json",
  "title": "StoredValueRequest",
  "description": "It conveys Information related to the Stored Value transaction to process. Content of the Stored Value Request message.",
  "type": "object",
  "properties": {
    "SaleData": {
      "$ref": "#/components/schemas/SaleData"
    },
    "CustomerLanguage": {
      "type": "string",
      "pattern": "^[a-z]{2,2}$",
      "description": "If the language is selected by the Sale System before the request to the POI."
    },
    "StoredValueData": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/StoredValueData"
      }
    }
  },
  "required": [
    "SaleData",
    "StoredValueData"
  ]
}