diff --git a/netsuitesdk/api/customers.py b/netsuitesdk/api/customers.py new file mode 100644 index 0000000..cc2ddcd --- /dev/null +++ b/netsuitesdk/api/customers.py @@ -0,0 +1,8 @@ +from .base import ApiBase +import logging + +logger = logging.getLogger(__name__) + +class Customers(ApiBase): + def __init__(self, ns_client): + ApiBase.__init__(self, ns_client=ns_client, type_name='Customer') diff --git a/netsuitesdk/api/projects.py b/netsuitesdk/api/projects.py new file mode 100644 index 0000000..d7acc54 --- /dev/null +++ b/netsuitesdk/api/projects.py @@ -0,0 +1,8 @@ +from .base import ApiBase +import logging + +logger = logging.getLogger(__name__) + +class Projects(ApiBase): + def __init__(self, ns_client): + ApiBase.__init__(self, ns_client=ns_client, type_name='Job') diff --git a/netsuitesdk/connection.py b/netsuitesdk/connection.py index c85ecf3..af54fb3 100644 --- a/netsuitesdk/connection.py +++ b/netsuitesdk/connection.py @@ -11,6 +11,8 @@ from .api.expense_reports import ExpenseReports from .api.folders import Folders from .api.files import Files +from .api.customers import Customers +from .api.projects import Projects from .api.expense_categories import ExpenseCategory from .api.custom_lists import CustomLists from .api.custom_records import CustomRecords @@ -44,4 +46,6 @@ def __init__(self, account, consumer_key, consumer_secret, token_key, token_secr self.expense_categories = ExpenseCategory(ns_client) self.custom_lists = CustomLists(ns_client) self.custom_records = CustomRecords(ns_client) + self.customers = Customers(ns_client) + self.projects = Projects(ns_client) self.vendor_payments = VendorPayments(ns_client) diff --git a/netsuitesdk/internal/netsuite_types.py b/netsuitesdk/internal/netsuite_types.py index 631d3fe..0ae746c 100644 --- a/netsuitesdk/internal/netsuite_types.py +++ b/netsuitesdk/internal/netsuite_types.py @@ -43,6 +43,7 @@ 'ns5': [ 'AccountSearchBasic', 'CustomerSearchBasic', + 'JobSearchBasic', 'LocationSearchBasic', 'TransactionSearchBasic', 'VendorSearchBasic', @@ -58,6 +59,7 @@ 'ns13': [ 'Customer', 'CustomerSearch', 'Vendor', 'VendorSearch', + 'Job', 'JobSearch' ], # urn:accounting_2017_2.lists.webservices.netsuite.com diff --git a/setup.py b/setup.py index 83e9d87..67cffee 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='netsuitesdk', - version='1.10.0', + version='1.11.0', author='Siva Narayanan', author_email='siva@fyle.in', description='Python SDK for accessing the NetSuite SOAP webservice',