diff --git a/fyle/platform/apis/v1beta/admin/expenses.py b/fyle/platform/apis/v1beta/admin/expenses.py index 929b996..79c9877 100644 --- a/fyle/platform/apis/v1beta/admin/expenses.py +++ b/fyle/platform/apis/v1beta/admin/expenses.py @@ -1,6 +1,7 @@ """ V1 Beta Admin Expenses """ +from typing import Dict from ....internals.get_resources import GetResources from ....internals.list_all_resources import ListAllResources @@ -12,6 +13,13 @@ class Expenses(ListResources, ListAllResources, PostResources, GetResources): """Class for Expenses APIs.""" EXPENSES = '/expenses' + ACCOUNTING_EXPORT_SUMMARY_BULK = '/expenses/accounting_export_summary/bulk' def __init__(self, version, role): super().__init__(version, role, Expenses.EXPENSES) + + def post_bulk_accounting_export_summary(self, payload: dict) -> Dict: + return self.api.make_post_request( + api_url=self.ACCOUNTING_EXPORT_SUMMARY_BULK, + payload=payload + ) diff --git a/setup.py b/setup.py index 1677a3f..d202154 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='fyle', - version='v0.32.0', + version='v0.33.0', author='Siva Narayanan', author_email='siva@fyle.in', description='Python SDK for accessing Fyle Platform APIs',