openapi: 3.1.0
info:
  title: RiderCategory
  version: 2.0.0
  description: Schema definition for the RiderCategory entity in the Beckn Mobility
  license:
    name: CC-BY-NC-SA 4.0 International
    url: https://creativecommons.org/licenses/by-nc-sa/4.0/deed.en
  contact:
    name: Beckn Labs
    url: https://beckn.io
components:
  schemas:
    RiderCategory:
      x-iri: https://schema.nfh.global/RiderCategory/v2.0
      type: object
      title: RiderCategory
      description: A classification of passenger type (e.g., adult, child, senior,
        student) used to determine applicable fare entitlements.
      x-tags:
        - mobility
        - schema-org
        - ride-hailing
      properties:
        riderCategoryId:
          description: Unique identifier for the rider category
          type: string
        eligibilityRules:
          description: Rules defining who qualifies for this rider category
          type: string
        proofRequired:
          description: Type of proof required to qualify (e.g. student ID, senior
            card)
          type: string
        id:
          description: Unique identifier for the category code
          type: string
        descriptor:
          description: Human-readable label for the category
          $ref: https://schema.nfh.global/Descriptor/v2.0/attributes.yaml#/components/schemas/Descriptor
        parentCategoryId:
          description: Identifier of the parent category if hierarchical
          type: string
      additionalProperties: false
