Skip to content

Commit

Permalink
Support Accounting Export Summary Bulk POST (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 committed Sep 4, 2023
1 parent d389db5 commit fc46a19
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions fyle/platform/apis/v1beta/admin/expenses.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit fc46a19

Please sign in to comment.