Skip to content

Commit

Permalink
Adding Support for Tax Items in Netsuite API (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
NileshPant1999 authored Aug 17, 2021
1 parent e9e2e85 commit 9f2f92e
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_items.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 TaxItems(ApiBase):

def __init__(self, ns_client):
ApiBase.__init__(self, ns_client=ns_client, type_name='SalesTaxItem')
2 changes: 2 additions & 0 deletions netsuitesdk/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from .api.vendor_payments import VendorPayments
from .api.invoices import Invoices
from .api.terms import Terms
from .api.tax_items import TaxItems
from .internal.client import NetSuiteClient


Expand Down Expand Up @@ -59,3 +60,4 @@ def __init__(self, account, consumer_key, consumer_secret, token_key, token_secr
self.vendor_payments = VendorPayments(ns_client)
self.invoices = Invoices(ns_client)
self.terms = Terms(ns_client)
self.tax_items = TaxItems(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 @@ -83,6 +83,7 @@
'Subsidiary', 'SubsidiarySearch',
'VendorCategory', 'VendorCategorySearch',
'Term', 'TermSearch',
'SalesTaxItem', 'SalesTaxItemSearch'
],

'ns19': [
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.2.0',
version='2.3.0',
author='Siva Narayanan',
author_email='[email protected]',
description='Python SDK for accessing the NetSuite SOAP webservice',
Expand Down

0 comments on commit 9f2f92e

Please sign in to comment.