{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/artashippinginc/json-schema/artashippinginc-self-ship-collection-availability-check-schema.json",
  "title": "SelfShipCollectionAvailabilityCheck",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/artashippinginc-self-ship-collections-api-openapi.yml#/components/schemas/SelfShipCollectionAvailabilityCheck",
  "properties": {
    "availabilities": {
      "description": "Available pickup slots. May be empty if no slots are available.",
      "items": {
        "properties": {
          "collection_date": {
            "description": "Available pickup date (`YYYY-MM-DD`)",
            "format": "date",
            "type": "string",
            "x-struct": null,
            "x-validate": null
          },
          "collection_times": {
            "description": "Available pickup times in ISO 8601 format (`HH:MM:SS`)",
            "items": {
              "type": "string",
              "x-struct": null,
              "x-validate": null
            },
            "type": "array",
            "x-struct": null,
            "x-validate": null
          },
          "residential_available": {
            "description": "Whether residential pickup is available",
            "type": "boolean",
            "x-struct": null,
            "x-validate": null
          }
        },
        "type": "object",
        "x-struct": null,
        "x-validate": null
      },
      "type": "array",
      "x-struct": null,
      "x-validate": null
    },
    "collection_date": {
      "description": "The date that was checked for availability (`YYYY-MM-DD`)",
      "format": "date",
      "type": "string",
      "x-struct": null,
      "x-validate": null
    },
    "location": {
      "description": "The pickup location that was checked",
      "properties": {
        "address_line_1": {
          "description": "Street address",
          "type": "string",
          "x-struct": null,
          "x-validate": null
        },
        "address_line_2": {
          "description": "Additional address info",
          "type": [
            "string",
            "null"
          ],
          "x-struct": null,
          "x-validate": null
        },
        "city": {
          "description": "City",
          "type": "string",
          "x-struct": null,
          "x-validate": null
        },
        "close_time": {
          "description": "Location closing time in ISO 8601 format (`HH:MM:SS`)",
          "type": "string",
          "x-struct": null,
          "x-validate": null
        },
        "country": {
          "description": "Two-letter country code",
          "type": "string",
          "x-struct": null,
          "x-validate": null
        },
        "postal_code": {
          "description": "Postal code",
          "type": "string",
          "x-struct": null,
          "x-validate": null
        },
        "region": {
          "description": "State or province code",
          "type": "string",
          "x-struct": null,
          "x-validate": null
        }
      },
      "type": "object",
      "x-struct": null,
      "x-validate": null
    },
    "service": {
      "description": "The carrier service that was checked",
      "properties": {
        "carrier": {
          "description": "Carrier identifier",
          "enum": [
            "fedex",
            "dhl"
          ],
          "type": "string",
          "x-struct": null,
          "x-validate": null
        },
        "code": {
          "description": "Service level code",
          "enum": [
            "ground",
            "express"
          ],
          "type": "string",
          "x-struct": null,
          "x-validate": null
        },
        "route": {
          "description": "Route type",
          "enum": [
            "domestic",
            "international"
          ],
          "type": "string",
          "x-struct": null,
          "x-validate": null
        }
      },
      "type": "object",
      "x-struct": null,
      "x-validate": null
    }
  },
  "type": "object",
  "x-struct": "Elixir.DocsWeb.Schemas.Response.SelfShipCollectionAvailabilityCheck",
  "x-validate": null
}