diff --git a/app/api/integrations/simbrella.py b/app/api/integrations/simbrella.py index e46210d..393cae6 100644 --- a/app/api/integrations/simbrella.py +++ b/app/api/integrations/simbrella.py @@ -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, diff --git a/app/config.py b/app/config.py index 2db5ba5..f5a6572 100644 --- a/app/config.py +++ b/app/config.py @@ -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()