1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class Payee
9 *
10 * A resource representing a Payee who receives the funds and fulfills the order.
11 *
12 * @package PayPal\Api
13 *
14 * @property string email
15 * @property string merchant_id
16 */
17 class Payee extends PayPalModel
18 {
19 /**
20 * Email Address associated with the Payee's PayPal Account. If the provided email address is not associated with any PayPal Account, the payee can only receive PayPal Wallet Payments. Direct Credit Card Payments will be denied due to card compliance requirements.
21 *
22 * @param string $email
23 *
24 * @return $this
25 */
26 public function setEmail($email)
27 {
28 $this->email = $email;
29 return $this;
30 }
31
32 /**
33 * Email Address associated with the Payee's PayPal Account. If the provided email address is not associated with any PayPal Account, the payee can only receive PayPal Wallet Payments. Direct Credit Card Payments will be denied due to card compliance requirements.
34 *
35 * @return string
36 */
37 public function getEmail()
38 {
39 return $this->email;
40 }
41
42 /**
43 * Encrypted PayPal account identifier for the Payee.
44 *
45 * @param string $merchant_id
46 *
47 * @return $this
48 */
49 public function setMerchantId($merchant_id)
50 {
51 $this->merchant_id = $merchant_id;
52 return $this;
53 }
54
55 /**
56 * Encrypted PayPal account identifier for the Payee.
57 *
58 * @return string
59 */
60 public function getMerchantId()
61 {
62 return $this->merchant_id;
63 }
64
65 /**
66 * First Name of the Payee.
67 * @deprecated Not publicly available
68 * @param string $first_name
69 *
70 * @return $this
71 */
72 public function setFirstName($first_name)
73 {
74 $this->first_name = $first_name;
75 return $this;
76 }
77
78 /**
79 * First Name of the Payee.
80 * @deprecated Not publicly available
81 * @return string
82 */
83 public function getFirstName()
84 {
85 return $this->first_name;
86 }
87
88 /**
89 * Last Name of the Payee.
90 * @deprecated Not publicly available
91 * @param string $last_name
92 *
93 * @return $this
94 */
95 public function setLastName($last_name)
96 {
97 $this->last_name = $last_name;
98 return $this;
99 }
100
101 /**
102 * Last Name of the Payee.
103 * @deprecated Not publicly available
104 * @return string
105 */
106 public function getLastName()
107 {
108 return $this->last_name;
109 }
110
111 /**
112 * Unencrypted PayPal account Number of the Payee
113 * @deprecated Not publicly available
114 * @param string $account_number
115 *
116 * @return $this
117 */
118 public function setAccountNumber($account_number)
119 {
120 $this->account_number = $account_number;
121 return $this;
122 }
123
124 /**
125 * Unencrypted PayPal account Number of the Payee
126 * @deprecated Not publicly available
127 * @return string
128 */
129 public function getAccountNumber()
130 {
131 return $this->account_number;
132 }
133
134 /**
135 * Information related to the Payee.
136 * @deprecated Not publicly available
137 * @param \PayPal\Api\Phone $phone
138 *
139 * @return $this
140 */
141 public function setPhone($phone)
142 {
143 $this->phone = $phone;
144 return $this;
145 }
146
147 /**
148 * Information related to the Payee.
149 * @deprecated Not publicly available
150 * @return \PayPal\Api\Phone
151 */
152 public function getPhone()
153 {
154 return $this->phone;
155 }
156
157 }
158