1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace PayPal\StructType; |
4
|
|
|
|
5
|
|
|
use \WsdlToPhp\PackageBase\AbstractStructBase; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* This class stands for UserType StructType |
9
|
|
|
* Meta information extracted from the WSDL |
10
|
|
|
* - documentation: Feedback scores are a quantitative expression of the desirability of dealing with that person as a Buyer or a Seller in auction transactions. Each auction transaction can result in one feedback entry for a given user (the Buyer can |
11
|
|
|
* leave one feedback about the Seller and the Seller can leave one feedback about the Buyer). That one feedback can be positive, negative, or neutral. The aggregated feedback counts for a particular user represent that user's overall feedback score |
12
|
|
|
* (referred to as a "feedback rating" on the eBay site). This rating is commonly expressed as the eBay Feedback score for the user. |
13
|
|
|
* @subpackage Structs |
14
|
|
|
* @author WsdlToPhp <[email protected]> |
15
|
|
|
*/ |
16
|
|
|
class UserType extends AbstractStructBase |
17
|
|
|
{ |
18
|
|
|
/** |
19
|
|
|
* The AboutMePage |
20
|
|
|
* Meta information extracted from the WSDL |
21
|
|
|
* - minOccurs: 0 |
22
|
|
|
* @var bool |
23
|
|
|
*/ |
24
|
|
|
public $AboutMePage; |
25
|
|
|
/** |
26
|
|
|
* The EAISToken |
27
|
|
|
* Meta information extracted from the WSDL |
28
|
|
|
* - minOccurs: 0 |
29
|
|
|
* @var string |
30
|
|
|
*/ |
31
|
|
|
public $EAISToken; |
32
|
|
|
/** |
33
|
|
|
* The Email |
34
|
|
|
* Meta information extracted from the WSDL |
35
|
|
|
* - ref: ns:Email |
36
|
|
|
* @var string |
37
|
|
|
*/ |
38
|
|
|
public $Email; |
39
|
|
|
/** |
40
|
|
|
* The FeedbackScore |
41
|
|
|
* Meta information extracted from the WSDL |
42
|
|
|
* - minOccurs: 0 |
43
|
|
|
* - ref: ns:FeedbackScore |
44
|
|
|
* @var int |
45
|
|
|
*/ |
46
|
|
|
public $FeedbackScore; |
47
|
|
|
/** |
48
|
|
|
* The FeedbackPrivate |
49
|
|
|
* Meta information extracted from the WSDL |
50
|
|
|
* - minOccurs: 0 |
51
|
|
|
* @var bool |
52
|
|
|
*/ |
53
|
|
|
public $FeedbackPrivate; |
54
|
|
|
/** |
55
|
|
|
* The FeedbackRatingStar |
56
|
|
|
* Meta information extracted from the WSDL |
57
|
|
|
* - minOccurs: 0 |
58
|
|
|
* @var string |
59
|
|
|
*/ |
60
|
|
|
public $FeedbackRatingStar; |
61
|
|
|
/** |
62
|
|
|
* The IDVerified |
63
|
|
|
* Meta information extracted from the WSDL |
64
|
|
|
* - minOccurs: 0 |
65
|
|
|
* @var bool |
66
|
|
|
*/ |
67
|
|
|
public $IDVerified; |
68
|
|
|
/** |
69
|
|
|
* The NewUser |
70
|
|
|
* Meta information extracted from the WSDL |
71
|
|
|
* - minOccurs: 0 |
72
|
|
|
* @var bool |
73
|
|
|
*/ |
74
|
|
|
public $NewUser; |
75
|
|
|
/** |
76
|
|
|
* The RegistrationAddress |
77
|
|
|
* Meta information extracted from the WSDL |
78
|
|
|
* - minOccurs: 0 |
79
|
|
|
* - ref: ns:RegistrationAddress |
80
|
|
|
* @var \PayPal\StructType\AddressType |
81
|
|
|
*/ |
82
|
|
|
public $RegistrationAddress; |
83
|
|
|
/** |
84
|
|
|
* The RegistrationDate |
85
|
|
|
* Meta information extracted from the WSDL |
86
|
|
|
* - minOccurs: 0 |
87
|
|
|
* @var string |
88
|
|
|
*/ |
89
|
|
|
public $RegistrationDate; |
90
|
|
|
/** |
91
|
|
|
* The Site |
92
|
|
|
* Meta information extracted from the WSDL |
93
|
|
|
* - minOccurs: 0 |
94
|
|
|
* - ref: ns:Site |
95
|
|
|
* @var string |
96
|
|
|
*/ |
97
|
|
|
public $Site; |
98
|
|
|
/** |
99
|
|
|
* The Status |
100
|
|
|
* Meta information extracted from the WSDL |
101
|
|
|
* - minOccurs: 0 |
102
|
|
|
* @var string |
103
|
|
|
*/ |
104
|
|
|
public $Status; |
105
|
|
|
/** |
106
|
|
|
* The UserID |
107
|
|
|
* Meta information extracted from the WSDL |
108
|
|
|
* - base: xs:string |
109
|
|
|
* - maxLength: 127 |
110
|
|
|
* - minOccurs: 0 |
111
|
|
|
* - ref: ns:UserID |
112
|
|
|
* @var string |
113
|
|
|
*/ |
114
|
|
|
public $UserID; |
115
|
|
|
/** |
116
|
|
|
* The UserIDChanged |
117
|
|
|
* Meta information extracted from the WSDL |
118
|
|
|
* - minOccurs: 0 |
119
|
|
|
* @var bool |
120
|
|
|
*/ |
121
|
|
|
public $UserIDChanged; |
122
|
|
|
/** |
123
|
|
|
* The UserIDLastChanged |
124
|
|
|
* Meta information extracted from the WSDL |
125
|
|
|
* - minOccurs: 0 |
126
|
|
|
* @var string |
127
|
|
|
*/ |
128
|
|
|
public $UserIDLastChanged; |
129
|
|
|
/** |
130
|
|
|
* The VATStatus |
131
|
|
|
* Meta information extracted from the WSDL |
132
|
|
|
* - documentation: If present, indicates whether or not the user is subject to VAT. Users who have registered with eBay as VAT-exempt are not subject to VAT. See Value-Added Tax (VAT). Not returned for users whose country of residence is outside the |
133
|
|
|
* EU. Possible values for the user's status: 2 = Residence in an EU country but user registered as VAT-exempt 3 = Residence in an EU country and user not registered as VAT-exempt |
134
|
|
|
* - minOccurs: 0 |
135
|
|
|
* @var string |
136
|
|
|
*/ |
137
|
|
|
public $VATStatus; |
138
|
|
|
/** |
139
|
|
|
* The BuyerInfo |
140
|
|
|
* Meta information extracted from the WSDL |
141
|
|
|
* - minOccurs: 0 |
142
|
|
|
* @var \PayPal\StructType\BuyerType |
143
|
|
|
*/ |
144
|
|
|
public $BuyerInfo; |
145
|
|
|
/** |
146
|
|
|
* The SellerInfo |
147
|
|
|
* Meta information extracted from the WSDL |
148
|
|
|
* - minOccurs: 0 |
149
|
|
|
* @var \PayPal\StructType\SellerType |
150
|
|
|
*/ |
151
|
|
|
public $SellerInfo; |
152
|
|
|
/** |
153
|
|
|
* Constructor method for UserType |
154
|
|
|
* @uses UserType::setAboutMePage() |
155
|
|
|
* @uses UserType::setEAISToken() |
156
|
|
|
* @uses UserType::setEmail() |
157
|
|
|
* @uses UserType::setFeedbackScore() |
158
|
|
|
* @uses UserType::setFeedbackPrivate() |
159
|
|
|
* @uses UserType::setFeedbackRatingStar() |
160
|
|
|
* @uses UserType::setIDVerified() |
161
|
|
|
* @uses UserType::setNewUser() |
162
|
|
|
* @uses UserType::setRegistrationAddress() |
163
|
|
|
* @uses UserType::setRegistrationDate() |
164
|
|
|
* @uses UserType::setSite() |
165
|
|
|
* @uses UserType::setStatus() |
166
|
|
|
* @uses UserType::setUserID() |
167
|
|
|
* @uses UserType::setUserIDChanged() |
168
|
|
|
* @uses UserType::setUserIDLastChanged() |
169
|
|
|
* @uses UserType::setVATStatus() |
170
|
|
|
* @uses UserType::setBuyerInfo() |
171
|
|
|
* @uses UserType::setSellerInfo() |
172
|
|
|
* @param bool $aboutMePage |
173
|
|
|
* @param string $eAISToken |
174
|
|
|
* @param string $email |
175
|
|
|
* @param int $feedbackScore |
176
|
|
|
* @param bool $feedbackPrivate |
177
|
|
|
* @param string $feedbackRatingStar |
178
|
|
|
* @param bool $iDVerified |
179
|
|
|
* @param bool $newUser |
180
|
|
|
* @param \PayPal\StructType\AddressType $registrationAddress |
181
|
|
|
* @param string $registrationDate |
182
|
|
|
* @param string $site |
183
|
|
|
* @param string $status |
184
|
|
|
* @param string $userID |
185
|
|
|
* @param bool $userIDChanged |
186
|
|
|
* @param string $userIDLastChanged |
187
|
|
|
* @param string $vATStatus |
188
|
|
|
* @param \PayPal\StructType\BuyerType $buyerInfo |
189
|
|
|
* @param \PayPal\StructType\SellerType $sellerInfo |
190
|
|
|
*/ |
191
|
|
|
public function __construct($aboutMePage = null, $eAISToken = null, $email = null, $feedbackScore = null, $feedbackPrivate = null, $feedbackRatingStar = null, $iDVerified = null, $newUser = null, \PayPal\StructType\AddressType $registrationAddress = null, $registrationDate = null, $site = null, $status = null, $userID = null, $userIDChanged = null, $userIDLastChanged = null, $vATStatus = null, \PayPal\StructType\BuyerType $buyerInfo = null, \PayPal\StructType\SellerType $sellerInfo = null) |
192
|
|
|
{ |
193
|
|
|
$this |
194
|
|
|
->setAboutMePage($aboutMePage) |
195
|
|
|
->setEAISToken($eAISToken) |
196
|
|
|
->setEmail($email) |
197
|
|
|
->setFeedbackScore($feedbackScore) |
198
|
|
|
->setFeedbackPrivate($feedbackPrivate) |
199
|
|
|
->setFeedbackRatingStar($feedbackRatingStar) |
200
|
|
|
->setIDVerified($iDVerified) |
201
|
|
|
->setNewUser($newUser) |
202
|
|
|
->setRegistrationAddress($registrationAddress) |
203
|
|
|
->setRegistrationDate($registrationDate) |
204
|
|
|
->setSite($site) |
205
|
|
|
->setStatus($status) |
206
|
|
|
->setUserID($userID) |
207
|
|
|
->setUserIDChanged($userIDChanged) |
208
|
|
|
->setUserIDLastChanged($userIDLastChanged) |
209
|
|
|
->setVATStatus($vATStatus) |
210
|
|
|
->setBuyerInfo($buyerInfo) |
211
|
|
|
->setSellerInfo($sellerInfo); |
212
|
|
|
} |
213
|
|
|
/** |
214
|
|
|
* Get AboutMePage value |
215
|
|
|
* @return bool|null |
216
|
|
|
*/ |
217
|
|
|
public function getAboutMePage() |
218
|
|
|
{ |
219
|
|
|
return $this->AboutMePage; |
220
|
|
|
} |
221
|
|
|
/** |
222
|
|
|
* Set AboutMePage value |
223
|
|
|
* @param bool $aboutMePage |
224
|
|
|
* @return \PayPal\StructType\UserType |
225
|
|
|
*/ |
226
|
|
|
public function setAboutMePage($aboutMePage = null) |
227
|
|
|
{ |
228
|
|
|
// validation for constraint: boolean |
229
|
|
|
if (!is_null($aboutMePage) && !is_bool($aboutMePage)) { |
|
|
|
|
230
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($aboutMePage, true), gettype($aboutMePage)), __LINE__); |
231
|
|
|
} |
232
|
|
|
$this->AboutMePage = $aboutMePage; |
233
|
|
|
return $this; |
234
|
|
|
} |
235
|
|
|
/** |
236
|
|
|
* Get EAISToken value |
237
|
|
|
* @return string|null |
238
|
|
|
*/ |
239
|
|
|
public function getEAISToken() |
240
|
|
|
{ |
241
|
|
|
return $this->EAISToken; |
242
|
|
|
} |
243
|
|
|
/** |
244
|
|
|
* Set EAISToken value |
245
|
|
|
* @param string $eAISToken |
246
|
|
|
* @return \PayPal\StructType\UserType |
247
|
|
|
*/ |
248
|
|
|
public function setEAISToken($eAISToken = null) |
249
|
|
|
{ |
250
|
|
|
// validation for constraint: string |
251
|
|
|
if (!is_null($eAISToken) && !is_string($eAISToken)) { |
|
|
|
|
252
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($eAISToken, true), gettype($eAISToken)), __LINE__); |
253
|
|
|
} |
254
|
|
|
$this->EAISToken = $eAISToken; |
255
|
|
|
return $this; |
256
|
|
|
} |
257
|
|
|
/** |
258
|
|
|
* Get Email value |
259
|
|
|
* @return string|null |
260
|
|
|
*/ |
261
|
|
|
public function getEmail() |
262
|
|
|
{ |
263
|
|
|
return $this->Email; |
264
|
|
|
} |
265
|
|
|
/** |
266
|
|
|
* Set Email value |
267
|
|
|
* @param string $email |
268
|
|
|
* @return \PayPal\StructType\UserType |
269
|
|
|
*/ |
270
|
|
|
public function setEmail($email = null) |
271
|
|
|
{ |
272
|
|
|
// validation for constraint: string |
273
|
|
|
if (!is_null($email) && !is_string($email)) { |
|
|
|
|
274
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($email, true), gettype($email)), __LINE__); |
275
|
|
|
} |
276
|
|
|
$this->Email = $email; |
277
|
|
|
return $this; |
278
|
|
|
} |
279
|
|
|
/** |
280
|
|
|
* Get FeedbackScore value |
281
|
|
|
* @return int|null |
282
|
|
|
*/ |
283
|
|
|
public function getFeedbackScore() |
284
|
|
|
{ |
285
|
|
|
return $this->FeedbackScore; |
286
|
|
|
} |
287
|
|
|
/** |
288
|
|
|
* Set FeedbackScore value |
289
|
|
|
* @param int $feedbackScore |
290
|
|
|
* @return \PayPal\StructType\UserType |
291
|
|
|
*/ |
292
|
|
|
public function setFeedbackScore($feedbackScore = null) |
293
|
|
|
{ |
294
|
|
|
// validation for constraint: int |
295
|
|
|
if (!is_null($feedbackScore) && !(is_int($feedbackScore) || ctype_digit($feedbackScore))) { |
|
|
|
|
296
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide an integer value, %s given', var_export($feedbackScore, true), gettype($feedbackScore)), __LINE__); |
297
|
|
|
} |
298
|
|
|
$this->FeedbackScore = $feedbackScore; |
299
|
|
|
return $this; |
300
|
|
|
} |
301
|
|
|
/** |
302
|
|
|
* Get FeedbackPrivate value |
303
|
|
|
* @return bool|null |
304
|
|
|
*/ |
305
|
|
|
public function getFeedbackPrivate() |
306
|
|
|
{ |
307
|
|
|
return $this->FeedbackPrivate; |
308
|
|
|
} |
309
|
|
|
/** |
310
|
|
|
* Set FeedbackPrivate value |
311
|
|
|
* @param bool $feedbackPrivate |
312
|
|
|
* @return \PayPal\StructType\UserType |
313
|
|
|
*/ |
314
|
|
|
public function setFeedbackPrivate($feedbackPrivate = null) |
315
|
|
|
{ |
316
|
|
|
// validation for constraint: boolean |
317
|
|
|
if (!is_null($feedbackPrivate) && !is_bool($feedbackPrivate)) { |
|
|
|
|
318
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($feedbackPrivate, true), gettype($feedbackPrivate)), __LINE__); |
319
|
|
|
} |
320
|
|
|
$this->FeedbackPrivate = $feedbackPrivate; |
321
|
|
|
return $this; |
322
|
|
|
} |
323
|
|
|
/** |
324
|
|
|
* Get FeedbackRatingStar value |
325
|
|
|
* @return string|null |
326
|
|
|
*/ |
327
|
|
|
public function getFeedbackRatingStar() |
328
|
|
|
{ |
329
|
|
|
return $this->FeedbackRatingStar; |
330
|
|
|
} |
331
|
|
|
/** |
332
|
|
|
* Set FeedbackRatingStar value |
333
|
|
|
* @uses \PayPal\EnumType\FeedbackRatingStarCodeType::valueIsValid() |
334
|
|
|
* @uses \PayPal\EnumType\FeedbackRatingStarCodeType::getValidValues() |
335
|
|
|
* @throws \InvalidArgumentException |
336
|
|
|
* @param string $feedbackRatingStar |
337
|
|
|
* @return \PayPal\StructType\UserType |
338
|
|
|
*/ |
339
|
|
|
public function setFeedbackRatingStar($feedbackRatingStar = null) |
340
|
|
|
{ |
341
|
|
|
// validation for constraint: enumeration |
342
|
|
|
if (!\PayPal\EnumType\FeedbackRatingStarCodeType::valueIsValid($feedbackRatingStar)) { |
343
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \PayPal\EnumType\FeedbackRatingStarCodeType', is_array($feedbackRatingStar) ? implode(', ', $feedbackRatingStar) : var_export($feedbackRatingStar, true), implode(', ', \PayPal\EnumType\FeedbackRatingStarCodeType::getValidValues())), __LINE__); |
|
|
|
|
344
|
|
|
} |
345
|
|
|
$this->FeedbackRatingStar = $feedbackRatingStar; |
346
|
|
|
return $this; |
347
|
|
|
} |
348
|
|
|
/** |
349
|
|
|
* Get IDVerified value |
350
|
|
|
* @return bool|null |
351
|
|
|
*/ |
352
|
|
|
public function getIDVerified() |
353
|
|
|
{ |
354
|
|
|
return $this->IDVerified; |
355
|
|
|
} |
356
|
|
|
/** |
357
|
|
|
* Set IDVerified value |
358
|
|
|
* @param bool $iDVerified |
359
|
|
|
* @return \PayPal\StructType\UserType |
360
|
|
|
*/ |
361
|
|
|
public function setIDVerified($iDVerified = null) |
362
|
|
|
{ |
363
|
|
|
// validation for constraint: boolean |
364
|
|
|
if (!is_null($iDVerified) && !is_bool($iDVerified)) { |
|
|
|
|
365
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($iDVerified, true), gettype($iDVerified)), __LINE__); |
366
|
|
|
} |
367
|
|
|
$this->IDVerified = $iDVerified; |
368
|
|
|
return $this; |
369
|
|
|
} |
370
|
|
|
/** |
371
|
|
|
* Get NewUser value |
372
|
|
|
* @return bool|null |
373
|
|
|
*/ |
374
|
|
|
public function getNewUser() |
375
|
|
|
{ |
376
|
|
|
return $this->NewUser; |
377
|
|
|
} |
378
|
|
|
/** |
379
|
|
|
* Set NewUser value |
380
|
|
|
* @param bool $newUser |
381
|
|
|
* @return \PayPal\StructType\UserType |
382
|
|
|
*/ |
383
|
|
|
public function setNewUser($newUser = null) |
384
|
|
|
{ |
385
|
|
|
// validation for constraint: boolean |
386
|
|
|
if (!is_null($newUser) && !is_bool($newUser)) { |
|
|
|
|
387
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($newUser, true), gettype($newUser)), __LINE__); |
388
|
|
|
} |
389
|
|
|
$this->NewUser = $newUser; |
390
|
|
|
return $this; |
391
|
|
|
} |
392
|
|
|
/** |
393
|
|
|
* Get RegistrationAddress value |
394
|
|
|
* @return \PayPal\StructType\AddressType|null |
395
|
|
|
*/ |
396
|
|
|
public function getRegistrationAddress() |
397
|
|
|
{ |
398
|
|
|
return $this->RegistrationAddress; |
399
|
|
|
} |
400
|
|
|
/** |
401
|
|
|
* Set RegistrationAddress value |
402
|
|
|
* @param \PayPal\StructType\AddressType $registrationAddress |
403
|
|
|
* @return \PayPal\StructType\UserType |
404
|
|
|
*/ |
405
|
|
|
public function setRegistrationAddress(\PayPal\StructType\AddressType $registrationAddress = null) |
406
|
|
|
{ |
407
|
|
|
$this->RegistrationAddress = $registrationAddress; |
408
|
|
|
return $this; |
409
|
|
|
} |
410
|
|
|
/** |
411
|
|
|
* Get RegistrationDate value |
412
|
|
|
* @return string|null |
413
|
|
|
*/ |
414
|
|
|
public function getRegistrationDate() |
415
|
|
|
{ |
416
|
|
|
return $this->RegistrationDate; |
417
|
|
|
} |
418
|
|
|
/** |
419
|
|
|
* Set RegistrationDate value |
420
|
|
|
* @param string $registrationDate |
421
|
|
|
* @return \PayPal\StructType\UserType |
422
|
|
|
*/ |
423
|
|
|
public function setRegistrationDate($registrationDate = null) |
424
|
|
|
{ |
425
|
|
|
// validation for constraint: string |
426
|
|
|
if (!is_null($registrationDate) && !is_string($registrationDate)) { |
|
|
|
|
427
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($registrationDate, true), gettype($registrationDate)), __LINE__); |
428
|
|
|
} |
429
|
|
|
$this->RegistrationDate = $registrationDate; |
430
|
|
|
return $this; |
431
|
|
|
} |
432
|
|
|
/** |
433
|
|
|
* Get Site value |
434
|
|
|
* @return string|null |
435
|
|
|
*/ |
436
|
|
|
public function getSite() |
437
|
|
|
{ |
438
|
|
|
return $this->Site; |
439
|
|
|
} |
440
|
|
|
/** |
441
|
|
|
* Set Site value |
442
|
|
|
* @uses \PayPal\EnumType\SiteCodeType::valueIsValid() |
443
|
|
|
* @uses \PayPal\EnumType\SiteCodeType::getValidValues() |
444
|
|
|
* @throws \InvalidArgumentException |
445
|
|
|
* @param string $site |
446
|
|
|
* @return \PayPal\StructType\UserType |
447
|
|
|
*/ |
448
|
|
|
public function setSite($site = null) |
449
|
|
|
{ |
450
|
|
|
// validation for constraint: enumeration |
451
|
|
|
if (!\PayPal\EnumType\SiteCodeType::valueIsValid($site)) { |
452
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \PayPal\EnumType\SiteCodeType', is_array($site) ? implode(', ', $site) : var_export($site, true), implode(', ', \PayPal\EnumType\SiteCodeType::getValidValues())), __LINE__); |
|
|
|
|
453
|
|
|
} |
454
|
|
|
$this->Site = $site; |
455
|
|
|
return $this; |
456
|
|
|
} |
457
|
|
|
/** |
458
|
|
|
* Get Status value |
459
|
|
|
* @return string|null |
460
|
|
|
*/ |
461
|
|
|
public function getStatus() |
462
|
|
|
{ |
463
|
|
|
return $this->Status; |
464
|
|
|
} |
465
|
|
|
/** |
466
|
|
|
* Set Status value |
467
|
|
|
* @uses \PayPal\EnumType\UserStatusCodeType::valueIsValid() |
468
|
|
|
* @uses \PayPal\EnumType\UserStatusCodeType::getValidValues() |
469
|
|
|
* @throws \InvalidArgumentException |
470
|
|
|
* @param string $status |
471
|
|
|
* @return \PayPal\StructType\UserType |
472
|
|
|
*/ |
473
|
|
|
public function setStatus($status = null) |
474
|
|
|
{ |
475
|
|
|
// validation for constraint: enumeration |
476
|
|
|
if (!\PayPal\EnumType\UserStatusCodeType::valueIsValid($status)) { |
477
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \PayPal\EnumType\UserStatusCodeType', is_array($status) ? implode(', ', $status) : var_export($status, true), implode(', ', \PayPal\EnumType\UserStatusCodeType::getValidValues())), __LINE__); |
|
|
|
|
478
|
|
|
} |
479
|
|
|
$this->Status = $status; |
480
|
|
|
return $this; |
481
|
|
|
} |
482
|
|
|
/** |
483
|
|
|
* Get UserID value |
484
|
|
|
* @return string|null |
485
|
|
|
*/ |
486
|
|
|
public function getUserID() |
487
|
|
|
{ |
488
|
|
|
return $this->UserID; |
489
|
|
|
} |
490
|
|
|
/** |
491
|
|
|
* Set UserID value |
492
|
|
|
* @param string $userID |
493
|
|
|
* @return \PayPal\StructType\UserType |
494
|
|
|
*/ |
495
|
|
|
public function setUserID($userID = null) |
496
|
|
|
{ |
497
|
|
|
// validation for constraint: string |
498
|
|
|
if (!is_null($userID) && !is_string($userID)) { |
|
|
|
|
499
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($userID, true), gettype($userID)), __LINE__); |
500
|
|
|
} |
501
|
|
|
// validation for constraint: maxLength(127) |
502
|
|
|
if (!is_null($userID) && mb_strlen($userID) > 127) { |
503
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid length of %s, the number of characters/octets contained by the literal must be less than or equal to 127', mb_strlen($userID)), __LINE__); |
504
|
|
|
} |
505
|
|
|
$this->UserID = $userID; |
506
|
|
|
return $this; |
507
|
|
|
} |
508
|
|
|
/** |
509
|
|
|
* Get UserIDChanged value |
510
|
|
|
* @return bool|null |
511
|
|
|
*/ |
512
|
|
|
public function getUserIDChanged() |
513
|
|
|
{ |
514
|
|
|
return $this->UserIDChanged; |
515
|
|
|
} |
516
|
|
|
/** |
517
|
|
|
* Set UserIDChanged value |
518
|
|
|
* @param bool $userIDChanged |
519
|
|
|
* @return \PayPal\StructType\UserType |
520
|
|
|
*/ |
521
|
|
|
public function setUserIDChanged($userIDChanged = null) |
522
|
|
|
{ |
523
|
|
|
// validation for constraint: boolean |
524
|
|
|
if (!is_null($userIDChanged) && !is_bool($userIDChanged)) { |
|
|
|
|
525
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a bool, %s given', var_export($userIDChanged, true), gettype($userIDChanged)), __LINE__); |
526
|
|
|
} |
527
|
|
|
$this->UserIDChanged = $userIDChanged; |
528
|
|
|
return $this; |
529
|
|
|
} |
530
|
|
|
/** |
531
|
|
|
* Get UserIDLastChanged value |
532
|
|
|
* @return string|null |
533
|
|
|
*/ |
534
|
|
|
public function getUserIDLastChanged() |
535
|
|
|
{ |
536
|
|
|
return $this->UserIDLastChanged; |
537
|
|
|
} |
538
|
|
|
/** |
539
|
|
|
* Set UserIDLastChanged value |
540
|
|
|
* @param string $userIDLastChanged |
541
|
|
|
* @return \PayPal\StructType\UserType |
542
|
|
|
*/ |
543
|
|
|
public function setUserIDLastChanged($userIDLastChanged = null) |
544
|
|
|
{ |
545
|
|
|
// validation for constraint: string |
546
|
|
|
if (!is_null($userIDLastChanged) && !is_string($userIDLastChanged)) { |
|
|
|
|
547
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($userIDLastChanged, true), gettype($userIDLastChanged)), __LINE__); |
548
|
|
|
} |
549
|
|
|
$this->UserIDLastChanged = $userIDLastChanged; |
550
|
|
|
return $this; |
551
|
|
|
} |
552
|
|
|
/** |
553
|
|
|
* Get VATStatus value |
554
|
|
|
* @return string|null |
555
|
|
|
*/ |
556
|
|
|
public function getVATStatus() |
557
|
|
|
{ |
558
|
|
|
return $this->VATStatus; |
559
|
|
|
} |
560
|
|
|
/** |
561
|
|
|
* Set VATStatus value |
562
|
|
|
* @uses \PayPal\EnumType\VATStatusCodeType::valueIsValid() |
563
|
|
|
* @uses \PayPal\EnumType\VATStatusCodeType::getValidValues() |
564
|
|
|
* @throws \InvalidArgumentException |
565
|
|
|
* @param string $vATStatus |
566
|
|
|
* @return \PayPal\StructType\UserType |
567
|
|
|
*/ |
568
|
|
|
public function setVATStatus($vATStatus = null) |
569
|
|
|
{ |
570
|
|
|
// validation for constraint: enumeration |
571
|
|
|
if (!\PayPal\EnumType\VATStatusCodeType::valueIsValid($vATStatus)) { |
572
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value(s) %s, please use one of: %s from enumeration class \PayPal\EnumType\VATStatusCodeType', is_array($vATStatus) ? implode(', ', $vATStatus) : var_export($vATStatus, true), implode(', ', \PayPal\EnumType\VATStatusCodeType::getValidValues())), __LINE__); |
|
|
|
|
573
|
|
|
} |
574
|
|
|
$this->VATStatus = $vATStatus; |
575
|
|
|
return $this; |
576
|
|
|
} |
577
|
|
|
/** |
578
|
|
|
* Get BuyerInfo value |
579
|
|
|
* @return \PayPal\StructType\BuyerType|null |
580
|
|
|
*/ |
581
|
|
|
public function getBuyerInfo() |
582
|
|
|
{ |
583
|
|
|
return $this->BuyerInfo; |
584
|
|
|
} |
585
|
|
|
/** |
586
|
|
|
* Set BuyerInfo value |
587
|
|
|
* @param \PayPal\StructType\BuyerType $buyerInfo |
588
|
|
|
* @return \PayPal\StructType\UserType |
589
|
|
|
*/ |
590
|
|
|
public function setBuyerInfo(\PayPal\StructType\BuyerType $buyerInfo = null) |
591
|
|
|
{ |
592
|
|
|
$this->BuyerInfo = $buyerInfo; |
593
|
|
|
return $this; |
594
|
|
|
} |
595
|
|
|
/** |
596
|
|
|
* Get SellerInfo value |
597
|
|
|
* @return \PayPal\StructType\SellerType|null |
598
|
|
|
*/ |
599
|
|
|
public function getSellerInfo() |
600
|
|
|
{ |
601
|
|
|
return $this->SellerInfo; |
602
|
|
|
} |
603
|
|
|
/** |
604
|
|
|
* Set SellerInfo value |
605
|
|
|
* @param \PayPal\StructType\SellerType $sellerInfo |
606
|
|
|
* @return \PayPal\StructType\UserType |
607
|
|
|
*/ |
608
|
|
|
public function setSellerInfo(\PayPal\StructType\SellerType $sellerInfo = null) |
609
|
|
|
{ |
610
|
|
|
$this->SellerInfo = $sellerInfo; |
611
|
|
|
return $this; |
612
|
|
|
} |
613
|
|
|
} |
614
|
|
|
|