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

@@ -12,8 +12,10 @@ use PayPal\Common\PayPalModel;
* @package PayPal\Api
*
* @property string name
* @property string purchase_unit_reference_id
* @property string debug_id
* @property string message
* @property string code
* @property string information_link
* @property \PayPal\Api\ErrorDetails[] details
* @property \PayPal\Api\Links[] links
@@ -43,6 +45,29 @@ class Error extends PayPalModel
return $this->name;
}
/**
* 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 identifier used for correlation purposes.
*
@@ -89,6 +114,29 @@ class Error extends PayPalModel
return $this->message;
}
/**
* 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;
}
/**
* URI for detailed information related to this error for the developer.
*