diff --git a/fyle/platform/apis/v1/admin/__init__.py b/fyle/platform/apis/v1/admin/__init__.py index 6a330e6..2b6014a 100644 --- a/fyle/platform/apis/v1/admin/__init__.py +++ b/fyle/platform/apis/v1/admin/__init__.py @@ -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 @@ -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) diff --git a/fyle/platform/apis/v1/admin/employees.py b/fyle/platform/apis/v1/admin/employees.py index cb1c316..bb43577 100644 --- a/fyle/platform/apis/v1/admin/employees.py +++ b/fyle/platform/apis/v1/admin/employees.py @@ -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' diff --git a/fyle/platform/apis/v1/admin/expense_files.py b/fyle/platform/apis/v1/admin/expense_files.py new file mode 100644 index 0000000..3e1389c --- /dev/null +++ b/fyle/platform/apis/v1/admin/expense_files.py @@ -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) diff --git a/fyle/platform/apis/v1/admin/files.py b/fyle/platform/apis/v1/admin/files.py new file mode 100644 index 0000000..bd8b1ca --- /dev/null +++ b/fyle/platform/apis/v1/admin/files.py @@ -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) diff --git a/fyle/platform/apis/v1/admin/orgs.py b/fyle/platform/apis/v1/admin/orgs.py new file mode 100644 index 0000000..d369c5d --- /dev/null +++ b/fyle/platform/apis/v1/admin/orgs.py @@ -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) diff --git a/setup.py b/setup.py index 1691689..3b0c373 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='fyle', - version='0.1.6-beta', + version='0.1.7-beta', author='Siva Narayanan', author_email='siva@fyle.in', description='Python SDK for accessing Fyle Platform APIs',