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: class SimbrellaIntegration:
BASE_URL = settings.SIMBRELLA_BASE_URL BASE_URL = settings.SIMBRELLA_BASE_URL
ENDPOINT_RAC_CHECKS = settings.SIMBRELLA_ENDPOINT_RAC_CHECKS
@staticmethod @staticmethod
def rac_check(customer_id, account_id, transaction_id): def rac_check(customer_id, account_id, transaction_id):
""" """
Calls the RACCheck endpoit Calls the RACCheck endpoit
""" """
url = f"{SimbrellaIntegration.BASE_URL}/RACCheck" url = f"{SimbrellaIntegration.BASE_URL}/{SIMBRELLA_ENDPOINT_RAC_CHECKS}"
payload = { payload = {
"customerId": customer_id, "customerId": customer_id,
+2
View File
@@ -34,5 +34,7 @@ class Config:
# KAFKA_BROKER = 'dev-events.simbrellang.net:9085' # KAFKA_BROKER = 'dev-events.simbrellang.net:9085'
KAFKA_BROKER = os.getenv("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() settings = Config()