def get_breaches_data(self, company_name, company_guid):
        """Fetch breaches data for a specific company and post it to Sentinel.

        Args:
            company_name (str): Name of the company.
            company_guid (str): GUID of the company.

        Raises:
            BitSightException: Raises exception if any error occurs.
        """
        try:
            checkpoint_key = "{}".format(company_guid)
            breaches_endpoint = consts.ENDPOINTS["breaches_endpoint_path"].format(
                company_guid
            )
            breaches_url = self.base_url + breaches_endpoint
            breaches_response = self.get_bitsight_data(breaches_url)
            if not breaches_response:
                return
            breaches_results = breaches_response.get("results", [])
            if not breaches_results:
                applogger.info(
                    "{} {} No new data found.".format(
                        self.logs_starts_with, consts.BREACHES_FUNC_NAME
                    )
                )
                return
            last_data = self.checkpoint_obj.get_last_data(self.breaches_details_state, table_name=consts.BREACHES_TABLE_NAME)
            last_checkpoint_company = self.checkpoint_obj.get_endpoint_last_data(
                last_data, "breaches", company_guid
            )
            max_date = (
                last_checkpoint_company if last_checkpoint_company else "0000-01-01"
            )
            body, checkpoint_date = self.create_breaches_data(
                breaches_results, company_name, company_guid, max_date
            )
            self.send_data_to_sentinel(
                body, consts.BREACHES_TABLE_NAME, company_name, breaches_endpoint
            )
            self.checkpoint_obj.save_checkpoint(
                self.breaches_details_state,
                last_data,
                "breaches",
                "{}_{}".format(consts.BREACHES_TABLE_NAME, "Checkpoint"),
                checkpoint_key,
                checkpoint_date,
            )

            # delete rating field after post.
            del breaches_response["results"]
        except BitSightException:
            applogger.error(
                "{} {} Exception occurred in get_breaches_data method.".format(
                    self.logs_starts_with, consts.BREACHES_FUNC_NAME
                )
            )
            raise BitSightException()
        except Exception as err:
            applogger.exception(
                "{} {} Error: {}".format(
                    self.logs_starts_with, consts.BREACHES_FUNC_NAME, err
                )
            )
            raise BitSightException()
Fetch breaches data for a specific company and post it to Sentinel.

        Args:
            company_name (str): Name of the company.
            company_guid (str): GUID of the company.

        Raises:
            BitSightException: Raises exception if any error occurs.
        
Solutions/BitSight/Data Connectors/BitSightDataConnector/BreachesDetails/bitsight_breaches.py