{
  "$id": "https://hash.ai/@h/types/entity-type/sales-order/v/1",
  "$schema": "https://blockprotocol.org/types/modules/graph/0.3/schema/entity-type",
  "description": "A commitment by a customer to purchase goods or services on agreed terms.",
  "icon": "/icons/types/file-invoice-dollar.svg",
  "kind": "entityType",
  "labelProperty": "https://hash.ai/@h/types/property-type/sales-order-number/",
  "links": {
    "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/sales-order-item/v/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/customer-reference/": {
      "$ref": "https://hash.ai/@h/types/property-type/customer-reference/v/1"
    },
    "https://hash.ai/@h/types/property-type/distribution-channel/": {
      "$ref": "https://hash.ai/@h/types/property-type/distribution-channel/v/1"
    },
    "https://hash.ai/@h/types/property-type/division/": {
      "$ref": "https://hash.ai/@h/types/property-type/division/v/1"
    },
    "https://hash.ai/@h/types/property-type/net-value/": {
      "$ref": "https://hash.ai/@h/types/property-type/net-value/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/requested-delivery-date/": {
      "$ref": "https://hash.ai/@h/types/property-type/requested-delivery-date/v/1"
    },
    "https://hash.ai/@h/types/property-type/sales-document-type/": {
      "$ref": "https://hash.ai/@h/types/property-type/sales-document-type/v/1"
    },
    "https://hash.ai/@h/types/property-type/sales-order-number/": {
      "$ref": "https://hash.ai/@h/types/property-type/sales-order-number/v/1"
    },
    "https://hash.ai/@h/types/property-type/sales-organization/": {
      "$ref": "https://hash.ai/@h/types/property-type/sales-organization/v/1"
    }
  },
  "required": [
    "https://hash.ai/@h/types/property-type/sales-order-number/"
  ],
  "title": "Sales Order",
  "type": "object"
}