0.9.0 (2022-06-02)
- Async connections sessions were being closed (28e2b8e)
- Don't require existing config to check version (b9982bf)
- Regression in
openapi serve
CLI command (c0074a0) - Update dependencies (1956b4d), closes #39 #40
- Add example project for soap requests (352bdd6)
- Fix yaml miss (9180897)
0.8.0 - 2021-04-28
- Default signing method is now HMAC-SHA256 for REST API and Restlet. The old default of HMAC-SHA1 can be set via the
signature_method
keyword argument. (Thanks to @zerodarkzone, issue #27)
- HMAC-SHA256 signing method when making requests to REST API and Restlets
- Dependency
oauthlib
0.7.0 - 2021-04-27
This release breaks a lot of things. Please read carefully.
- SOAP and Restlet APIs are now async (i.e. this library is no longer useable in a non-async environment)
- The
netsuite.client.NetSuite
class is now just a thin layer around each of the different API types (SOAP, REST, Restlets) - SOAP Web Services support is no longer included in the default install, please use
netsuite[soap_api]
(unfortunatelyzeep
pulls in a lot of other dependencies, so I decided to remove it by default) netsuite.restlet.NetsuiteRestlet
has been renamed tonetsuite.restlet.NetSuiteRestlet
- Move NetSuite version to 2021.1
- Upgrade to httpx ~0.18
netsuite.restlet.NetSuiteRestlet
now support all four HTTP verbs GET, POST, PUT & DELETE via dedicated functions.get
,.post
,.put
&.delete
- REST API and Restlet are now supported with the default install
- CLI now has a new sub-command
soap-api
, which currently only supportget
andgetList
- Dependency pydantic has been added to help with config validation
- Authentication via User credentials has been removed (will no longer work from NetSuite 2021.2 release anyway)
netsuite.restlet.NetSuiteRestApi.request
andnetsuite.restlet.NetSuiteRestlet.request
no longer exists - use each dedicated "verb method" instead- Removed dead code for setting SOAP preferences
- CLI sub-command aliases
i
(interact) andr
(rest-api) have been removed to avoid confusion
0.6.3 - 2021-04-26
- Ability to supply custom headers to REST API requests made from CLI via "-H/--header" flag
- Support custom payload, headers and params in suiteql REST API method
0.6.2 - 2021-04-25
NetSuiteRestApi
no longer requires a running asyncio loop to be instantiated
0.6.1 - 2021-04-25
- Fix "local variable 'record_ref' referenced before assignment" error in
NetSuite.get
method - Thanks @VeNoMouS! (#25)
- Release 2021.1 wouldn't accept non-GET requests to the REST API without body being part of the signing. Thanks to @mmangione for the PR! (#26)
- Documentation site
- Python 3.6 support
- Upgrade to httpx ~0.17
- Use poetry for package management
- Move to Github Actions
- Couldn't import
netsuite
unlesshttpx
was installed. Fixes #18
- Only forward explicitly passed in parameters for
netsuite rest-api get
command. Fixes errorInvalid query parameter name: limit. Allowed query parameters are: fields, expand, expandSubResources.
- Ability to have
netsuite rest-api get
only return a given list of fields via--fields
- Ability for
netsuite rest-api get
to only expand a given set of sublist and subrecord types via--expand
- HTML title in OpenAPI Swagger docs
- Support for SuiteTalk REST Web Services, including standard GET, POST, PATCH, PUT, DELETE requests as well as making SuiteQL queries. For now it's an optional dependency (install with
pip install netsuite[rest_api]
) - Start a HTTP server via command line to browse REST API OpenAPI spec docs for a given set of records (utilizes Swagger UI)
--log-level
,--config-path
and--config-section
must now be passed directly to thenetsuite
command, and not its sub-commands.
- Extend Zeep Transport GET and POST HTTP methods to apply the account-specific dynamic domain as the remote host
- Update the NetSuite WSDL compatibility to 2019.2
- Support for specifying operation/request timeouts
- Changed: Throw an exception if Suitetalk returns a response error
- Support for
update
andsearch
operations
- Decrease restlet request time on subsequent requests by half by re-using the OAuth session
- Support for making requests to restlets
- New command to utilize the new restlet request capability
- Added: Document usage of CLI utils
requests-ntlm
dependency which was never used
- Don't specify
lxml
as a dependency. Implicitly take dependency fromzeep
instead.
get
,getAll
,add
,upsert
andupsertList
methods. Big thanks go out to @matmunn for the original PR. (#6)
- Helper
NetSuite.to_builtin
to convert zeep objects to python builtins lastQtyAvailableChange
filter
- Sandbox is now configured through account ID,
sandbox
flag is now a no-op - New default version is 2018.1.0
- Account specific domains are now used when
wsdl_url
is left unspecified
- Support regular credentials Passport
- Listing Python 3.7 as a supported version
getItemAvailability
only read first passed in external/internal ID
- Allow overriding global NS preferences through SOAP headers
- Initial version. Support for
getList
andgetItemAvailability
- Please note that there is currently no handling for error responses from the API