From 14778b406cb549fc745636844e60e632d30550ae Mon Sep 17 00:00:00 2001 From: Sravan Kumar <30795376+Sravanksk@users.noreply.github.com> Date: Mon, 11 Oct 2021 12:00:02 +0530 Subject: [PATCH] Adding support for Bulk create of accounting export lineitems (#19) Adding support for Bulk create of accounting export lineitems (#19) --- fyle/platform/apis/v1/admin/accounting_exports.py | 7 +++++++ setup.py | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/fyle/platform/apis/v1/admin/accounting_exports.py b/fyle/platform/apis/v1/admin/accounting_exports.py index e380cb2..ec89e0c 100644 --- a/fyle/platform/apis/v1/admin/accounting_exports.py +++ b/fyle/platform/apis/v1/admin/accounting_exports.py @@ -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) @@ -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 + ) diff --git a/setup.py b/setup.py index bb9e773..3cca3a3 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='fyle', - version='v0.14.0', + version='v0.15.0', author='Siva Narayanan', author_email='siva@fyle.in', description='Python SDK for accessing Fyle Platform APIs',