1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
namespace PayPal\StructType; |
4
|
|
|
|
5
|
|
|
use \WsdlToPhp\PackageBase\AbstractStructBase; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* This class stands for SetAuthFlowParamRequestDetailsType StructType |
9
|
|
|
* @subpackage Structs |
10
|
|
|
* @author WsdlToPhp <[email protected]> |
11
|
|
|
*/ |
12
|
|
|
class SetAuthFlowParamRequestDetailsType extends AbstractStructBase |
13
|
|
|
{ |
14
|
|
|
/** |
15
|
|
|
* The ReturnURL |
16
|
|
|
* Meta information extracted from the WSDL |
17
|
|
|
* - documentation: URL to which the customer's browser is returned after choosing to login with PayPal. Required Character length and limitations: no limit. |
18
|
|
|
* @var string |
19
|
|
|
*/ |
20
|
|
|
public $ReturnURL; |
21
|
|
|
/** |
22
|
|
|
* The CancelURL |
23
|
|
|
* Meta information extracted from the WSDL |
24
|
|
|
* - documentation: URL to which the customer is returned if he does not approve the use of PayPal login. Required Character length and limitations: no limit |
25
|
|
|
* @var string |
26
|
|
|
*/ |
27
|
|
|
public $CancelURL; |
28
|
|
|
/** |
29
|
|
|
* The LogoutURL |
30
|
|
|
* Meta information extracted from the WSDL |
31
|
|
|
* - documentation: URL to which the customer's browser is returned after user logs out from PayPal. Required Character length and limitations: no limit. |
32
|
|
|
* @var string |
33
|
|
|
*/ |
34
|
|
|
public $LogoutURL; |
35
|
|
|
/** |
36
|
|
|
* The InitFlowType |
37
|
|
|
* Meta information extracted from the WSDL |
38
|
|
|
* - documentation: The type of the flow. Optional Character length and limitations: 127 single-byte alphanumeric characters |
39
|
|
|
* - minOccurs: 0 |
40
|
|
|
* @var string |
41
|
|
|
*/ |
42
|
|
|
public $InitFlowType; |
43
|
|
|
/** |
44
|
|
|
* The SkipLoginPage |
45
|
|
|
* Meta information extracted from the WSDL |
46
|
|
|
* - documentation: The used to decide SkipLogin allowed or not. Optional Character length and limitations: 127 single-byte alphanumeric characters |
47
|
|
|
* - minOccurs: 0 |
48
|
|
|
* @var string |
49
|
|
|
*/ |
50
|
|
|
public $SkipLoginPage; |
51
|
|
|
/** |
52
|
|
|
* The ServiceName1 |
53
|
|
|
* Meta information extracted from the WSDL |
54
|
|
|
* - documentation: The name of the field Merchant requires from PayPal after user's login. Optional Character length and limitations: 256 single-byte alphanumeric characters |
55
|
|
|
* - minOccurs: 0 |
56
|
|
|
* @var string |
57
|
|
|
*/ |
58
|
|
|
public $ServiceName1; |
59
|
|
|
/** |
60
|
|
|
* The ServiceDefReq1 |
61
|
|
|
* Meta information extracted from the WSDL |
62
|
|
|
* - documentation: Whether the field is required, opt-in or opt-out. Optional Character length and limitations: 127 single-byte alphanumeric characters |
63
|
|
|
* - minOccurs: 0 |
64
|
|
|
* @var string |
65
|
|
|
*/ |
66
|
|
|
public $ServiceDefReq1; |
67
|
|
|
/** |
68
|
|
|
* The ServiceName2 |
69
|
|
|
* Meta information extracted from the WSDL |
70
|
|
|
* - documentation: The name of the field Merchant requires from PayPal after user's login. Optional Character length and limitations: 256 single-byte alphanumeric characters |
71
|
|
|
* - minOccurs: 0 |
72
|
|
|
* @var string |
73
|
|
|
*/ |
74
|
|
|
public $ServiceName2; |
75
|
|
|
/** |
76
|
|
|
* The ServiceDefReq2 |
77
|
|
|
* Meta information extracted from the WSDL |
78
|
|
|
* - documentation: Whether the field is required, opt-in or opt-out. Optional Character length and limitations: 127 single-byte alphanumeric characters |
79
|
|
|
* - minOccurs: 0 |
80
|
|
|
* @var string |
81
|
|
|
*/ |
82
|
|
|
public $ServiceDefReq2; |
83
|
|
|
/** |
84
|
|
|
* The LocaleCode |
85
|
|
|
* Meta information extracted from the WSDL |
86
|
|
|
* - documentation: Locale of pages displayed by PayPal during Authentication Login. Optional Character length and limitations: Five single-byte alphabetic characters, upper- or lowercase. Allowable values: AU or en_AUDE or de_DEFR or fr_FRGB or en_GBIT |
87
|
|
|
* or it_ITJP or ja_JPUS or en_US |
88
|
|
|
* - minOccurs: 0 |
89
|
|
|
* @var string |
90
|
|
|
*/ |
91
|
|
|
public $LocaleCode; |
92
|
|
|
/** |
93
|
|
|
* The PageStyle |
94
|
|
|
* Meta information extracted from the WSDL |
95
|
|
|
* - documentation: Sets the Custom Payment Page Style for flow pages associated with this button/link. PageStyle corresponds to the HTML variable page_style for customizing flow pages. The value is the same as the Page Style Name you chose when adding |
96
|
|
|
* or editing the page style from the Profile subtab of the My Account tab of your PayPal account. Optional Character length and limitations: 30 single-byte alphabetic characters. |
97
|
|
|
* - minOccurs: 0 |
98
|
|
|
* @var string |
99
|
|
|
*/ |
100
|
|
|
public $PageStyle; |
101
|
|
|
/** |
102
|
|
|
* The cpp_header_image |
103
|
|
|
* Meta information extracted from the WSDL |
104
|
|
|
* - documentation: A URL for the image you want to appear at the top left of the flow page. The image has a maximum size of 750 pixels wide by 90 pixels high. PayPal recommends that you provide an image that is stored on a secure (https) server. |
105
|
|
|
* Optional Character length and limitations: 127 |
106
|
|
|
* - minOccurs: 0 |
107
|
|
|
* @var string |
108
|
|
|
*/ |
109
|
|
|
public $cpp_header_image; |
110
|
|
|
/** |
111
|
|
|
* The cpp_header_border_color |
112
|
|
|
* Meta information extracted from the WSDL |
113
|
|
|
* - documentation: Sets the border color around the header of the flow page. The border is a 2-pixel perimeter around the header space, which is 750 pixels wide by 90 pixels high. Optional Character length and limitations: Six character HTML |
114
|
|
|
* hexadecimal color code in ASCII |
115
|
|
|
* - minOccurs: 0 |
116
|
|
|
* @var string |
117
|
|
|
*/ |
118
|
|
|
public $cpp_header_border_color; |
119
|
|
|
/** |
120
|
|
|
* The cpp_header_back_color |
121
|
|
|
* Meta information extracted from the WSDL |
122
|
|
|
* - documentation: Sets the background color for the header of the flow page. Optional Character length and limitation: Six character HTML hexadecimal color code in ASCII |
123
|
|
|
* - minOccurs: 0 |
124
|
|
|
* @var string |
125
|
|
|
*/ |
126
|
|
|
public $cpp_header_back_color; |
127
|
|
|
/** |
128
|
|
|
* The cpp_payflow_color |
129
|
|
|
* Meta information extracted from the WSDL |
130
|
|
|
* - documentation: Sets the background color for the payment page. Optional Character length and limitation: Six character HTML hexadecimal color code in ASCII |
131
|
|
|
* - minOccurs: 0 |
132
|
|
|
* @var string |
133
|
|
|
*/ |
134
|
|
|
public $cpp_payflow_color; |
135
|
|
|
/** |
136
|
|
|
* The FirstName |
137
|
|
|
* Meta information extracted from the WSDL |
138
|
|
|
* - documentation: First Name of the user, this information is used if user chooses to signup with PayPal. Optional Character length and limitation: Six character HTML hexadecimal color code in ASCII |
139
|
|
|
* - minOccurs: 0 |
140
|
|
|
* @var string |
141
|
|
|
*/ |
142
|
|
|
public $FirstName; |
143
|
|
|
/** |
144
|
|
|
* The LastName |
145
|
|
|
* Meta information extracted from the WSDL |
146
|
|
|
* - documentation: Last Name of the user, this information is used if user chooses to signup with PayPal. Optional Character length and limitation: Six character HTML hexadecimal color code in ASCII |
147
|
|
|
* - minOccurs: 0 |
148
|
|
|
* @var string |
149
|
|
|
*/ |
150
|
|
|
public $LastName; |
151
|
|
|
/** |
152
|
|
|
* The Address |
153
|
|
|
* Meta information extracted from the WSDL |
154
|
|
|
* - documentation: User address, this information is used when user chooses to signup for PayPal. Optional If you include a shipping address and set the AddressOverride element on the request, PayPal returns this same address in |
155
|
|
|
* GetExpressCheckoutDetailsResponse. |
156
|
|
|
* - minOccurs: 0 |
157
|
|
|
* @var \PayPal\StructType\AddressType |
158
|
|
|
*/ |
159
|
|
|
public $Address; |
160
|
|
|
/** |
161
|
|
|
* Constructor method for SetAuthFlowParamRequestDetailsType |
162
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setReturnURL() |
163
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setCancelURL() |
164
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setLogoutURL() |
165
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setInitFlowType() |
166
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setSkipLoginPage() |
167
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setServiceName1() |
168
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setServiceDefReq1() |
169
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setServiceName2() |
170
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setServiceDefReq2() |
171
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setLocaleCode() |
172
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setPageStyle() |
173
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setCpp_header_image() |
174
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setCpp_header_border_color() |
175
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setCpp_header_back_color() |
176
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setCpp_payflow_color() |
177
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setFirstName() |
178
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setLastName() |
179
|
|
|
* @uses SetAuthFlowParamRequestDetailsType::setAddress() |
180
|
|
|
* @param string $returnURL |
181
|
|
|
* @param string $cancelURL |
182
|
|
|
* @param string $logoutURL |
183
|
|
|
* @param string $initFlowType |
184
|
|
|
* @param string $skipLoginPage |
185
|
|
|
* @param string $serviceName1 |
186
|
|
|
* @param string $serviceDefReq1 |
187
|
|
|
* @param string $serviceName2 |
188
|
|
|
* @param string $serviceDefReq2 |
189
|
|
|
* @param string $localeCode |
190
|
|
|
* @param string $pageStyle |
191
|
|
|
* @param string $cpp_header_image |
192
|
|
|
* @param string $cpp_header_border_color |
193
|
|
|
* @param string $cpp_header_back_color |
194
|
|
|
* @param string $cpp_payflow_color |
195
|
|
|
* @param string $firstName |
196
|
|
|
* @param string $lastName |
197
|
|
|
* @param \PayPal\StructType\AddressType $address |
198
|
|
|
*/ |
199
|
|
|
public function __construct($returnURL = null, $cancelURL = null, $logoutURL = null, $initFlowType = null, $skipLoginPage = null, $serviceName1 = null, $serviceDefReq1 = null, $serviceName2 = null, $serviceDefReq2 = null, $localeCode = null, $pageStyle = null, $cpp_header_image = null, $cpp_header_border_color = null, $cpp_header_back_color = null, $cpp_payflow_color = null, $firstName = null, $lastName = null, \PayPal\StructType\AddressType $address = null) |
200
|
|
|
{ |
201
|
|
|
$this |
202
|
|
|
->setReturnURL($returnURL) |
203
|
|
|
->setCancelURL($cancelURL) |
204
|
|
|
->setLogoutURL($logoutURL) |
205
|
|
|
->setInitFlowType($initFlowType) |
206
|
|
|
->setSkipLoginPage($skipLoginPage) |
207
|
|
|
->setServiceName1($serviceName1) |
208
|
|
|
->setServiceDefReq1($serviceDefReq1) |
209
|
|
|
->setServiceName2($serviceName2) |
210
|
|
|
->setServiceDefReq2($serviceDefReq2) |
211
|
|
|
->setLocaleCode($localeCode) |
212
|
|
|
->setPageStyle($pageStyle) |
213
|
|
|
->setCpp_header_image($cpp_header_image) |
214
|
|
|
->setCpp_header_border_color($cpp_header_border_color) |
215
|
|
|
->setCpp_header_back_color($cpp_header_back_color) |
216
|
|
|
->setCpp_payflow_color($cpp_payflow_color) |
217
|
|
|
->setFirstName($firstName) |
218
|
|
|
->setLastName($lastName) |
219
|
|
|
->setAddress($address); |
220
|
|
|
} |
221
|
|
|
/** |
222
|
|
|
* Get ReturnURL value |
223
|
|
|
* @return string|null |
224
|
|
|
*/ |
225
|
|
|
public function getReturnURL() |
226
|
|
|
{ |
227
|
|
|
return $this->ReturnURL; |
228
|
|
|
} |
229
|
|
|
/** |
230
|
|
|
* Set ReturnURL value |
231
|
|
|
* @param string $returnURL |
232
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
233
|
|
|
*/ |
234
|
|
|
public function setReturnURL($returnURL = null) |
235
|
|
|
{ |
236
|
|
|
// validation for constraint: string |
237
|
|
|
if (!is_null($returnURL) && !is_string($returnURL)) { |
|
|
|
|
238
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($returnURL, true), gettype($returnURL)), __LINE__); |
239
|
|
|
} |
240
|
|
|
$this->ReturnURL = $returnURL; |
241
|
|
|
return $this; |
242
|
|
|
} |
243
|
|
|
/** |
244
|
|
|
* Get CancelURL value |
245
|
|
|
* @return string|null |
246
|
|
|
*/ |
247
|
|
|
public function getCancelURL() |
248
|
|
|
{ |
249
|
|
|
return $this->CancelURL; |
250
|
|
|
} |
251
|
|
|
/** |
252
|
|
|
* Set CancelURL value |
253
|
|
|
* @param string $cancelURL |
254
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
255
|
|
|
*/ |
256
|
|
|
public function setCancelURL($cancelURL = null) |
257
|
|
|
{ |
258
|
|
|
// validation for constraint: string |
259
|
|
|
if (!is_null($cancelURL) && !is_string($cancelURL)) { |
|
|
|
|
260
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cancelURL, true), gettype($cancelURL)), __LINE__); |
261
|
|
|
} |
262
|
|
|
$this->CancelURL = $cancelURL; |
263
|
|
|
return $this; |
264
|
|
|
} |
265
|
|
|
/** |
266
|
|
|
* Get LogoutURL value |
267
|
|
|
* @return string|null |
268
|
|
|
*/ |
269
|
|
|
public function getLogoutURL() |
270
|
|
|
{ |
271
|
|
|
return $this->LogoutURL; |
272
|
|
|
} |
273
|
|
|
/** |
274
|
|
|
* Set LogoutURL value |
275
|
|
|
* @param string $logoutURL |
276
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
277
|
|
|
*/ |
278
|
|
|
public function setLogoutURL($logoutURL = null) |
279
|
|
|
{ |
280
|
|
|
// validation for constraint: string |
281
|
|
|
if (!is_null($logoutURL) && !is_string($logoutURL)) { |
|
|
|
|
282
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($logoutURL, true), gettype($logoutURL)), __LINE__); |
283
|
|
|
} |
284
|
|
|
$this->LogoutURL = $logoutURL; |
285
|
|
|
return $this; |
286
|
|
|
} |
287
|
|
|
/** |
288
|
|
|
* Get InitFlowType value |
289
|
|
|
* @return string|null |
290
|
|
|
*/ |
291
|
|
|
public function getInitFlowType() |
292
|
|
|
{ |
293
|
|
|
return $this->InitFlowType; |
294
|
|
|
} |
295
|
|
|
/** |
296
|
|
|
* Set InitFlowType value |
297
|
|
|
* @param string $initFlowType |
298
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
299
|
|
|
*/ |
300
|
|
|
public function setInitFlowType($initFlowType = null) |
301
|
|
|
{ |
302
|
|
|
// validation for constraint: string |
303
|
|
|
if (!is_null($initFlowType) && !is_string($initFlowType)) { |
|
|
|
|
304
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($initFlowType, true), gettype($initFlowType)), __LINE__); |
305
|
|
|
} |
306
|
|
|
$this->InitFlowType = $initFlowType; |
307
|
|
|
return $this; |
308
|
|
|
} |
309
|
|
|
/** |
310
|
|
|
* Get SkipLoginPage value |
311
|
|
|
* @return string|null |
312
|
|
|
*/ |
313
|
|
|
public function getSkipLoginPage() |
314
|
|
|
{ |
315
|
|
|
return $this->SkipLoginPage; |
316
|
|
|
} |
317
|
|
|
/** |
318
|
|
|
* Set SkipLoginPage value |
319
|
|
|
* @param string $skipLoginPage |
320
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
321
|
|
|
*/ |
322
|
|
|
public function setSkipLoginPage($skipLoginPage = null) |
323
|
|
|
{ |
324
|
|
|
// validation for constraint: string |
325
|
|
|
if (!is_null($skipLoginPage) && !is_string($skipLoginPage)) { |
|
|
|
|
326
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($skipLoginPage, true), gettype($skipLoginPage)), __LINE__); |
327
|
|
|
} |
328
|
|
|
$this->SkipLoginPage = $skipLoginPage; |
329
|
|
|
return $this; |
330
|
|
|
} |
331
|
|
|
/** |
332
|
|
|
* Get ServiceName1 value |
333
|
|
|
* @return string|null |
334
|
|
|
*/ |
335
|
|
|
public function getServiceName1() |
336
|
|
|
{ |
337
|
|
|
return $this->ServiceName1; |
338
|
|
|
} |
339
|
|
|
/** |
340
|
|
|
* Set ServiceName1 value |
341
|
|
|
* @param string $serviceName1 |
342
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
343
|
|
|
*/ |
344
|
|
|
public function setServiceName1($serviceName1 = null) |
345
|
|
|
{ |
346
|
|
|
// validation for constraint: string |
347
|
|
|
if (!is_null($serviceName1) && !is_string($serviceName1)) { |
|
|
|
|
348
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($serviceName1, true), gettype($serviceName1)), __LINE__); |
349
|
|
|
} |
350
|
|
|
$this->ServiceName1 = $serviceName1; |
351
|
|
|
return $this; |
352
|
|
|
} |
353
|
|
|
/** |
354
|
|
|
* Get ServiceDefReq1 value |
355
|
|
|
* @return string|null |
356
|
|
|
*/ |
357
|
|
|
public function getServiceDefReq1() |
358
|
|
|
{ |
359
|
|
|
return $this->ServiceDefReq1; |
360
|
|
|
} |
361
|
|
|
/** |
362
|
|
|
* Set ServiceDefReq1 value |
363
|
|
|
* @param string $serviceDefReq1 |
364
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
365
|
|
|
*/ |
366
|
|
|
public function setServiceDefReq1($serviceDefReq1 = null) |
367
|
|
|
{ |
368
|
|
|
// validation for constraint: string |
369
|
|
|
if (!is_null($serviceDefReq1) && !is_string($serviceDefReq1)) { |
|
|
|
|
370
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($serviceDefReq1, true), gettype($serviceDefReq1)), __LINE__); |
371
|
|
|
} |
372
|
|
|
$this->ServiceDefReq1 = $serviceDefReq1; |
373
|
|
|
return $this; |
374
|
|
|
} |
375
|
|
|
/** |
376
|
|
|
* Get ServiceName2 value |
377
|
|
|
* @return string|null |
378
|
|
|
*/ |
379
|
|
|
public function getServiceName2() |
380
|
|
|
{ |
381
|
|
|
return $this->ServiceName2; |
382
|
|
|
} |
383
|
|
|
/** |
384
|
|
|
* Set ServiceName2 value |
385
|
|
|
* @param string $serviceName2 |
386
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
387
|
|
|
*/ |
388
|
|
|
public function setServiceName2($serviceName2 = null) |
389
|
|
|
{ |
390
|
|
|
// validation for constraint: string |
391
|
|
|
if (!is_null($serviceName2) && !is_string($serviceName2)) { |
|
|
|
|
392
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($serviceName2, true), gettype($serviceName2)), __LINE__); |
393
|
|
|
} |
394
|
|
|
$this->ServiceName2 = $serviceName2; |
395
|
|
|
return $this; |
396
|
|
|
} |
397
|
|
|
/** |
398
|
|
|
* Get ServiceDefReq2 value |
399
|
|
|
* @return string|null |
400
|
|
|
*/ |
401
|
|
|
public function getServiceDefReq2() |
402
|
|
|
{ |
403
|
|
|
return $this->ServiceDefReq2; |
404
|
|
|
} |
405
|
|
|
/** |
406
|
|
|
* Set ServiceDefReq2 value |
407
|
|
|
* @param string $serviceDefReq2 |
408
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
409
|
|
|
*/ |
410
|
|
|
public function setServiceDefReq2($serviceDefReq2 = null) |
411
|
|
|
{ |
412
|
|
|
// validation for constraint: string |
413
|
|
|
if (!is_null($serviceDefReq2) && !is_string($serviceDefReq2)) { |
|
|
|
|
414
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($serviceDefReq2, true), gettype($serviceDefReq2)), __LINE__); |
415
|
|
|
} |
416
|
|
|
$this->ServiceDefReq2 = $serviceDefReq2; |
417
|
|
|
return $this; |
418
|
|
|
} |
419
|
|
|
/** |
420
|
|
|
* Get LocaleCode value |
421
|
|
|
* @return string|null |
422
|
|
|
*/ |
423
|
|
|
public function getLocaleCode() |
424
|
|
|
{ |
425
|
|
|
return $this->LocaleCode; |
426
|
|
|
} |
427
|
|
|
/** |
428
|
|
|
* Set LocaleCode value |
429
|
|
|
* @param string $localeCode |
430
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
431
|
|
|
*/ |
432
|
|
|
public function setLocaleCode($localeCode = null) |
433
|
|
|
{ |
434
|
|
|
// validation for constraint: string |
435
|
|
|
if (!is_null($localeCode) && !is_string($localeCode)) { |
|
|
|
|
436
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($localeCode, true), gettype($localeCode)), __LINE__); |
437
|
|
|
} |
438
|
|
|
$this->LocaleCode = $localeCode; |
439
|
|
|
return $this; |
440
|
|
|
} |
441
|
|
|
/** |
442
|
|
|
* Get PageStyle value |
443
|
|
|
* @return string|null |
444
|
|
|
*/ |
445
|
|
|
public function getPageStyle() |
446
|
|
|
{ |
447
|
|
|
return $this->PageStyle; |
448
|
|
|
} |
449
|
|
|
/** |
450
|
|
|
* Set PageStyle value |
451
|
|
|
* @param string $pageStyle |
452
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
453
|
|
|
*/ |
454
|
|
|
public function setPageStyle($pageStyle = null) |
455
|
|
|
{ |
456
|
|
|
// validation for constraint: string |
457
|
|
|
if (!is_null($pageStyle) && !is_string($pageStyle)) { |
|
|
|
|
458
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($pageStyle, true), gettype($pageStyle)), __LINE__); |
459
|
|
|
} |
460
|
|
|
$this->PageStyle = $pageStyle; |
461
|
|
|
return $this; |
462
|
|
|
} |
463
|
|
|
/** |
464
|
|
|
* Get cpp_header_image value |
465
|
|
|
* @return string|null |
466
|
|
|
*/ |
467
|
|
|
public function getCpp_header_image() |
468
|
|
|
{ |
469
|
|
|
return $this->{'cpp-header-image'}; |
470
|
|
|
} |
471
|
|
|
/** |
472
|
|
|
* Set cpp_header_image value |
473
|
|
|
* @param string $cpp_header_image |
474
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
475
|
|
|
*/ |
476
|
|
|
public function setCpp_header_image($cpp_header_image = null) |
477
|
|
|
{ |
478
|
|
|
// validation for constraint: string |
479
|
|
|
if (!is_null($cpp_header_image) && !is_string($cpp_header_image)) { |
|
|
|
|
480
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cpp_header_image, true), gettype($cpp_header_image)), __LINE__); |
481
|
|
|
} |
482
|
|
|
$this->cpp_header_image = $this->{'cpp-header-image'} = $cpp_header_image; |
483
|
|
|
return $this; |
484
|
|
|
} |
485
|
|
|
/** |
486
|
|
|
* Get cpp_header_border_color value |
487
|
|
|
* @return string|null |
488
|
|
|
*/ |
489
|
|
|
public function getCpp_header_border_color() |
490
|
|
|
{ |
491
|
|
|
return $this->{'cpp-header-border-color'}; |
492
|
|
|
} |
493
|
|
|
/** |
494
|
|
|
* Set cpp_header_border_color value |
495
|
|
|
* @param string $cpp_header_border_color |
496
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
497
|
|
|
*/ |
498
|
|
|
public function setCpp_header_border_color($cpp_header_border_color = null) |
499
|
|
|
{ |
500
|
|
|
// validation for constraint: string |
501
|
|
|
if (!is_null($cpp_header_border_color) && !is_string($cpp_header_border_color)) { |
|
|
|
|
502
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cpp_header_border_color, true), gettype($cpp_header_border_color)), __LINE__); |
503
|
|
|
} |
504
|
|
|
$this->cpp_header_border_color = $this->{'cpp-header-border-color'} = $cpp_header_border_color; |
505
|
|
|
return $this; |
506
|
|
|
} |
507
|
|
|
/** |
508
|
|
|
* Get cpp_header_back_color value |
509
|
|
|
* @return string|null |
510
|
|
|
*/ |
511
|
|
|
public function getCpp_header_back_color() |
512
|
|
|
{ |
513
|
|
|
return $this->{'cpp-header-back-color'}; |
514
|
|
|
} |
515
|
|
|
/** |
516
|
|
|
* Set cpp_header_back_color value |
517
|
|
|
* @param string $cpp_header_back_color |
518
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
519
|
|
|
*/ |
520
|
|
|
public function setCpp_header_back_color($cpp_header_back_color = null) |
521
|
|
|
{ |
522
|
|
|
// validation for constraint: string |
523
|
|
|
if (!is_null($cpp_header_back_color) && !is_string($cpp_header_back_color)) { |
|
|
|
|
524
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cpp_header_back_color, true), gettype($cpp_header_back_color)), __LINE__); |
525
|
|
|
} |
526
|
|
|
$this->cpp_header_back_color = $this->{'cpp-header-back-color'} = $cpp_header_back_color; |
527
|
|
|
return $this; |
528
|
|
|
} |
529
|
|
|
/** |
530
|
|
|
* Get cpp_payflow_color value |
531
|
|
|
* @return string|null |
532
|
|
|
*/ |
533
|
|
|
public function getCpp_payflow_color() |
534
|
|
|
{ |
535
|
|
|
return $this->{'cpp-payflow-color'}; |
536
|
|
|
} |
537
|
|
|
/** |
538
|
|
|
* Set cpp_payflow_color value |
539
|
|
|
* @param string $cpp_payflow_color |
540
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
541
|
|
|
*/ |
542
|
|
|
public function setCpp_payflow_color($cpp_payflow_color = null) |
543
|
|
|
{ |
544
|
|
|
// validation for constraint: string |
545
|
|
|
if (!is_null($cpp_payflow_color) && !is_string($cpp_payflow_color)) { |
|
|
|
|
546
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($cpp_payflow_color, true), gettype($cpp_payflow_color)), __LINE__); |
547
|
|
|
} |
548
|
|
|
$this->cpp_payflow_color = $this->{'cpp-payflow-color'} = $cpp_payflow_color; |
549
|
|
|
return $this; |
550
|
|
|
} |
551
|
|
|
/** |
552
|
|
|
* Get FirstName value |
553
|
|
|
* @return string|null |
554
|
|
|
*/ |
555
|
|
|
public function getFirstName() |
556
|
|
|
{ |
557
|
|
|
return $this->FirstName; |
558
|
|
|
} |
559
|
|
|
/** |
560
|
|
|
* Set FirstName value |
561
|
|
|
* @param string $firstName |
562
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
563
|
|
|
*/ |
564
|
|
|
public function setFirstName($firstName = null) |
565
|
|
|
{ |
566
|
|
|
// validation for constraint: string |
567
|
|
|
if (!is_null($firstName) && !is_string($firstName)) { |
|
|
|
|
568
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($firstName, true), gettype($firstName)), __LINE__); |
569
|
|
|
} |
570
|
|
|
$this->FirstName = $firstName; |
571
|
|
|
return $this; |
572
|
|
|
} |
573
|
|
|
/** |
574
|
|
|
* Get LastName value |
575
|
|
|
* @return string|null |
576
|
|
|
*/ |
577
|
|
|
public function getLastName() |
578
|
|
|
{ |
579
|
|
|
return $this->LastName; |
580
|
|
|
} |
581
|
|
|
/** |
582
|
|
|
* Set LastName value |
583
|
|
|
* @param string $lastName |
584
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
585
|
|
|
*/ |
586
|
|
|
public function setLastName($lastName = null) |
587
|
|
|
{ |
588
|
|
|
// validation for constraint: string |
589
|
|
|
if (!is_null($lastName) && !is_string($lastName)) { |
|
|
|
|
590
|
|
|
throw new \InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($lastName, true), gettype($lastName)), __LINE__); |
591
|
|
|
} |
592
|
|
|
$this->LastName = $lastName; |
593
|
|
|
return $this; |
594
|
|
|
} |
595
|
|
|
/** |
596
|
|
|
* Get Address value |
597
|
|
|
* @return \PayPal\StructType\AddressType|null |
598
|
|
|
*/ |
599
|
|
|
public function getAddress() |
600
|
|
|
{ |
601
|
|
|
return $this->Address; |
602
|
|
|
} |
603
|
|
|
/** |
604
|
|
|
* Set Address value |
605
|
|
|
* @param \PayPal\StructType\AddressType $address |
606
|
|
|
* @return \PayPal\StructType\SetAuthFlowParamRequestDetailsType |
607
|
|
|
*/ |
608
|
|
|
public function setAddress(\PayPal\StructType\AddressType $address = null) |
609
|
|
|
{ |
610
|
|
|
$this->Address = $address; |
611
|
|
|
return $this; |
612
|
|
|
} |
613
|
|
|
} |
614
|
|
|
|