Updated Payment APIs

- Updated SDK Models to latest Payment APIs
- Updated Unit Tests
This commit is contained in:
Jay Patel
2015-02-26 15:03:59 -06:00
parent 241d80cd17
commit 3e43f93f9b
93 changed files with 6079 additions and 1735 deletions

View File

@@ -13,6 +13,8 @@ use PayPal\Common\PayPalModel;
*
* @property string field
* @property string issue
* @property string purchase_unit_reference_id
* @property string code
*/
class ErrorDetails extends PayPalModel
{
@@ -62,4 +64,50 @@ class ErrorDetails extends PayPalModel
return $this->issue;
}
/**
* Reference ID of the purchase_unit associated with this error
*
* @param string $purchase_unit_reference_id
*
* @return $this
*/
public function setPurchaseUnitReferenceId($purchase_unit_reference_id)
{
$this->purchase_unit_reference_id = $purchase_unit_reference_id;
return $this;
}
/**
* Reference ID of the purchase_unit associated with this error
*
* @return string
*/
public function getPurchaseUnitReferenceId()
{
return $this->purchase_unit_reference_id;
}
/**
* PayPal internal error code.
*
* @param string $code
*
* @return $this
*/
public function setCode($code)
{
$this->code = $code;
return $this;
}
/**
* PayPal internal error code.
*
* @return string
*/
public function getCode()
{
return $this->code;
}
}