[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 OfferObject 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 | /**
|
---|
| 28 | * @var string
|
---|
| 29 | */
|
---|
| 30 | public $classId;
|
---|
| 31 | protected $classReferenceType = OfferClass::class;
|
---|
| 32 | protected $classReferenceDataType = '';
|
---|
| 33 | /**
|
---|
| 34 | * @var bool
|
---|
| 35 | */
|
---|
| 36 | public $disableExpirationNotification;
|
---|
| 37 | protected $groupingInfoType = GroupingInfo::class;
|
---|
| 38 | protected $groupingInfoDataType = '';
|
---|
| 39 | /**
|
---|
| 40 | * @var bool
|
---|
| 41 | */
|
---|
| 42 | public $hasLinkedDevice;
|
---|
| 43 | /**
|
---|
| 44 | * @var bool
|
---|
| 45 | */
|
---|
| 46 | public $hasUsers;
|
---|
| 47 | protected $heroImageType = Image::class;
|
---|
| 48 | protected $heroImageDataType = '';
|
---|
| 49 | /**
|
---|
| 50 | * @var string
|
---|
| 51 | */
|
---|
| 52 | public $id;
|
---|
| 53 | protected $imageModulesDataType = ImageModuleData::class;
|
---|
| 54 | protected $imageModulesDataDataType = 'array';
|
---|
| 55 | protected $infoModuleDataType = InfoModuleData::class;
|
---|
| 56 | protected $infoModuleDataDataType = '';
|
---|
| 57 | /**
|
---|
| 58 | * @var string
|
---|
| 59 | */
|
---|
| 60 | public $kind;
|
---|
| 61 | /**
|
---|
| 62 | * @var string[]
|
---|
| 63 | */
|
---|
| 64 | public $linkedObjectIds;
|
---|
| 65 | protected $linksModuleDataType = LinksModuleData::class;
|
---|
| 66 | protected $linksModuleDataDataType = '';
|
---|
| 67 | protected $locationsType = LatLongPoint::class;
|
---|
| 68 | protected $locationsDataType = 'array';
|
---|
| 69 | protected $merchantLocationsType = MerchantLocation::class;
|
---|
| 70 | protected $merchantLocationsDataType = 'array';
|
---|
| 71 | protected $messagesType = Message::class;
|
---|
| 72 | protected $messagesDataType = 'array';
|
---|
| 73 | /**
|
---|
| 74 | * @var string
|
---|
| 75 | */
|
---|
| 76 | public $notifyPreference;
|
---|
| 77 | protected $passConstraintsType = PassConstraints::class;
|
---|
| 78 | protected $passConstraintsDataType = '';
|
---|
| 79 | protected $rotatingBarcodeType = RotatingBarcode::class;
|
---|
| 80 | protected $rotatingBarcodeDataType = '';
|
---|
| 81 | protected $saveRestrictionsType = SaveRestrictions::class;
|
---|
| 82 | protected $saveRestrictionsDataType = '';
|
---|
| 83 | /**
|
---|
| 84 | * @var string
|
---|
| 85 | */
|
---|
| 86 | public $smartTapRedemptionValue;
|
---|
| 87 | /**
|
---|
| 88 | * @var string
|
---|
| 89 | */
|
---|
| 90 | public $state;
|
---|
| 91 | protected $textModulesDataType = TextModuleData::class;
|
---|
| 92 | protected $textModulesDataDataType = 'array';
|
---|
| 93 | protected $validTimeIntervalType = TimeInterval::class;
|
---|
| 94 | protected $validTimeIntervalDataType = '';
|
---|
| 95 | protected $valueAddedModuleDataType = ValueAddedModuleData::class;
|
---|
| 96 | protected $valueAddedModuleDataDataType = 'array';
|
---|
| 97 | /**
|
---|
| 98 | * @var string
|
---|
| 99 | */
|
---|
| 100 | public $version;
|
---|
| 101 |
|
---|
| 102 | /**
|
---|
| 103 | * @param AppLinkData
|
---|
| 104 | */
|
---|
| 105 | public function setAppLinkData(AppLinkData $appLinkData)
|
---|
| 106 | {
|
---|
| 107 | $this->appLinkData = $appLinkData;
|
---|
| 108 | }
|
---|
| 109 | /**
|
---|
| 110 | * @return AppLinkData
|
---|
| 111 | */
|
---|
| 112 | public function getAppLinkData()
|
---|
| 113 | {
|
---|
| 114 | return $this->appLinkData;
|
---|
| 115 | }
|
---|
| 116 | /**
|
---|
| 117 | * @param Barcode
|
---|
| 118 | */
|
---|
| 119 | public function setBarcode(Barcode $barcode)
|
---|
| 120 | {
|
---|
| 121 | $this->barcode = $barcode;
|
---|
| 122 | }
|
---|
| 123 | /**
|
---|
| 124 | * @return Barcode
|
---|
| 125 | */
|
---|
| 126 | public function getBarcode()
|
---|
| 127 | {
|
---|
| 128 | return $this->barcode;
|
---|
| 129 | }
|
---|
| 130 | /**
|
---|
| 131 | * @param string
|
---|
| 132 | */
|
---|
| 133 | public function setClassId($classId)
|
---|
| 134 | {
|
---|
| 135 | $this->classId = $classId;
|
---|
| 136 | }
|
---|
| 137 | /**
|
---|
| 138 | * @return string
|
---|
| 139 | */
|
---|
| 140 | public function getClassId()
|
---|
| 141 | {
|
---|
| 142 | return $this->classId;
|
---|
| 143 | }
|
---|
| 144 | /**
|
---|
| 145 | * @param OfferClass
|
---|
| 146 | */
|
---|
| 147 | public function setClassReference(OfferClass $classReference)
|
---|
| 148 | {
|
---|
| 149 | $this->classReference = $classReference;
|
---|
| 150 | }
|
---|
| 151 | /**
|
---|
| 152 | * @return OfferClass
|
---|
| 153 | */
|
---|
| 154 | public function getClassReference()
|
---|
| 155 | {
|
---|
| 156 | return $this->classReference;
|
---|
| 157 | }
|
---|
| 158 | /**
|
---|
| 159 | * @param bool
|
---|
| 160 | */
|
---|
| 161 | public function setDisableExpirationNotification($disableExpirationNotification)
|
---|
| 162 | {
|
---|
| 163 | $this->disableExpirationNotification = $disableExpirationNotification;
|
---|
| 164 | }
|
---|
| 165 | /**
|
---|
| 166 | * @return bool
|
---|
| 167 | */
|
---|
| 168 | public function getDisableExpirationNotification()
|
---|
| 169 | {
|
---|
| 170 | return $this->disableExpirationNotification;
|
---|
| 171 | }
|
---|
| 172 | /**
|
---|
| 173 | * @param GroupingInfo
|
---|
| 174 | */
|
---|
| 175 | public function setGroupingInfo(GroupingInfo $groupingInfo)
|
---|
| 176 | {
|
---|
| 177 | $this->groupingInfo = $groupingInfo;
|
---|
| 178 | }
|
---|
| 179 | /**
|
---|
| 180 | * @return GroupingInfo
|
---|
| 181 | */
|
---|
| 182 | public function getGroupingInfo()
|
---|
| 183 | {
|
---|
| 184 | return $this->groupingInfo;
|
---|
| 185 | }
|
---|
| 186 | /**
|
---|
| 187 | * @param bool
|
---|
| 188 | */
|
---|
| 189 | public function setHasLinkedDevice($hasLinkedDevice)
|
---|
| 190 | {
|
---|
| 191 | $this->hasLinkedDevice = $hasLinkedDevice;
|
---|
| 192 | }
|
---|
| 193 | /**
|
---|
| 194 | * @return bool
|
---|
| 195 | */
|
---|
| 196 | public function getHasLinkedDevice()
|
---|
| 197 | {
|
---|
| 198 | return $this->hasLinkedDevice;
|
---|
| 199 | }
|
---|
| 200 | /**
|
---|
| 201 | * @param bool
|
---|
| 202 | */
|
---|
| 203 | public function setHasUsers($hasUsers)
|
---|
| 204 | {
|
---|
| 205 | $this->hasUsers = $hasUsers;
|
---|
| 206 | }
|
---|
| 207 | /**
|
---|
| 208 | * @return bool
|
---|
| 209 | */
|
---|
| 210 | public function getHasUsers()
|
---|
| 211 | {
|
---|
| 212 | return $this->hasUsers;
|
---|
| 213 | }
|
---|
| 214 | /**
|
---|
| 215 | * @param Image
|
---|
| 216 | */
|
---|
| 217 | public function setHeroImage(Image $heroImage)
|
---|
| 218 | {
|
---|
| 219 | $this->heroImage = $heroImage;
|
---|
| 220 | }
|
---|
| 221 | /**
|
---|
| 222 | * @return Image
|
---|
| 223 | */
|
---|
| 224 | public function getHeroImage()
|
---|
| 225 | {
|
---|
| 226 | return $this->heroImage;
|
---|
| 227 | }
|
---|
| 228 | /**
|
---|
| 229 | * @param string
|
---|
| 230 | */
|
---|
| 231 | public function setId($id)
|
---|
| 232 | {
|
---|
| 233 | $this->id = $id;
|
---|
| 234 | }
|
---|
| 235 | /**
|
---|
| 236 | * @return string
|
---|
| 237 | */
|
---|
| 238 | public function getId()
|
---|
| 239 | {
|
---|
| 240 | return $this->id;
|
---|
| 241 | }
|
---|
| 242 | /**
|
---|
| 243 | * @param ImageModuleData[]
|
---|
| 244 | */
|
---|
| 245 | public function setImageModulesData($imageModulesData)
|
---|
| 246 | {
|
---|
| 247 | $this->imageModulesData = $imageModulesData;
|
---|
| 248 | }
|
---|
| 249 | /**
|
---|
| 250 | * @return ImageModuleData[]
|
---|
| 251 | */
|
---|
| 252 | public function getImageModulesData()
|
---|
| 253 | {
|
---|
| 254 | return $this->imageModulesData;
|
---|
| 255 | }
|
---|
| 256 | /**
|
---|
| 257 | * @param InfoModuleData
|
---|
| 258 | */
|
---|
| 259 | public function setInfoModuleData(InfoModuleData $infoModuleData)
|
---|
| 260 | {
|
---|
| 261 | $this->infoModuleData = $infoModuleData;
|
---|
| 262 | }
|
---|
| 263 | /**
|
---|
| 264 | * @return InfoModuleData
|
---|
| 265 | */
|
---|
| 266 | public function getInfoModuleData()
|
---|
| 267 | {
|
---|
| 268 | return $this->infoModuleData;
|
---|
| 269 | }
|
---|
| 270 | /**
|
---|
| 271 | * @param string
|
---|
| 272 | */
|
---|
| 273 | public function setKind($kind)
|
---|
| 274 | {
|
---|
| 275 | $this->kind = $kind;
|
---|
| 276 | }
|
---|
| 277 | /**
|
---|
| 278 | * @return string
|
---|
| 279 | */
|
---|
| 280 | public function getKind()
|
---|
| 281 | {
|
---|
| 282 | return $this->kind;
|
---|
| 283 | }
|
---|
| 284 | /**
|
---|
| 285 | * @param string[]
|
---|
| 286 | */
|
---|
| 287 | public function setLinkedObjectIds($linkedObjectIds)
|
---|
| 288 | {
|
---|
| 289 | $this->linkedObjectIds = $linkedObjectIds;
|
---|
| 290 | }
|
---|
| 291 | /**
|
---|
| 292 | * @return string[]
|
---|
| 293 | */
|
---|
| 294 | public function getLinkedObjectIds()
|
---|
| 295 | {
|
---|
| 296 | return $this->linkedObjectIds;
|
---|
| 297 | }
|
---|
| 298 | /**
|
---|
| 299 | * @param LinksModuleData
|
---|
| 300 | */
|
---|
| 301 | public function setLinksModuleData(LinksModuleData $linksModuleData)
|
---|
| 302 | {
|
---|
| 303 | $this->linksModuleData = $linksModuleData;
|
---|
| 304 | }
|
---|
| 305 | /**
|
---|
| 306 | * @return LinksModuleData
|
---|
| 307 | */
|
---|
| 308 | public function getLinksModuleData()
|
---|
| 309 | {
|
---|
| 310 | return $this->linksModuleData;
|
---|
| 311 | }
|
---|
| 312 | /**
|
---|
| 313 | * @param LatLongPoint[]
|
---|
| 314 | */
|
---|
| 315 | public function setLocations($locations)
|
---|
| 316 | {
|
---|
| 317 | $this->locations = $locations;
|
---|
| 318 | }
|
---|
| 319 | /**
|
---|
| 320 | * @return LatLongPoint[]
|
---|
| 321 | */
|
---|
| 322 | public function getLocations()
|
---|
| 323 | {
|
---|
| 324 | return $this->locations;
|
---|
| 325 | }
|
---|
| 326 | /**
|
---|
| 327 | * @param MerchantLocation[]
|
---|
| 328 | */
|
---|
| 329 | public function setMerchantLocations($merchantLocations)
|
---|
| 330 | {
|
---|
| 331 | $this->merchantLocations = $merchantLocations;
|
---|
| 332 | }
|
---|
| 333 | /**
|
---|
| 334 | * @return MerchantLocation[]
|
---|
| 335 | */
|
---|
| 336 | public function getMerchantLocations()
|
---|
| 337 | {
|
---|
| 338 | return $this->merchantLocations;
|
---|
| 339 | }
|
---|
| 340 | /**
|
---|
| 341 | * @param Message[]
|
---|
| 342 | */
|
---|
| 343 | public function setMessages($messages)
|
---|
| 344 | {
|
---|
| 345 | $this->messages = $messages;
|
---|
| 346 | }
|
---|
| 347 | /**
|
---|
| 348 | * @return Message[]
|
---|
| 349 | */
|
---|
| 350 | public function getMessages()
|
---|
| 351 | {
|
---|
| 352 | return $this->messages;
|
---|
| 353 | }
|
---|
| 354 | /**
|
---|
| 355 | * @param string
|
---|
| 356 | */
|
---|
| 357 | public function setNotifyPreference($notifyPreference)
|
---|
| 358 | {
|
---|
| 359 | $this->notifyPreference = $notifyPreference;
|
---|
| 360 | }
|
---|
| 361 | /**
|
---|
| 362 | * @return string
|
---|
| 363 | */
|
---|
| 364 | public function getNotifyPreference()
|
---|
| 365 | {
|
---|
| 366 | return $this->notifyPreference;
|
---|
| 367 | }
|
---|
| 368 | /**
|
---|
| 369 | * @param PassConstraints
|
---|
| 370 | */
|
---|
| 371 | public function setPassConstraints(PassConstraints $passConstraints)
|
---|
| 372 | {
|
---|
| 373 | $this->passConstraints = $passConstraints;
|
---|
| 374 | }
|
---|
| 375 | /**
|
---|
| 376 | * @return PassConstraints
|
---|
| 377 | */
|
---|
| 378 | public function getPassConstraints()
|
---|
| 379 | {
|
---|
| 380 | return $this->passConstraints;
|
---|
| 381 | }
|
---|
| 382 | /**
|
---|
| 383 | * @param RotatingBarcode
|
---|
| 384 | */
|
---|
| 385 | public function setRotatingBarcode(RotatingBarcode $rotatingBarcode)
|
---|
| 386 | {
|
---|
| 387 | $this->rotatingBarcode = $rotatingBarcode;
|
---|
| 388 | }
|
---|
| 389 | /**
|
---|
| 390 | * @return RotatingBarcode
|
---|
| 391 | */
|
---|
| 392 | public function getRotatingBarcode()
|
---|
| 393 | {
|
---|
| 394 | return $this->rotatingBarcode;
|
---|
| 395 | }
|
---|
| 396 | /**
|
---|
| 397 | * @param SaveRestrictions
|
---|
| 398 | */
|
---|
| 399 | public function setSaveRestrictions(SaveRestrictions $saveRestrictions)
|
---|
| 400 | {
|
---|
| 401 | $this->saveRestrictions = $saveRestrictions;
|
---|
| 402 | }
|
---|
| 403 | /**
|
---|
| 404 | * @return SaveRestrictions
|
---|
| 405 | */
|
---|
| 406 | public function getSaveRestrictions()
|
---|
| 407 | {
|
---|
| 408 | return $this->saveRestrictions;
|
---|
| 409 | }
|
---|
| 410 | /**
|
---|
| 411 | * @param string
|
---|
| 412 | */
|
---|
| 413 | public function setSmartTapRedemptionValue($smartTapRedemptionValue)
|
---|
| 414 | {
|
---|
| 415 | $this->smartTapRedemptionValue = $smartTapRedemptionValue;
|
---|
| 416 | }
|
---|
| 417 | /**
|
---|
| 418 | * @return string
|
---|
| 419 | */
|
---|
| 420 | public function getSmartTapRedemptionValue()
|
---|
| 421 | {
|
---|
| 422 | return $this->smartTapRedemptionValue;
|
---|
| 423 | }
|
---|
| 424 | /**
|
---|
| 425 | * @param string
|
---|
| 426 | */
|
---|
| 427 | public function setState($state)
|
---|
| 428 | {
|
---|
| 429 | $this->state = $state;
|
---|
| 430 | }
|
---|
| 431 | /**
|
---|
| 432 | * @return string
|
---|
| 433 | */
|
---|
| 434 | public function getState()
|
---|
| 435 | {
|
---|
| 436 | return $this->state;
|
---|
| 437 | }
|
---|
| 438 | /**
|
---|
| 439 | * @param TextModuleData[]
|
---|
| 440 | */
|
---|
| 441 | public function setTextModulesData($textModulesData)
|
---|
| 442 | {
|
---|
| 443 | $this->textModulesData = $textModulesData;
|
---|
| 444 | }
|
---|
| 445 | /**
|
---|
| 446 | * @return TextModuleData[]
|
---|
| 447 | */
|
---|
| 448 | public function getTextModulesData()
|
---|
| 449 | {
|
---|
| 450 | return $this->textModulesData;
|
---|
| 451 | }
|
---|
| 452 | /**
|
---|
| 453 | * @param TimeInterval
|
---|
| 454 | */
|
---|
| 455 | public function setValidTimeInterval(TimeInterval $validTimeInterval)
|
---|
| 456 | {
|
---|
| 457 | $this->validTimeInterval = $validTimeInterval;
|
---|
| 458 | }
|
---|
| 459 | /**
|
---|
| 460 | * @return TimeInterval
|
---|
| 461 | */
|
---|
| 462 | public function getValidTimeInterval()
|
---|
| 463 | {
|
---|
| 464 | return $this->validTimeInterval;
|
---|
| 465 | }
|
---|
| 466 | /**
|
---|
| 467 | * @param ValueAddedModuleData[]
|
---|
| 468 | */
|
---|
| 469 | public function setValueAddedModuleData($valueAddedModuleData)
|
---|
| 470 | {
|
---|
| 471 | $this->valueAddedModuleData = $valueAddedModuleData;
|
---|
| 472 | }
|
---|
| 473 | /**
|
---|
| 474 | * @return ValueAddedModuleData[]
|
---|
| 475 | */
|
---|
| 476 | public function getValueAddedModuleData()
|
---|
| 477 | {
|
---|
| 478 | return $this->valueAddedModuleData;
|
---|
| 479 | }
|
---|
| 480 | /**
|
---|
| 481 | * @param string
|
---|
| 482 | */
|
---|
| 483 | public function setVersion($version)
|
---|
| 484 | {
|
---|
| 485 | $this->version = $version;
|
---|
| 486 | }
|
---|
| 487 | /**
|
---|
| 488 | * @return string
|
---|
| 489 | */
|
---|
| 490 | public function getVersion()
|
---|
| 491 | {
|
---|
| 492 | return $this->version;
|
---|
| 493 | }
|
---|
| 494 | }
|
---|
| 495 |
|
---|
| 496 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 497 | class_alias(OfferObject::class, 'Google_Service_Walletobjects_OfferObject');
|
---|