[add]: Kafka Integration
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user