Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding Support for Tax Items in Netsuite API #63

Merged
merged 3 commits into from
Aug 17, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.1.0',
version='2.2.0',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be 2.3.0

author='Siva Narayanan',
author_email='[email protected]',
description='Python SDK for accessing the NetSuite SOAP webservice',
Expand Down