-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to the 2021.1 version of web services toolkit thanks to @FSElias
- Loading branch information
Showing
43 changed files
with
557 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,5 @@ | |
|
||
# Files | ||
.DS_Store | ||
composer.lock | ||
composer.lock | ||
*.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ use NetSuite\NetSuiteService; | |
|
||
$config = [ | ||
// required ------------------------------------- | ||
"endpoint" => "2020_2", | ||
"endpoint" => "2021_1", | ||
"host" => "https://webservices.netsuite.com", | ||
"account" => "MYACCT1", | ||
"consumerKey" => "0123456789ABCDEF", | ||
|
@@ -80,7 +80,7 @@ use NetSuite\NetSuiteService; | |
|
||
$config = [ | ||
// required ------------------------------------- | ||
"endpoint" => "2020_2", | ||
"endpoint" => "2021_1", | ||
"host" => "https://webservices.netsuite.com", | ||
"email" => "[email protected]", | ||
"password" => "mySecretPwd", | ||
|
@@ -127,7 +127,7 @@ you'll have a client instance in the container. | |
|
||
## Account-Specific Data Center URLs | ||
|
||
With `2019_1`, this library provides support to utilize NetSuite's new | ||
With `2021_1`, this library provides support to utilize NetSuite's new | ||
account-specific data center URL detection on each request. In practice, this | ||
lookup does have a measurable overhead cost. As such, I'd suggest using this | ||
feature only if your manner of NetSuite integration is such that you make | ||
|
@@ -173,8 +173,8 @@ $service->logRequests(false); // Turn logging off. | |
|
||
This repository always contains classes generated from the version of the | ||
NetSuite PHP Toolkit corresponding with the web services version denoted | ||
by the specific release. Release `v2020.2.0`, for instance, is the first | ||
release built against NetSuite's `2020_1` web services toolkit. If you want | ||
by the specific release. Release `v2021.1.0`, for instance, is the first | ||
release built against NetSuite's `2021_1` web services toolkit. If you want | ||
to generate the class files yourself, for whatever reason, there is code | ||
included with the package to do so, using the following steps: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
|
||
// An example of loading your config from environment variables with optional defaults. | ||
return [ | ||
'endpoint' => getenv('NETSUITE_ENDPOINT') ?: '2017_1', | ||
'endpoint' => getenv('NETSUITE_ENDPOINT') ?: '2021_1', | ||
'host' => getenv('NETSUITE_HOST') ?: 'https://webservices.netsuite.com', | ||
'email' => getenv('NETSUITE_EMAIL') ?: '[email protected]', | ||
'password' => getenv('NETSUITE_PASSWORD') ?: 'mySecretPwd', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?php | ||
/** | ||
* This file is part of the netsuitephp/netsuite-php library | ||
* AND originally from the NetSuite PHP Toolkit. | ||
* | ||
* New content: | ||
* @package ryanwinchester/netsuite-php | ||
* @copyright Copyright (c) Ryan Winchester | ||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0 | ||
* @link https://github.com/netsuitephp/netsuite-php | ||
* | ||
* Original content: | ||
* @copyright Copyright (c) NetSuite Inc. | ||
* @license https://raw.githubusercontent.com/netsuitephp/netsuite-php/master/original/NetSuite%20Application%20Developer%20License%20Agreement.txt | ||
* @link http://www.netsuite.com/portal/developers/resources/suitetalk-sample-applications.shtml | ||
*/ | ||
|
||
namespace NetSuite\Classes; | ||
|
||
class EmployeeCorporateCards { | ||
/** | ||
* @var string | ||
*/ | ||
public $embossedName; | ||
/** | ||
* @var string | ||
*/ | ||
public $expiration; | ||
/** | ||
* @var \NetSuite\Classes\RecordRef | ||
*/ | ||
public $corporateCardProfile; | ||
static $paramtypesmap = array( | ||
"embossedName" => "string", | ||
"expiration" => "dateTime", | ||
"corporateCardProfile" => "RecordRef", | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* This file is part of the netsuitephp/netsuite-php library | ||
* AND originally from the NetSuite PHP Toolkit. | ||
* | ||
* New content: | ||
* @package ryanwinchester/netsuite-php | ||
* @copyright Copyright (c) Ryan Winchester | ||
* @license http://www.apache.org/licenses/LICENSE-2.0 Apache-2.0 | ||
* @link https://github.com/netsuitephp/netsuite-php | ||
* | ||
* Original content: | ||
* @copyright Copyright (c) NetSuite Inc. | ||
* @license https://raw.githubusercontent.com/netsuitephp/netsuite-php/master/original/NetSuite%20Application%20Developer%20License%20Agreement.txt | ||
* @link http://www.netsuite.com/portal/developers/resources/suitetalk-sample-applications.shtml | ||
*/ | ||
|
||
namespace NetSuite\Classes; | ||
|
||
class EmployeeCorporateCardsList { | ||
/** | ||
* @var \NetSuite\Classes\EmployeeCorporateCards[] | ||
*/ | ||
public $corporateCards; | ||
/** | ||
* @var boolean | ||
*/ | ||
public $replaceAll; | ||
static $paramtypesmap = array( | ||
"corporateCards" => "EmployeeCorporateCards[]", | ||
"replaceAll" => "boolean", | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
8ce9ae1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi chaps - can this be officially Released as v2021.1 ?