{
  "$id": "https://schema.nfh.global/OrderItem/v2.0",
  "x-iri": "https://schema.nfh.global/OrderItem/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Schema definition for OrderItem in the Beckn Protocol",
  "title": "OrderItem",
  "type": "object",
  "properties": {
    "beckn:lineId": {
      "type": "string",
      "description": "Unique line id within order"
    },
    "beckn:orderedItem": {
      "$ref": "https://schema.nfh.global/Item/v2.1/schema.json",
      "x-jsonld": {
        "@id": "schema:orderedItem"
      }
    },
    "beckn:acceptedOffer": {
      "$ref": "https://schema.nfh.global/Offer/v2.1/schema.json",
      "description": "Offer applied to this line (if different from order-level)",
      "x-jsonld": {
        "@id": "schema:acceptedOffer"
      }
    },
    "beckn:quantity": {
      "$ref": "https://schema.nfh.global/Quantity/v2.0/schema.json",
      "x-jsonld": {
        "@id": "beckn:quantity"
      }
    },
    "beckn:price": {
      "$ref": "https://schema.nfh.global/PriceSpecification/v2.1/schema.json",
      "description": "Line price composition (unit/tax/delivery/discount)",
      "x-jsonld": {
        "@id": "schema:priceSpecification"
      }
    },
    "beckn:orderItemAttributes": {
      "$ref": "https://schema.nfh.global/Attributes/v2.0/schema.json",
      "description": "Line-level Attribute Pack (options, substitutions, ESG, etc.)"
    }
  },
  "required": [
    "beckn:orderedItem"
  ]
}
