Skip to content

Commit

Permalink
Added support for approver reports
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyansh committed Mar 11, 2021
1 parent 7754134 commit e7c82d6
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fyle/platform/apis/v1/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from . import admin
from . import admin, approver

__all__ = [
admin
admin, approver
]
version = 'v1'
10 changes: 10 additions & 0 deletions fyle/platform/apis/v1/approver/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""
Initializing Approver API's
"""

from .reports import Reports
from ..version import version

role = 'approver'

reports = Reports(version, role)
14 changes: 14 additions & 0 deletions fyle/platform/apis/v1/approver/reports.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
"""
V1 Approver Reports
"""

from ....internals.list_resources import ListResources


class Reports(ListResources):
"""Class for Reports APIs."""

REPORTS = '/reports'

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

0 comments on commit e7c82d6

Please sign in to comment.