[update]: RACChecks

This commit was merged in pull request #10.
This commit is contained in:
VivianDee
2025-04-16 22:46:48 +01:00
parent 93ed8b3d17
commit e14e290ff9
3 changed files with 29 additions and 28 deletions
+3 -3
View File
@@ -48,17 +48,17 @@ class EligibilityCheckService(BaseService):
"message": "Invalid Customer or Account"
}), 400
db.session.flush()
# Call RACCheck
response = SimbrellaIntegration.rac_check(
customer_id = customer_id,
account_id = account_id,
transaction_id = transaction.id,
)
logger.error(f"This is Response Returned ****** : {str(response)}")
# this chck for error is not valid
if response.get("status") != 200:
if response.status_code != 200:
return jsonify({"message": "RACCheck failed"}), 400
offers = [offer.to_dict() for offer in Offer.get_all_offers()]