Skip to content

Commit

Permalink
Support for expense-categories
Browse files Browse the repository at this point in the history
  • Loading branch information
Sravanksk authored Sep 16, 2020
1 parent 9224e14 commit f19e7b6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions netsuitesdk/api/expense_categories.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
from .base import ApiBase
import logging

logger = logging.getLogger(__name__)

class ExpenseCategory(ApiBase):

def __init__(self, ns_client):
ApiBase.__init__(self, ns_client=ns_client, type_name='ExpenseCategory')
2 changes: 2 additions & 0 deletions netsuitesdk/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from .api.expense_reports import ExpenseReports
from .api.folders import Folders
from .api.files import Files
from .api.expense_categories import ExpenseCategory
from .internal.client import NetSuiteClient


Expand All @@ -36,3 +37,4 @@ def __init__(self, account, consumer_key, consumer_secret, token_key, token_secr
self.expense_reports = ExpenseReports(ns_client)
self.folders = Folders(ns_client)
self.files = Files(ns_client)
self.expense_categories = ExpenseCategory(ns_client)
1 change: 1 addition & 0 deletions netsuitesdk/internal/netsuite_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
# https://webservices.netsuite.com/xsd/lists/v2017_2_0/accounting.xsd
'ns17': [
'Account', 'AccountSearch',
'ExpenseCategory', 'ExpenseCategorySearch',
'AccountingPeriod',
'Classification', 'ClassificationSearch',
'Department', 'DepartmentSearch',
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.6.0',
version='1.7.0',
author='Siva Narayanan',
author_email='[email protected]',
description='Python SDK for accessing the NetSuite SOAP webservice',
Expand Down

0 comments on commit f19e7b6

Please sign in to comment.