770 lines
15 KiB
PHP
770 lines
15 KiB
PHP
<?php
|
|
/*
|
|
* Copyright 2014 Google Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
* use this file except in compliance with the License. You may obtain a copy of
|
|
* the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
* License for the specific language governing permissions and limitations under
|
|
* the License.
|
|
*/
|
|
|
|
namespace Google\Service\Walletobjects;
|
|
|
|
class OfferClass extends \Google\Collection
|
|
{
|
|
protected $collection_key = 'valueAddedModuleData';
|
|
/**
|
|
* @var bool
|
|
*/
|
|
public $allowMultipleUsersPerObject;
|
|
protected $appLinkDataType = AppLinkData::class;
|
|
protected $appLinkDataDataType = '';
|
|
protected $callbackOptionsType = CallbackOptions::class;
|
|
protected $callbackOptionsDataType = '';
|
|
protected $classTemplateInfoType = ClassTemplateInfo::class;
|
|
protected $classTemplateInfoDataType = '';
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $countryCode;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $details;
|
|
/**
|
|
* @var bool
|
|
*/
|
|
public $enableSmartTap;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $finePrint;
|
|
protected $helpUriType = Uri::class;
|
|
protected $helpUriDataType = '';
|
|
protected $heroImageType = Image::class;
|
|
protected $heroImageDataType = '';
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $hexBackgroundColor;
|
|
protected $homepageUriType = Uri::class;
|
|
protected $homepageUriDataType = '';
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $id;
|
|
protected $imageModulesDataType = ImageModuleData::class;
|
|
protected $imageModulesDataDataType = 'array';
|
|
protected $infoModuleDataType = InfoModuleData::class;
|
|
protected $infoModuleDataDataType = '';
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $issuerName;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $kind;
|
|
protected $linksModuleDataType = LinksModuleData::class;
|
|
protected $linksModuleDataDataType = '';
|
|
protected $localizedDetailsType = LocalizedString::class;
|
|
protected $localizedDetailsDataType = '';
|
|
protected $localizedFinePrintType = LocalizedString::class;
|
|
protected $localizedFinePrintDataType = '';
|
|
protected $localizedIssuerNameType = LocalizedString::class;
|
|
protected $localizedIssuerNameDataType = '';
|
|
protected $localizedProviderType = LocalizedString::class;
|
|
protected $localizedProviderDataType = '';
|
|
protected $localizedShortTitleType = LocalizedString::class;
|
|
protected $localizedShortTitleDataType = '';
|
|
protected $localizedTitleType = LocalizedString::class;
|
|
protected $localizedTitleDataType = '';
|
|
protected $locationsType = LatLongPoint::class;
|
|
protected $locationsDataType = 'array';
|
|
protected $merchantLocationsType = MerchantLocation::class;
|
|
protected $merchantLocationsDataType = 'array';
|
|
protected $messagesType = Message::class;
|
|
protected $messagesDataType = 'array';
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $multipleDevicesAndHoldersAllowedStatus;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $notifyPreference;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $provider;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $redemptionChannel;
|
|
/**
|
|
* @var string[]
|
|
*/
|
|
public $redemptionIssuers;
|
|
protected $reviewType = Review::class;
|
|
protected $reviewDataType = '';
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $reviewStatus;
|
|
protected $securityAnimationType = SecurityAnimation::class;
|
|
protected $securityAnimationDataType = '';
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $shortTitle;
|
|
protected $textModulesDataType = TextModuleData::class;
|
|
protected $textModulesDataDataType = 'array';
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $title;
|
|
protected $titleImageType = Image::class;
|
|
protected $titleImageDataType = '';
|
|
protected $valueAddedModuleDataType = ValueAddedModuleData::class;
|
|
protected $valueAddedModuleDataDataType = 'array';
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $version;
|
|
/**
|
|
* @var string
|
|
*/
|
|
public $viewUnlockRequirement;
|
|
protected $wideTitleImageType = Image::class;
|
|
protected $wideTitleImageDataType = '';
|
|
protected $wordMarkType = Image::class;
|
|
protected $wordMarkDataType = '';
|
|
|
|
/**
|
|
* @param bool
|
|
*/
|
|
public function setAllowMultipleUsersPerObject($allowMultipleUsersPerObject)
|
|
{
|
|
$this->allowMultipleUsersPerObject = $allowMultipleUsersPerObject;
|
|
}
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function getAllowMultipleUsersPerObject()
|
|
{
|
|
return $this->allowMultipleUsersPerObject;
|
|
}
|
|
/**
|
|
* @param AppLinkData
|
|
*/
|
|
public function setAppLinkData(AppLinkData $appLinkData)
|
|
{
|
|
$this->appLinkData = $appLinkData;
|
|
}
|
|
/**
|
|
* @return AppLinkData
|
|
*/
|
|
public function getAppLinkData()
|
|
{
|
|
return $this->appLinkData;
|
|
}
|
|
/**
|
|
* @param CallbackOptions
|
|
*/
|
|
public function setCallbackOptions(CallbackOptions $callbackOptions)
|
|
{
|
|
$this->callbackOptions = $callbackOptions;
|
|
}
|
|
/**
|
|
* @return CallbackOptions
|
|
*/
|
|
public function getCallbackOptions()
|
|
{
|
|
return $this->callbackOptions;
|
|
}
|
|
/**
|
|
* @param ClassTemplateInfo
|
|
*/
|
|
public function setClassTemplateInfo(ClassTemplateInfo $classTemplateInfo)
|
|
{
|
|
$this->classTemplateInfo = $classTemplateInfo;
|
|
}
|
|
/**
|
|
* @return ClassTemplateInfo
|
|
*/
|
|
public function getClassTemplateInfo()
|
|
{
|
|
return $this->classTemplateInfo;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setCountryCode($countryCode)
|
|
{
|
|
$this->countryCode = $countryCode;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCountryCode()
|
|
{
|
|
return $this->countryCode;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setDetails($details)
|
|
{
|
|
$this->details = $details;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getDetails()
|
|
{
|
|
return $this->details;
|
|
}
|
|
/**
|
|
* @param bool
|
|
*/
|
|
public function setEnableSmartTap($enableSmartTap)
|
|
{
|
|
$this->enableSmartTap = $enableSmartTap;
|
|
}
|
|
/**
|
|
* @return bool
|
|
*/
|
|
public function getEnableSmartTap()
|
|
{
|
|
return $this->enableSmartTap;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setFinePrint($finePrint)
|
|
{
|
|
$this->finePrint = $finePrint;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getFinePrint()
|
|
{
|
|
return $this->finePrint;
|
|
}
|
|
/**
|
|
* @param Uri
|
|
*/
|
|
public function setHelpUri(Uri $helpUri)
|
|
{
|
|
$this->helpUri = $helpUri;
|
|
}
|
|
/**
|
|
* @return Uri
|
|
*/
|
|
public function getHelpUri()
|
|
{
|
|
return $this->helpUri;
|
|
}
|
|
/**
|
|
* @param Image
|
|
*/
|
|
public function setHeroImage(Image $heroImage)
|
|
{
|
|
$this->heroImage = $heroImage;
|
|
}
|
|
/**
|
|
* @return Image
|
|
*/
|
|
public function getHeroImage()
|
|
{
|
|
return $this->heroImage;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setHexBackgroundColor($hexBackgroundColor)
|
|
{
|
|
$this->hexBackgroundColor = $hexBackgroundColor;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getHexBackgroundColor()
|
|
{
|
|
return $this->hexBackgroundColor;
|
|
}
|
|
/**
|
|
* @param Uri
|
|
*/
|
|
public function setHomepageUri(Uri $homepageUri)
|
|
{
|
|
$this->homepageUri = $homepageUri;
|
|
}
|
|
/**
|
|
* @return Uri
|
|
*/
|
|
public function getHomepageUri()
|
|
{
|
|
return $this->homepageUri;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setId($id)
|
|
{
|
|
$this->id = $id;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getId()
|
|
{
|
|
return $this->id;
|
|
}
|
|
/**
|
|
* @param ImageModuleData[]
|
|
*/
|
|
public function setImageModulesData($imageModulesData)
|
|
{
|
|
$this->imageModulesData = $imageModulesData;
|
|
}
|
|
/**
|
|
* @return ImageModuleData[]
|
|
*/
|
|
public function getImageModulesData()
|
|
{
|
|
return $this->imageModulesData;
|
|
}
|
|
/**
|
|
* @param InfoModuleData
|
|
*/
|
|
public function setInfoModuleData(InfoModuleData $infoModuleData)
|
|
{
|
|
$this->infoModuleData = $infoModuleData;
|
|
}
|
|
/**
|
|
* @return InfoModuleData
|
|
*/
|
|
public function getInfoModuleData()
|
|
{
|
|
return $this->infoModuleData;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setIssuerName($issuerName)
|
|
{
|
|
$this->issuerName = $issuerName;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getIssuerName()
|
|
{
|
|
return $this->issuerName;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setKind($kind)
|
|
{
|
|
$this->kind = $kind;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getKind()
|
|
{
|
|
return $this->kind;
|
|
}
|
|
/**
|
|
* @param LinksModuleData
|
|
*/
|
|
public function setLinksModuleData(LinksModuleData $linksModuleData)
|
|
{
|
|
$this->linksModuleData = $linksModuleData;
|
|
}
|
|
/**
|
|
* @return LinksModuleData
|
|
*/
|
|
public function getLinksModuleData()
|
|
{
|
|
return $this->linksModuleData;
|
|
}
|
|
/**
|
|
* @param LocalizedString
|
|
*/
|
|
public function setLocalizedDetails(LocalizedString $localizedDetails)
|
|
{
|
|
$this->localizedDetails = $localizedDetails;
|
|
}
|
|
/**
|
|
* @return LocalizedString
|
|
*/
|
|
public function getLocalizedDetails()
|
|
{
|
|
return $this->localizedDetails;
|
|
}
|
|
/**
|
|
* @param LocalizedString
|
|
*/
|
|
public function setLocalizedFinePrint(LocalizedString $localizedFinePrint)
|
|
{
|
|
$this->localizedFinePrint = $localizedFinePrint;
|
|
}
|
|
/**
|
|
* @return LocalizedString
|
|
*/
|
|
public function getLocalizedFinePrint()
|
|
{
|
|
return $this->localizedFinePrint;
|
|
}
|
|
/**
|
|
* @param LocalizedString
|
|
*/
|
|
public function setLocalizedIssuerName(LocalizedString $localizedIssuerName)
|
|
{
|
|
$this->localizedIssuerName = $localizedIssuerName;
|
|
}
|
|
/**
|
|
* @return LocalizedString
|
|
*/
|
|
public function getLocalizedIssuerName()
|
|
{
|
|
return $this->localizedIssuerName;
|
|
}
|
|
/**
|
|
* @param LocalizedString
|
|
*/
|
|
public function setLocalizedProvider(LocalizedString $localizedProvider)
|
|
{
|
|
$this->localizedProvider = $localizedProvider;
|
|
}
|
|
/**
|
|
* @return LocalizedString
|
|
*/
|
|
public function getLocalizedProvider()
|
|
{
|
|
return $this->localizedProvider;
|
|
}
|
|
/**
|
|
* @param LocalizedString
|
|
*/
|
|
public function setLocalizedShortTitle(LocalizedString $localizedShortTitle)
|
|
{
|
|
$this->localizedShortTitle = $localizedShortTitle;
|
|
}
|
|
/**
|
|
* @return LocalizedString
|
|
*/
|
|
public function getLocalizedShortTitle()
|
|
{
|
|
return $this->localizedShortTitle;
|
|
}
|
|
/**
|
|
* @param LocalizedString
|
|
*/
|
|
public function setLocalizedTitle(LocalizedString $localizedTitle)
|
|
{
|
|
$this->localizedTitle = $localizedTitle;
|
|
}
|
|
/**
|
|
* @return LocalizedString
|
|
*/
|
|
public function getLocalizedTitle()
|
|
{
|
|
return $this->localizedTitle;
|
|
}
|
|
/**
|
|
* @param LatLongPoint[]
|
|
*/
|
|
public function setLocations($locations)
|
|
{
|
|
$this->locations = $locations;
|
|
}
|
|
/**
|
|
* @return LatLongPoint[]
|
|
*/
|
|
public function getLocations()
|
|
{
|
|
return $this->locations;
|
|
}
|
|
/**
|
|
* @param MerchantLocation[]
|
|
*/
|
|
public function setMerchantLocations($merchantLocations)
|
|
{
|
|
$this->merchantLocations = $merchantLocations;
|
|
}
|
|
/**
|
|
* @return MerchantLocation[]
|
|
*/
|
|
public function getMerchantLocations()
|
|
{
|
|
return $this->merchantLocations;
|
|
}
|
|
/**
|
|
* @param Message[]
|
|
*/
|
|
public function setMessages($messages)
|
|
{
|
|
$this->messages = $messages;
|
|
}
|
|
/**
|
|
* @return Message[]
|
|
*/
|
|
public function getMessages()
|
|
{
|
|
return $this->messages;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setMultipleDevicesAndHoldersAllowedStatus($multipleDevicesAndHoldersAllowedStatus)
|
|
{
|
|
$this->multipleDevicesAndHoldersAllowedStatus = $multipleDevicesAndHoldersAllowedStatus;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getMultipleDevicesAndHoldersAllowedStatus()
|
|
{
|
|
return $this->multipleDevicesAndHoldersAllowedStatus;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setNotifyPreference($notifyPreference)
|
|
{
|
|
$this->notifyPreference = $notifyPreference;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getNotifyPreference()
|
|
{
|
|
return $this->notifyPreference;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setProvider($provider)
|
|
{
|
|
$this->provider = $provider;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getProvider()
|
|
{
|
|
return $this->provider;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setRedemptionChannel($redemptionChannel)
|
|
{
|
|
$this->redemptionChannel = $redemptionChannel;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getRedemptionChannel()
|
|
{
|
|
return $this->redemptionChannel;
|
|
}
|
|
/**
|
|
* @param string[]
|
|
*/
|
|
public function setRedemptionIssuers($redemptionIssuers)
|
|
{
|
|
$this->redemptionIssuers = $redemptionIssuers;
|
|
}
|
|
/**
|
|
* @return string[]
|
|
*/
|
|
public function getRedemptionIssuers()
|
|
{
|
|
return $this->redemptionIssuers;
|
|
}
|
|
/**
|
|
* @param Review
|
|
*/
|
|
public function setReview(Review $review)
|
|
{
|
|
$this->review = $review;
|
|
}
|
|
/**
|
|
* @return Review
|
|
*/
|
|
public function getReview()
|
|
{
|
|
return $this->review;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setReviewStatus($reviewStatus)
|
|
{
|
|
$this->reviewStatus = $reviewStatus;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getReviewStatus()
|
|
{
|
|
return $this->reviewStatus;
|
|
}
|
|
/**
|
|
* @param SecurityAnimation
|
|
*/
|
|
public function setSecurityAnimation(SecurityAnimation $securityAnimation)
|
|
{
|
|
$this->securityAnimation = $securityAnimation;
|
|
}
|
|
/**
|
|
* @return SecurityAnimation
|
|
*/
|
|
public function getSecurityAnimation()
|
|
{
|
|
return $this->securityAnimation;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setShortTitle($shortTitle)
|
|
{
|
|
$this->shortTitle = $shortTitle;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getShortTitle()
|
|
{
|
|
return $this->shortTitle;
|
|
}
|
|
/**
|
|
* @param TextModuleData[]
|
|
*/
|
|
public function setTextModulesData($textModulesData)
|
|
{
|
|
$this->textModulesData = $textModulesData;
|
|
}
|
|
/**
|
|
* @return TextModuleData[]
|
|
*/
|
|
public function getTextModulesData()
|
|
{
|
|
return $this->textModulesData;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setTitle($title)
|
|
{
|
|
$this->title = $title;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getTitle()
|
|
{
|
|
return $this->title;
|
|
}
|
|
/**
|
|
* @param Image
|
|
*/
|
|
public function setTitleImage(Image $titleImage)
|
|
{
|
|
$this->titleImage = $titleImage;
|
|
}
|
|
/**
|
|
* @return Image
|
|
*/
|
|
public function getTitleImage()
|
|
{
|
|
return $this->titleImage;
|
|
}
|
|
/**
|
|
* @param ValueAddedModuleData[]
|
|
*/
|
|
public function setValueAddedModuleData($valueAddedModuleData)
|
|
{
|
|
$this->valueAddedModuleData = $valueAddedModuleData;
|
|
}
|
|
/**
|
|
* @return ValueAddedModuleData[]
|
|
*/
|
|
public function getValueAddedModuleData()
|
|
{
|
|
return $this->valueAddedModuleData;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setVersion($version)
|
|
{
|
|
$this->version = $version;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getVersion()
|
|
{
|
|
return $this->version;
|
|
}
|
|
/**
|
|
* @param string
|
|
*/
|
|
public function setViewUnlockRequirement($viewUnlockRequirement)
|
|
{
|
|
$this->viewUnlockRequirement = $viewUnlockRequirement;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getViewUnlockRequirement()
|
|
{
|
|
return $this->viewUnlockRequirement;
|
|
}
|
|
/**
|
|
* @param Image
|
|
*/
|
|
public function setWideTitleImage(Image $wideTitleImage)
|
|
{
|
|
$this->wideTitleImage = $wideTitleImage;
|
|
}
|
|
/**
|
|
* @return Image
|
|
*/
|
|
public function getWideTitleImage()
|
|
{
|
|
return $this->wideTitleImage;
|
|
}
|
|
/**
|
|
* @param Image
|
|
*/
|
|
public function setWordMark(Image $wordMark)
|
|
{
|
|
$this->wordMark = $wordMark;
|
|
}
|
|
/**
|
|
* @return Image
|
|
*/
|
|
public function getWordMark()
|
|
{
|
|
return $this->wordMark;
|
|
}
|
|
}
|
|
|
|
// Adding a class alias for backwards compatibility with the previous class name.
|
|
class_alias(OfferClass::class, 'Google_Service_Walletobjects_OfferClass');
|