{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adyen/refs/heads/main/json-schema/terminal-payment-result-schema.json",
  "title": "PaymentResult",
  "description": "PaymentResult schema from Adyen API",
  "type": "object",
  "properties": {
    "PaymentType": {
      "$ref": "#/components/schemas/PaymentType"
    },
    "PaymentInstrumentData": {
      "$ref": "#/components/schemas/PaymentInstrumentData"
    },
    "AmountsResp": {
      "$ref": "#/components/schemas/AmountsResp"
    },
    "Instalment": {
      "$ref": "#/components/schemas/Instalment"
    },
    "CurrencyConversion": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/CurrencyConversion"
      }
    },
    "MerchantOverrideFlag": {
      "type": "boolean",
      "default": false
    },
    "CapturedSignature": {
      "$ref": "#/components/schemas/CapturedSignature"
    },
    "ProtectedSignature": {
      "type": "string"
    },
    "CustomerLanguage": {
      "type": "string",
      "pattern": "^[a-z]{2,2}$"
    },
    "OnlineFlag": {
      "type": "boolean",
      "default": true
    },
    "AuthenticationMethod": {
      "$ref": "#/components/schemas/AuthenticationMethod"
    },
    "ValidityDate": {
      "type": "string",
      "format": "date"
    },
    "PaymentAcquirerData": {
      "$ref": "#/components/schemas/PaymentAcquirerData"
    }
  }
}