{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chartercaptain-com/json-schema/chartercaptain-com-sub-out-referral-schema.json",
  "title": "SubOutReferral",
  "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/SubOutReferral",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "sourceType": {
      "type": "string"
    },
    "sourceId": {
      "type": "string"
    },
    "bookingId": {
      "type": [
        "string",
        "null"
      ]
    },
    "subOutState": {
      "type": [
        "string",
        "null"
      ]
    },
    "subOutReason": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string"
    },
    "targetType": {
      "type": "string"
    },
    "targetId": {
      "type": "string"
    },
    "currentOfferId": {
      "type": [
        "string",
        "null"
      ]
    },
    "offerExpiresAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "ownerApproval": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "id",
    "sourceType",
    "sourceId",
    "bookingId",
    "subOutState",
    "subOutReason",
    "status",
    "targetType",
    "targetId"
  ]
}