{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "FMP Cash Flow Statement Schema",
  "description": "Schema for FMP Cash Flow Statement endpoint",
  "version": "1.0.0",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "date": {
        "type": "string",
        "description": "Statement date"
      },
      "symbol": {
        "type": "string",
        "description": "Stock symbol"
      },
      "reportedCurrency": {
        "type": ["string", "null"],
        "description": "Reported currency"
      },
      "cik": {
        "type": ["string", "null"],
        "description": "CIK number"
      },
      "fillingDate": {
        "type": ["string", "null"],
        "description": "Filing date"
      },
      "acceptedDate": {
        "type": ["string", "null"],
        "description": "Accepted date"
      },
      "calendarYear": {
        "type": ["string", "null"],
        "description": "Calendar year"
      },
      "period": {
        "type": "string",
        "description": "Period (annual or quarter)"
      },
      "netIncome": {
        "type": ["number", "null"],
        "description": "Net income"
      },
      "depreciationAndAmortization": {
        "type": ["number", "null"],
        "description": "Depreciation and amortization"
      },
      "deferredIncomeTax": {
        "type": ["number", "null"],
        "description": "Deferred income tax"
      },
      "stockBasedCompensation": {
        "type": ["number", "null"],
        "description": "Stock-based compensation"
      },
      "changeInWorkingCapital": {
        "type": ["number", "null"],
        "description": "Change in working capital"
      },
      "accountsReceivables": {
        "type": ["number", "null"],
        "description": "Accounts receivables"
      },
      "inventory": {
        "type": ["number", "null"],
        "description": "Inventory"
      },
      "accountsPayables": {
        "type": ["number", "null"],
        "description": "Accounts payables"
      },
      "otherWorkingCapital": {
        "type": ["number", "null"],
        "description": "Other working capital"
      },
      "otherNonCashItems": {
        "type": ["number", "null"],
        "description": "Other non-cash items"
      },
      "netCashProvidedByOperatingActivities": {
        "type": ["number", "null"],
        "description": "Net cash provided by operating activities"
      },
      "investmentsInPropertyPlantAndEquipment": {
        "type": ["number", "null"],
        "description": "Investments in property, plant and equipment"
      },
      "acquisitionsNet": {
        "type": ["number", "null"],
        "description": "Acquisitions net"
      },
      "purchasesOfInvestments": {
        "type": ["number", "null"],
        "description": "Purchases of investments"
      },
      "salesMaturitiesOfInvestments": {
        "type": ["number", "null"],
        "description": "Sales maturities of investments"
      },
      "otherInvestingActivites": {
        "type": ["number", "null"],
        "description": "Other investing activities"
      },
      "netCashUsedForInvestingActivites": {
        "type": ["number", "null"],
        "description": "Net cash used for investing activities"
      },
      "debtRepayment": {
        "type": ["number", "null"],
        "description": "Debt repayment"
      },
      "commonStockIssued": {
        "type": ["number", "null"],
        "description": "Common stock issued"
      },
      "commonStockRepurchased": {
        "type": ["number", "null"],
        "description": "Common stock repurchased"
      },
      "dividendsPaid": {
        "type": ["number", "null"],
        "description": "Dividends paid"
      },
      "otherFinancingActivites": {
        "type": ["number", "null"],
        "description": "Other financing activities"
      },
      "netCashUsedProvidedByFinancingActivities": {
        "type": ["number", "null"],
        "description": "Net cash used/provided by financing activities"
      },
      "effectOfForexChangesOnCash": {
        "type": ["number", "null"],
        "description": "Effect of forex changes on cash"
      },
      "netChangeInCash": {
        "type": ["number", "null"],
        "description": "Net change in cash"
      },
      "cashAtEndOfPeriod": {
        "type": ["number", "null"],
        "description": "Cash at end of period"
      },
      "cashAtBeginningOfPeriod": {
        "type": ["number", "null"],
        "description": "Cash at beginning of period"
      },
      "operatingCashFlow": {
        "type": ["number", "null"],
        "description": "Operating cash flow"
      },
      "capitalExpenditure": {
        "type": ["number", "null"],
        "description": "Capital expenditure"
      },
      "freeCashFlow": {
        "type": ["number", "null"],
        "description": "Free cash flow"
      },
      "link": {
        "type": ["string", "null"],
        "description": "Link to filing"
      },
      "finalLink": {
        "type": ["string", "null"],
        "description": "Final link to filing"
      }
    },
    "required": ["date", "symbol", "period"]
  }
}
