def METHOD_NAME(
    company_number: str, company_name: str, transactionID: str, export: str = ""
) -> None:
    """Download company's filing document.
    Parameters
    ----------
    company_number : str
        company_number to retrieve filing history for
    company_name : str
        company_name to retrieve filing document for, this is used to name the downloaded file for easy access
    transactionID : str
        transaction id for filing
    >>> companies = openbb.alt.companieshouse.get_search_results("AstraZeneca")
    >>> openbb.alt.companieshouse.get_filing_document("02723534","AstraZeneca","MzM1NzQ0NzI5NWFkaXF6a2N4")
    """
    results = companieshouse_model.get_filing_document(company_number, transactionID)
    if results.dataAvailable():
        filename = (
            company_name.replace(" ", "_")
            + "_"
            + results.category
            + "_"
            + transactionID
            + ".pdf"
        )
        with open(
            f"{get_current_user().preferences.USER_COMPANIES_HOUSE_DIRECTORY}/{filename}",
            "wb",
        ) as f:
            f.write(results.content)
            console.print(
                f"File [green] {filename}[/green] downloaded to \
                  {get_current_user().preferences.USER_COMPANIES_HOUSE_DIRECTORY}"
            )
    else:
        console.print("[red]" + "Document not found" + "[/red]\n")