Skip to content

Commit

Permalink
feat: Get active counts of attribute (#92)
Browse files Browse the repository at this point in the history
* feat: Get active counts of attribute

* remove loggers

* version bump up
  • Loading branch information
Ashutosh619-sudo authored Oct 1, 2024
1 parent 7633e7d commit f4cdf4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions sageintacctsdk/apis/api_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ def __post_request(self, dict_body: dict, api_url: str):

if parsed_response['response']['control']['status'] == 'failure':
exception_msg = self.__decode_support_id(parsed_response['response']['errormessage'])

raise WrongParamsError('Some of the parameters are wrong', exception_msg)

if api_response['authentication']['status'] == 'failure':
Expand Down Expand Up @@ -358,6 +359,9 @@ def count(self):
'select': {
'field': 'RECORDNO'
},
'filter': {
'equalto': {'field': 'STATUS', 'value': 'active'}
},
'pagesize': '1'
}
}
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name='sageintacctsdk',
version='1.22.5',
version='1.23.0',
author='Ashwin T',
author_email='[email protected]',
description='Python SDK for accessing Sage Intacct APIs',
Expand Down

0 comments on commit f4cdf4c

Please sign in to comment.