{
  "$id": "https://hash.ai/@h/types/entity-type/delivery/v/1",
  "$schema": "https://blockprotocol.org/types/modules/graph/0.3/schema/entity-type",
  "description": "A logistics execution document for delivering goods against a sales order or transfer requirement.",
  "icon": "/icons/types/truck.svg",
  "kind": "entityType",
  "labelProperty": "https://hash.ai/@h/types/property-type/delivery-number/",
  "links": {
    "https://hash.ai/@h/types/entity-type/fulfills/v/1": {
      "items": {
        "oneOf": [
          {
            "$ref": "https://hash.ai/@h/types/entity-type/sales-order/v/1"
          }
        ]
      },
      "type": "array"
    },
    "https://hash.ai/@h/types/entity-type/has-customer/v/1": {
      "items": {
        "oneOf": [
          {
            "$ref": "https://hash.ai/@h/types/entity-type/customer/v/1"
          }
        ]
      },
      "maxItems": 1,
      "type": "array"
    },
    "https://hash.ai/@h/types/entity-type/has-line-item/v/1": {
      "items": {
        "oneOf": [
          {
            "$ref": "https://hash.ai/@h/types/entity-type/delivery-item/v/1"
          }
        ]
      },
      "type": "array"
    }
  },
  "properties": {
    "https://hash.ai/@h/types/property-type/actual-goods-issue-date/": {
      "$ref": "https://hash.ai/@h/types/property-type/actual-goods-issue-date/v/1"
    },
    "https://hash.ai/@h/types/property-type/delivery-number/": {
      "$ref": "https://hash.ai/@h/types/property-type/delivery-number/v/1"
    },
    "https://hash.ai/@h/types/property-type/delivery-type/": {
      "$ref": "https://hash.ai/@h/types/property-type/delivery-type/v/1"
    },
    "https://hash.ai/@h/types/property-type/incoterms/": {
      "$ref": "https://hash.ai/@h/types/property-type/incoterms/v/1"
    },
    "https://hash.ai/@h/types/property-type/picking-date/": {
      "$ref": "https://hash.ai/@h/types/property-type/picking-date/v/1"
    },
    "https://hash.ai/@h/types/property-type/planned-goods-issue-date/": {
      "$ref": "https://hash.ai/@h/types/property-type/planned-goods-issue-date/v/1"
    },
    "https://hash.ai/@h/types/property-type/route/": {
      "$ref": "https://hash.ai/@h/types/property-type/route/v/1"
    },
    "https://hash.ai/@h/types/property-type/scheduled-delivery-date/": {
      "$ref": "https://hash.ai/@h/types/property-type/scheduled-delivery-date/v/1"
    },
    "https://hash.ai/@h/types/property-type/shipping-point/": {
      "$ref": "https://hash.ai/@h/types/property-type/shipping-point/v/1"
    }
  },
  "required": [
    "https://hash.ai/@h/types/property-type/delivery-number/"
  ],
  "title": "Delivery",
  "type": "object"
}