{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/qorpiq-com/json-schema/qorpiq-com-disclosures-response-schema.json",
  "title": "DisclosuresResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/qorpiq-com-openapi.yml#/components/schemas/DisclosuresResponse",
  "type": "object",
  "properties": {
    "transaction_id": {
      "type": "string"
    },
    "check": {
      "type": "string"
    },
    "cin": {
      "type": "string"
    },
    "company_name": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "ready"
      ]
    },
    "timestamp": {
      "type": "integer"
    },
    "currency": {
      "type": "string"
    },
    "unit": {
      "type": "string"
    },
    "related_party_transactions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "fy_end": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "form_id": {
            "type": "string"
          },
          "filing_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "category": {
            "type": [
              "string",
              "null"
            ]
          },
          "counterparty": {
            "type": "object",
            "properties": {
              "name": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "cin": {
                "type": [
                  "string",
                  "null"
                ]
              }
            }
          },
          "nature_of_relationship": {
            "type": [
              "string",
              "null"
            ]
          },
          "nature_of_contract": {
            "type": [
              "string",
              "null"
            ]
          },
          "duration": {
            "type": [
              "string",
              "null"
            ]
          },
          "salient_terms": {
            "type": [
              "string",
              "null"
            ]
          },
          "aggregate_amount": {
            "type": [
              "number",
              "null"
            ]
          },
          "approval_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "arms_length": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "amount_paid_in_advance": {
            "type": [
              "number",
              "null"
            ]
          },
          "extraction_status": {
            "type": "string"
          }
        }
      }
    },
    "shareholders": {
      "type": "array",
      "description": "Named shareholders from the shareholder list attached to the annual return.",
      "items": {
        "type": "object",
        "properties": {
          "fy_end": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "form_id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "cin": {
            "type": [
              "string",
              "null"
            ]
          },
          "kind": {
            "type": "string",
            "enum": [
              "company",
              "other_body",
              "natural_person",
              "unknown"
            ]
          },
          "shares": {
            "type": [
              "number",
              "null"
            ]
          },
          "holding_pct": {
            "type": [
              "number",
              "null"
            ]
          },
          "company_status": {
            "type": [
              "string",
              "null"
            ]
          },
          "extraction_status": {
            "type": "string"
          }
        }
      }
    },
    "msme_returns": {
      "type": "array",
      "description": "MSME-1 half-yearly returns of dues to micro and small suppliers.",
      "items": {
        "type": "object",
        "properties": {
          "period_start": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "period_end": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "form_id": {
            "type": "string"
          },
          "filing_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "supplier_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "paid_within_45_days": {
            "type": [
              "number",
              "null"
            ]
          },
          "paid_after_45_days": {
            "type": [
              "number",
              "null"
            ]
          },
          "outstanding_up_to_45_days": {
            "type": [
              "number",
              "null"
            ]
          },
          "outstanding_over_45_days": {
            "type": [
              "number",
              "null"
            ]
          },
          "due_since": {
            "type": [
              "string",
              "null"
            ],
            "format": "date"
          },
          "reason": {
            "type": [
              "string",
              "null"
            ]
          },
          "extraction_status": {
            "type": "string"
          }
        }
      }
    },
    "counts": {
      "type": "object",
      "properties": {
        "related_party_transactions": {
          "type": "integer"
        },
        "shareholders": {
          "type": "integer"
        },
        "msme_returns": {
          "type": "integer"
        }
      }
    }
  }
}