Skip to content

Commit

Permalink
Adding ap account key to payment payload
Browse files Browse the repository at this point in the history
  • Loading branch information
Shwetabhk committed Feb 25, 2021
1 parent 51e6832 commit 856908a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions netsuitesdk/api/vendor_payments.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def post(self, data) -> OrderedDict:
apply_lists.append(vpal)

vp['applyList'] = self.ns_client.VendorPaymentApplyList(apply=apply_lists)

vp['currency'] = self.ns_client.RecordRef(**(data['currency']))

if 'amount' in data:
Expand All @@ -51,6 +52,9 @@ def post(self, data) -> OrderedDict:
if 'class' in data:
vp['class'] = self.ns_client.RecordRef(**(data['class']))

if 'apAcct' in data:
vp['apAcct'] = self.ns_client.RecordRef(**(data['apAcct']))

if 'location' in data:
vp['location'] = self.ns_client.RecordRef(**(data['location']))

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name='netsuitesdk',
version='1.13.1',
version='1.14.0',
author='Siva Narayanan',
author_email='[email protected]',
description='Python SDK for accessing the NetSuite SOAP webservice',
Expand Down

0 comments on commit 856908a

Please sign in to comment.