{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lynx/main/json-schema/lynx-doc-post-dependent-card-request-schema.json",
  "title": "DocPostDependentCardRequest",
  "x-generated": "2026-10-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-card-management-api-openapi.yml#/components/schemas/DocPostDependentCardRequest",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/DependentCardRequest"
    },
    "idempotency": {
      "$ref": "#/$defs/Idempotency",
      "description": "Unique identifier that represents the operation"
    }
  },
  "required": [
    "data",
    "idempotency"
  ],
  "$defs": {
    "BaseAddress": {
      "type": "object",
      "properties": {
        "line1": {
          "type": "string",
          "description": "The first line of the address"
        },
        "line2": {
          "type": "string",
          "description": "The (optional) second line of the address"
        },
        "city": {
          "type": "string",
          "description": "Address city"
        },
        "stateProvince": {
          "type": "string",
          "description": "2-Character address state or province"
        },
        "country": {
          "type": "string",
          "description": "Address country"
        },
        "postalCode": {
          "type": "string",
          "description": "Address zip code"
        },
        "postalCodeExtension": {
          "type": "string",
          "description": "Address zip code extension"
        }
      },
      "required": [
        "city",
        "country",
        "line1",
        "postalCode",
        "stateProvince"
      ]
    },
    "BaseMember": {
      "type": "object",
      "properties": {
        "clientMemberId": {
          "type": "string",
          "description": "Unique client-side identifier for the member"
        }
      },
      "required": [
        "clientMemberId"
      ]
    },
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "DependentCardRequest": {
      "type": "object",
      "properties": {
        "clientOrg": {
          "$ref": "#/$defs/ClientOrgDto"
        },
        "member": {
          "$ref": "#/$defs/BaseMember"
        },
        "memberCard": {
          "$ref": "#/$defs/MemberCardIdDto"
        },
        "dependent": {
          "$ref": "#/$defs/DependentRushDeliveryDto"
        }
      },
      "required": [
        "clientOrg",
        "member",
        "memberCard"
      ]
    },
    "DependentRushDeliveryDto": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid",
          "description": "Unique identifier for the related person"
        },
        "rushDelivery": {
          "type": "boolean",
          "description": "Indicates whether to ship the card via express mail; if omitted, default is false to ship first class mail"
        },
        "address": {
          "$ref": "#/$defs/BaseAddress"
        },
        "waiveRushDeliveryFee": {
          "type": "boolean",
          "description": "Flag to waive rush delivery fee"
        }
      },
      "required": [
        "id"
      ]
    },
    "Idempotency": {
      "type": "object",
      "properties": {
        "idempotencyKey": {
          "type": "string",
          "description": "Unique identifier that represents the operation"
        }
      }
    },
    "MemberCardIdDto": {
      "type": "object",
      "properties": {
        "cardProxy": {
          "type": "string",
          "description": "Card identifier (this was returned when the card was created)"
        }
      },
      "required": [
        "cardProxy"
      ]
    }
  }
}