-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Allocation Entry API support * Version bump up * Implemented Allocation entry API * Add delete api for all dimensions * remove line * adding compulsory fields * added allocations api * allocations api * allocations api * change in allocation_entry * comment resolved * comment resolved * Added fields to allocation
- Loading branch information
1 parent
a642708
commit 8163243
Showing
7 changed files
with
73 additions
and
3 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
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,25 @@ | ||
from .api_base import ApiBase | ||
|
||
class AllocationEntry(ApiBase): | ||
"""Class for Allocation Entry APIs.""" | ||
def __init__(self): | ||
ApiBase.__init__(self, dimension='allocationentry') | ||
|
||
|
||
def get_all_generator(self, field: str = None, value: str = None, fields: list = None, updated_at: str = None, order_by_field: str = None, order: str = None): | ||
|
||
""" | ||
Get all the allocation entries. | ||
""" | ||
|
||
allocation_entries_fields = ['ALLOCATIONID', 'ALLOCATIONKEY', 'LOCATIONID', 'DEPARTMENTID', 'PROJECTID', | ||
'CUSTOMERID', 'ITEMID', 'TASKID', 'COSTTYPEID', 'CLASSID'] | ||
|
||
fields = self.get_lookup() | ||
if fields: | ||
fields = fields['Type']['Relationships']['Relationship'] | ||
|
||
for allocation_field in fields: | ||
allocation_entries_fields.append(allocation_field['RELATEDBY']) | ||
|
||
yield from super().get_all_generator(fields=allocation_entries_fields, field=field, value=value) |
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,6 @@ | ||
from .api_base import ApiBase | ||
|
||
class Allocations(ApiBase): | ||
"""Class for Allocation Entry APIs.""" | ||
def __init__(self): | ||
ApiBase.__init__(self, dimension='ALLOCATION') |
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
|
||
setuptools.setup( | ||
name='sageintacctsdk', | ||
version='1.21.1', | ||
version='1.22.0', | ||
author='Ashwin T', | ||
author_email='[email protected]', | ||
description='Python SDK for accessing Sage Intacct APIs', | ||
|