Skip to content

Commit

Permalink
Add mark as paid API, remove settlement (#87)
Browse files Browse the repository at this point in the history
* Add mark as paid API, remove settlement

* version bump up
  • Loading branch information
Ashutosh619-sudo authored Jun 14, 2024
1 parent 6fecaf3 commit 9a349e0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
2 changes: 2 additions & 0 deletions fyle/platform/apis/v1beta/admin/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -41,3 +42,4 @@
departments = Departments(version, role)
subscriptions = Subscriptions(version, role)
scheduled_callbacks = ScheduledCallbacks(version, role)
reports = Reports(version, role)
16 changes: 16 additions & 0 deletions fyle/platform/apis/v1beta/admin/reports.py
Original file line number Diff line number Diff line change
@@ -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
)
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.36.1',
version='v0.37.0',
author='Siva Narayanan',
author_email='[email protected]',
description='Python SDK for accessing Fyle Platform APIs',
Expand Down

0 comments on commit 9a349e0

Please sign in to comment.