Updated Identity Support from SDK Core

- Moved PPModels required for Identity Support
This commit is contained in:
japatel
2014-10-14 14:15:41 -05:00
parent 0cb302326a
commit dc2ac0fd63
36 changed files with 2652 additions and 587 deletions

View File

@@ -4,6 +4,7 @@ namespace PayPal\Transport;
use PayPal\Core\PPLoggingManager;
use PayPal\Core\PPHttpConfig;
use PayPal\Core\PPHttpConnection;
use PayPal\Rest\ApiContext;
/**
* Class PPRestCall
@@ -24,7 +25,7 @@ class PPRestCall
/**
* API Context
*
* @var \Paypal\Rest\ApiContext
* @var ApiContext
*/
private $apiContext;
@@ -32,9 +33,9 @@ class PPRestCall
/**
* Default Constructor
*
* @param \Paypal\Rest\ApiContext $apiContext
* @param ApiContext $apiContext
*/
public function __construct(\Paypal\Rest\ApiContext $apiContext)
public function __construct(ApiContext $apiContext)
{
$this->apiContext = $apiContext;
$this->logger = PPLoggingManager::getInstance(__CLASS__);
@@ -54,6 +55,7 @@ class PPRestCall
$config = $this->apiContext->getConfig();
$httpConfig = new PPHttpConfig(null, $method);
$headers = $headers ? $headers : array();
$httpConfig->setHeaders($headers +
array(
'Content-Type' => 'application/json'