diff --git a/netsuitesdk/api/tax_groups.py b/netsuitesdk/api/tax_groups.py new file mode 100644 index 0000000..922a3ce --- /dev/null +++ b/netsuitesdk/api/tax_groups.py @@ -0,0 +1,9 @@ +from .base import ApiBase +import logging + +logger = logging.getLogger(__name__) + +class TaxGroups(ApiBase): + + def __init__(self, ns_client): + ApiBase.__init__(self, ns_client=ns_client, type_name='TaxGroup') diff --git a/netsuitesdk/connection.py b/netsuitesdk/connection.py index b2f2d6b..9dc0849 100644 --- a/netsuitesdk/connection.py +++ b/netsuitesdk/connection.py @@ -23,6 +23,7 @@ from .api.invoices import Invoices from .api.terms import Terms from .api.tax_items import TaxItems +from .api.tax_groups import TaxGroups from .internal.client import NetSuiteClient @@ -64,4 +65,5 @@ def __init__(self, account, consumer_key, consumer_secret, token_key, token_secr self.invoices = Invoices(ns_client) self.terms = Terms(ns_client) self.tax_items = TaxItems(ns_client) + self.tax_groups = TaxGroups(ns_client) self.credit_memos = CreditMemos(ns_client) diff --git a/netsuitesdk/internal/netsuite_types.py b/netsuitesdk/internal/netsuite_types.py index 11c30a6..14f1e03 100644 --- a/netsuitesdk/internal/netsuite_types.py +++ b/netsuitesdk/internal/netsuite_types.py @@ -93,6 +93,7 @@ 'VendorCategory', 'VendorCategorySearch', 'Term', 'TermSearch', 'SalesTaxItem', 'SalesTaxItemSearch', + 'TaxGroup', 'TaxGroupSearch', 'DepartmentSearch', 'ItemSearch', 'ItemSearchAdvanced', 'ItemSearchRow', 'ClassificationSearch', diff --git a/setup.py b/setup.py index 36047e5..0265f74 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setuptools.setup( name='netsuitesdk', - version='2.6.1', + version='2.7.0', author='Siva Narayanan', author_email='siva@fyle.in', description='Python SDK for accessing the NetSuite SOAP webservice',