{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/kibo-commerce/main/json-schema/kibo-commerce-transit-times-response-schema.json",
  "title": "TransitTimesResponse",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kibo-commerce-shipping-storefront-openapi.yml#/components/schemas/TransitTimesResponse",
  "properties": {
    "data": {
      "type": [
        "object",
        "null"
      ]
    },
    "destinationAddress": {
      "$ref": "#/$defs/Address"
    },
    "items": {
      "items": {
        "$ref": "#/$defs/TransitTimesItem"
      },
      "type": [
        "array",
        "null"
      ]
    },
    "originLocationCode": {
      "type": [
        "string",
        "null"
      ]
    },
    "shipDate": {
      "format": "date-time",
      "type": "string"
    },
    "transitTimes": {
      "items": {
        "$ref": "#/$defs/CarrierTransitTimes"
      },
      "type": [
        "array",
        "null"
      ]
    }
  },
  "type": "object",
  "$defs": {
    "Address": {
      "properties": {
        "address1": {
          "type": [
            "string",
            "null"
          ]
        },
        "address2": {
          "type": [
            "string",
            "null"
          ]
        },
        "address3": {
          "type": [
            "string",
            "null"
          ]
        },
        "address4": {
          "type": [
            "string",
            "null"
          ]
        },
        "addressType": {
          "type": [
            "string",
            "null"
          ]
        },
        "cityOrTown": {
          "type": [
            "string",
            "null"
          ]
        },
        "countryCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "isValidated": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "postalOrZipCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "stateOrProvince": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "CarrierTransitTimes": {
      "properties": {
        "carrierId": {
          "type": [
            "string",
            "null"
          ]
        },
        "estimatedDeliveryDates": {
          "items": {
            "$ref": "#/$defs/ShippingRuntimeEstimatedDeliveryDate"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "itemIds": {
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ItemMeasurements": {
      "properties": {
        "girth": {
          "description": "Not exposed publicly",
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        },
        "height": {
          "$ref": "#/$defs/Measurement"
        },
        "length": {
          "$ref": "#/$defs/Measurement"
        },
        "weight": {
          "$ref": "#/$defs/Measurement"
        },
        "width": {
          "$ref": "#/$defs/Measurement"
        }
      },
      "type": "object"
    },
    "Measurement": {
      "properties": {
        "unit": {
          "type": [
            "string",
            "null"
          ]
        },
        "value": {
          "format": "double",
          "type": [
            "number",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ShippingRateValidationMessage": {
      "description": "Shipping Rate Validation Message",
      "properties": {
        "helpLink": {
          "description": "Help Link",
          "type": [
            "string",
            "null"
          ]
        },
        "message": {
          "description": "Message",
          "type": [
            "string",
            "null"
          ]
        },
        "severity": {
          "description": "Severity",
          "type": [
            "string",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "ShippingRuntimeDeliveryWindow": {
      "properties": {
        "dropoffTime": {
          "$ref": "#/$defs/TimeWindow"
        },
        "pickupTime": {
          "$ref": "#/$defs/TimeWindow"
        }
      },
      "type": "object"
    },
    "ShippingRuntimeEstimatedDeliveryDate": {
      "properties": {
        "data": {
          "type": [
            "object",
            "null"
          ]
        },
        "deliveryDate": {
          "type": [
            "string",
            "null"
          ]
        },
        "fulfillmentMethod": {
          "type": [
            "string",
            "null"
          ]
        },
        "messages": {
          "items": {
            "$ref": "#/$defs/ShippingRateValidationMessage"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "serviceType": {
          "type": [
            "string",
            "null"
          ]
        },
        "windows": {
          "items": {
            "$ref": "#/$defs/ShippingRuntimeDeliveryWindow"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "type": "object"
    },
    "TimeWindow": {
      "description": "Represents a time window with a start and end time.",
      "properties": {
        "endsAt": {
          "description": "Gets or sets the end time of the time window.",
          "format": "date-time",
          "type": [
            "string",
            "null"
          ]
        },
        "startsAt": {
          "description": "Gets or sets the start time of the time window.",
          "format": "date-time",
          "type": "string"
        }
      },
      "type": "object"
    },
    "TransitTimesItem": {
      "properties": {
        "data": {
          "type": [
            "object",
            "null"
          ]
        },
        "itemId": {
          "type": [
            "string",
            "null"
          ]
        },
        "productCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "quantity": {
          "format": "int32",
          "type": [
            "integer",
            "null"
          ]
        },
        "unitMeasurements": {
          "$ref": "#/$defs/ItemMeasurements"
        }
      },
      "type": "object"
    }
  }
}