Skip to content

Commit

Permalink
[MDS-6234] Fix AMS attributes. (#3290)
Browse files Browse the repository at this point in the history
Fix AMS attributes.
  • Loading branch information
henryoforeh-dev authored Oct 31, 2024
1 parent 01e549a commit 1ab7b52
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions services/core-api/app/api/services/ams_api_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 '',
}
Expand Down Expand Up @@ -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(', ')

Expand Down

0 comments on commit 1ab7b52

Please sign in to comment.