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