{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adyen/refs/heads/main/json-schema/accounting-notifications-transaction-rules-result-schema.json",
  "title": "TransactionRulesResult",
  "description": "TransactionRulesResult schema from Adyen API",
  "properties": {
    "advice": {
      "description": "The advice given by the Risk analysis.",
      "type": "string"
    },
    "allRulesPassed": {
      "description": "Indicates whether the transaction passed the evaluation for all transaction rules.",
      "type": "boolean"
    },
    "failedTransactionRules": {
      "description": "Array containing all the transaction rules that the transaction violated. This list is only sent when `allRulesPassed` is **false**.",
      "items": {
        "$ref": "#/components/schemas/TransactionEventViolation"
      },
      "type": "array"
    },
    "score": {
      "description": "The score of the Risk analysis.",
      "format": "int32",
      "type": "integer"
    }
  },
  "type": "object"
}