forked from LiveCarta/PayPal-PHP-SDK
First Update on Invoicing APIs
This commit is contained in:
@@ -1,15 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace PayPal\Api;
|
||||
|
||||
use PayPal\Common\PPModel;
|
||||
use PayPal\Rest\ApiContext;
|
||||
|
||||
/**
|
||||
* Class ErrorDetails
|
||||
*
|
||||
* Details about a specific error.
|
||||
*
|
||||
* @package PayPal\Api
|
||||
*
|
||||
* @property string field
|
||||
* @property string issue
|
||||
*/
|
||||
class ErrorDetails extends PPModel
|
||||
{
|
||||
/**
|
||||
* Name of the field that caused the error.
|
||||
*
|
||||
* @param string $field
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setField($field)
|
||||
{
|
||||
@@ -27,11 +39,12 @@ class ErrorDetails extends PPModel
|
||||
return $this->field;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Reason for the error.
|
||||
*
|
||||
* @param string $issue
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setIssue($issue)
|
||||
{
|
||||
@@ -49,5 +62,4 @@ class ErrorDetails extends PPModel
|
||||
return $this->issue;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user