Skip to content

Commit

Permalink
Merge branch 'main' of github.com:fylein/fyle-platform-sdk-py into main
Browse files Browse the repository at this point in the history
  • Loading branch information
adi_fyle committed Mar 30, 2021
2 parents d364003 + 61c65e2 commit 0d86e2f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions fyle/platform/apis/v1/approver/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ class Reports(ListResources, GetResources):
"""Class for Reports APIs."""

REPORTS = '/reports'
PARTIALLY_APPROVE_REPORT = '/reports/{id}/partially_approve'

def __init__(self, version, role):
super().__init__(version, role, Reports.REPORTS)

def approve(self, id_):
"""
To approve the report
:param id_: id of report to be approved
:return: partially_approved_report
"""
partially_approve_report_url = Reports.PARTIALLY_APPROVE_REPORT.format(id=id_)
return self.api.make_post_request(
api_url=partially_approve_report_url,
payload={}
)

0 comments on commit 0d86e2f

Please sign in to comment.