{
  "$id": "https://schema.nfh.global/FareProduct/v2.0",
  "x-iri": "https://schema.nfh.global/FareProduct/v2.0",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "FareProduct",
  "type": "object",
  "description": "A purchasable entitlement to travel defining conditions of use, validity, and applicable passenger categories.",
  "properties": {
    "fareProductId": {
      "description": "Unique identifier for the fare product",
      "type": "string"
    },
    "riderCategoryId": {
      "description": "Passenger category eligible for this fare product",
      "$ref": "https://schema.nfh.global/RiderCategory/v2.0/schema.json"
    },
    "durationType": {
      "description": "Duration basis (e.g. SINGLE_TRIP, DAILY, MONTHLY)",
      "type": "string"
    },
    "mediaDuration": {
      "description": "Duration for which the fare product is valid",
      "type": "string",
      "format": "duration"
    },
    "fixedStartDate": {
      "description": "Fixed start date for calendar-based fare products",
      "type": "string",
      "format": "date-time"
    },
    "id": {
      "description": "Unique identifier for the offer",
      "type": "string"
    },
    "descriptor": {
      "description": "Human-readable description of the offer",
      "$ref": "https://schema.nfh.global/Descriptor/v2.1/schema.json"
    },
    "price": {
      "description": "Price specification for this offer",
      "$ref": "https://schema.nfh.global/PriceSpecification/v2.1/schema.json"
    },
    "validity": {
      "description": "Validity period of the offer",
      "$ref": "https://schema.nfh.global/TimePeriod/v2.1/schema.json"
    },
    "tags": {
      "description": "Tags or labels associated with the offer",
      "type": "string"
    }
  },
  "additionalProperties": false,
  "x-tags": [
    "mobility",
    "schema-org",
    "ride-hailing"
  ]
}
