Skip to content

Commit

Permalink
Added expense files support
Browse files Browse the repository at this point in the history
  • Loading branch information
Shreyansh committed Dec 29, 2020
1 parent da0b056 commit de087a9
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 3 deletions.
6 changes: 6 additions & 0 deletions fyle/platform/apis/v1/admin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@
from .employees import Employees
from .expense_comments import ExpenseComments
from .expense_fields import ExpenseFields
from .expense_files import ExpenseFiles
from .expense_stats import ExpenseStats
from .expenses import Expenses
from .files import Files
from .orgs import Orgs
from .policy import Policy
from .projects import Projects
from .refunds import Refunds
Expand All @@ -36,8 +39,11 @@
employees = Employees(version, role)
expense_comments = ExpenseComments(version, role)
expense_fields = ExpenseFields(version, role)
expense_files = ExpenseFiles(version, role)
expense_stats = ExpenseStats(version, role)
expenses = Expenses(version, role)
files = Files(version, role)
orgs = Orgs(version, role)
policy = Policy(version, role)
projects = Projects(version, role)
refunds = Refunds(version, role)
Expand Down
4 changes: 2 additions & 2 deletions fyle/platform/apis/v1/admin/employees.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

from ....internals.list_resources import ListResources
from ....internals.post_resources import PostResources
from ....internals.get_resources import GetResources


class Employees(ListResources, PostResources):
class Employees(ListResources, PostResources, GetResources):
"""Class for Employees APIs."""

EMPLOYEES = '/employees'
Expand Down
14 changes: 14 additions & 0 deletions fyle/platform/apis/v1/admin/expense_files.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""
V1 Admin Expense Files
"""

from ....internals.post_resources import PostResources


class ExpenseFiles(PostResources):
"""Class for Expense Files APIs."""

EXPENSE_FILES = '/expense_files'

def __init__(self, version, role):
super().__init__(version, role, ExpenseFiles.EXPENSE_FILES)
15 changes: 15 additions & 0 deletions fyle/platform/apis/v1/admin/files.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""
V1 Admin Files
"""

from ....internals.post_resources import PostResources
from ....internals.get_resources import GetResources


class Files(PostResources, GetResources):
"""Class for Orgs APIs."""

FILES = '/files'

def __init__(self, version, role):
super().__init__(version, role, Files.ORGS)
15 changes: 15 additions & 0 deletions fyle/platform/apis/v1/admin/orgs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
"""
V1 Admin Orgs
"""

from ....internals.list_resources import ListResources
from ....internals.get_resources import GetResources


class Orgs(ListResources, GetResources):
"""Class for Orgs APIs."""

ORGS = '/orgs'

def __init__(self, version, role):
super().__init__(version, role, Orgs.ORGS)
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='0.1.6-beta',
version='0.1.7-beta',
author='Siva Narayanan',
author_email='[email protected]',
description='Python SDK for accessing Fyle Platform APIs',
Expand Down

0 comments on commit de087a9

Please sign in to comment.