[add]: Kafka Integration

This commit is contained in:
VivianDee
2025-04-03 10:49:21 +01:00
parent 39d1a1eddc
commit b180f8411d
21 changed files with 131 additions and 26 deletions
+2 -3
View File
@@ -2,7 +2,7 @@ import requests
from app.utils.logger import logger
from app.config import settings
class SimbrellaClient:
class SimbrellaIntegration:
BASE_URL = settings.SIMBRELLA_BASE_URL
@staticmethod
@@ -10,7 +10,7 @@ class SimbrellaClient:
"""
Calls the RACCheck endpoit
"""
url = f"{SimbrellaClient.BASE_URL}/RACCheck"
url = f"{SimbrellaIntegration.BASE_URL}/RACCheck"
payload = {
"customerId": customer_id,
@@ -39,7 +39,6 @@ class SimbrellaClient:
# Raise an error for non-200 responses
# response.raise_for_status()
return response.json()
except requests.exceptions.RequestException as err:
logger.error(f"RACCheck API call failed: {str(err)}", exc_info=True)