Skip to content

Commit

Permalink
Support for Tax Groups and Expenses APIs (#13)
Browse files Browse the repository at this point in the history
* Support for Tax Groups and Expenses APIs
  • Loading branch information
Shwetabhk authored Sep 2, 2021
1 parent 1befb9b commit 4b0d8bc
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 1 deletion.
4 changes: 4 additions & 0 deletions fyle/platform/apis/v1/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from .categories import Categories
from .cost_centers import CostCenters
from .employees import Employees
from .expenses import Expenses
from .tax_groups import TaxGroups
from .invitations import Invitations
from .projects import Projects
from ..version import version
Expand All @@ -16,3 +18,5 @@
employees = Employees(version, role)
projects = Projects(version, role)
invitations = Invitations(version, role)
expenses = Expenses(version, role)
tax_groups = TaxGroups(version, role)
17 changes: 17 additions & 0 deletions fyle/platform/apis/v1/admin/expenses.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""
V1 Admin Expenses
"""

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 Expenses(ListResources, ListAllResources, PostResources, GetResources):
"""Class for Expenses APIs."""

EXPENSES = '/expenses'

def __init__(self, version, role):
super().__init__(version, role, Expenses.EXPENSES)
17 changes: 17 additions & 0 deletions fyle/platform/apis/v1/admin/tax_groups.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""
V1 Admin Tax Groups
"""

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 for Tax Groups APIs."""

TAX_GROUPS = '/tax_groups'

def __init__(self, version, role):
super().__init__(version, role, TaxGroups.TAX_GROUPS)
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.8.0',
version='v0.9.0',
author='Siva Narayanan',
author_email='[email protected]',
description='Python SDK for accessing Fyle Platform APIs',
Expand Down

0 comments on commit 4b0d8bc

Please sign in to comment.