def METHOD_NAME(self):
    if not (
        self.tbai_tax_agency_id.test_qr_base_url
        and self.tbai_tax_agency_id.test_rest_url_invoice
        and self.tbai_tax_agency_id.test_rest_url_cancellation
    ):
        self.tbai_test_available = False
        self.tbai_test_enabled = False
    else:
        self.tbai_test_available = True
    if not (
        self.tbai_tax_agency_id.qr_base_url
        and self.tbai_tax_agency_id.rest_url_invoice
        and self.tbai_tax_agency_id.rest_url_cancellation
    ):
        self.tbai_pro_available = False
        self.tbai_test_enabled = True
    else:
        self.tbai_pro_available = True