{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/orion-advisor-solutions/json-schema/orion-advisor-solutions-oas-web-api-dto-utility-batch-processing-dto-schema.json",
  "title": "OAS.WebApi.DTO.Utility.BatchProcessingDto",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/orion-advisor-solutions-confirm-downloadfiles-api-openapi.yml#/components/schemas/OAS.WebApi.DTO.Utility.BatchProcessingDto",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "correlationId": {
      "type": "string",
      "format": "uuid"
    },
    "alClientName": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "New",
        "Processing",
        "Failed",
        "PartiallyComplete",
        "Complete",
        "Canceled"
      ]
    },
    "message": {
      "readOnly": true,
      "type": "string"
    },
    "createdBy": {
      "type": "string"
    },
    "createdDate": {
      "type": "string",
      "format": "date-time"
    },
    "editedDate": {
      "type": "string",
      "format": "date-time"
    },
    "elapsed": {
      "readOnly": true,
      "type": "string"
    },
    "parentId": {
      "type": "integer",
      "format": "int32"
    },
    "isDone": {
      "type": "boolean"
    },
    "totalItems": {
      "type": "integer",
      "format": "int32"
    },
    "itemsCompleted": {
      "type": "integer",
      "format": "int32"
    },
    "processingType": {
      "type": "string",
      "enum": [
        "Undefined",
        "Trading",
        "PendingTransactions",
        "CheckForWashTrades",
        "CustomImport",
        "CostBasis",
        "Composites",
        "TradeExecution",
        "ConvertToSleeves",
        "Confirmation",
        "DataQueries",
        "Notifications",
        "Export",
        "Maintenance",
        "ConfirmationUndo"
      ]
    },
    "errorCount": {
      "readOnly": true,
      "type": "integer",
      "format": "int32"
    },
    "warningCount": {
      "type": "integer",
      "format": "int32"
    },
    "details": {
      "items": {
        "$ref": "#/$defs/OAS.WebApi.DTO.Utility.BatchProcessingErrorDto"
      },
      "type": "array"
    }
  },
  "type": "object",
  "$defs": {
    "OAS.WebApi.DTO.Utility.BatchProcessingErrorDto": {
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "batchId": {
          "type": "integer",
          "format": "int32"
        },
        "errorMessage": {
          "type": "string"
        },
        "details": {
          "type": "string"
        },
        "severityCode": {
          "type": "integer",
          "format": "int32"
        },
        "severity": {
          "type": "string",
          "enum": [
            "Error",
            "Warning",
            "Information"
          ]
        },
        "createdBy": {
          "type": "string"
        },
        "createdDate": {
          "type": "string",
          "format": "date-time"
        }
      },
      "type": "object"
    }
  }
}