Skip to content

Commit

Permalink
Support for Bulk Post APIs (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
NileshPant1999 authored Jan 12, 2022
1 parent dcf0f1d commit 2cfe08a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion fyle/platform/apis/v1beta/admin/tax_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
V1 Beta Admin Tax Groups
"""

from typing import Dict, List
from fyle.platform.internals.post_bulk_resources import PostBulkResources
from ....internals.get_resources import GetResources
from ....internals.list_all_resources import ListAllResources
from ....internals.list_resources import ListResources
from ....internals.post_resources import PostResources


class TaxGroups(ListResources, ListAllResources, PostResources, GetResources):
class TaxGroups(ListResources, ListAllResources, PostResources, GetResources, PostBulkResources):
"""Class for Tax Groups APIs."""

TAX_GROUPS = '/tax_groups'
Expand Down
2 changes: 1 addition & 1 deletion fyle/platform/internals/post_bulk_resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ def post_bulk(self, payload: dict) -> Dict:
:return: empty response
"""
return self.api.make_post_request(
api_url=self.endpoint,
api_url='{}/bulk'.format(self.endpoint),
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.20.0',
version='v0.21.0',
author='Siva Narayanan',
author_email='[email protected]',
description='Python SDK for accessing Fyle Platform APIs',
Expand Down

0 comments on commit 2cfe08a

Please sign in to comment.