Skip to content

Commit

Permalink
Adding support for Bulk create of accounting export lineitems (#19)
Browse files Browse the repository at this point in the history
Adding support for Bulk create of accounting export lineitems (#19)
  • Loading branch information
Sravanksk authored Oct 11, 2021
1 parent 80aefbb commit 14778b4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions fyle/platform/apis/v1/admin/accounting_exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class AccountingExports(ListResources, ListAllResources, PostResources, GetResou

ACCOUNTING_EXPORTS = '/accounting_exports'
ACCOUNTING_EXPORT_LINEITEMS = '/accounting_export_lineitems'
BULK_CREATE_ACCOUNTING_EXPORT_LINEITEMS = '/accounting_export_lineitems/bulk'

def __init__(self, version, role):
super().__init__(version, role, AccountingExports.ACCOUNTING_EXPORTS)
Expand All @@ -28,3 +29,9 @@ def create_accounting_export_lineitems(self, payload):
api_url=AccountingExports.ACCOUNTING_EXPORT_LINEITEMS,
payload=payload
)

def bulk_create_accounting_export_lineitems(self, payload):
return self.api.make_post_request(
api_url=AccountingExports.BULK_CREATE_ACCOUNTING_EXPORT_LINEITEMS,
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.14.0',
version='v0.15.0',
author='Siva Narayanan',
author_email='[email protected]',
description='Python SDK for accessing Fyle Platform APIs',
Expand Down

0 comments on commit 14778b4

Please sign in to comment.