{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/paypal/json-schema/paypal-events-accepted-with-results-schema.json",
  "title": "EventsAcceptedWithResults",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/paypal-events-api-openapi.yml#/components/schemas/EventsAcceptedWithResults",
  "allOf": [
    {
      "$ref": "#/$defs/EventAccepted"
    },
    {
      "type": "object",
      "properties": {
        "results": {
          "type": "object",
          "description": "Results of the accepted events",
          "properties": {
            "success_count": {
              "type": "integer",
              "description": "Number of events successfully processed"
            },
            "error_count": {
              "type": "integer",
              "description": "Number of events that failed processing"
            },
            "errors": {
              "type": "array",
              "description": "Details about failed events",
              "items": {
                "type": "object",
                "properties": {
                  "transaction_id": {
                    "type": "string",
                    "description": "Transaction ID of the failed event"
                  },
                  "error_code": {
                    "type": "string",
                    "description": "Error code"
                  },
                  "error_message": {
                    "type": "string",
                    "description": "Detailed error message"
                  }
                }
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "EventAccepted": {
      "type": "object",
      "properties": {
        "status": {
          "$ref": "#/$defs/EventStatus"
        }
      }
    },
    "EventStatus": {
      "type": "string",
      "enum": [
        "ACCEPTED"
      ],
      "description": "Status indicating that the event has been accepted for processing"
    }
  }
}