-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added support for department api (#70)
* added support for deartment api * added tests for admin departments api * new line * fixed broken tests * added new line * version update
- Loading branch information
1 parent
206665a
commit ed27d3f
Showing
11 changed files
with
380 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -117,6 +117,9 @@ ENV/ | |
env.bak/ | ||
venv.bak/ | ||
|
||
*.DS_Store | ||
.DS_Store | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
""" | ||
V1 Beta Admin Departments | ||
""" | ||
|
||
from ....internals.list_resources import ListResources | ||
from ....internals.list_all_resources import ListAllResources | ||
from ....internals.post_resources import PostResources | ||
from ....internals.get_resources import GetResources | ||
|
||
class Departments(ListResources, ListAllResources, PostResources, GetResources): | ||
"""Class for Departments APIs.""" | ||
|
||
DEPARTMENTS = '/departments' | ||
|
||
def __init__(self, version, role): | ||
super().__init__(version, role, Departments.DEPARTMENTS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
setuptools.setup( | ||
name='fyle', | ||
version='v0.29.1', | ||
version='v0.30.0', | ||
author='Siva Narayanan', | ||
author_email='[email protected]', | ||
description='Python SDK for accessing Fyle Platform APIs', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,45 +19,65 @@ | |
], | ||
"reports": [ | ||
{ | ||
"id": "sdfd2391", | ||
"org_id": "orwruogwnngg", | ||
"created_at": "2020-06-01T13:14:54.804+00:00", | ||
"updated_at": "2020-06-11T13:14:55.201598+00:00", | ||
"user_id": "sdfd2391", | ||
"user": { | ||
"id": "uswjwgnwwgo", | ||
"email": "[email protected]", | ||
"full_name": "John Doe" | ||
}, | ||
"purpose": "Business trip to London", | ||
"currency": "USD", | ||
"amount": 47.99, | ||
"tax": 18.23, | ||
"state": "DRAFT", | ||
"num_expenses": 3, | ||
"is_verified": true, | ||
"settlement_id": "set5nlgnwgwl", | ||
"is_physical_bill_submitted": true, | ||
"physical_bill_submitted_at": "2020-06-11T13:14:55.201598+00:00", | ||
"is_manually_flagged": true, | ||
"is_policy_flagged": true, | ||
"is_exported": true, | ||
"last_paid_at": "2020-06-11T13:14:55.201598+00:00", | ||
"last_approved_at": "2020-06-11T13:14:55.201598+00:00", | ||
"last_submitted_at": "2020-06-11T13:14:55.201598+00:00", | ||
"seq_num": "C/2021/02/R/907", | ||
"source": "string", | ||
"approvals": [ | ||
"amount":50, | ||
"approvals":[ | ||
{ | ||
"approver_user_id": "usge49ielgel", | ||
"approver_user": { | ||
"id": "uswjwgnwwgo", | ||
"email": "[email protected]", | ||
"full_name": "John Doe" | ||
}, | ||
"state": "APPROVAL_PENDING" | ||
"approver_user":{ | ||
"email":"[email protected]", | ||
"full_name":"Joanna", | ||
"id":"usqywo0f3nBY" | ||
}, | ||
"approver_user_id":"usqywo0f3nBY", | ||
"state":"APPROVAL_DONE" | ||
} | ||
] | ||
], | ||
"created_at":"2021-10-22T07:43:08.159902+00:00", | ||
"currency":"USD", | ||
"employee":{ | ||
"ach_account":{ | ||
"added":"None", | ||
"verified":"None" | ||
}, | ||
"code":"None", | ||
"department":"None", | ||
"department_id":"None", | ||
"id":"ou77JxTLLifN", | ||
"org_id":"orf7jLXAJ6SY", | ||
"user":{ | ||
"email":"[email protected]", | ||
"full_name":"Ashwin", | ||
"id":"usqywo0f3nBY" | ||
}, | ||
"user_id":"usqywo0f3nBY" | ||
}, | ||
"employee_id":"ou77JxTLLifN", | ||
"id":"rpnWQIpTxPzl", | ||
"is_exported":false, | ||
"is_manually_flagged":false, | ||
"is_physical_bill_submitted":false, | ||
"is_policy_flagged":false, | ||
"is_verified":false, | ||
"last_approved_at":"2021-10-22T07:43:12.802000+00:00", | ||
"last_paid_at":"2022-05-23T01:39:10.004000+00:00", | ||
"last_resubmitted_at":"None", | ||
"last_submitted_at":"2021-10-22T07:43:08.615000+00:00", | ||
"next_approver_user_ids":"None", | ||
"num_expenses":1, | ||
"org_id":"orf7jLXAJ6SY", | ||
"physical_bill_submitted_at":"None", | ||
"purpose":"#2: Oct 2021", | ||
"seq_num":"C/2021/10/R/2", | ||
"settlement_id":"setKvFHOzcAjt", | ||
"source":"WEBAPP", | ||
"state":"PAID", | ||
"tax":0.5, | ||
"updated_at":"2022-10-27T05:09:08.976413+00:00", | ||
"user":{ | ||
"email":"[email protected]", | ||
"full_name":"Joanna", | ||
"id":"usqywo0f3nBY" | ||
}, | ||
"user_id":"usqywo0f3nBY" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.