{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/Payment",
  "title": "Payment",
  "type": "object",
  "properties": {
    "category": {
      "type": "string",
      "description": "Payment category type."
    },
    "cash_collected": {
      "type": "number",
      "description": "Cash amount collected from rider."
    },
    "breakdown": {
      "type": "object",
      "description": "Breakdown of payment components."
    },
    "rider_fees": {
      "type": "object",
      "description": "Fees charged to the rider."
    },
    "event_time": {
      "type": "integer",
      "description": "Unix timestamp of when the payment event occurred."
    },
    "trip_id": {
      "type": "string",
      "description": "Associated trip identifier."
    },
    "currency_code": {
      "type": "string",
      "description": "ISO 4217 currency code."
    }
  }
}