Skip to content

Commit

Permalink
Customers and Projects Support
Browse files Browse the repository at this point in the history
  • Loading branch information
Shwetabhk committed Nov 18, 2020
1 parent 4b7ff86 commit b0f0918
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 1 deletion.
8 changes: 8 additions & 0 deletions netsuitesdk/api/customers.py
Original file line number Diff line number Diff line change
@@ -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')
8 changes: 8 additions & 0 deletions netsuitesdk/api/projects.py
Original file line number Diff line number Diff line change
@@ -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')
4 changes: 4 additions & 0 deletions netsuitesdk/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
2 changes: 2 additions & 0 deletions netsuitesdk/internal/netsuite_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
'ns5': [
'AccountSearchBasic',
'CustomerSearchBasic',
'JobSearchBasic',
'LocationSearchBasic',
'TransactionSearchBasic',
'VendorSearchBasic',
Expand All @@ -58,6 +59,7 @@
'ns13': [
'Customer', 'CustomerSearch',
'Vendor', 'VendorSearch',
'Job', 'JobSearch'
],

# urn:accounting_2017_2.lists.webservices.netsuite.com
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.10.0',
version='1.11.0',
author='Siva Narayanan',
author_email='siva@fyle.in',
description='Python SDK for accessing the NetSuite SOAP webservice',
Expand Down

0 comments on commit b0f0918

Please sign in to comment.