1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class ErrorDetails
9 *
10 * Details about a specific error.
11 *
12 * @package PayPal\Api
13 *
14 * @property string field
15 * @property string issue
16 */
17 class ErrorDetails extends PayPalModel
18 {
19 /**
20 * Name of the field that caused the error.
21 *
22 * @param string $field
23 *
24 * @return $this
25 */
26 public function setField($field)
27 {
28 $this->field = $field;
29 return $this;
30 }
31
32 /**
33 * Name of the field that caused the error.
34 *
35 * @return string
36 */
37 public function getField()
38 {
39 return $this->field;
40 }
41
42 /**
43 * Reason for the error.
44 *
45 * @param string $issue
46 *
47 * @return $this
48 */
49 public function setIssue($issue)
50 {
51 $this->issue = $issue;
52 return $this;
53 }
54
55 /**
56 * Reason for the error.
57 *
58 * @return string
59 */
60 public function getIssue()
61 {
62 return $this->issue;
63 }
64
65 /**
66 * Reference ID of the purchase_unit associated with this error
67 * @deprecated Not publicly available
68 * @param string $purchase_unit_reference_id
69 *
70 * @return $this
71 */
72 public function setPurchaseUnitReferenceId($purchase_unit_reference_id)
73 {
74 $this->purchase_unit_reference_id = $purchase_unit_reference_id;
75 return $this;
76 }
77
78 /**
79 * Reference ID of the purchase_unit associated with this error
80 * @deprecated Not publicly available
81 * @return string
82 */
83 public function getPurchaseUnitReferenceId()
84 {
85 return $this->purchase_unit_reference_id;
86 }
87
88 /**
89 * PayPal internal error code.
90 * @deprecated Not publicly available
91 * @param string $code
92 *
93 * @return $this
94 */
95 public function setCode($code)
96 {
97 $this->code = $code;
98 return $this;
99 }
100
101 /**
102 * PayPal internal error code.
103 * @deprecated Not publicly available
104 * @return string
105 */
106 public function getCode()
107 {
108 return $this->code;
109 }
110
111 }
112