{
  "$id": "https://hash.ai/@h/types/entity-type/purchase-order/v/1",
  "$schema": "https://blockprotocol.org/types/modules/graph/0.3/schema/entity-type",
  "description": "A commitment to purchase goods or services from a vendor on agreed terms.",
  "icon": "/icons/types/file-invoice.svg",
  "kind": "entityType",
  "labelProperty": "https://hash.ai/@h/types/property-type/purchase-order-number/",
  "links": {
    "https://hash.ai/@h/types/entity-type/has-line-item/v/1": {
      "items": {
        "oneOf": [
          {
            "$ref": "https://hash.ai/@h/types/entity-type/purchase-order-item/v/1"
          }
        ]
      },
      "type": "array"
    },
    "https://hash.ai/@h/types/entity-type/has-vendor/v/1": {
      "items": {
        "oneOf": [
          {
            "$ref": "https://hash.ai/@h/types/entity-type/vendor/v/1"
          }
        ]
      },
      "maxItems": 1,
      "type": "array"
    }
  },
  "properties": {
    "https://hash.ai/@h/types/property-type/currency-code/": {
      "$ref": "https://hash.ai/@h/types/property-type/currency-code/v/1"
    },
    "https://hash.ai/@h/types/property-type/document-date/": {
      "$ref": "https://hash.ai/@h/types/property-type/document-date/v/1"
    },
    "https://hash.ai/@h/types/property-type/order-date/": {
      "$ref": "https://hash.ai/@h/types/property-type/order-date/v/1"
    },
    "https://hash.ai/@h/types/property-type/purchase-order-number/": {
      "$ref": "https://hash.ai/@h/types/property-type/purchase-order-number/v/1"
    },
    "https://hash.ai/@h/types/property-type/purchasing-document-type/": {
      "$ref": "https://hash.ai/@h/types/property-type/purchasing-document-type/v/1"
    },
    "https://hash.ai/@h/types/property-type/purchasing-group/": {
      "$ref": "https://hash.ai/@h/types/property-type/purchasing-group/v/1"
    },
    "https://hash.ai/@h/types/property-type/purchasing-organization/": {
      "$ref": "https://hash.ai/@h/types/property-type/purchasing-organization/v/1"
    }
  },
  "required": [
    "https://hash.ai/@h/types/property-type/purchase-order-number/"
  ],
  "title": "Purchase Order",
  "type": "object"
}