SIMBRELLA_ENDPOINT_RAC_CHECKS

This commit is contained in:
CHIEFSOFT\ameye
2025-05-24 04:22:40 -04:00
parent 326ee87b13
commit 0038c22577
2 changed files with 4 additions and 1 deletions
+2 -1
View File
@@ -7,13 +7,14 @@ import logging
class SimbrellaIntegration:
BASE_URL = settings.SIMBRELLA_BASE_URL
ENDPOINT_RAC_CHECKS = settings.SIMBRELLA_ENDPOINT_RAC_CHECKS
@staticmethod
def rac_check(customer_id, account_id, transaction_id):
"""
Calls the RACCheck endpoit
"""
url = f"{SimbrellaIntegration.BASE_URL}/RACCheck"
url = f"{SimbrellaIntegration.BASE_URL}/{SIMBRELLA_ENDPOINT_RAC_CHECKS}"
payload = {
"customerId": customer_id,
+2
View File
@@ -34,5 +34,7 @@ class Config:
# KAFKA_BROKER = 'dev-events.simbrellang.net:9085'
KAFKA_BROKER = os.getenv("KAFKA_BROKER", "dev-events.simbrellang.net:9085")
SIMBRELLA_ENDPOINT_RAC_CHECKS = os.getenv("api/rac-check", "RACCheck")
settings = Config()