SIMBRELLA_ENDPOINT_RAC_CHECKS
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user