Skip to content

Commit

Permalink
feat: add masked_corporate_card_number field in expense (#90)
Browse files Browse the repository at this point in the history
* feat: add masked_corporate_card_number field in expense

* safe get expense field
  • Loading branch information
Hrishabh17 authored Oct 14, 2024
1 parent 948212b commit 93ab5af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ def __construct_expenses_objects(self, expenses: List[dict]) -> List[dict]:
'cost_center': expense['cost_center']['name'] if expense['cost_center'] else None,
'corporate_card_id': expense['matched_corporate_card_transactions'][0]['corporate_card_id'] \
if expense['matched_corporate_card_transactions'] else None,
'masked_corporate_card_number': expense['matched_corporate_card_transactions'][0].get('masked_corporate_card_number') \
if expense['matched_corporate_card_transactions'] else None,
'bank_transaction_id': matched_transaction['id'] if matched_transaction else None,
'purpose': expense['purpose'],
'report_id': expense['report_id'],
Expand Down
2 changes: 1 addition & 1 deletion connector/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='fyle-integrations-platform-connector',
version='1.39.1',
version='1.39.2',
author='Shwetabh Kumar',
author_email='[email protected]',
description='A common platform connector for all the Fyle Integrations to interact with Fyle Platform APIs',
Expand Down

0 comments on commit 93ab5af

Please sign in to comment.