Skip to content

Commit

Permalink
Support for Reimbursements and Settlements (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sravanksk authored Sep 6, 2021
1 parent 4b0d8bc commit fd745a5
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 2 deletions.
6 changes: 5 additions & 1 deletion fyle/platform/apis/v1/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
from .employees import Employees
from .expenses import Expenses
from .tax_groups import TaxGroups
from .reimbursements import Reimbursements
from .settlements import Settlements
from .invitations import Invitations
from .projects import Projects
from ..version import version
Expand All @@ -19,4 +21,6 @@
projects = Projects(version, role)
invitations = Invitations(version, role)
expenses = Expenses(version, role)
tax_groups = TaxGroups(version, role)
tax_groups = TaxGroups(version, role)
reimbursements = Reimbursements(version, role)
settlements = Settlements(version, role)
17 changes: 17 additions & 0 deletions fyle/platform/apis/v1/admin/reimbursements.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
"""
V1 Admin Reimbursements
"""

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

REIMBURSEMENTS = '/reimbursements'

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

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

SETTLEMENTS = '/settlements'

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

0 comments on commit fd745a5

Please sign in to comment.