[f9c482b] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\Walletobjects;
|
---|
| 19 |
|
---|
| 20 | class GenericObject extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'valueAddedModuleData';
|
---|
| 23 | protected $appLinkDataType = AppLinkData::class;
|
---|
| 24 | protected $appLinkDataDataType = '';
|
---|
| 25 | protected $barcodeType = Barcode::class;
|
---|
| 26 | protected $barcodeDataType = '';
|
---|
| 27 | protected $cardTitleType = LocalizedString::class;
|
---|
| 28 | protected $cardTitleDataType = '';
|
---|
| 29 | /**
|
---|
| 30 | * @var string
|
---|
| 31 | */
|
---|
| 32 | public $classId;
|
---|
| 33 | /**
|
---|
| 34 | * @var string
|
---|
| 35 | */
|
---|
| 36 | public $genericType;
|
---|
| 37 | protected $groupingInfoType = GroupingInfo::class;
|
---|
| 38 | protected $groupingInfoDataType = '';
|
---|
| 39 | /**
|
---|
| 40 | * @var bool
|
---|
| 41 | */
|
---|
| 42 | public $hasUsers;
|
---|
| 43 | protected $headerType = LocalizedString::class;
|
---|
| 44 | protected $headerDataType = '';
|
---|
| 45 | protected $heroImageType = Image::class;
|
---|
| 46 | protected $heroImageDataType = '';
|
---|
| 47 | /**
|
---|
| 48 | * @var string
|
---|
| 49 | */
|
---|
| 50 | public $hexBackgroundColor;
|
---|
| 51 | /**
|
---|
| 52 | * @var string
|
---|
| 53 | */
|
---|
| 54 | public $id;
|
---|
| 55 | protected $imageModulesDataType = ImageModuleData::class;
|
---|
| 56 | protected $imageModulesDataDataType = 'array';
|
---|
| 57 | /**
|
---|
| 58 | * @var string[]
|
---|
| 59 | */
|
---|
| 60 | public $linkedObjectIds;
|
---|
| 61 | protected $linksModuleDataType = LinksModuleData::class;
|
---|
| 62 | protected $linksModuleDataDataType = '';
|
---|
| 63 | protected $logoType = Image::class;
|
---|
| 64 | protected $logoDataType = '';
|
---|
| 65 | protected $merchantLocationsType = MerchantLocation::class;
|
---|
| 66 | protected $merchantLocationsDataType = 'array';
|
---|
| 67 | protected $messagesType = Message::class;
|
---|
| 68 | protected $messagesDataType = 'array';
|
---|
| 69 | protected $notificationsType = Notifications::class;
|
---|
| 70 | protected $notificationsDataType = '';
|
---|
| 71 | protected $passConstraintsType = PassConstraints::class;
|
---|
| 72 | protected $passConstraintsDataType = '';
|
---|
| 73 | protected $rotatingBarcodeType = RotatingBarcode::class;
|
---|
| 74 | protected $rotatingBarcodeDataType = '';
|
---|
| 75 | protected $saveRestrictionsType = SaveRestrictions::class;
|
---|
| 76 | protected $saveRestrictionsDataType = '';
|
---|
| 77 | /**
|
---|
| 78 | * @var string
|
---|
| 79 | */
|
---|
| 80 | public $smartTapRedemptionValue;
|
---|
| 81 | /**
|
---|
| 82 | * @var string
|
---|
| 83 | */
|
---|
| 84 | public $state;
|
---|
| 85 | protected $subheaderType = LocalizedString::class;
|
---|
| 86 | protected $subheaderDataType = '';
|
---|
| 87 | protected $textModulesDataType = TextModuleData::class;
|
---|
| 88 | protected $textModulesDataDataType = 'array';
|
---|
| 89 | protected $validTimeIntervalType = TimeInterval::class;
|
---|
| 90 | protected $validTimeIntervalDataType = '';
|
---|
| 91 | protected $valueAddedModuleDataType = ValueAddedModuleData::class;
|
---|
| 92 | protected $valueAddedModuleDataDataType = 'array';
|
---|
| 93 | protected $wideLogoType = Image::class;
|
---|
| 94 | protected $wideLogoDataType = '';
|
---|
| 95 |
|
---|
| 96 | /**
|
---|
| 97 | * @param AppLinkData
|
---|
| 98 | */
|
---|
| 99 | public function setAppLinkData(AppLinkData $appLinkData)
|
---|
| 100 | {
|
---|
| 101 | $this->appLinkData = $appLinkData;
|
---|
| 102 | }
|
---|
| 103 | /**
|
---|
| 104 | * @return AppLinkData
|
---|
| 105 | */
|
---|
| 106 | public function getAppLinkData()
|
---|
| 107 | {
|
---|
| 108 | return $this->appLinkData;
|
---|
| 109 | }
|
---|
| 110 | /**
|
---|
| 111 | * @param Barcode
|
---|
| 112 | */
|
---|
| 113 | public function setBarcode(Barcode $barcode)
|
---|
| 114 | {
|
---|
| 115 | $this->barcode = $barcode;
|
---|
| 116 | }
|
---|
| 117 | /**
|
---|
| 118 | * @return Barcode
|
---|
| 119 | */
|
---|
| 120 | public function getBarcode()
|
---|
| 121 | {
|
---|
| 122 | return $this->barcode;
|
---|
| 123 | }
|
---|
| 124 | /**
|
---|
| 125 | * @param LocalizedString
|
---|
| 126 | */
|
---|
| 127 | public function setCardTitle(LocalizedString $cardTitle)
|
---|
| 128 | {
|
---|
| 129 | $this->cardTitle = $cardTitle;
|
---|
| 130 | }
|
---|
| 131 | /**
|
---|
| 132 | * @return LocalizedString
|
---|
| 133 | */
|
---|
| 134 | public function getCardTitle()
|
---|
| 135 | {
|
---|
| 136 | return $this->cardTitle;
|
---|
| 137 | }
|
---|
| 138 | /**
|
---|
| 139 | * @param string
|
---|
| 140 | */
|
---|
| 141 | public function setClassId($classId)
|
---|
| 142 | {
|
---|
| 143 | $this->classId = $classId;
|
---|
| 144 | }
|
---|
| 145 | /**
|
---|
| 146 | * @return string
|
---|
| 147 | */
|
---|
| 148 | public function getClassId()
|
---|
| 149 | {
|
---|
| 150 | return $this->classId;
|
---|
| 151 | }
|
---|
| 152 | /**
|
---|
| 153 | * @param string
|
---|
| 154 | */
|
---|
| 155 | public function setGenericType($genericType)
|
---|
| 156 | {
|
---|
| 157 | $this->genericType = $genericType;
|
---|
| 158 | }
|
---|
| 159 | /**
|
---|
| 160 | * @return string
|
---|
| 161 | */
|
---|
| 162 | public function getGenericType()
|
---|
| 163 | {
|
---|
| 164 | return $this->genericType;
|
---|
| 165 | }
|
---|
| 166 | /**
|
---|
| 167 | * @param GroupingInfo
|
---|
| 168 | */
|
---|
| 169 | public function setGroupingInfo(GroupingInfo $groupingInfo)
|
---|
| 170 | {
|
---|
| 171 | $this->groupingInfo = $groupingInfo;
|
---|
| 172 | }
|
---|
| 173 | /**
|
---|
| 174 | * @return GroupingInfo
|
---|
| 175 | */
|
---|
| 176 | public function getGroupingInfo()
|
---|
| 177 | {
|
---|
| 178 | return $this->groupingInfo;
|
---|
| 179 | }
|
---|
| 180 | /**
|
---|
| 181 | * @param bool
|
---|
| 182 | */
|
---|
| 183 | public function setHasUsers($hasUsers)
|
---|
| 184 | {
|
---|
| 185 | $this->hasUsers = $hasUsers;
|
---|
| 186 | }
|
---|
| 187 | /**
|
---|
| 188 | * @return bool
|
---|
| 189 | */
|
---|
| 190 | public function getHasUsers()
|
---|
| 191 | {
|
---|
| 192 | return $this->hasUsers;
|
---|
| 193 | }
|
---|
| 194 | /**
|
---|
| 195 | * @param LocalizedString
|
---|
| 196 | */
|
---|
| 197 | public function setHeader(LocalizedString $header)
|
---|
| 198 | {
|
---|
| 199 | $this->header = $header;
|
---|
| 200 | }
|
---|
| 201 | /**
|
---|
| 202 | * @return LocalizedString
|
---|
| 203 | */
|
---|
| 204 | public function getHeader()
|
---|
| 205 | {
|
---|
| 206 | return $this->header;
|
---|
| 207 | }
|
---|
| 208 | /**
|
---|
| 209 | * @param Image
|
---|
| 210 | */
|
---|
| 211 | public function setHeroImage(Image $heroImage)
|
---|
| 212 | {
|
---|
| 213 | $this->heroImage = $heroImage;
|
---|
| 214 | }
|
---|
| 215 | /**
|
---|
| 216 | * @return Image
|
---|
| 217 | */
|
---|
| 218 | public function getHeroImage()
|
---|
| 219 | {
|
---|
| 220 | return $this->heroImage;
|
---|
| 221 | }
|
---|
| 222 | /**
|
---|
| 223 | * @param string
|
---|
| 224 | */
|
---|
| 225 | public function setHexBackgroundColor($hexBackgroundColor)
|
---|
| 226 | {
|
---|
| 227 | $this->hexBackgroundColor = $hexBackgroundColor;
|
---|
| 228 | }
|
---|
| 229 | /**
|
---|
| 230 | * @return string
|
---|
| 231 | */
|
---|
| 232 | public function getHexBackgroundColor()
|
---|
| 233 | {
|
---|
| 234 | return $this->hexBackgroundColor;
|
---|
| 235 | }
|
---|
| 236 | /**
|
---|
| 237 | * @param string
|
---|
| 238 | */
|
---|
| 239 | public function setId($id)
|
---|
| 240 | {
|
---|
| 241 | $this->id = $id;
|
---|
| 242 | }
|
---|
| 243 | /**
|
---|
| 244 | * @return string
|
---|
| 245 | */
|
---|
| 246 | public function getId()
|
---|
| 247 | {
|
---|
| 248 | return $this->id;
|
---|
| 249 | }
|
---|
| 250 | /**
|
---|
| 251 | * @param ImageModuleData[]
|
---|
| 252 | */
|
---|
| 253 | public function setImageModulesData($imageModulesData)
|
---|
| 254 | {
|
---|
| 255 | $this->imageModulesData = $imageModulesData;
|
---|
| 256 | }
|
---|
| 257 | /**
|
---|
| 258 | * @return ImageModuleData[]
|
---|
| 259 | */
|
---|
| 260 | public function getImageModulesData()
|
---|
| 261 | {
|
---|
| 262 | return $this->imageModulesData;
|
---|
| 263 | }
|
---|
| 264 | /**
|
---|
| 265 | * @param string[]
|
---|
| 266 | */
|
---|
| 267 | public function setLinkedObjectIds($linkedObjectIds)
|
---|
| 268 | {
|
---|
| 269 | $this->linkedObjectIds = $linkedObjectIds;
|
---|
| 270 | }
|
---|
| 271 | /**
|
---|
| 272 | * @return string[]
|
---|
| 273 | */
|
---|
| 274 | public function getLinkedObjectIds()
|
---|
| 275 | {
|
---|
| 276 | return $this->linkedObjectIds;
|
---|
| 277 | }
|
---|
| 278 | /**
|
---|
| 279 | * @param LinksModuleData
|
---|
| 280 | */
|
---|
| 281 | public function setLinksModuleData(LinksModuleData $linksModuleData)
|
---|
| 282 | {
|
---|
| 283 | $this->linksModuleData = $linksModuleData;
|
---|
| 284 | }
|
---|
| 285 | /**
|
---|
| 286 | * @return LinksModuleData
|
---|
| 287 | */
|
---|
| 288 | public function getLinksModuleData()
|
---|
| 289 | {
|
---|
| 290 | return $this->linksModuleData;
|
---|
| 291 | }
|
---|
| 292 | /**
|
---|
| 293 | * @param Image
|
---|
| 294 | */
|
---|
| 295 | public function setLogo(Image $logo)
|
---|
| 296 | {
|
---|
| 297 | $this->logo = $logo;
|
---|
| 298 | }
|
---|
| 299 | /**
|
---|
| 300 | * @return Image
|
---|
| 301 | */
|
---|
| 302 | public function getLogo()
|
---|
| 303 | {
|
---|
| 304 | return $this->logo;
|
---|
| 305 | }
|
---|
| 306 | /**
|
---|
| 307 | * @param MerchantLocation[]
|
---|
| 308 | */
|
---|
| 309 | public function setMerchantLocations($merchantLocations)
|
---|
| 310 | {
|
---|
| 311 | $this->merchantLocations = $merchantLocations;
|
---|
| 312 | }
|
---|
| 313 | /**
|
---|
| 314 | * @return MerchantLocation[]
|
---|
| 315 | */
|
---|
| 316 | public function getMerchantLocations()
|
---|
| 317 | {
|
---|
| 318 | return $this->merchantLocations;
|
---|
| 319 | }
|
---|
| 320 | /**
|
---|
| 321 | * @param Message[]
|
---|
| 322 | */
|
---|
| 323 | public function setMessages($messages)
|
---|
| 324 | {
|
---|
| 325 | $this->messages = $messages;
|
---|
| 326 | }
|
---|
| 327 | /**
|
---|
| 328 | * @return Message[]
|
---|
| 329 | */
|
---|
| 330 | public function getMessages()
|
---|
| 331 | {
|
---|
| 332 | return $this->messages;
|
---|
| 333 | }
|
---|
| 334 | /**
|
---|
| 335 | * @param Notifications
|
---|
| 336 | */
|
---|
| 337 | public function setNotifications(Notifications $notifications)
|
---|
| 338 | {
|
---|
| 339 | $this->notifications = $notifications;
|
---|
| 340 | }
|
---|
| 341 | /**
|
---|
| 342 | * @return Notifications
|
---|
| 343 | */
|
---|
| 344 | public function getNotifications()
|
---|
| 345 | {
|
---|
| 346 | return $this->notifications;
|
---|
| 347 | }
|
---|
| 348 | /**
|
---|
| 349 | * @param PassConstraints
|
---|
| 350 | */
|
---|
| 351 | public function setPassConstraints(PassConstraints $passConstraints)
|
---|
| 352 | {
|
---|
| 353 | $this->passConstraints = $passConstraints;
|
---|
| 354 | }
|
---|
| 355 | /**
|
---|
| 356 | * @return PassConstraints
|
---|
| 357 | */
|
---|
| 358 | public function getPassConstraints()
|
---|
| 359 | {
|
---|
| 360 | return $this->passConstraints;
|
---|
| 361 | }
|
---|
| 362 | /**
|
---|
| 363 | * @param RotatingBarcode
|
---|
| 364 | */
|
---|
| 365 | public function setRotatingBarcode(RotatingBarcode $rotatingBarcode)
|
---|
| 366 | {
|
---|
| 367 | $this->rotatingBarcode = $rotatingBarcode;
|
---|
| 368 | }
|
---|
| 369 | /**
|
---|
| 370 | * @return RotatingBarcode
|
---|
| 371 | */
|
---|
| 372 | public function getRotatingBarcode()
|
---|
| 373 | {
|
---|
| 374 | return $this->rotatingBarcode;
|
---|
| 375 | }
|
---|
| 376 | /**
|
---|
| 377 | * @param SaveRestrictions
|
---|
| 378 | */
|
---|
| 379 | public function setSaveRestrictions(SaveRestrictions $saveRestrictions)
|
---|
| 380 | {
|
---|
| 381 | $this->saveRestrictions = $saveRestrictions;
|
---|
| 382 | }
|
---|
| 383 | /**
|
---|
| 384 | * @return SaveRestrictions
|
---|
| 385 | */
|
---|
| 386 | public function getSaveRestrictions()
|
---|
| 387 | {
|
---|
| 388 | return $this->saveRestrictions;
|
---|
| 389 | }
|
---|
| 390 | /**
|
---|
| 391 | * @param string
|
---|
| 392 | */
|
---|
| 393 | public function setSmartTapRedemptionValue($smartTapRedemptionValue)
|
---|
| 394 | {
|
---|
| 395 | $this->smartTapRedemptionValue = $smartTapRedemptionValue;
|
---|
| 396 | }
|
---|
| 397 | /**
|
---|
| 398 | * @return string
|
---|
| 399 | */
|
---|
| 400 | public function getSmartTapRedemptionValue()
|
---|
| 401 | {
|
---|
| 402 | return $this->smartTapRedemptionValue;
|
---|
| 403 | }
|
---|
| 404 | /**
|
---|
| 405 | * @param string
|
---|
| 406 | */
|
---|
| 407 | public function setState($state)
|
---|
| 408 | {
|
---|
| 409 | $this->state = $state;
|
---|
| 410 | }
|
---|
| 411 | /**
|
---|
| 412 | * @return string
|
---|
| 413 | */
|
---|
| 414 | public function getState()
|
---|
| 415 | {
|
---|
| 416 | return $this->state;
|
---|
| 417 | }
|
---|
| 418 | /**
|
---|
| 419 | * @param LocalizedString
|
---|
| 420 | */
|
---|
| 421 | public function setSubheader(LocalizedString $subheader)
|
---|
| 422 | {
|
---|
| 423 | $this->subheader = $subheader;
|
---|
| 424 | }
|
---|
| 425 | /**
|
---|
| 426 | * @return LocalizedString
|
---|
| 427 | */
|
---|
| 428 | public function getSubheader()
|
---|
| 429 | {
|
---|
| 430 | return $this->subheader;
|
---|
| 431 | }
|
---|
| 432 | /**
|
---|
| 433 | * @param TextModuleData[]
|
---|
| 434 | */
|
---|
| 435 | public function setTextModulesData($textModulesData)
|
---|
| 436 | {
|
---|
| 437 | $this->textModulesData = $textModulesData;
|
---|
| 438 | }
|
---|
| 439 | /**
|
---|
| 440 | * @return TextModuleData[]
|
---|
| 441 | */
|
---|
| 442 | public function getTextModulesData()
|
---|
| 443 | {
|
---|
| 444 | return $this->textModulesData;
|
---|
| 445 | }
|
---|
| 446 | /**
|
---|
| 447 | * @param TimeInterval
|
---|
| 448 | */
|
---|
| 449 | public function setValidTimeInterval(TimeInterval $validTimeInterval)
|
---|
| 450 | {
|
---|
| 451 | $this->validTimeInterval = $validTimeInterval;
|
---|
| 452 | }
|
---|
| 453 | /**
|
---|
| 454 | * @return TimeInterval
|
---|
| 455 | */
|
---|
| 456 | public function getValidTimeInterval()
|
---|
| 457 | {
|
---|
| 458 | return $this->validTimeInterval;
|
---|
| 459 | }
|
---|
| 460 | /**
|
---|
| 461 | * @param ValueAddedModuleData[]
|
---|
| 462 | */
|
---|
| 463 | public function setValueAddedModuleData($valueAddedModuleData)
|
---|
| 464 | {
|
---|
| 465 | $this->valueAddedModuleData = $valueAddedModuleData;
|
---|
| 466 | }
|
---|
| 467 | /**
|
---|
| 468 | * @return ValueAddedModuleData[]
|
---|
| 469 | */
|
---|
| 470 | public function getValueAddedModuleData()
|
---|
| 471 | {
|
---|
| 472 | return $this->valueAddedModuleData;
|
---|
| 473 | }
|
---|
| 474 | /**
|
---|
| 475 | * @param Image
|
---|
| 476 | */
|
---|
| 477 | public function setWideLogo(Image $wideLogo)
|
---|
| 478 | {
|
---|
| 479 | $this->wideLogo = $wideLogo;
|
---|
| 480 | }
|
---|
| 481 | /**
|
---|
| 482 | * @return Image
|
---|
| 483 | */
|
---|
| 484 | public function getWideLogo()
|
---|
| 485 | {
|
---|
| 486 | return $this->wideLogo;
|
---|
| 487 | }
|
---|
| 488 | }
|
---|
| 489 |
|
---|
| 490 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 491 | class_alias(GenericObject::class, 'Google_Service_Walletobjects_GenericObject');
|
---|