{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/zywave/main/json-schema/zywave-search-result-of-quoted-plan-with-member-rates-schema.json",
  "title": "SearchResultOfQuotedPlanWithMemberRates",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zywave-plans-v2-openapi.json#/components/schemas/SearchResultOfQuotedPlanWithMemberRates",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "hasMoreResults": {
      "type": "boolean",
      "description": "Indicates whether the search has more results than returned in the response."
    },
    "totalCount": {
      "type": "integer",
      "description": "The total records that meet the search criteria specified.",
      "format": "int32"
    },
    "items": {
      "type": [
        "array",
        "null"
      ],
      "description": "A list of business and personal accounts matching the search criteria.",
      "items": {
        "$ref": "#/$defs/QuotedPlanWithMemberRates"
      }
    }
  },
  "$defs": {
    "MemberRate": {
      "allOf": [
        {
          "$ref": "#/$defs/MemberRateInfo"
        },
        {
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "integer",
              "description": "The unique Zywave identifier for the member rate.",
              "format": "int32",
              "deprecated": true
            }
          }
        }
      ]
    },
    "MemberRateInfo": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "quotedPlanId": {
          "type": "integer",
          "description": "The unique Zywave identifier for the quoted plan. This id is specific to the combination of a quote and plan and is different than the general planId.",
          "format": "int32",
          "deprecated": true
        },
        "memberId": {
          "type": "integer",
          "description": "The unique Zywave identifier for the member.",
          "format": "int32"
        },
        "rate": {
          "type": "number",
          "description": "The rate for the member.",
          "format": "decimal"
        }
      }
    },
    "QuotedPlanWithMemberRates": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "planId": {
          "type": "integer",
          "format": "int32"
        },
        "quotedPlanId": {
          "type": "integer",
          "format": "int32"
        },
        "memberRates": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/MemberRate"
          }
        },
        "quotedMemberCount": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}