Based on the NetSuite PHP Toolbox