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

@@ -8,29 +8,31 @@ use PayPal\Rest\ApiContext;
/**
* Class PaymentExecution
*
* @property string payer_id
* Let's you execute a PayPal Account based Payment resource with the payer_id obtained from web approval url.
*
* @package PayPal\Api
*
* @property string payer_id
* @property \PayPal\Api\Transactions transactions
*/
class PaymentExecution extends PPModel
{
/**
* Set Payer ID
* PayPal assigned Payer ID returned in the approval return url
* PayPal assigned Payer ID returned in the approval return url.
*
*
* @param string $payer_id
*
*
* @return $this
*/
public function setPayerId($payer_id)
{
$this->payer_id = $payer_id;
return $this;
}
/**
* Get Payer ID
* PayPal assigned Payer ID returned in the approval return url
* PayPal assigned Payer ID returned in the approval return url.
*
* @return string
*/
@@ -40,27 +42,22 @@ class PaymentExecution extends PPModel
}
/**
* Set Payer ID
* PayPal assigned Payer ID returned in the approval return url
* PayPal assigned Payer ID returned in the approval return url.
*
* @deprecated Instead use setPayerId
*
* @param string $payer_id
*
* @deprecated Use setPayerId
*
* @return $this
*/
public function setPayer_id($payer_id)
{
$this->payer_id = $payer_id;
return $this;
}
/**
* Get Payer ID
* PayPal assigned Payer ID returned in the approval return url
*
* @deprecated Use getPayerId
* PayPal assigned Payer ID returned in the approval return url.
* @deprecated Instead use getPayerId
*
* @return string
*/
@@ -70,11 +67,11 @@ class PaymentExecution extends PPModel
}
/**
* Set Transactions
* If the amount needs to be updated after obtaining the PayPal Payer info (eg. shipping address), it can be updated using this element
* If the amount needs to be updated after obtaining the PayPal Payer info (eg. shipping address), it can be updated using this element.
*
*
* @param \PayPal\Api\Transactions $transactions
*
*
* @return $this
*/
public function setTransactions($transactions)
@@ -84,13 +81,13 @@ class PaymentExecution extends PPModel
}
/**
* Get Transactions
* If the amount needs to be updated after obtaining the PayPal Payer info (eg. shipping address), it can be updated using this element
* If the amount needs to be updated after obtaining the PayPal Payer info (eg. shipping address), it can be updated using this element.
*
* @return \PayPal\Api\Transactions
* @return \PayPal\Api\Transactions[]
*/
public function getTransactions()
{
return $this->transactions;
}
}