Enabled EC Parameters support

- Updated Api to enabled EC Parameters
- Updated Tests
- Updated Logging Manager
- Added a feature to do validation on accessors.
This commit is contained in:
japatel
2014-10-09 11:30:12 -05:00
parent 459293838e
commit 61a52e4623
99 changed files with 9148 additions and 3609 deletions

View File

@@ -6,7 +6,13 @@ use PayPal\Rest\ApiContext;
use PayPal\Rest\IResource;
use PayPal\Api\Invoices;
use PayPal\Transport\PPRestCall;
use PayPal\Validation\ArgumentValidator;
/**
* Class Invoice
*
* @package PayPal\Api
*/
class Invoice extends PPModel implements IResource
{
@@ -866,9 +872,7 @@ class Invoice extends PPModel implements IResource
*/
public function search($search, $apiContext = null)
{
if (($search == null)) {
throw new \InvalidArgumentException("search cannot be null or empty");
}
ArgumentValidator::validate($search, 'search');
$payLoad = $search->toJSON();
if ($apiContext == null) {
$apiContext = new ApiContext(self::$credential);