diff --git a/fyle/platform/apis/v1beta/admin/__init__.py b/fyle/platform/apis/v1beta/admin/__init__.py index ef76323..cb64550 100644 --- a/fyle/platform/apis/v1beta/admin/__init__.py +++ b/fyle/platform/apis/v1beta/admin/__init__.py @@ -1,6 +1,7 @@ """ Initializing Admin API's """ +from .reports import Reports from .categories import Categories from .cost_centers import CostCenters from .employees import Employees @@ -41,3 +42,4 @@ departments = Departments(version, role) subscriptions = Subscriptions(version, role) scheduled_callbacks = ScheduledCallbacks(version, role) +reports = Reports(version, role) diff --git a/fyle/platform/apis/v1beta/admin/reports.py b/fyle/platform/apis/v1beta/admin/reports.py new file mode 100644 index 0000000..0ed1530 --- /dev/null +++ b/fyle/platform/apis/v1beta/admin/reports.py @@ -0,0 +1,16 @@ +from ....internals.post_resources import PostResources + + +class Reports(PostResources): + + REPORTS = '/reports' + MARK_AS_PAID = '/reports/mark_paid/bulk' + + def __init__(self, version, role): + super().__init__(version, role, Reports.REPORTS) + + def bulk_mark_as_paid(self, payload): + return self.api.make_post_request( + api_url=Reports.MARK_AS_PAID, + payload=payload + ) diff --git a/setup.py b/setup.py index 3ebb8e7..baaa2e4 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='fyle', - version='v0.36.1', + version='v0.37.0', author='Siva Narayanan', author_email='siva@fyle.in', description='Python SDK for accessing Fyle Platform APIs',