Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add mark as paid API, remove settlement #87

Merged
merged 2 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bump version in setup.py

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

after testing

Loading