{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zywave/main/json-schema/zywave-commercial-details-schema.json",
  "title": "CommercialDetails",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zywave-lead-insights-v3-openapi.json#/components/schemas/CommercialDetails",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/id"
    },
    "workerCompPolicies": {
      "type": "array",
      "items": {
        "properties": {
          "policyNumber": {
            "type": "string"
          },
          "expirationDate": {
            "type": "string",
            "format": "date"
          },
          "state": {
            "type": "string"
          },
          "carrier": {
            "$ref": "#/$defs/CommercialCarrierPolicies"
          },
          "broker": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "nameNormalized": {
                "type": "string"
              },
              "city": {
                "type": "string"
              },
              "state": {
                "type": "string"
              }
            }
          },
          "estimateAnnualPremium": {
            "type": "integer"
          },
          "selfFunded": {
            "type": "boolean"
          },
          "governingClassCode": {
            "type": "object",
            "properties": {
              "code": {
                "type": "string"
              },
              "description": {
                "type": "array",
                "items": {}
              }
            }
          }
        }
      }
    },
    "assignedRisk": {
      "type": "boolean"
    },
    "peos": {
      "type": "array",
      "items": {
        "properties": {
          "name": {
            "type": "string"
          },
          "normalizedName": {
            "type": "string"
          }
        }
      }
    },
    "bipdPolicies": {
      "type": "array",
      "items": {
        "properties": {
          "carrier": {
            "$ref": "#/$defs/CommercialCarrierPolicies"
          },
          "expirationDate": {
            "type": "string",
            "format": "date"
          }
        }
      }
    },
    "bipdExcessPolicies": {
      "type": "array",
      "items": {
        "properties": {
          "carrier": {
            "$ref": "#/$defs/CommercialCarrierPolicies"
          },
          "expirationDate": {
            "type": "string",
            "format": "date"
          }
        }
      }
    },
    "cargoPolicies": {
      "type": "array",
      "items": {
        "properties": {
          "carrier": {
            "$ref": "#/$defs/CommercialCarrierPolicies"
          },
          "expirationDate": {
            "type": "string",
            "format": "date"
          }
        }
      }
    },
    "bondPolicies": {
      "type": "array",
      "items": {
        "properties": {
          "carrier": {
            "$ref": "#/$defs/CommercialCarrierPolicies"
          },
          "expirationDate": {
            "type": "string",
            "format": "date"
          }
        }
      }
    },
    "businessTravelPolicies": {
      "type": "array",
      "items": {
        "properties": {
          "carrier": {
            "$ref": "#/$defs/CommercialCarrierPolicies"
          },
          "expirationDate": {
            "type": "string",
            "format": "date"
          }
        }
      }
    },
    "dotNumbers": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "experienceMods": {
      "type": "array",
      "items": {
        "properties": {
          "state": {
            "type": "string"
          },
          "bureauNumber": {
            "type": "string"
          },
          "exModDetails": {
            "type": "array",
            "items": {
              "properties": {
                "experienceMod": {
                  "type": "number",
                  "format": "float"
                },
                "experienceModChange": {
                  "type": "string"
                },
                "year": {
                  "type": "integer"
                }
              }
            }
          }
        }
      }
    }
  },
  "$defs": {
    "CommercialCarrierPolicies": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "normalizedName": {
          "type": "string"
        }
      }
    },
    "id": {
      "description": "The unique identifier of a company. If the response id differs from the requested one, it indicates that the requested company has been acquired, and the data of the parent company is returned instead.",
      "type": "string"
    }
  }
}