def generate_get_company_by_domain_response(
    name: str, domain: str
) -> FakeHubspotResponse:
    """
    Generate a sample response given by the Hubspot API when searching for a company by domain.

    This response was retrieved from the API directly, and then modified to allow us to set the
    certain properties dynamically.
    """

    return FakeHubspotResponse(
        data={
            "paging": None,
            "results": [
                {
                    "archived": False,
                    "archived_at": None,
                    "created_at": datetime(
                        2024, 1, 25, 21, 48, 28, 655000, tzinfo=tzlocal()
                    ),
                    "id": "9765318341",
                    "properties": {
                        "createdate": "2024-01-25T21:48:28.655Z",
                        "domain": domain,
                        "hs_lastmodifieddate": "2024-04-23T15:54:13.336Z",
                        "hs_object_id": "9765318341",
                        "name": name,
                    },
                    "properties_with_history": None,
                    "updated_at": datetime(
                        2024, 4, 23, 15, 54, 13, 336000, tzinfo=tzlocal()
                    ),
                }
            ],
            "total": 1,
        }
    )

    Generate a sample response given by the Hubspot API when searching for a company by domain.

    This response was retrieved from the API directly, and then modified to allow us to set the
    certain properties dynamically.
    
api/tests/unit/integrations/lead_tracking/hubspot/_hubspot_responses.py