{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chartercaptain-com/json-schema/chartercaptain-com-sub-out-opportunity-schema.json",
  "title": "SubOutOpportunity",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chartercaptain-com-sub-out-api-openapi.yml#/components/schemas/SubOutOpportunity",
  "type": "object",
  "properties": {
    "referralId": {
      "type": "string"
    },
    "booking": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "date": {
          "type": "string",
          "format": "date-time"
        },
        "startTime": {
          "type": [
            "string",
            "null"
          ]
        },
        "endTime": {
          "type": [
            "string",
            "null"
          ]
        },
        "harbor": {}
      },
      "required": [
        "id",
        "date",
        "startTime",
        "endTime"
      ]
    },
    "breakdown": {
      "type": "object",
      "properties": {
        "grossEarnings": {
          "type": "number"
        },
        "platformFee": {
          "type": "number"
        },
        "platformFeeRate": {
          "type": "number"
        },
        "netEarnings": {
          "type": "number"
        }
      },
      "required": [
        "grossEarnings",
        "platformFee",
        "platformFeeRate",
        "netEarnings"
      ]
    }
  },
  "required": [
    "referralId",
    "booking",
    "breakdown"
  ]
}