From 900d3b26b8360cf7fe56dd3b3b23dcf41017844b Mon Sep 17 00:00:00 2001 From: Henry Oforeh Date: Thu, 31 Oct 2024 10:41:27 -0600 Subject: [PATCH] Fix AMS attributes. --- services/core-api/app/api/services/ams_api_service.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/core-api/app/api/services/ams_api_service.py b/services/core-api/app/api/services/ams_api_service.py index f9d558ffa8..fb38e3f3af 100644 --- a/services/core-api/app/api/services/ams_api_service.py +++ b/services/core-api/app/api/services/ams_api_service.py @@ -161,7 +161,7 @@ def __set_agent_details(cls, agent): agent.get('address').get('city', ''), agent.get('address').get('sub_division_code', ''), agent.get('address').get('post_code'), - agent.get('address').get('suit_no', '')) if agent else '', + agent.get('address').get('suite_no', '')) if agent else '', 'em_businessphone': cls.__format_phone_number(agent.get('phone_no')) if agent else '', 'em_title': agent.get('job_title', '') if agent else '', } @@ -206,7 +206,8 @@ def __format_mailing_address(cls, payment_contact): address.get('suite_no', ''), address.get('address_line_1', ''), address.get('city', ''), - address.get('sub_division_code', '') + address.get('sub_division_code', ''), + address.get('post_code', '') ] return ', '.join(filter(bool, address_components)).strip(', ')