diff --git a/lib/netsuite/configuration.rb b/lib/netsuite/configuration.rb index ad393176..1635f186 100644 --- a/lib/netsuite/configuration.rb +++ b/lib/netsuite/configuration.rb @@ -17,6 +17,7 @@ def attributes def connection(params={}, credentials={}) client = Savon.client({ wsdl: (credentials[:wsdl] && !credentials[:wsdl].empty?) ? credentials[:wsdl] : wsdl, + endpoint: credentials[:endpoint], read_timeout: read_timeout, namespaces: namespaces, soap_header: auth_header(credentials).update(soap_header), @@ -79,7 +80,7 @@ def api_version(version = nil) if version self.api_version = version else - attributes[:api_version] ||= '2015_1' + attributes[:api_version] ||= '2023_1' end end diff --git a/lib/netsuite/utilities.rb b/lib/netsuite/utilities.rb index c0b0f2d9..b2bd8736 100644 --- a/lib/netsuite/utilities.rb +++ b/lib/netsuite/utilities.rb @@ -45,11 +45,11 @@ def netsuite_data_center_urls(account_id) # as of 1/20/18 NS will start using the account ID to determine # if a account is sandbox (123_SB1) as opposed to using a sandbox domain - wsdl: 'https://webservices.netsuite.com/wsdl/v2017_2_0/netsuite.wsdl', + wsdl: 'https://webservices.netsuite.com/wsdl/v2023_1_0/netsuite.wsdl', # NOTE don't inherit default namespace settings, it includes the API version namespaces: { - 'xmlns:platformCore' => "urn:core_2017_2.platform.webservices.netsuite.com" + 'xmlns:platformCore' => "urn:core_2023_1.platform.webservices.netsuite.com" }, soap_header: {}