diff --git a/composer.json b/composer.json index 67806bb6..ba1b7abb 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { - "name": "quickbooks/v3-php-sdk", - "description": "The Official PHP SDK for QuickBooks Online Accounting API", + "name": "dieruckus/v3-php-sdk", + "description": "The Official PHP SDK for QuickBooks Online Accounting API / moded", "type": "library", "keywords": ["api", "http", "rest", "quickbooks", "smallbusiness"], "homepage": "http://developer.intuit.com", @@ -22,8 +22,8 @@ "license": "Apache-2.0", "authors": [ { - "name": "abisalehalliprasan", - "email": "anil_kumar3@intuit.com" + "name": "die_ruckus", + "email": "dieruckusdie@gmail.com" } ], "suggest": { diff --git a/src/XSD2PHP/src/com/mikebevz/xsd2php/Bind.php b/src/XSD2PHP/src/com/mikebevz/xsd2php/Bind.php index addf3013..2bd33156 100644 --- a/src/XSD2PHP/src/com/mikebevz/xsd2php/Bind.php +++ b/src/XSD2PHP/src/com/mikebevz/xsd2php/Bind.php @@ -28,6 +28,12 @@ class Bind extends Common { + public static $ignore_parameters = [ + 'QuickBooksOnline\API\Data\IPPPayment' => [ + 'ProjectRef' + ] + ]; + //protected $dom; //protected $namespaces; @@ -130,6 +136,10 @@ public function bindXml($xml, $model) list($ns, $name) = $this->parseQName($child->nodeName, true); //$className = $this->urnToPhpName($ns)."\\".$name; try { + // skip incoming XML parse assigning parameters to be ignored + if(isset(self::$ignore_parameters[get_class($model)]) && in_array($name, self::$ignore_parameters[get_class($model)])){ + continue; + } $propertyDocs = $refl->getProperty($name)->getDocComment(); } catch (\ReflectionException $e) { throw new \RuntimeException($e->getMessage() . ". Class " . get_class($model));