{
  "$id": "https://schema.nfh.global/Provider/v2.0",
  "x-iri": "https://schema.nfh.global/Provider/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Schema definition for Provider in the Beckn Protocol",
  "title": "Provider",
  "type": "object",
  "properties": {
    "beckn:id": {
      "type": "string",
      "description": "Unique identifier for the provider",
      "example": "tech-store-001"
    },
    "beckn:descriptor": {
      "$ref": "https://schema.nfh.global/Descriptor/v2.1/schema.json"
    },
    "beckn:validity": {
      "$ref": "https://schema.nfh.global/TimePeriod/v2.1/schema.json"
    },
    "beckn:locations": {
      "type": "array",
      "items": {
        "$ref": "https://schema.nfh.global/Location/v2.0/schema.json"
      },
      "description": "Physical locations where the provider operates"
    },
    "beckn:rateable": {
      "type": "boolean",
      "description": "Whether the provider can be rated by customers",
      "example": true
    },
    "beckn:rating": {
      "$ref": "https://schema.nfh.global/Rating/v2.1/schema.json"
    },
    "beckn:providerAttributes": {
      "$ref": "https://schema.nfh.global/Attributes/v2.0/schema.json"
    }
  },
  "required": [
    "beckn:id",
    "beckn:descriptor"
  ],
  "additionalProperties": false
}
