From fc46a197636ed75902904e2df619188cad4bd667 Mon Sep 17 00:00:00 2001 From: Ashwin Thanaraj <37061471+ashwin1111@users.noreply.github.com> Date: Mon, 4 Sep 2023 14:31:42 +0530 Subject: [PATCH] Support Accounting Export Summary Bulk POST (#77) --- fyle/platform/apis/v1beta/admin/expenses.py | 8 ++++++++ setup.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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',