openapi: 3.1.0
info:
  title: FareBreakup
  version: 2.0.0
  description: Schema definition for the FareBreakup 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:
    FareBreakup:
      x-iri: https://schema.nfh.global/FareBreakup/v2.0
      type: object
      title: FareBreakup
      description: A detailed breakdown of the total fare into its constituent components,
        including base fare, taxes, surcharges, and discounts.
      x-tags:
        - mobility
        - ride-hailing
      properties:
        componentTitle:
          description: Human-readable title for this fare component
          type: string
        amount:
          description: Monetary amount for this fare component
          type: number
        currency:
          description: ISO 4217 currency code for this component
          type: string
        taxAmount:
          description: Tax amount included in this component
          type: number
        taxRate:
          description: Tax rate percentage applied
          type: number
        title:
          description: Title or label of this price component
          type: string
        price:
          description: Monetary value of this component
          $ref: https://schema.nfh.global/PriceSpecification/v2.1/attributes.yaml#/components/schemas/PriceSpecification
        tags:
          description: Tags associated with this price component
          type: string
      additionalProperties: false
