Skip to content

Commit

Permalink
Added Support for Tax Groups (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
NileshPant1999 authored Oct 11, 2021
1 parent c80c1cb commit 7f1553a
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions netsuitesdk/api/tax_groups.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 TaxGroups(ApiBase):

def __init__(self, ns_client):
ApiBase.__init__(self, ns_client=ns_client, type_name='TaxGroup')
2 changes: 2 additions & 0 deletions netsuitesdk/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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)
1 change: 1 addition & 0 deletions netsuitesdk/internal/netsuite_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@
'VendorCategory', 'VendorCategorySearch',
'Term', 'TermSearch',
'SalesTaxItem', 'SalesTaxItemSearch',
'TaxGroup', 'TaxGroupSearch',
'DepartmentSearch',
'ItemSearch', 'ItemSearchAdvanced', 'ItemSearchRow',
'ClassificationSearch',
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='2.6.1',
version='2.7.0',
author='Siva Narayanan',
author_email='[email protected]',
description='Python SDK for accessing the NetSuite SOAP webservice',
Expand Down

0 comments on commit 7f1553a

Please sign in to comment.