openapi: 3.1.0
info:
  title: FareTransferRule
  version: 2.0.0
  description: Schema definition for the FareTransferRule 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:
    FareTransferRule:
      x-iri: https://schema.nfh.global/FareTransferRule/v2.0
      type: object
      title: FareTransferRule
      description: A rule defining how fares from different legs are combined when
        a passenger makes a transfer between services.
      x-tags:
        - mobility
        - ride-hailing
      properties:
        fareProductId:
          description: Identifier of the fare product this transfer rule applies to
          type: string
        transferCount:
          description: Number of transfers permitted under this rule
          type: number
        durationLimit:
          description: Maximum duration in minutes for the transfer window
          type: number
        fareTransferType:
          description: Type of fare adjustment on transfer (e.g. FREE, DISCOUNT, ADDITIONAL_FARE)
          type: string
        id:
          description: Unique identifier for the policy
          type: string
        policyType:
          description: Type of policy (extensible term)
          type: string
        descriptor:
          description: Human-readable description of the policy
          $ref: https://schema.nfh.global/Descriptor/v2.0/attributes.yaml#/components/schemas/Descriptor
        validity:
          description: Validity window for this policy version
          $ref: https://schema.nfh.global/TimePeriod/v2.0/attributes.yaml#/components/schemas/TimePeriod
        policyAttributes:
          description: Extensible domain-specific policy attributes
          $ref: https://schema.nfh.global/Attributes/v2.0/attributes.yaml#/components/schemas/Attributes
      additionalProperties: false
