1 <?php
2
3 namespace PayPal\Api;
4
5 use PayPal\Common\PayPalModel;
6
7 /**
8 * Class BillingInfo
9 *
10 * Billing information for the invoice recipient.
11 *
12 * @package PayPal\Api
13 *
14 * @property string email
15 * @property string first_name
16 * @property string last_name
17 * @property string business_name
18 * @property \PayPal\Api\InvoiceAddress address
19 * @property string language
20 * @property string additional_info
21 * @property string notification_channel
22 * @property \PayPal\Api\Phone phone
23 */
24 class BillingInfo extends PayPalModel
25 {
26 /**
27 * The invoice recipient email address. Maximum length is 260 characters.
28 *
29 * @param string $email
30 *
31 * @return $this
32 */
33 public function setEmail($email)
34 {
35 $this->email = $email;
36 return $this;
37 }
38
39 /**
40 * The invoice recipient email address. Maximum length is 260 characters.
41 *
42 * @return string
43 */
44 public function getEmail()
45 {
46 return $this->email;
47 }
48
49 /**
50 * The invoice recipient first name. Maximum length is 30 characters.
51 *
52 * @param string $first_name
53 *
54 * @return $this
55 */
56 public function setFirstName($first_name)
57 {
58 $this->first_name = $first_name;
59 return $this;
60 }
61
62 /**
63 * The invoice recipient first name. Maximum length is 30 characters.
64 *
65 * @return string
66 */
67 public function getFirstName()
68 {
69 return $this->first_name;
70 }
71
72 /**
73 * The invoice recipient last name. Maximum length is 30 characters.
74 *
75 * @param string $last_name
76 *
77 * @return $this
78 */
79 public function setLastName($last_name)
80 {
81 $this->last_name = $last_name;
82 return $this;
83 }
84
85 /**
86 * The invoice recipient last name. Maximum length is 30 characters.
87 *
88 * @return string
89 */
90 public function getLastName()
91 {
92 return $this->last_name;
93 }
94
95 /**
96 * The invoice recipient company business name. Maximum length is 100 characters.
97 *
98 * @param string $business_name
99 *
100 * @return $this
101 */
102 public function setBusinessName($business_name)
103 {
104 $this->business_name = $business_name;
105 return $this;
106 }
107
108 /**
109 * The invoice recipient company business name. Maximum length is 100 characters.
110 *
111 * @return string
112 */
113 public function getBusinessName()
114 {
115 return $this->business_name;
116 }
117
118 /**
119 * The invoice recipient address.
120 *
121 * @param \PayPal\Api\InvoiceAddress $address
122 *
123 * @return $this
124 */
125 public function setAddress($address)
126 {
127 $this->address = $address;
128 return $this;
129 }
130
131 /**
132 * The invoice recipient address.
133 *
134 * @return \PayPal\Api\InvoiceAddress
135 */
136 public function getAddress()
137 {
138 return $this->address;
139 }
140
141 /**
142 * The language in which the email was sent to the payer. Used only when the payer does not have a PayPal account.
143 * Valid Values: ["da_DK", "de_DE", "en_AU", "en_GB", "en_US", "es_ES", "es_XC", "fr_CA", "fr_FR", "fr_XC", "he_IL", "id_ID", "it_IT", "ja_JP", "nl_NL", "no_NO", "pl_PL", "pt_BR", "pt_PT", "ru_RU", "sv_SE", "th_TH", "tr_TR", "zh_CN", "zh_HK", "zh_TW", "zh_XC"]
144 *
145 * @param string $language
146 *
147 * @return $this
148 */
149 public function setLanguage($language)
150 {
151 $this->language = $language;
152 return $this;
153 }
154
155 /**
156 * The language in which the email was sent to the payer. Used only when the payer does not have a PayPal account.
157 *
158 * @return string
159 */
160 public function getLanguage()
161 {
162 return $this->language;
163 }
164
165 /**
166 * Additional information, such as business hours. Maximum length is 40 characters.
167 *
168 * @param string $additional_info
169 *
170 * @return $this
171 */
172 public function setAdditionalInfo($additional_info)
173 {
174 $this->additional_info = $additional_info;
175 return $this;
176 }
177
178 /**
179 * Additional information, such as business hours. Maximum length is 40 characters.
180 *
181 * @return string
182 */
183 public function getAdditionalInfo()
184 {
185 return $this->additional_info;
186 }
187
188 /**
189 * Preferred notification channel of the payer. Email by default.
190 * Valid Values: ["SMS", "EMAIL"]
191 *
192 * @param string $notification_channel
193 *
194 * @return $this
195 */
196 public function setNotificationChannel($notification_channel)
197 {
198 $this->notification_channel = $notification_channel;
199 return $this;
200 }
201
202 /**
203 * Preferred notification channel of the payer. Email by default.
204 *
205 * @return string
206 */
207 public function getNotificationChannel()
208 {
209 return $this->notification_channel;
210 }
211
212 /**
213 * Mobile Phone number of the recipient to which SMS will be sent if notification_channel is SMS.
214 *
215 * @param \PayPal\Api\Phone $phone
216 *
217 * @return $this
218 */
219 public function setPhone($phone)
220 {
221 $this->phone = $phone;
222 return $this;
223 }
224
225 /**
226 * Mobile Phone number of the recipient to which SMS will be sent if notification_channel is SMS.
227 *
228 * @return \PayPal\Api\Phone
229 */
230 public function getPhone()
231 {
232 return $this->phone;
233 }
234
235 }
236