Skip to content

Commit 03aa16c

Browse files
authored
Adding functionality to delete attachments (#110)
* Add function to delete attachment * version change * Changed single quote to double quote * fix delete attachment docs
1 parent ff5b163 commit 03aa16c

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

sageintacctsdk/apis/attachments.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@ def update(self, data: Dict):
4242
}
4343
return self.format_and_send_request(data)
4444

45+
def delete(self, key: str):
46+
"""Delete an attachment in Sage Intacct.
47+
48+
Returns:
49+
Dict of state of request response
50+
"""
51+
data = {
52+
'delete_supdoc': {
53+
'@key': key
54+
}
55+
}
56+
return self.format_and_send_request(data)
57+
4558
def get_folder(self, field: str, value: str):
4659
"""Get attachment folder from Sage Intacct
4760

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
setuptools.setup(
1010
name='sageintacctsdk',
11-
version='1.26.1',
11+
version='1.26.2',
1212
author='Ashwin T',
1313
author_email='ashwin.t@fyle.in',
1414
description='Python SDK for accessing Sage Intacct APIs',

0 commit comments

Comments
 (0)