gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,410 @@
<?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\ShoppingContent;
class Account extends \Google\Collection
{
protected $collection_key = 'youtubeChannelLinks';
/**
* Output only. How the account is managed. Acceptable values are: -
* "`manual`" - "`automatic`"
*
* @var string
*/
public $accountManagement;
protected $adsLinksType = AccountAdsLink::class;
protected $adsLinksDataType = 'array';
/**
* Indicates whether the merchant sells adult content.
*
* @var bool
*/
public $adultContent;
protected $automaticImprovementsType = AccountAutomaticImprovements::class;
protected $automaticImprovementsDataType = '';
/**
* Automatically created label IDs that are assigned to the account by CSS
* Center.
*
* @var string[]
*/
public $automaticLabelIds;
protected $businessIdentityType = AccountBusinessIdentity::class;
protected $businessIdentityDataType = '';
protected $businessInformationType = AccountBusinessInformation::class;
protected $businessInformationDataType = '';
protected $conversionSettingsType = AccountConversionSettings::class;
protected $conversionSettingsDataType = '';
/**
* ID of CSS the account belongs to.
*
* @var string
*/
public $cssId;
protected $googleMyBusinessLinkType = AccountGoogleMyBusinessLink::class;
protected $googleMyBusinessLinkDataType = '';
/**
* Required. 64-bit Merchant Center account ID.
*
* @var string
*/
public $id;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#account`".
*
* @var string
*/
public $kind;
/**
* Manually created label IDs that are assigned to the account by CSS.
*
* @var string[]
*/
public $labelIds;
/**
* Required. Display name for the account.
*
* @var string
*/
public $name;
/**
* Client-specific, locally-unique, internal ID for the child account.
*
* @var string
*/
public $sellerId;
protected $usersType = AccountUser::class;
protected $usersDataType = 'array';
/**
* The merchant's website.
*
* @var string
*/
public $websiteUrl;
protected $youtubeChannelLinksType = AccountYouTubeChannelLink::class;
protected $youtubeChannelLinksDataType = 'array';
/**
* Output only. How the account is managed. Acceptable values are: -
* "`manual`" - "`automatic`"
*
* @param string $accountManagement
*/
public function setAccountManagement($accountManagement)
{
$this->accountManagement = $accountManagement;
}
/**
* @return string
*/
public function getAccountManagement()
{
return $this->accountManagement;
}
/**
* Linked Ads accounts that are active or pending approval. To create a new
* link request, add a new link with status `active` to the list. It will
* remain in a `pending` state until approved or rejected either in the Ads
* interface or through the Google Ads API. To delete an active link, or to
* cancel a link request, remove it from the list.
*
* @param AccountAdsLink[] $adsLinks
*/
public function setAdsLinks($adsLinks)
{
$this->adsLinks = $adsLinks;
}
/**
* @return AccountAdsLink[]
*/
public function getAdsLinks()
{
return $this->adsLinks;
}
/**
* Indicates whether the merchant sells adult content.
*
* @param bool $adultContent
*/
public function setAdultContent($adultContent)
{
$this->adultContent = $adultContent;
}
/**
* @return bool
*/
public function getAdultContent()
{
return $this->adultContent;
}
/**
* The automatic improvements of the account can be used to automatically
* update items, improve images and shipping. Each section inside
* AutomaticImprovements is updated separately.
*
* @param AccountAutomaticImprovements $automaticImprovements
*/
public function setAutomaticImprovements(AccountAutomaticImprovements $automaticImprovements)
{
$this->automaticImprovements = $automaticImprovements;
}
/**
* @return AccountAutomaticImprovements
*/
public function getAutomaticImprovements()
{
return $this->automaticImprovements;
}
/**
* Automatically created label IDs that are assigned to the account by CSS
* Center.
*
* @param string[] $automaticLabelIds
*/
public function setAutomaticLabelIds($automaticLabelIds)
{
$this->automaticLabelIds = $automaticLabelIds;
}
/**
* @return string[]
*/
public function getAutomaticLabelIds()
{
return $this->automaticLabelIds;
}
/**
* The business identity attributes can be used to self-declare attributes
* that let customers know more about your business.
*
* @param AccountBusinessIdentity $businessIdentity
*/
public function setBusinessIdentity(AccountBusinessIdentity $businessIdentity)
{
$this->businessIdentity = $businessIdentity;
}
/**
* @return AccountBusinessIdentity
*/
public function getBusinessIdentity()
{
return $this->businessIdentity;
}
/**
* The business information of the account.
*
* @param AccountBusinessInformation $businessInformation
*/
public function setBusinessInformation(AccountBusinessInformation $businessInformation)
{
$this->businessInformation = $businessInformation;
}
/**
* @return AccountBusinessInformation
*/
public function getBusinessInformation()
{
return $this->businessInformation;
}
/**
* Settings for conversion tracking.
*
* @param AccountConversionSettings $conversionSettings
*/
public function setConversionSettings(AccountConversionSettings $conversionSettings)
{
$this->conversionSettings = $conversionSettings;
}
/**
* @return AccountConversionSettings
*/
public function getConversionSettings()
{
return $this->conversionSettings;
}
/**
* ID of CSS the account belongs to.
*
* @param string $cssId
*/
public function setCssId($cssId)
{
$this->cssId = $cssId;
}
/**
* @return string
*/
public function getCssId()
{
return $this->cssId;
}
/**
* The Business Profile which is linked or in the process of being linked with
* the Merchant Center account.
*
* @param AccountGoogleMyBusinessLink $googleMyBusinessLink
*/
public function setGoogleMyBusinessLink(AccountGoogleMyBusinessLink $googleMyBusinessLink)
{
$this->googleMyBusinessLink = $googleMyBusinessLink;
}
/**
* @return AccountGoogleMyBusinessLink
*/
public function getGoogleMyBusinessLink()
{
return $this->googleMyBusinessLink;
}
/**
* Required. 64-bit Merchant Center account ID.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#account`".
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Manually created label IDs that are assigned to the account by CSS.
*
* @param string[] $labelIds
*/
public function setLabelIds($labelIds)
{
$this->labelIds = $labelIds;
}
/**
* @return string[]
*/
public function getLabelIds()
{
return $this->labelIds;
}
/**
* Required. Display name for the account.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Client-specific, locally-unique, internal ID for the child account.
*
* @param string $sellerId
*/
public function setSellerId($sellerId)
{
$this->sellerId = $sellerId;
}
/**
* @return string
*/
public function getSellerId()
{
return $this->sellerId;
}
/**
* Users with access to the account. Every account (except for subaccounts)
* must have at least one admin user.
*
* @param AccountUser[] $users
*/
public function setUsers($users)
{
$this->users = $users;
}
/**
* @return AccountUser[]
*/
public function getUsers()
{
return $this->users;
}
/**
* The merchant's website.
*
* @param string $websiteUrl
*/
public function setWebsiteUrl($websiteUrl)
{
$this->websiteUrl = $websiteUrl;
}
/**
* @return string
*/
public function getWebsiteUrl()
{
return $this->websiteUrl;
}
/**
* Linked YouTube channels that are active or pending approval. To create a
* new link request, add a new link with status `active` to the list. It will
* remain in a `pending` state until approved or rejected in the YT Creator
* Studio interface. To delete an active link, or to cancel a link request,
* remove it from the list.
*
* @param AccountYouTubeChannelLink[] $youtubeChannelLinks
*/
public function setYoutubeChannelLinks($youtubeChannelLinks)
{
$this->youtubeChannelLinks = $youtubeChannelLinks;
}
/**
* @return AccountYouTubeChannelLink[]
*/
public function getYoutubeChannelLinks()
{
return $this->youtubeChannelLinks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Account::class, 'Google_Service_ShoppingContent_Account');
@@ -0,0 +1,144 @@
<?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\ShoppingContent;
class AccountAddress extends \Google\Model
{
/**
* CLDR country code (for example, "US"). All MCA sub-accounts inherit the
* country of their parent MCA by default, however the country can be updated
* for individual sub-accounts.
*
* @var string
*/
public $country;
/**
* City, town or commune. May also include dependent localities or
* sublocalities (for example, neighborhoods or suburbs).
*
* @var string
*/
public $locality;
/**
* Postal code or ZIP (for example, "94043").
*
* @var string
*/
public $postalCode;
/**
* Top-level administrative subdivision of the country. For example, a state
* like California ("CA") or a province like Quebec ("QC").
*
* @var string
*/
public $region;
/**
* Street-level part of the address. Use `\n` to add a second line.
*
* @var string
*/
public $streetAddress;
/**
* CLDR country code (for example, "US"). All MCA sub-accounts inherit the
* country of their parent MCA by default, however the country can be updated
* for individual sub-accounts.
*
* @param string $country
*/
public function setCountry($country)
{
$this->country = $country;
}
/**
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* City, town or commune. May also include dependent localities or
* sublocalities (for example, neighborhoods or suburbs).
*
* @param string $locality
*/
public function setLocality($locality)
{
$this->locality = $locality;
}
/**
* @return string
*/
public function getLocality()
{
return $this->locality;
}
/**
* Postal code or ZIP (for example, "94043").
*
* @param string $postalCode
*/
public function setPostalCode($postalCode)
{
$this->postalCode = $postalCode;
}
/**
* @return string
*/
public function getPostalCode()
{
return $this->postalCode;
}
/**
* Top-level administrative subdivision of the country. For example, a state
* like California ("CA") or a province like Quebec ("QC").
*
* @param string $region
*/
public function setRegion($region)
{
$this->region = $region;
}
/**
* @return string
*/
public function getRegion()
{
return $this->region;
}
/**
* Street-level part of the address. Use `\n` to add a second line.
*
* @param string $streetAddress
*/
public function setStreetAddress($streetAddress)
{
$this->streetAddress = $streetAddress;
}
/**
* @return string
*/
public function getStreetAddress()
{
return $this->streetAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountAddress::class, 'Google_Service_ShoppingContent_AccountAddress');
@@ -0,0 +1,88 @@
<?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\ShoppingContent;
class AccountAdsLink extends \Google\Model
{
/**
* Customer ID of the Ads account.
*
* @var string
*/
public $adsId;
/**
* Status of the link between this Merchant Center account and the Ads
* account. Upon retrieval, it represents the actual status of the link and
* can be either `active` if it was approved in Google Ads or `pending` if
* it's pending approval. Upon insertion, it represents the *intended* status
* of the link. Re-uploading a link with status `active` when it's still
* pending or with status `pending` when it's already active will have no
* effect: the status will remain unchanged. Re-uploading a link with
* deprecated status `inactive` is equivalent to not submitting the link at
* all and will delete the link if it was active or cancel the link request if
* it was pending. Acceptable values are: - "`active`" - "`pending`"
*
* @var string
*/
public $status;
/**
* Customer ID of the Ads account.
*
* @param string $adsId
*/
public function setAdsId($adsId)
{
$this->adsId = $adsId;
}
/**
* @return string
*/
public function getAdsId()
{
return $this->adsId;
}
/**
* Status of the link between this Merchant Center account and the Ads
* account. Upon retrieval, it represents the actual status of the link and
* can be either `active` if it was approved in Google Ads or `pending` if
* it's pending approval. Upon insertion, it represents the *intended* status
* of the link. Re-uploading a link with status `active` when it's still
* pending or with status `pending` when it's already active will have no
* effect: the status will remain unchanged. Re-uploading a link with
* deprecated status `inactive` is equivalent to not submitting the link at
* all and will delete the link if it was active or cancel the link request if
* it was pending. Acceptable values are: - "`active`" - "`pending`"
*
* @param string $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountAdsLink::class, 'Google_Service_ShoppingContent_AccountAdsLink');
@@ -0,0 +1,103 @@
<?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\ShoppingContent;
class AccountAutomaticImprovements extends \Google\Model
{
protected $imageImprovementsType = AccountImageImprovements::class;
protected $imageImprovementsDataType = '';
protected $itemUpdatesType = AccountItemUpdates::class;
protected $itemUpdatesDataType = '';
protected $shippingImprovementsType = AccountShippingImprovements::class;
protected $shippingImprovementsDataType = '';
/**
* This improvement will attempt to automatically correct submitted images if
* they don't meet the [image
* requirements](https://support.google.com/merchants/answer/6324350), for
* example, removing overlays. If successful, the image will be replaced and
* approved. This improvement is only applied to images of disapproved offers.
* For more information see: [Automatic image
* improvements](https://support.google.com/merchants/answer/9242973) This
* field is only updated (cleared) if provided.
*
* @param AccountImageImprovements $imageImprovements
*/
public function setImageImprovements(AccountImageImprovements $imageImprovements)
{
$this->imageImprovements = $imageImprovements;
}
/**
* @return AccountImageImprovements
*/
public function getImageImprovements()
{
return $this->imageImprovements;
}
/**
* Turning on [item
* updates](https://support.google.com/merchants/answer/3246284) allows Google
* to automatically update items for you. When item updates are on, Google
* uses the structured data markup on the website and advanced data extractors
* to update the price and availability of the items. When the item updates
* are off, items with mismatched data aren't shown. This field is only
* updated (cleared) if provided.
*
* @param AccountItemUpdates $itemUpdates
*/
public function setItemUpdates(AccountItemUpdates $itemUpdates)
{
$this->itemUpdates = $itemUpdates;
}
/**
* @return AccountItemUpdates
*/
public function getItemUpdates()
{
return $this->itemUpdates;
}
/**
* Not available for MCAs
* [accounts](https://support.google.com/merchants/answer/188487). By turning
* on [automatic shipping
* improvements](https://support.google.com/merchants/answer/10027038), you
* are allowing Google to improve the accuracy of your delivery times shown to
* shoppers using Google. More accurate delivery times, especially when
* faster, typically lead to better conversion rates. Google will improve your
* estimated delivery times based on various factors: - Delivery address of an
* order - Current handling time and shipping time settings - Estimated
* weekdays or business days - Parcel tracking data This field is only updated
* (cleared) if provided.
*
* @param AccountShippingImprovements $shippingImprovements
*/
public function setShippingImprovements(AccountShippingImprovements $shippingImprovements)
{
$this->shippingImprovements = $shippingImprovements;
}
/**
* @return AccountShippingImprovements
*/
public function getShippingImprovements()
{
return $this->shippingImprovements;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountAutomaticImprovements::class, 'Google_Service_ShoppingContent_AccountAutomaticImprovements');
@@ -0,0 +1,161 @@
<?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\ShoppingContent;
class AccountBusinessIdentity extends \Google\Model
{
protected $blackOwnedType = AccountIdentityType::class;
protected $blackOwnedDataType = '';
/**
* Required. By setting this field, your business may be included in
* promotions for all the selected attributes. If you clear this option, it
* won't affect your identification with any of the attributes. For this field
* to be set, the merchant must self identify with at least one of the
* `AccountIdentityType`. If none are included, the request will be considered
* invalid.
*
* @var bool
*/
public $includeForPromotions;
protected $latinoOwnedType = AccountIdentityType::class;
protected $latinoOwnedDataType = '';
protected $smallBusinessType = AccountIdentityType::class;
protected $smallBusinessDataType = '';
protected $veteranOwnedType = AccountIdentityType::class;
protected $veteranOwnedDataType = '';
protected $womenOwnedType = AccountIdentityType::class;
protected $womenOwnedDataType = '';
/**
* Specifies whether the business identifies itself as being black-owned. This
* optional field is only available for merchants with a business country set
* to "US". This field is not allowed for marketplaces or marketplace sellers.
*
* @param AccountIdentityType $blackOwned
*/
public function setBlackOwned(AccountIdentityType $blackOwned)
{
$this->blackOwned = $blackOwned;
}
/**
* @return AccountIdentityType
*/
public function getBlackOwned()
{
return $this->blackOwned;
}
/**
* Required. By setting this field, your business may be included in
* promotions for all the selected attributes. If you clear this option, it
* won't affect your identification with any of the attributes. For this field
* to be set, the merchant must self identify with at least one of the
* `AccountIdentityType`. If none are included, the request will be considered
* invalid.
*
* @param bool $includeForPromotions
*/
public function setIncludeForPromotions($includeForPromotions)
{
$this->includeForPromotions = $includeForPromotions;
}
/**
* @return bool
*/
public function getIncludeForPromotions()
{
return $this->includeForPromotions;
}
/**
* Specifies whether the business identifies itself as being latino-owned.
* This optional field is only available for merchants with a business country
* set to "US". This field is not allowed for marketplaces or marketplace
* sellers.
*
* @param AccountIdentityType $latinoOwned
*/
public function setLatinoOwned(AccountIdentityType $latinoOwned)
{
$this->latinoOwned = $latinoOwned;
}
/**
* @return AccountIdentityType
*/
public function getLatinoOwned()
{
return $this->latinoOwned;
}
/**
* Specifies whether the business identifies itself as a small business. This
* optional field is only available for merchants with a business country set
* to "US". It is also not allowed for marketplaces, but it is allowed to
* marketplace sellers.
*
* @param AccountIdentityType $smallBusiness
*/
public function setSmallBusiness(AccountIdentityType $smallBusiness)
{
$this->smallBusiness = $smallBusiness;
}
/**
* @return AccountIdentityType
*/
public function getSmallBusiness()
{
return $this->smallBusiness;
}
/**
* Specifies whether the business identifies itself as being veteran-owned.
* This optional field is only available for merchants with a business country
* set to "US". This field is not allowed for marketplaces or marketplace
* sellers.
*
* @param AccountIdentityType $veteranOwned
*/
public function setVeteranOwned(AccountIdentityType $veteranOwned)
{
$this->veteranOwned = $veteranOwned;
}
/**
* @return AccountIdentityType
*/
public function getVeteranOwned()
{
return $this->veteranOwned;
}
/**
* Specifies whether the business identifies itself as being women-owned. This
* optional field is only available for merchants with a business country set
* to "US". This field is not allowed for marketplaces or marketplace sellers.
*
* @param AccountIdentityType $womenOwned
*/
public function setWomenOwned(AccountIdentityType $womenOwned)
{
$this->womenOwned = $womenOwned;
}
/**
* @return AccountIdentityType
*/
public function getWomenOwned()
{
return $this->womenOwned;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountBusinessIdentity::class, 'Google_Service_ShoppingContent_AccountBusinessIdentity');
@@ -0,0 +1,146 @@
<?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\ShoppingContent;
class AccountBusinessInformation extends \Google\Model
{
protected $addressType = AccountAddress::class;
protected $addressDataType = '';
protected $customerServiceType = AccountCustomerService::class;
protected $customerServiceDataType = '';
/**
* The 10-digit [Korean business registration
* number](https://support.google.com/merchants/answer/9037766) separated with
* dashes in the format: XXX-XX-XXXXX. This field will only be updated if
* explicitly set.
*
* @var string
*/
public $koreanBusinessRegistrationNumber;
/**
* The phone number of the business in
* [E.164](https://en.wikipedia.org/wiki/E.164) format. This can only be
* updated if a verified phone number is not already set. To replace a
* verified phone number use the `Accounts.requestphoneverification` and
* `Accounts.verifyphonenumber`.
*
* @var string
*/
public $phoneNumber;
/**
* Verification status of the phone number of the business. This status is
* read only and can be updated only by successful phone verification.
* Acceptable values are: - "`verified`" - "`unverified`"
*
* @var string
*/
public $phoneVerificationStatus;
/**
* The address of the business. Use `\n` to add a second address line.
*
* @param AccountAddress $address
*/
public function setAddress(AccountAddress $address)
{
$this->address = $address;
}
/**
* @return AccountAddress
*/
public function getAddress()
{
return $this->address;
}
/**
* The customer service information of the business.
*
* @param AccountCustomerService $customerService
*/
public function setCustomerService(AccountCustomerService $customerService)
{
$this->customerService = $customerService;
}
/**
* @return AccountCustomerService
*/
public function getCustomerService()
{
return $this->customerService;
}
/**
* The 10-digit [Korean business registration
* number](https://support.google.com/merchants/answer/9037766) separated with
* dashes in the format: XXX-XX-XXXXX. This field will only be updated if
* explicitly set.
*
* @param string $koreanBusinessRegistrationNumber
*/
public function setKoreanBusinessRegistrationNumber($koreanBusinessRegistrationNumber)
{
$this->koreanBusinessRegistrationNumber = $koreanBusinessRegistrationNumber;
}
/**
* @return string
*/
public function getKoreanBusinessRegistrationNumber()
{
return $this->koreanBusinessRegistrationNumber;
}
/**
* The phone number of the business in
* [E.164](https://en.wikipedia.org/wiki/E.164) format. This can only be
* updated if a verified phone number is not already set. To replace a
* verified phone number use the `Accounts.requestphoneverification` and
* `Accounts.verifyphonenumber`.
*
* @param string $phoneNumber
*/
public function setPhoneNumber($phoneNumber)
{
$this->phoneNumber = $phoneNumber;
}
/**
* @return string
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* Verification status of the phone number of the business. This status is
* read only and can be updated only by successful phone verification.
* Acceptable values are: - "`verified`" - "`unverified`"
*
* @param string $phoneVerificationStatus
*/
public function setPhoneVerificationStatus($phoneVerificationStatus)
{
$this->phoneVerificationStatus = $phoneVerificationStatus;
}
/**
* @return string
*/
public function getPhoneVerificationStatus()
{
return $this->phoneVerificationStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountBusinessInformation::class, 'Google_Service_ShoppingContent_AccountBusinessInformation');
@@ -0,0 +1,52 @@
<?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\ShoppingContent;
class AccountConversionSettings extends \Google\Model
{
/**
* When enabled, free listing URLs have a parameter to enable conversion
* tracking for products owned by the current merchant account. See [auto-
* tagging](https://support.google.com/merchants/answer/11127659).
*
* @var bool
*/
public $freeListingsAutoTaggingEnabled;
/**
* When enabled, free listing URLs have a parameter to enable conversion
* tracking for products owned by the current merchant account. See [auto-
* tagging](https://support.google.com/merchants/answer/11127659).
*
* @param bool $freeListingsAutoTaggingEnabled
*/
public function setFreeListingsAutoTaggingEnabled($freeListingsAutoTaggingEnabled)
{
$this->freeListingsAutoTaggingEnabled = $freeListingsAutoTaggingEnabled;
}
/**
* @return bool
*/
public function getFreeListingsAutoTaggingEnabled()
{
return $this->freeListingsAutoTaggingEnabled;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountConversionSettings::class, 'Google_Service_ShoppingContent_AccountConversionSettings');
@@ -0,0 +1,113 @@
<?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\ShoppingContent;
class AccountCredentials extends \Google\Model
{
/**
* Unknown purpose.
*/
public const PURPOSE_ACCOUNT_CREDENTIALS_PURPOSE_UNSPECIFIED = 'ACCOUNT_CREDENTIALS_PURPOSE_UNSPECIFIED';
/**
* The credentials allow Google to manage Shopify orders on behalf of the
* merchant (deprecated).
*
* @deprecated
*/
public const PURPOSE_SHOPIFY_ORDER_MANAGEMENT = 'SHOPIFY_ORDER_MANAGEMENT';
/**
* The credentials allow Google to manage Shopify integration on behalf of the
* merchant.
*/
public const PURPOSE_SHOPIFY_INTEGRATION = 'SHOPIFY_INTEGRATION';
/**
* An OAuth access token.
*
* @var string
*/
public $accessToken;
/**
* The amount of time, in seconds, after which the access token is no longer
* valid.
*
* @var string
*/
public $expiresIn;
/**
* Indicates to Google how Google should use these OAuth tokens.
*
* @var string
*/
public $purpose;
/**
* An OAuth access token.
*
* @param string $accessToken
*/
public function setAccessToken($accessToken)
{
$this->accessToken = $accessToken;
}
/**
* @return string
*/
public function getAccessToken()
{
return $this->accessToken;
}
/**
* The amount of time, in seconds, after which the access token is no longer
* valid.
*
* @param string $expiresIn
*/
public function setExpiresIn($expiresIn)
{
$this->expiresIn = $expiresIn;
}
/**
* @return string
*/
public function getExpiresIn()
{
return $this->expiresIn;
}
/**
* Indicates to Google how Google should use these OAuth tokens.
*
* Accepted values: ACCOUNT_CREDENTIALS_PURPOSE_UNSPECIFIED,
* SHOPIFY_ORDER_MANAGEMENT, SHOPIFY_INTEGRATION
*
* @param self::PURPOSE_* $purpose
*/
public function setPurpose($purpose)
{
$this->purpose = $purpose;
}
/**
* @return self::PURPOSE_*
*/
public function getPurpose()
{
return $this->purpose;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountCredentials::class, 'Google_Service_ShoppingContent_AccountCredentials');
@@ -0,0 +1,92 @@
<?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\ShoppingContent;
class AccountCustomerService extends \Google\Model
{
/**
* Customer service email.
*
* @var string
*/
public $email;
/**
* Customer service phone number.
*
* @var string
*/
public $phoneNumber;
/**
* Customer service URL.
*
* @var string
*/
public $url;
/**
* Customer service email.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Customer service phone number.
*
* @param string $phoneNumber
*/
public function setPhoneNumber($phoneNumber)
{
$this->phoneNumber = $phoneNumber;
}
/**
* @return string
*/
public function getPhoneNumber()
{
return $this->phoneNumber;
}
/**
* Customer service URL.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountCustomerService::class, 'Google_Service_ShoppingContent_AccountCustomerService');
@@ -0,0 +1,102 @@
<?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\ShoppingContent;
class AccountGoogleMyBusinessLink extends \Google\Model
{
/**
* The ID of the Business Profile. If this is provided, then `gmbEmail` is
* ignored. The value of this field should match the `accountId` used by the
* Business Profile API.
*
* @var string
*/
public $gmbAccountId;
/**
* The Business Profile email address of a specific account within a Business
* Profile. A sample account within a Business Profile could be a business
* account with set of locations, managed under the Business Profile.
*
* @var string
*/
public $gmbEmail;
/**
* Status of the link between this Merchant Center account and the Business
* Profile. Acceptable values are: - "`active`" - "`pending`"
*
* @var string
*/
public $status;
/**
* The ID of the Business Profile. If this is provided, then `gmbEmail` is
* ignored. The value of this field should match the `accountId` used by the
* Business Profile API.
*
* @param string $gmbAccountId
*/
public function setGmbAccountId($gmbAccountId)
{
$this->gmbAccountId = $gmbAccountId;
}
/**
* @return string
*/
public function getGmbAccountId()
{
return $this->gmbAccountId;
}
/**
* The Business Profile email address of a specific account within a Business
* Profile. A sample account within a Business Profile could be a business
* account with set of locations, managed under the Business Profile.
*
* @param string $gmbEmail
*/
public function setGmbEmail($gmbEmail)
{
$this->gmbEmail = $gmbEmail;
}
/**
* @return string
*/
public function getGmbEmail()
{
return $this->gmbEmail;
}
/**
* Status of the link between this Merchant Center account and the Business
* Profile. Acceptable values are: - "`active`" - "`pending`"
*
* @param string $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountGoogleMyBusinessLink::class, 'Google_Service_ShoppingContent_AccountGoogleMyBusinessLink');
@@ -0,0 +1,72 @@
<?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\ShoppingContent;
class AccountIdentifier extends \Google\Model
{
/**
* The aggregator ID, set for aggregators and subaccounts (in that case, it
* represents the aggregator of the subaccount).
*
* @var string
*/
public $aggregatorId;
/**
* The merchant account ID, set for individual accounts and subaccounts.
*
* @var string
*/
public $merchantId;
/**
* The aggregator ID, set for aggregators and subaccounts (in that case, it
* represents the aggregator of the subaccount).
*
* @param string $aggregatorId
*/
public function setAggregatorId($aggregatorId)
{
$this->aggregatorId = $aggregatorId;
}
/**
* @return string
*/
public function getAggregatorId()
{
return $this->aggregatorId;
}
/**
* The merchant account ID, set for individual accounts and subaccounts.
*
* @param string $merchantId
*/
public function setMerchantId($merchantId)
{
$this->merchantId = $merchantId;
}
/**
* @return string
*/
public function getMerchantId()
{
return $this->merchantId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountIdentifier::class, 'Google_Service_ShoppingContent_AccountIdentifier');
@@ -0,0 +1,52 @@
<?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\ShoppingContent;
class AccountIdentityType extends \Google\Model
{
/**
* Optional. Indicates that the business identifies itself with a given
* identity type. Setting this field does not automatically mean eligibility
* for promotions.
*
* @var bool
*/
public $selfIdentified;
/**
* Optional. Indicates that the business identifies itself with a given
* identity type. Setting this field does not automatically mean eligibility
* for promotions.
*
* @param bool $selfIdentified
*/
public function setSelfIdentified($selfIdentified)
{
$this->selfIdentified = $selfIdentified;
}
/**
* @return bool
*/
public function getSelfIdentified()
{
return $this->selfIdentified;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountIdentityType::class, 'Google_Service_ShoppingContent_AccountIdentityType');
@@ -0,0 +1,74 @@
<?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\ShoppingContent;
class AccountImageImprovements extends \Google\Model
{
protected $accountImageImprovementsSettingsType = AccountImageImprovementsSettings::class;
protected $accountImageImprovementsSettingsDataType = '';
/**
* Output only. The effective value of allow_automatic_image_improvements. If
* account_image_improvements_settings is present, then this value is the
* same. Otherwise, it represents the inherited value of the parent account.
* Read-only.
*
* @var bool
*/
public $effectiveAllowAutomaticImageImprovements;
/**
* Determines how the images should be automatically updated. If this field is
* not present, then the settings will be deleted. If there are no settings
* for subaccount, they are inherited from aggregator.
*
* @param AccountImageImprovementsSettings $accountImageImprovementsSettings
*/
public function setAccountImageImprovementsSettings(AccountImageImprovementsSettings $accountImageImprovementsSettings)
{
$this->accountImageImprovementsSettings = $accountImageImprovementsSettings;
}
/**
* @return AccountImageImprovementsSettings
*/
public function getAccountImageImprovementsSettings()
{
return $this->accountImageImprovementsSettings;
}
/**
* Output only. The effective value of allow_automatic_image_improvements. If
* account_image_improvements_settings is present, then this value is the
* same. Otherwise, it represents the inherited value of the parent account.
* Read-only.
*
* @param bool $effectiveAllowAutomaticImageImprovements
*/
public function setEffectiveAllowAutomaticImageImprovements($effectiveAllowAutomaticImageImprovements)
{
$this->effectiveAllowAutomaticImageImprovements = $effectiveAllowAutomaticImageImprovements;
}
/**
* @return bool
*/
public function getEffectiveAllowAutomaticImageImprovements()
{
return $this->effectiveAllowAutomaticImageImprovements;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountImageImprovements::class, 'Google_Service_ShoppingContent_AccountImageImprovements');
@@ -0,0 +1,48 @@
<?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\ShoppingContent;
class AccountImageImprovementsSettings extends \Google\Model
{
/**
* Enables automatic image improvements.
*
* @var bool
*/
public $allowAutomaticImageImprovements;
/**
* Enables automatic image improvements.
*
* @param bool $allowAutomaticImageImprovements
*/
public function setAllowAutomaticImageImprovements($allowAutomaticImageImprovements)
{
$this->allowAutomaticImageImprovements = $allowAutomaticImageImprovements;
}
/**
* @return bool
*/
public function getAllowAutomaticImageImprovements()
{
return $this->allowAutomaticImageImprovements;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountImageImprovementsSettings::class, 'Google_Service_ShoppingContent_AccountImageImprovementsSettings');
@@ -0,0 +1,282 @@
<?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\ShoppingContent;
class AccountIssue extends \Google\Collection
{
protected $collection_key = 'actions';
protected $actionsType = Action::class;
protected $actionsDataType = 'array';
protected $impactType = AccountIssueImpact::class;
protected $impactDataType = '';
/**
* Details of the issue as a pre-rendered HTML. HTML elements contain CSS
* classes that can be used to customize the style of the content. Always
* sanitize the HTML before embedding it directly to your application. The
* sanitizer needs to allow basic HTML tags, such as: `div`, `span`, `p`, `a`,
* `ul`, `li`, `table`, `tr`, `td`. For example, you can use
* [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: *
* `issue-detail` - top level container for the detail of the issue *
* `callout-banners` - section of the `issue-detail` with callout banners *
* `callout-banner` - single callout banner, inside `callout-banners` *
* `callout-banner-info` - callout with important information (default) *
* `callout-banner-warning` - callout with a warning * `callout-banner-error`
* - callout informing about an error (most severe) * `issue-content` -
* section of the `issue-detail`, contains multiple `content-element` *
* `content-element` - content element such as a list, link or paragraph,
* inside `issue-content` * `root-causes` - unordered list with items
* describing root causes of the issue, inside `issue-content` * `root-causes-
* intro` - intro text before the `root-causes` list, inside `issue-content` *
* `segment` - section of the text, `span` inside paragraph * `segment-
* attribute` - section of the text that represents a product attribute, for
* example 'image\_link' * `segment-literal` - section of the text that
* contains a special value, for example '0-1000 kg' * `segment-bold` -
* section of the text that should be rendered as bold * `segment-italic` -
* section of the text that should be rendered as italic * `tooltip` - used on
* paragraphs that should be rendered with a tooltip. A section of the text in
* such a paragraph will have a class `tooltip-text` and is intended to be
* shown in a mouse over dialog. If the style is not used, the `tooltip-text`
* section would be shown on a new line, after the main part of the text. *
* `tooltip-text` - marks a section of the text within a `tooltip`, that is
* intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a
* section of the text within a `tooltip`, that can be replaced with a tooltip
* icon, for example '?' or 'i'. By default, this section contains a `br` tag,
* that is separating the main text and the tooltip text when the style is not
* used. * `tooltip-style-question` - the tooltip shows helpful information,
* can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds
* additional information fitting to the context, can use the 'i' as an icon.
* * `content-moderation` - marks the paragraph that explains how the issue
* was identified. * `new-element` - Present for new elements added to the
* pre-rendered content in the future. To make sure that a new content element
* does not break your style, you can hide everything with this class.
*
* @var string
*/
public $prerenderedContent;
/**
* Pre-rendered HTML that contains a link to the external location where the
* ODS can be requested and instructions for how to request it. HTML elements
* contain CSS classes that can be used to customize the style of this
* snippet. Always sanitize the HTML before embedding it directly to your
* application. The sanitizer needs to allow basic HTML tags, such as: `div`,
* `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use
* [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: * `ods-
* section`* - wrapper around the out-of-court dispute resolution section *
* `ods-description`* - intro text for the out-of-court dispute resolution. It
* may contain multiple segments and a link. * `ods-param`* - wrapper around
* the header-value pair for parameters that merchant may need to provide
* during the ODS process. * `ods-routing-id`* - ods param for the Routing ID.
* * `ods-reference-id`* - ods param for the Routing ID. * `ods-param-header`*
* - header for the ODS parameter * `ods-param-value`* - value of the ODS
* parameter. This value should be rendered in a way that it is easy for
* merchants to identify and copy. * `segment` - section of the text, `span`
* inside paragraph * `segment-attribute` - section of the text that
* represents a product attribute, for example 'image\_link' * `segment-
* literal` - section of the text that contains a special value, for example
* '0-1000 kg' * `segment-bold` - section of the text that should be rendered
* as bold * `segment-italic` - section of the text that should be rendered as
* italic * `tooltip` - used on paragraphs that should be rendered with a
* tooltip. A section of the text in such a paragraph will have a class
* `tooltip-text` and is intended to be shown in a mouse over dialog. If the
* style is not used, the `tooltip-text` section would be shown on a new line,
* after the main part of the text. * `tooltip-text` - marks a section of the
* text within a `tooltip`, that is intended to be shown in a mouse over
* dialog. * `tooltip-icon` - marks a section of the text within a `tooltip`,
* that can be replaced with a tooltip icon, for example '?' or 'i'. By
* default, this section contains a `br` tag, that is separating the main text
* and the tooltip text when the style is not used. * `tooltip-style-question`
* - the tooltip shows helpful information, can use the '?' as an icon. *
* `tooltip-style-info` - the tooltip adds additional information fitting to
* the context, can use the 'i' as an icon.
*
* @var string
*/
public $prerenderedOutOfCourtDisputeSettlement;
/**
* Title of the issue.
*
* @var string
*/
public $title;
/**
* A list of actionable steps that can be executed to solve the issue. An
* example is requesting a re-review or providing arguments when merchant
* disagrees with the issue. Actions that are supported in (your) third-party
* application can be rendered as buttons and should be available to merchant
* when they expand the issue.
*
* @param Action[] $actions
*/
public function setActions($actions)
{
$this->actions = $actions;
}
/**
* @return Action[]
*/
public function getActions()
{
return $this->actions;
}
/**
* Clarifies the severity of the issue. The summarizing message, if present,
* should be shown right under the title for each issue. It helps merchants to
* quickly understand the impact of the issue. The detailed breakdown helps
* the merchant to fully understand the impact of the issue. It can be
* rendered as dialog that opens when the merchant mouse over the summarized
* impact statement. Issues with different severity can be styled differently.
* They may use a different color or icon to signal the difference between
* `ERROR`, `WARNING` and `INFO`.
*
* @param AccountIssueImpact $impact
*/
public function setImpact(AccountIssueImpact $impact)
{
$this->impact = $impact;
}
/**
* @return AccountIssueImpact
*/
public function getImpact()
{
return $this->impact;
}
/**
* Details of the issue as a pre-rendered HTML. HTML elements contain CSS
* classes that can be used to customize the style of the content. Always
* sanitize the HTML before embedding it directly to your application. The
* sanitizer needs to allow basic HTML tags, such as: `div`, `span`, `p`, `a`,
* `ul`, `li`, `table`, `tr`, `td`. For example, you can use
* [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: *
* `issue-detail` - top level container for the detail of the issue *
* `callout-banners` - section of the `issue-detail` with callout banners *
* `callout-banner` - single callout banner, inside `callout-banners` *
* `callout-banner-info` - callout with important information (default) *
* `callout-banner-warning` - callout with a warning * `callout-banner-error`
* - callout informing about an error (most severe) * `issue-content` -
* section of the `issue-detail`, contains multiple `content-element` *
* `content-element` - content element such as a list, link or paragraph,
* inside `issue-content` * `root-causes` - unordered list with items
* describing root causes of the issue, inside `issue-content` * `root-causes-
* intro` - intro text before the `root-causes` list, inside `issue-content` *
* `segment` - section of the text, `span` inside paragraph * `segment-
* attribute` - section of the text that represents a product attribute, for
* example 'image\_link' * `segment-literal` - section of the text that
* contains a special value, for example '0-1000 kg' * `segment-bold` -
* section of the text that should be rendered as bold * `segment-italic` -
* section of the text that should be rendered as italic * `tooltip` - used on
* paragraphs that should be rendered with a tooltip. A section of the text in
* such a paragraph will have a class `tooltip-text` and is intended to be
* shown in a mouse over dialog. If the style is not used, the `tooltip-text`
* section would be shown on a new line, after the main part of the text. *
* `tooltip-text` - marks a section of the text within a `tooltip`, that is
* intended to be shown in a mouse over dialog. * `tooltip-icon` - marks a
* section of the text within a `tooltip`, that can be replaced with a tooltip
* icon, for example '?' or 'i'. By default, this section contains a `br` tag,
* that is separating the main text and the tooltip text when the style is not
* used. * `tooltip-style-question` - the tooltip shows helpful information,
* can use the '?' as an icon. * `tooltip-style-info` - the tooltip adds
* additional information fitting to the context, can use the 'i' as an icon.
* * `content-moderation` - marks the paragraph that explains how the issue
* was identified. * `new-element` - Present for new elements added to the
* pre-rendered content in the future. To make sure that a new content element
* does not break your style, you can hide everything with this class.
*
* @param string $prerenderedContent
*/
public function setPrerenderedContent($prerenderedContent)
{
$this->prerenderedContent = $prerenderedContent;
}
/**
* @return string
*/
public function getPrerenderedContent()
{
return $this->prerenderedContent;
}
/**
* Pre-rendered HTML that contains a link to the external location where the
* ODS can be requested and instructions for how to request it. HTML elements
* contain CSS classes that can be used to customize the style of this
* snippet. Always sanitize the HTML before embedding it directly to your
* application. The sanitizer needs to allow basic HTML tags, such as: `div`,
* `span`, `p`, `a`, `ul`, `li`, `table`, `tr`, `td`. For example, you can use
* [DOMPurify](https://www.npmjs.com/package/dompurify). CSS classes: * `ods-
* section`* - wrapper around the out-of-court dispute resolution section *
* `ods-description`* - intro text for the out-of-court dispute resolution. It
* may contain multiple segments and a link. * `ods-param`* - wrapper around
* the header-value pair for parameters that merchant may need to provide
* during the ODS process. * `ods-routing-id`* - ods param for the Routing ID.
* * `ods-reference-id`* - ods param for the Routing ID. * `ods-param-header`*
* - header for the ODS parameter * `ods-param-value`* - value of the ODS
* parameter. This value should be rendered in a way that it is easy for
* merchants to identify and copy. * `segment` - section of the text, `span`
* inside paragraph * `segment-attribute` - section of the text that
* represents a product attribute, for example 'image\_link' * `segment-
* literal` - section of the text that contains a special value, for example
* '0-1000 kg' * `segment-bold` - section of the text that should be rendered
* as bold * `segment-italic` - section of the text that should be rendered as
* italic * `tooltip` - used on paragraphs that should be rendered with a
* tooltip. A section of the text in such a paragraph will have a class
* `tooltip-text` and is intended to be shown in a mouse over dialog. If the
* style is not used, the `tooltip-text` section would be shown on a new line,
* after the main part of the text. * `tooltip-text` - marks a section of the
* text within a `tooltip`, that is intended to be shown in a mouse over
* dialog. * `tooltip-icon` - marks a section of the text within a `tooltip`,
* that can be replaced with a tooltip icon, for example '?' or 'i'. By
* default, this section contains a `br` tag, that is separating the main text
* and the tooltip text when the style is not used. * `tooltip-style-question`
* - the tooltip shows helpful information, can use the '?' as an icon. *
* `tooltip-style-info` - the tooltip adds additional information fitting to
* the context, can use the 'i' as an icon.
*
* @param string $prerenderedOutOfCourtDisputeSettlement
*/
public function setPrerenderedOutOfCourtDisputeSettlement($prerenderedOutOfCourtDisputeSettlement)
{
$this->prerenderedOutOfCourtDisputeSettlement = $prerenderedOutOfCourtDisputeSettlement;
}
/**
* @return string
*/
public function getPrerenderedOutOfCourtDisputeSettlement()
{
return $this->prerenderedOutOfCourtDisputeSettlement;
}
/**
* Title of the issue.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountIssue::class, 'Google_Service_ShoppingContent_AccountIssue');
@@ -0,0 +1,119 @@
<?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\ShoppingContent;
class AccountIssueImpact extends \Google\Collection
{
/**
* Default value. Will never be provided by the API.
*/
public const SEVERITY_SEVERITY_UNSPECIFIED = 'SEVERITY_UNSPECIFIED';
/**
* Causes either an account suspension or an item disapproval. Errors should
* be resolved as soon as possible to ensure items are eligible to appear in
* results again.
*/
public const SEVERITY_ERROR = 'ERROR';
/**
* Warnings can negatively impact the performance of ads and can lead to item
* or account suspensions in the future unless the issue is resolved.
*/
public const SEVERITY_WARNING = 'WARNING';
/**
* Infos are suggested optimizations to increase data quality. Resolving these
* issues is recommended, but not required.
*/
public const SEVERITY_INFO = 'INFO';
protected $collection_key = 'breakdowns';
protected $breakdownsType = Breakdown::class;
protected $breakdownsDataType = 'array';
/**
* Optional. Message summarizing the overall impact of the issue. If present,
* it should be rendered to the merchant. For example: "Disapproves 90k offers
* in 25 countries"
*
* @var string
*/
public $message;
/**
* The severity of the issue.
*
* @var string
*/
public $severity;
/**
* Detailed impact breakdown. Explains the types of restriction the issue has
* in different shopping destinations and territory. If present, it should be
* rendered to the merchant. Can be shown as a mouse over dropdown or a
* dialog. Each breakdown item represents a group of regions with the same
* impact details.
*
* @param Breakdown[] $breakdowns
*/
public function setBreakdowns($breakdowns)
{
$this->breakdowns = $breakdowns;
}
/**
* @return Breakdown[]
*/
public function getBreakdowns()
{
return $this->breakdowns;
}
/**
* Optional. Message summarizing the overall impact of the issue. If present,
* it should be rendered to the merchant. For example: "Disapproves 90k offers
* in 25 countries"
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
/**
* The severity of the issue.
*
* Accepted values: SEVERITY_UNSPECIFIED, ERROR, WARNING, INFO
*
* @param self::SEVERITY_* $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return self::SEVERITY_*
*/
public function getSeverity()
{
return $this->severity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountIssueImpact::class, 'Google_Service_ShoppingContent_AccountIssueImpact');
@@ -0,0 +1,158 @@
<?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\ShoppingContent;
class AccountItemUpdates extends \Google\Model
{
protected $accountItemUpdatesSettingsType = AccountItemUpdatesSettings::class;
protected $accountItemUpdatesSettingsDataType = '';
/**
* Output only. The effective value of allow_availability_updates. If
* account_item_updates_settings is present, then this value is the same.
* Otherwise, it represents the inherited value of the parent account. Read-
* only.
*
* @var bool
*/
public $effectiveAllowAvailabilityUpdates;
/**
* Output only. The effective value of allow_condition_updates. If
* account_item_updates_settings is present, then this value is the same.
* Otherwise, it represents the inherited value of the parent account. Read-
* only.
*
* @var bool
*/
public $effectiveAllowConditionUpdates;
/**
* Output only. The effective value of allow_price_updates. If
* account_item_updates_settings is present, then this value is the same.
* Otherwise, it represents the inherited value of the parent account. Read-
* only.
*
* @var bool
*/
public $effectiveAllowPriceUpdates;
/**
* Output only. The effective value of allow_strict_availability_updates. If
* account_item_updates_settings is present, then this value is the same.
* Otherwise, it represents the inherited value of the parent account. Read-
* only.
*
* @var bool
*/
public $effectiveAllowStrictAvailabilityUpdates;
/**
* Determines which attributes of the items should be automatically updated.
* If this field is not present, then the settings will be deleted. If there
* are no settings for subaccount, they are inherited from aggregator.
*
* @param AccountItemUpdatesSettings $accountItemUpdatesSettings
*/
public function setAccountItemUpdatesSettings(AccountItemUpdatesSettings $accountItemUpdatesSettings)
{
$this->accountItemUpdatesSettings = $accountItemUpdatesSettings;
}
/**
* @return AccountItemUpdatesSettings
*/
public function getAccountItemUpdatesSettings()
{
return $this->accountItemUpdatesSettings;
}
/**
* Output only. The effective value of allow_availability_updates. If
* account_item_updates_settings is present, then this value is the same.
* Otherwise, it represents the inherited value of the parent account. Read-
* only.
*
* @param bool $effectiveAllowAvailabilityUpdates
*/
public function setEffectiveAllowAvailabilityUpdates($effectiveAllowAvailabilityUpdates)
{
$this->effectiveAllowAvailabilityUpdates = $effectiveAllowAvailabilityUpdates;
}
/**
* @return bool
*/
public function getEffectiveAllowAvailabilityUpdates()
{
return $this->effectiveAllowAvailabilityUpdates;
}
/**
* Output only. The effective value of allow_condition_updates. If
* account_item_updates_settings is present, then this value is the same.
* Otherwise, it represents the inherited value of the parent account. Read-
* only.
*
* @param bool $effectiveAllowConditionUpdates
*/
public function setEffectiveAllowConditionUpdates($effectiveAllowConditionUpdates)
{
$this->effectiveAllowConditionUpdates = $effectiveAllowConditionUpdates;
}
/**
* @return bool
*/
public function getEffectiveAllowConditionUpdates()
{
return $this->effectiveAllowConditionUpdates;
}
/**
* Output only. The effective value of allow_price_updates. If
* account_item_updates_settings is present, then this value is the same.
* Otherwise, it represents the inherited value of the parent account. Read-
* only.
*
* @param bool $effectiveAllowPriceUpdates
*/
public function setEffectiveAllowPriceUpdates($effectiveAllowPriceUpdates)
{
$this->effectiveAllowPriceUpdates = $effectiveAllowPriceUpdates;
}
/**
* @return bool
*/
public function getEffectiveAllowPriceUpdates()
{
return $this->effectiveAllowPriceUpdates;
}
/**
* Output only. The effective value of allow_strict_availability_updates. If
* account_item_updates_settings is present, then this value is the same.
* Otherwise, it represents the inherited value of the parent account. Read-
* only.
*
* @param bool $effectiveAllowStrictAvailabilityUpdates
*/
public function setEffectiveAllowStrictAvailabilityUpdates($effectiveAllowStrictAvailabilityUpdates)
{
$this->effectiveAllowStrictAvailabilityUpdates = $effectiveAllowStrictAvailabilityUpdates;
}
/**
* @return bool
*/
public function getEffectiveAllowStrictAvailabilityUpdates()
{
return $this->effectiveAllowStrictAvailabilityUpdates;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountItemUpdates::class, 'Google_Service_ShoppingContent_AccountItemUpdates');
@@ -0,0 +1,134 @@
<?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\ShoppingContent;
class AccountItemUpdatesSettings extends \Google\Model
{
/**
* If availability updates are enabled, any previous availability values get
* overwritten if Google finds an out-of-stock annotation on the offer's page.
* If additionally `allow_availability_updates` field is set to true, values
* get overwritten if Google finds an in-stock annotation on the offers page.
*
* @var bool
*/
public $allowAvailabilityUpdates;
/**
* If condition updates are enabled, Google always updates item condition with
* the condition detected from the details of your product.
*
* @var bool
*/
public $allowConditionUpdates;
/**
* If price updates are enabled, Google always updates the active price with
* the crawled information.
*
* @var bool
*/
public $allowPriceUpdates;
/**
* If allow_availability_updates is enabled, items are automatically updated
* in all your Shopping target countries. By default, availability updates
* will only be applied to items that are 'out of stock' on your website but
* 'in stock' on Shopping. Set this to true to also update items that are 'in
* stock' on your website, but 'out of stock' on Google Shopping. In order for
* this field to have an effect, you must also allow availability updates.
*
* @var bool
*/
public $allowStrictAvailabilityUpdates;
/**
* If availability updates are enabled, any previous availability values get
* overwritten if Google finds an out-of-stock annotation on the offer's page.
* If additionally `allow_availability_updates` field is set to true, values
* get overwritten if Google finds an in-stock annotation on the offers page.
*
* @param bool $allowAvailabilityUpdates
*/
public function setAllowAvailabilityUpdates($allowAvailabilityUpdates)
{
$this->allowAvailabilityUpdates = $allowAvailabilityUpdates;
}
/**
* @return bool
*/
public function getAllowAvailabilityUpdates()
{
return $this->allowAvailabilityUpdates;
}
/**
* If condition updates are enabled, Google always updates item condition with
* the condition detected from the details of your product.
*
* @param bool $allowConditionUpdates
*/
public function setAllowConditionUpdates($allowConditionUpdates)
{
$this->allowConditionUpdates = $allowConditionUpdates;
}
/**
* @return bool
*/
public function getAllowConditionUpdates()
{
return $this->allowConditionUpdates;
}
/**
* If price updates are enabled, Google always updates the active price with
* the crawled information.
*
* @param bool $allowPriceUpdates
*/
public function setAllowPriceUpdates($allowPriceUpdates)
{
$this->allowPriceUpdates = $allowPriceUpdates;
}
/**
* @return bool
*/
public function getAllowPriceUpdates()
{
return $this->allowPriceUpdates;
}
/**
* If allow_availability_updates is enabled, items are automatically updated
* in all your Shopping target countries. By default, availability updates
* will only be applied to items that are 'out of stock' on your website but
* 'in stock' on Shopping. Set this to true to also update items that are 'in
* stock' on your website, but 'out of stock' on Google Shopping. In order for
* this field to have an effect, you must also allow availability updates.
*
* @param bool $allowStrictAvailabilityUpdates
*/
public function setAllowStrictAvailabilityUpdates($allowStrictAvailabilityUpdates)
{
$this->allowStrictAvailabilityUpdates = $allowStrictAvailabilityUpdates;
}
/**
* @return bool
*/
public function getAllowStrictAvailabilityUpdates()
{
return $this->allowStrictAvailabilityUpdates;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountItemUpdatesSettings::class, 'Google_Service_ShoppingContent_AccountItemUpdatesSettings');
@@ -0,0 +1,150 @@
<?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\ShoppingContent;
class AccountLabel extends \Google\Model
{
/**
* Unknown label type.
*/
public const LABEL_TYPE_LABEL_TYPE_UNSPECIFIED = 'LABEL_TYPE_UNSPECIFIED';
/**
* Indicates that the label was created manually.
*/
public const LABEL_TYPE_MANUAL = 'MANUAL';
/**
* Indicates that the label was created automatically by CSS Center.
*/
public const LABEL_TYPE_AUTOMATIC = 'AUTOMATIC';
/**
* Immutable. The ID of account this label belongs to.
*
* @var string
*/
public $accountId;
/**
* The description of this label.
*
* @var string
*/
public $description;
/**
* Output only. The ID of the label.
*
* @var string
*/
public $labelId;
/**
* Output only. The type of this label.
*
* @var string
*/
public $labelType;
/**
* The display name of this label.
*
* @var string
*/
public $name;
/**
* Immutable. The ID of account this label belongs to.
*
* @param string $accountId
*/
public function setAccountId($accountId)
{
$this->accountId = $accountId;
}
/**
* @return string
*/
public function getAccountId()
{
return $this->accountId;
}
/**
* The description of this label.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Output only. The ID of the label.
*
* @param string $labelId
*/
public function setLabelId($labelId)
{
$this->labelId = $labelId;
}
/**
* @return string
*/
public function getLabelId()
{
return $this->labelId;
}
/**
* Output only. The type of this label.
*
* Accepted values: LABEL_TYPE_UNSPECIFIED, MANUAL, AUTOMATIC
*
* @param self::LABEL_TYPE_* $labelType
*/
public function setLabelType($labelType)
{
$this->labelType = $labelType;
}
/**
* @return self::LABEL_TYPE_*
*/
public function getLabelType()
{
return $this->labelType;
}
/**
* The display name of this label.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountLabel::class, 'Google_Service_ShoppingContent_AccountLabel');
@@ -0,0 +1,130 @@
<?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\ShoppingContent;
class AccountReturnCarrier extends \Google\Model
{
/**
* Carrier not specified
*/
public const CARRIER_CODE_CARRIER_CODE_UNSPECIFIED = 'CARRIER_CODE_UNSPECIFIED';
/**
* FedEx carrier
*/
public const CARRIER_CODE_FEDEX = 'FEDEX';
/**
* UPS carrier
*/
public const CARRIER_CODE_UPS = 'UPS';
/**
* Output only. Immutable. The Google-provided unique carrier ID, used to
* update the resource.
*
* @var string
*/
public $carrierAccountId;
/**
* Name of the carrier account.
*
* @var string
*/
public $carrierAccountName;
/**
* Number of the carrier account.
*
* @var string
*/
public $carrierAccountNumber;
/**
* The carrier code enum. Accepts the values FEDEX or UPS.
*
* @var string
*/
public $carrierCode;
/**
* Output only. Immutable. The Google-provided unique carrier ID, used to
* update the resource.
*
* @param string $carrierAccountId
*/
public function setCarrierAccountId($carrierAccountId)
{
$this->carrierAccountId = $carrierAccountId;
}
/**
* @return string
*/
public function getCarrierAccountId()
{
return $this->carrierAccountId;
}
/**
* Name of the carrier account.
*
* @param string $carrierAccountName
*/
public function setCarrierAccountName($carrierAccountName)
{
$this->carrierAccountName = $carrierAccountName;
}
/**
* @return string
*/
public function getCarrierAccountName()
{
return $this->carrierAccountName;
}
/**
* Number of the carrier account.
*
* @param string $carrierAccountNumber
*/
public function setCarrierAccountNumber($carrierAccountNumber)
{
$this->carrierAccountNumber = $carrierAccountNumber;
}
/**
* @return string
*/
public function getCarrierAccountNumber()
{
return $this->carrierAccountNumber;
}
/**
* The carrier code enum. Accepts the values FEDEX or UPS.
*
* Accepted values: CARRIER_CODE_UNSPECIFIED, FEDEX, UPS
*
* @param self::CARRIER_CODE_* $carrierCode
*/
public function setCarrierCode($carrierCode)
{
$this->carrierCode = $carrierCode;
}
/**
* @return self::CARRIER_CODE_*
*/
public function getCarrierCode()
{
return $this->carrierCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountReturnCarrier::class, 'Google_Service_ShoppingContent_AccountReturnCarrier');
@@ -0,0 +1,48 @@
<?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\ShoppingContent;
class AccountShippingImprovements extends \Google\Model
{
/**
* Enables automatic shipping improvements.
*
* @var bool
*/
public $allowShippingImprovements;
/**
* Enables automatic shipping improvements.
*
* @param bool $allowShippingImprovements
*/
public function setAllowShippingImprovements($allowShippingImprovements)
{
$this->allowShippingImprovements = $allowShippingImprovements;
}
/**
* @return bool
*/
public function getAllowShippingImprovements()
{
return $this->allowShippingImprovements;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountShippingImprovements::class, 'Google_Service_ShoppingContent_AccountShippingImprovements');
@@ -0,0 +1,156 @@
<?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\ShoppingContent;
class AccountStatus extends \Google\Collection
{
protected $collection_key = 'products';
/**
* The ID of the account for which the status is reported.
*
* @var string
*/
public $accountId;
protected $accountLevelIssuesType = AccountStatusAccountLevelIssue::class;
protected $accountLevelIssuesDataType = 'array';
/**
* How the account is managed. Acceptable values are: - "`manual`" -
* "`automatic`"
*
* @var string
*/
public $accountManagement;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountStatus`"
*
* @var string
*/
public $kind;
protected $productsType = AccountStatusProducts::class;
protected $productsDataType = 'array';
/**
* Whether the account's website is claimed or not.
*
* @var bool
*/
public $websiteClaimed;
/**
* The ID of the account for which the status is reported.
*
* @param string $accountId
*/
public function setAccountId($accountId)
{
$this->accountId = $accountId;
}
/**
* @return string
*/
public function getAccountId()
{
return $this->accountId;
}
/**
* A list of account level issues.
*
* @param AccountStatusAccountLevelIssue[] $accountLevelIssues
*/
public function setAccountLevelIssues($accountLevelIssues)
{
$this->accountLevelIssues = $accountLevelIssues;
}
/**
* @return AccountStatusAccountLevelIssue[]
*/
public function getAccountLevelIssues()
{
return $this->accountLevelIssues;
}
/**
* How the account is managed. Acceptable values are: - "`manual`" -
* "`automatic`"
*
* @param string $accountManagement
*/
public function setAccountManagement($accountManagement)
{
$this->accountManagement = $accountManagement;
}
/**
* @return string
*/
public function getAccountManagement()
{
return $this->accountManagement;
}
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountStatus`"
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* List of product-related data by channel, destination, and country. Data in
* this field may be delayed by up to 30 minutes.
*
* @param AccountStatusProducts[] $products
*/
public function setProducts($products)
{
$this->products = $products;
}
/**
* @return AccountStatusProducts[]
*/
public function getProducts()
{
return $this->products;
}
/**
* Whether the account's website is claimed or not.
*
* @param bool $websiteClaimed
*/
public function setWebsiteClaimed($websiteClaimed)
{
$this->websiteClaimed = $websiteClaimed;
}
/**
* @return bool
*/
public function getWebsiteClaimed()
{
return $this->websiteClaimed;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountStatus::class, 'Google_Service_ShoppingContent_AccountStatus');
@@ -0,0 +1,184 @@
<?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\ShoppingContent;
class AccountStatusAccountLevelIssue extends \Google\Model
{
/**
* Country for which this issue is reported.
*
* @var string
*/
public $country;
/**
* The destination the issue applies to. If this field is empty then the issue
* applies to all available destinations.
*
* @var string
*/
public $destination;
/**
* Additional details about the issue.
*
* @var string
*/
public $detail;
/**
* The URL of a web page to help resolving this issue.
*
* @var string
*/
public $documentation;
/**
* Issue identifier.
*
* @var string
*/
public $id;
/**
* Severity of the issue. Acceptable values are: - "`critical`" - "`error`" -
* "`suggestion`"
*
* @var string
*/
public $severity;
/**
* Short description of the issue.
*
* @var string
*/
public $title;
/**
* Country for which this issue is reported.
*
* @param string $country
*/
public function setCountry($country)
{
$this->country = $country;
}
/**
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* The destination the issue applies to. If this field is empty then the issue
* applies to all available destinations.
*
* @param string $destination
*/
public function setDestination($destination)
{
$this->destination = $destination;
}
/**
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* Additional details about the issue.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* The URL of a web page to help resolving this issue.
*
* @param string $documentation
*/
public function setDocumentation($documentation)
{
$this->documentation = $documentation;
}
/**
* @return string
*/
public function getDocumentation()
{
return $this->documentation;
}
/**
* Issue identifier.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Severity of the issue. Acceptable values are: - "`critical`" - "`error`" -
* "`suggestion`"
*
* @param string $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* Short description of the issue.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountStatusAccountLevelIssue::class, 'Google_Service_ShoppingContent_AccountStatusAccountLevelIssue');
@@ -0,0 +1,202 @@
<?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\ShoppingContent;
class AccountStatusItemLevelIssue extends \Google\Model
{
/**
* The attribute's name, if the issue is caused by a single attribute.
*
* @var string
*/
public $attributeName;
/**
* The error code of the issue.
*
* @var string
*/
public $code;
/**
* A short issue description in English.
*
* @var string
*/
public $description;
/**
* A detailed issue description in English.
*
* @var string
*/
public $detail;
/**
* The URL of a web page to help with resolving this issue.
*
* @var string
*/
public $documentation;
/**
* Number of items with this issue.
*
* @var string
*/
public $numItems;
/**
* Whether the issue can be resolved by the merchant.
*
* @var string
*/
public $resolution;
/**
* How this issue affects serving of the offer.
*
* @var string
*/
public $servability;
/**
* The attribute's name, if the issue is caused by a single attribute.
*
* @param string $attributeName
*/
public function setAttributeName($attributeName)
{
$this->attributeName = $attributeName;
}
/**
* @return string
*/
public function getAttributeName()
{
return $this->attributeName;
}
/**
* The error code of the issue.
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* A short issue description in English.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* A detailed issue description in English.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* The URL of a web page to help with resolving this issue.
*
* @param string $documentation
*/
public function setDocumentation($documentation)
{
$this->documentation = $documentation;
}
/**
* @return string
*/
public function getDocumentation()
{
return $this->documentation;
}
/**
* Number of items with this issue.
*
* @param string $numItems
*/
public function setNumItems($numItems)
{
$this->numItems = $numItems;
}
/**
* @return string
*/
public function getNumItems()
{
return $this->numItems;
}
/**
* Whether the issue can be resolved by the merchant.
*
* @param string $resolution
*/
public function setResolution($resolution)
{
$this->resolution = $resolution;
}
/**
* @return string
*/
public function getResolution()
{
return $this->resolution;
}
/**
* How this issue affects serving of the offer.
*
* @param string $servability
*/
public function setServability($servability)
{
$this->servability = $servability;
}
/**
* @return string
*/
public function getServability()
{
return $this->servability;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountStatusItemLevelIssue::class, 'Google_Service_ShoppingContent_AccountStatusItemLevelIssue');
@@ -0,0 +1,131 @@
<?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\ShoppingContent;
class AccountStatusProducts extends \Google\Collection
{
protected $collection_key = 'itemLevelIssues';
/**
* The channel the data applies to. Acceptable values are: - "`local`" -
* "`online`"
*
* @var string
*/
public $channel;
/**
* The country the data applies to.
*
* @var string
*/
public $country;
/**
* The destination the data applies to.
*
* @var string
*/
public $destination;
protected $itemLevelIssuesType = AccountStatusItemLevelIssue::class;
protected $itemLevelIssuesDataType = 'array';
protected $statisticsType = AccountStatusStatistics::class;
protected $statisticsDataType = '';
/**
* The channel the data applies to. Acceptable values are: - "`local`" -
* "`online`"
*
* @param string $channel
*/
public function setChannel($channel)
{
$this->channel = $channel;
}
/**
* @return string
*/
public function getChannel()
{
return $this->channel;
}
/**
* The country the data applies to.
*
* @param string $country
*/
public function setCountry($country)
{
$this->country = $country;
}
/**
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* The destination the data applies to.
*
* @param string $destination
*/
public function setDestination($destination)
{
$this->destination = $destination;
}
/**
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* List of item-level issues.
*
* @param AccountStatusItemLevelIssue[] $itemLevelIssues
*/
public function setItemLevelIssues($itemLevelIssues)
{
$this->itemLevelIssues = $itemLevelIssues;
}
/**
* @return AccountStatusItemLevelIssue[]
*/
public function getItemLevelIssues()
{
return $this->itemLevelIssues;
}
/**
* Aggregated product statistics.
*
* @param AccountStatusStatistics $statistics
*/
public function setStatistics(AccountStatusStatistics $statistics)
{
$this->statistics = $statistics;
}
/**
* @return AccountStatusStatistics
*/
public function getStatistics()
{
return $this->statistics;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountStatusProducts::class, 'Google_Service_ShoppingContent_AccountStatusProducts');
@@ -0,0 +1,114 @@
<?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\ShoppingContent;
class AccountStatusStatistics extends \Google\Model
{
/**
* Number of active offers.
*
* @var string
*/
public $active;
/**
* Number of disapproved offers.
*
* @var string
*/
public $disapproved;
/**
* Number of expiring offers.
*
* @var string
*/
public $expiring;
/**
* Number of pending offers.
*
* @var string
*/
public $pending;
/**
* Number of active offers.
*
* @param string $active
*/
public function setActive($active)
{
$this->active = $active;
}
/**
* @return string
*/
public function getActive()
{
return $this->active;
}
/**
* Number of disapproved offers.
*
* @param string $disapproved
*/
public function setDisapproved($disapproved)
{
$this->disapproved = $disapproved;
}
/**
* @return string
*/
public function getDisapproved()
{
return $this->disapproved;
}
/**
* Number of expiring offers.
*
* @param string $expiring
*/
public function setExpiring($expiring)
{
$this->expiring = $expiring;
}
/**
* @return string
*/
public function getExpiring()
{
return $this->expiring;
}
/**
* Number of pending offers.
*
* @param string $pending
*/
public function setPending($pending)
{
$this->pending = $pending;
}
/**
* @return string
*/
public function getPending()
{
return $this->pending;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountStatusStatistics::class, 'Google_Service_ShoppingContent_AccountStatusStatistics');
@@ -0,0 +1,92 @@
<?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\ShoppingContent;
class AccountTax extends \Google\Collection
{
protected $collection_key = 'rules';
/**
* Required. The ID of the account to which these account tax settings belong.
*
* @var string
*/
public $accountId;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountTax`".
*
* @var string
*/
public $kind;
protected $rulesType = AccountTaxTaxRule::class;
protected $rulesDataType = 'array';
/**
* Required. The ID of the account to which these account tax settings belong.
*
* @param string $accountId
*/
public function setAccountId($accountId)
{
$this->accountId = $accountId;
}
/**
* @return string
*/
public function getAccountId()
{
return $this->accountId;
}
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountTax`".
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Tax rules. Updating the tax rules will enable "US" taxes (not reversible).
* Defining no rules is equivalent to not charging tax at all.
*
* @param AccountTaxTaxRule[] $rules
*/
public function setRules($rules)
{
$this->rules = $rules;
}
/**
* @return AccountTaxTaxRule[]
*/
public function getRules()
{
return $this->rules;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountTax::class, 'Google_Service_ShoppingContent_AccountTax');
@@ -0,0 +1,142 @@
<?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\ShoppingContent;
class AccountTaxTaxRule extends \Google\Model
{
/**
* Country code in which tax is applicable.
*
* @var string
*/
public $country;
/**
* Required. State (or province) is which the tax is applicable, described by
* its location ID (also called criteria ID).
*
* @var string
*/
public $locationId;
/**
* Explicit tax rate in percent, represented as a floating point number
* without the percentage character. Must not be negative.
*
* @var string
*/
public $ratePercent;
/**
* If true, shipping charges are also taxed.
*
* @var bool
*/
public $shippingTaxed;
/**
* Whether the tax rate is taken from a global tax table or specified
* explicitly.
*
* @var bool
*/
public $useGlobalRate;
/**
* Country code in which tax is applicable.
*
* @param string $country
*/
public function setCountry($country)
{
$this->country = $country;
}
/**
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* Required. State (or province) is which the tax is applicable, described by
* its location ID (also called criteria ID).
*
* @param string $locationId
*/
public function setLocationId($locationId)
{
$this->locationId = $locationId;
}
/**
* @return string
*/
public function getLocationId()
{
return $this->locationId;
}
/**
* Explicit tax rate in percent, represented as a floating point number
* without the percentage character. Must not be negative.
*
* @param string $ratePercent
*/
public function setRatePercent($ratePercent)
{
$this->ratePercent = $ratePercent;
}
/**
* @return string
*/
public function getRatePercent()
{
return $this->ratePercent;
}
/**
* If true, shipping charges are also taxed.
*
* @param bool $shippingTaxed
*/
public function setShippingTaxed($shippingTaxed)
{
$this->shippingTaxed = $shippingTaxed;
}
/**
* @return bool
*/
public function getShippingTaxed()
{
return $this->shippingTaxed;
}
/**
* Whether the tax rate is taken from a global tax table or specified
* explicitly.
*
* @param bool $useGlobalRate
*/
public function setUseGlobalRate($useGlobalRate)
{
$this->useGlobalRate = $useGlobalRate;
}
/**
* @return bool
*/
public function getUseGlobalRate()
{
return $this->useGlobalRate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountTaxTaxRule::class, 'Google_Service_ShoppingContent_AccountTaxTaxRule');
@@ -0,0 +1,197 @@
<?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\ShoppingContent;
class AccountUser extends \Google\Model
{
/**
* Whether user is an admin.
*
* @var bool
*/
public $admin;
/**
* User's email address.
*
* @var string
*/
public $emailAddress;
/**
* This role is deprecated and can no longer be assigned. Any value set will
* be ignored.
*
* @deprecated
* @var bool
*/
public $orderManager;
/**
* This role is deprecated and can no longer be assigned. Any value set will
* be ignored.
*
* @deprecated
* @var bool
*/
public $paymentsAnalyst;
/**
* This role is deprecated and can no longer be assigned. Any value set will
* be ignored.
*
* @deprecated
* @var bool
*/
public $paymentsManager;
/**
* Optional. Whether user has standard read-only access.
*
* @var bool
*/
public $readOnly;
/**
* Whether user is a reporting manager. This role is equivalent to the
* Performance and insights role in Merchant Center.
*
* @var bool
*/
public $reportingManager;
/**
* Whether user is an admin.
*
* @param bool $admin
*/
public function setAdmin($admin)
{
$this->admin = $admin;
}
/**
* @return bool
*/
public function getAdmin()
{
return $this->admin;
}
/**
* User's email address.
*
* @param string $emailAddress
*/
public function setEmailAddress($emailAddress)
{
$this->emailAddress = $emailAddress;
}
/**
* @return string
*/
public function getEmailAddress()
{
return $this->emailAddress;
}
/**
* This role is deprecated and can no longer be assigned. Any value set will
* be ignored.
*
* @deprecated
* @param bool $orderManager
*/
public function setOrderManager($orderManager)
{
$this->orderManager = $orderManager;
}
/**
* @deprecated
* @return bool
*/
public function getOrderManager()
{
return $this->orderManager;
}
/**
* This role is deprecated and can no longer be assigned. Any value set will
* be ignored.
*
* @deprecated
* @param bool $paymentsAnalyst
*/
public function setPaymentsAnalyst($paymentsAnalyst)
{
$this->paymentsAnalyst = $paymentsAnalyst;
}
/**
* @deprecated
* @return bool
*/
public function getPaymentsAnalyst()
{
return $this->paymentsAnalyst;
}
/**
* This role is deprecated and can no longer be assigned. Any value set will
* be ignored.
*
* @deprecated
* @param bool $paymentsManager
*/
public function setPaymentsManager($paymentsManager)
{
$this->paymentsManager = $paymentsManager;
}
/**
* @deprecated
* @return bool
*/
public function getPaymentsManager()
{
return $this->paymentsManager;
}
/**
* Optional. Whether user has standard read-only access.
*
* @param bool $readOnly
*/
public function setReadOnly($readOnly)
{
$this->readOnly = $readOnly;
}
/**
* @return bool
*/
public function getReadOnly()
{
return $this->readOnly;
}
/**
* Whether user is a reporting manager. This role is equivalent to the
* Performance and insights role in Merchant Center.
*
* @param bool $reportingManager
*/
public function setReportingManager($reportingManager)
{
$this->reportingManager = $reportingManager;
}
/**
* @return bool
*/
public function getReportingManager()
{
return $this->reportingManager;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountUser::class, 'Google_Service_ShoppingContent_AccountUser');
@@ -0,0 +1,88 @@
<?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\ShoppingContent;
class AccountYouTubeChannelLink extends \Google\Model
{
/**
* Channel ID.
*
* @var string
*/
public $channelId;
/**
* Status of the link between this Merchant Center account and the YouTube
* channel. Upon retrieval, it represents the actual status of the link and
* can be either `active` if it was approved in YT Creator Studio or `pending`
* if it's pending approval. Upon insertion, it represents the *intended*
* status of the link. Re-uploading a link with status `active` when it's
* still pending or with status `pending` when it's already active will have
* no effect: the status will remain unchanged. Re-uploading a link with
* deprecated status `inactive` is equivalent to not submitting the link at
* all and will delete the link if it was active or cancel the link request if
* it was pending.
*
* @var string
*/
public $status;
/**
* Channel ID.
*
* @param string $channelId
*/
public function setChannelId($channelId)
{
$this->channelId = $channelId;
}
/**
* @return string
*/
public function getChannelId()
{
return $this->channelId;
}
/**
* Status of the link between this Merchant Center account and the YouTube
* channel. Upon retrieval, it represents the actual status of the link and
* can be either `active` if it was approved in YT Creator Studio or `pending`
* if it's pending approval. Upon insertion, it represents the *intended*
* status of the link. Re-uploading a link with status `active` when it's
* still pending or with status `pending` when it's already active will have
* no effect: the status will remain unchanged. Re-uploading a link with
* deprecated status `inactive` is equivalent to not submitting the link at
* all and will delete the link if it was active or cancel the link request if
* it was pending.
*
* @param string $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountYouTubeChannelLink::class, 'Google_Service_ShoppingContent_AccountYouTubeChannelLink');
@@ -0,0 +1,72 @@
<?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\ShoppingContent;
class AccountsAuthInfoResponse extends \Google\Collection
{
protected $collection_key = 'accountIdentifiers';
protected $accountIdentifiersType = AccountIdentifier::class;
protected $accountIdentifiersDataType = 'array';
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsAuthInfoResponse`".
*
* @var string
*/
public $kind;
/**
* The account identifiers corresponding to the authenticated user. - For an
* individual account: only the merchant ID is defined - For an aggregator:
* only the aggregator ID is defined - For a subaccount of an MCA: both the
* merchant ID and the aggregator ID are defined.
*
* @param AccountIdentifier[] $accountIdentifiers
*/
public function setAccountIdentifiers($accountIdentifiers)
{
$this->accountIdentifiers = $accountIdentifiers;
}
/**
* @return AccountIdentifier[]
*/
public function getAccountIdentifiers()
{
return $this->accountIdentifiers;
}
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsAuthInfoResponse`".
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsAuthInfoResponse::class, 'Google_Service_ShoppingContent_AccountsAuthInfoResponse');
@@ -0,0 +1,50 @@
<?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\ShoppingContent;
class AccountsClaimWebsiteResponse extends \Google\Model
{
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsClaimWebsiteResponse`".
*
* @var string
*/
public $kind;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsClaimWebsiteResponse`".
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsClaimWebsiteResponse::class, 'Google_Service_ShoppingContent_AccountsClaimWebsiteResponse');
@@ -0,0 +1,45 @@
<?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\ShoppingContent;
class AccountsCustomBatchRequest extends \Google\Collection
{
protected $collection_key = 'entries';
protected $entriesType = AccountsCustomBatchRequestEntry::class;
protected $entriesDataType = 'array';
/**
* The request entries to be processed in the batch.
*
* @param AccountsCustomBatchRequestEntry[] $entries
*/
public function setEntries($entries)
{
$this->entries = $entries;
}
/**
* @return AccountsCustomBatchRequestEntry[]
*/
public function getEntries()
{
return $this->entries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsCustomBatchRequest::class, 'Google_Service_ShoppingContent_AccountsCustomBatchRequest');
@@ -0,0 +1,246 @@
<?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\ShoppingContent;
class AccountsCustomBatchRequestEntry extends \Google\Collection
{
protected $collection_key = 'labelIds';
protected $accountType = Account::class;
protected $accountDataType = '';
/**
* The ID of the targeted account. Only defined if the method is not `insert`.
*
* @var string
*/
public $accountId;
/**
* An entry ID, unique within the batch request.
*
* @var string
*/
public $batchId;
/**
* Whether the account should be deleted if the account has offers. Only
* applicable if the method is `delete`.
*
* @var bool
*/
public $force;
/**
* Label IDs for the 'updatelabels' request.
*
* @var string[]
*/
public $labelIds;
protected $linkRequestType = AccountsCustomBatchRequestEntryLinkRequest::class;
protected $linkRequestDataType = '';
/**
* The ID of the managing account.
*
* @var string
*/
public $merchantId;
/**
* The method of the batch entry. Acceptable values are: - "`claimWebsite`" -
* "`delete`" - "`get`" - "`insert`" - "`link`" - "`update`"
*
* @var string
*/
public $method;
/**
* Only applicable if the method is `claimwebsite`. Indicates whether or not
* to take the claim from another account in case there is a conflict.
*
* @var bool
*/
public $overwrite;
/**
* Controls which fields are visible. Only applicable if the method is 'get'.
*
* @var string
*/
public $view;
/**
* The account to create or update. Only defined if the method is `insert` or
* `update`.
*
* @param Account $account
*/
public function setAccount(Account $account)
{
$this->account = $account;
}
/**
* @return Account
*/
public function getAccount()
{
return $this->account;
}
/**
* The ID of the targeted account. Only defined if the method is not `insert`.
*
* @param string $accountId
*/
public function setAccountId($accountId)
{
$this->accountId = $accountId;
}
/**
* @return string
*/
public function getAccountId()
{
return $this->accountId;
}
/**
* An entry ID, unique within the batch request.
*
* @param string $batchId
*/
public function setBatchId($batchId)
{
$this->batchId = $batchId;
}
/**
* @return string
*/
public function getBatchId()
{
return $this->batchId;
}
/**
* Whether the account should be deleted if the account has offers. Only
* applicable if the method is `delete`.
*
* @param bool $force
*/
public function setForce($force)
{
$this->force = $force;
}
/**
* @return bool
*/
public function getForce()
{
return $this->force;
}
/**
* Label IDs for the 'updatelabels' request.
*
* @param string[] $labelIds
*/
public function setLabelIds($labelIds)
{
$this->labelIds = $labelIds;
}
/**
* @return string[]
*/
public function getLabelIds()
{
return $this->labelIds;
}
/**
* Details about the `link` request.
*
* @param AccountsCustomBatchRequestEntryLinkRequest $linkRequest
*/
public function setLinkRequest(AccountsCustomBatchRequestEntryLinkRequest $linkRequest)
{
$this->linkRequest = $linkRequest;
}
/**
* @return AccountsCustomBatchRequestEntryLinkRequest
*/
public function getLinkRequest()
{
return $this->linkRequest;
}
/**
* The ID of the managing account.
*
* @param string $merchantId
*/
public function setMerchantId($merchantId)
{
$this->merchantId = $merchantId;
}
/**
* @return string
*/
public function getMerchantId()
{
return $this->merchantId;
}
/**
* The method of the batch entry. Acceptable values are: - "`claimWebsite`" -
* "`delete`" - "`get`" - "`insert`" - "`link`" - "`update`"
*
* @param string $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* Only applicable if the method is `claimwebsite`. Indicates whether or not
* to take the claim from another account in case there is a conflict.
*
* @param bool $overwrite
*/
public function setOverwrite($overwrite)
{
$this->overwrite = $overwrite;
}
/**
* @return bool
*/
public function getOverwrite()
{
return $this->overwrite;
}
/**
* Controls which fields are visible. Only applicable if the method is 'get'.
*
* @param string $view
*/
public function setView($view)
{
$this->view = $view;
}
/**
* @return string
*/
public function getView()
{
return $this->view;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsCustomBatchRequestEntry::class, 'Google_Service_ShoppingContent_AccountsCustomBatchRequestEntry');
@@ -0,0 +1,129 @@
<?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\ShoppingContent;
class AccountsCustomBatchRequestEntryLinkRequest extends \Google\Collection
{
protected $collection_key = 'services';
/**
* Action to perform for this link. The `"request"` action is only available
* to select merchants. Acceptable values are: - "`approve`" - "`remove`" -
* "`request`"
*
* @var string
*/
public $action;
/**
* Type of the link between the two accounts. Acceptable values are: -
* "`channelPartner`" - "`eCommercePlatform`" - "`paymentServiceProvider`" -
* "`localProductManager`"
*
* @var string
*/
public $linkType;
/**
* The ID of the linked account.
*
* @var string
*/
public $linkedAccountId;
/**
* Provided services. Acceptable values are: -
* "`shoppingAdsProductManagement`" - "`shoppingActionsProductManagement`" -
* "`shoppingActionsOrderManagement`" - "`paymentProcessing`" -
* "`localProductManagement`"
*
* @var string[]
*/
public $services;
/**
* Action to perform for this link. The `"request"` action is only available
* to select merchants. Acceptable values are: - "`approve`" - "`remove`" -
* "`request`"
*
* @param string $action
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* Type of the link between the two accounts. Acceptable values are: -
* "`channelPartner`" - "`eCommercePlatform`" - "`paymentServiceProvider`" -
* "`localProductManager`"
*
* @param string $linkType
*/
public function setLinkType($linkType)
{
$this->linkType = $linkType;
}
/**
* @return string
*/
public function getLinkType()
{
return $this->linkType;
}
/**
* The ID of the linked account.
*
* @param string $linkedAccountId
*/
public function setLinkedAccountId($linkedAccountId)
{
$this->linkedAccountId = $linkedAccountId;
}
/**
* @return string
*/
public function getLinkedAccountId()
{
return $this->linkedAccountId;
}
/**
* Provided services. Acceptable values are: -
* "`shoppingAdsProductManagement`" - "`shoppingActionsProductManagement`" -
* "`shoppingActionsOrderManagement`" - "`paymentProcessing`" -
* "`localProductManagement`"
*
* @param string[] $services
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return string[]
*/
public function getServices()
{
return $this->services;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsCustomBatchRequestEntryLinkRequest::class, 'Google_Service_ShoppingContent_AccountsCustomBatchRequestEntryLinkRequest');
@@ -0,0 +1,69 @@
<?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\ShoppingContent;
class AccountsCustomBatchResponse extends \Google\Collection
{
protected $collection_key = 'entries';
protected $entriesType = AccountsCustomBatchResponseEntry::class;
protected $entriesDataType = 'array';
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsCustomBatchResponse`".
*
* @var string
*/
public $kind;
/**
* The result of the execution of the batch requests.
*
* @param AccountsCustomBatchResponseEntry[] $entries
*/
public function setEntries($entries)
{
$this->entries = $entries;
}
/**
* @return AccountsCustomBatchResponseEntry[]
*/
public function getEntries()
{
return $this->entries;
}
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsCustomBatchResponse`".
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsCustomBatchResponse::class, 'Google_Service_ShoppingContent_AccountsCustomBatchResponse');
@@ -0,0 +1,110 @@
<?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\ShoppingContent;
class AccountsCustomBatchResponseEntry extends \Google\Model
{
protected $accountType = Account::class;
protected $accountDataType = '';
/**
* The ID of the request entry this entry responds to.
*
* @var string
*/
public $batchId;
protected $errorsType = Errors::class;
protected $errorsDataType = '';
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsCustomBatchResponseEntry`"
*
* @var string
*/
public $kind;
/**
* The retrieved, created, or updated account. Not defined if the method was
* `delete`, `claimwebsite` or `link`.
*
* @param Account $account
*/
public function setAccount(Account $account)
{
$this->account = $account;
}
/**
* @return Account
*/
public function getAccount()
{
return $this->account;
}
/**
* The ID of the request entry this entry responds to.
*
* @param string $batchId
*/
public function setBatchId($batchId)
{
$this->batchId = $batchId;
}
/**
* @return string
*/
public function getBatchId()
{
return $this->batchId;
}
/**
* A list of errors for failed custombatch entries. *Note:* Schema errors fail
* the whole request.
*
* @param Errors $errors
*/
public function setErrors(Errors $errors)
{
$this->errors = $errors;
}
/**
* @return Errors
*/
public function getErrors()
{
return $this->errors;
}
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsCustomBatchResponseEntry`"
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsCustomBatchResponseEntry::class, 'Google_Service_ShoppingContent_AccountsCustomBatchResponseEntry');
@@ -0,0 +1,161 @@
<?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\ShoppingContent;
class AccountsLinkRequest extends \Google\Collection
{
protected $collection_key = 'services';
/**
* Action to perform for this link. The `"request"` action is only available
* to select merchants. Acceptable values are: - "`approve`" - "`remove`" -
* "`request`"
*
* @var string
*/
public $action;
protected $eCommercePlatformLinkInfoType = ECommercePlatformLinkInfo::class;
protected $eCommercePlatformLinkInfoDataType = '';
/**
* Type of the link between the two accounts. Acceptable values are: -
* "`channelPartner`" - "`eCommercePlatform`" - "`paymentServiceProvider`"
*
* @var string
*/
public $linkType;
/**
* The ID of the linked account.
*
* @var string
*/
public $linkedAccountId;
protected $paymentServiceProviderLinkInfoType = PaymentServiceProviderLinkInfo::class;
protected $paymentServiceProviderLinkInfoDataType = '';
/**
* Acceptable values are: - "`shoppingAdsProductManagement`" -
* "`shoppingActionsProductManagement`" - "`shoppingActionsOrderManagement`" -
* "`paymentProcessing`"
*
* @var string[]
*/
public $services;
/**
* Action to perform for this link. The `"request"` action is only available
* to select merchants. Acceptable values are: - "`approve`" - "`remove`" -
* "`request`"
*
* @param string $action
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* Additional information required for `eCommercePlatform` link type.
*
* @param ECommercePlatformLinkInfo $eCommercePlatformLinkInfo
*/
public function setECommercePlatformLinkInfo(ECommercePlatformLinkInfo $eCommercePlatformLinkInfo)
{
$this->eCommercePlatformLinkInfo = $eCommercePlatformLinkInfo;
}
/**
* @return ECommercePlatformLinkInfo
*/
public function getECommercePlatformLinkInfo()
{
return $this->eCommercePlatformLinkInfo;
}
/**
* Type of the link between the two accounts. Acceptable values are: -
* "`channelPartner`" - "`eCommercePlatform`" - "`paymentServiceProvider`"
*
* @param string $linkType
*/
public function setLinkType($linkType)
{
$this->linkType = $linkType;
}
/**
* @return string
*/
public function getLinkType()
{
return $this->linkType;
}
/**
* The ID of the linked account.
*
* @param string $linkedAccountId
*/
public function setLinkedAccountId($linkedAccountId)
{
$this->linkedAccountId = $linkedAccountId;
}
/**
* @return string
*/
public function getLinkedAccountId()
{
return $this->linkedAccountId;
}
/**
* Additional information required for `paymentServiceProvider` link type.
*
* @param PaymentServiceProviderLinkInfo $paymentServiceProviderLinkInfo
*/
public function setPaymentServiceProviderLinkInfo(PaymentServiceProviderLinkInfo $paymentServiceProviderLinkInfo)
{
$this->paymentServiceProviderLinkInfo = $paymentServiceProviderLinkInfo;
}
/**
* @return PaymentServiceProviderLinkInfo
*/
public function getPaymentServiceProviderLinkInfo()
{
return $this->paymentServiceProviderLinkInfo;
}
/**
* Acceptable values are: - "`shoppingAdsProductManagement`" -
* "`shoppingActionsProductManagement`" - "`shoppingActionsOrderManagement`" -
* "`paymentProcessing`"
*
* @param string[] $services
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return string[]
*/
public function getServices()
{
return $this->services;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsLinkRequest::class, 'Google_Service_ShoppingContent_AccountsLinkRequest');
@@ -0,0 +1,50 @@
<?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\ShoppingContent;
class AccountsLinkResponse extends \Google\Model
{
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsLinkResponse`".
*
* @var string
*/
public $kind;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsLinkResponse`".
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsLinkResponse::class, 'Google_Service_ShoppingContent_AccountsLinkResponse');
@@ -0,0 +1,91 @@
<?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\ShoppingContent;
class AccountsListLinksResponse extends \Google\Collection
{
protected $collection_key = 'links';
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsListLinksResponse`".
*
* @var string
*/
public $kind;
protected $linksType = LinkedAccount::class;
protected $linksDataType = 'array';
/**
* The token for the retrieval of the next page of links.
*
* @var string
*/
public $nextPageToken;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsListLinksResponse`".
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The list of available links.
*
* @param LinkedAccount[] $links
*/
public function setLinks($links)
{
$this->links = $links;
}
/**
* @return LinkedAccount[]
*/
public function getLinks()
{
return $this->links;
}
/**
* The token for the retrieval of the next page of links.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsListLinksResponse::class, 'Google_Service_ShoppingContent_AccountsListLinksResponse');
@@ -0,0 +1,89 @@
<?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\ShoppingContent;
class AccountsListResponse extends \Google\Collection
{
protected $collection_key = 'resources';
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsListResponse`".
*
* @var string
*/
public $kind;
/**
* The token for the retrieval of the next page of accounts.
*
* @var string
*/
public $nextPageToken;
protected $resourcesType = Account::class;
protected $resourcesDataType = 'array';
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsListResponse`".
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The token for the retrieval of the next page of accounts.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Account[] $resources
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return Account[]
*/
public function getResources()
{
return $this->resources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsListResponse::class, 'Google_Service_ShoppingContent_AccountsListResponse');
@@ -0,0 +1,49 @@
<?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\ShoppingContent;
class AccountsUpdateLabelsRequest extends \Google\Collection
{
protected $collection_key = 'labelIds';
/**
* The IDs of labels that should be assigned to the account.
*
* @var string[]
*/
public $labelIds;
/**
* The IDs of labels that should be assigned to the account.
*
* @param string[] $labelIds
*/
public function setLabelIds($labelIds)
{
$this->labelIds = $labelIds;
}
/**
* @return string[]
*/
public function getLabelIds()
{
return $this->labelIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsUpdateLabelsRequest::class, 'Google_Service_ShoppingContent_AccountsUpdateLabelsRequest');
@@ -0,0 +1,50 @@
<?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\ShoppingContent;
class AccountsUpdateLabelsResponse extends \Google\Model
{
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsUpdateLabelsResponse`".
*
* @var string
*/
public $kind;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountsUpdateLabelsResponse`".
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountsUpdateLabelsResponse::class, 'Google_Service_ShoppingContent_AccountsUpdateLabelsResponse');
@@ -0,0 +1,45 @@
<?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\ShoppingContent;
class AccountstatusesCustomBatchRequest extends \Google\Collection
{
protected $collection_key = 'entries';
protected $entriesType = AccountstatusesCustomBatchRequestEntry::class;
protected $entriesDataType = 'array';
/**
* The request entries to be processed in the batch.
*
* @param AccountstatusesCustomBatchRequestEntry[] $entries
*/
public function setEntries($entries)
{
$this->entries = $entries;
}
/**
* @return AccountstatusesCustomBatchRequestEntry[]
*/
public function getEntries()
{
return $this->entries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountstatusesCustomBatchRequest::class, 'Google_Service_ShoppingContent_AccountstatusesCustomBatchRequest');
@@ -0,0 +1,139 @@
<?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\ShoppingContent;
class AccountstatusesCustomBatchRequestEntry extends \Google\Collection
{
protected $collection_key = 'destinations';
/**
* The ID of the (sub-)account whose status to get.
*
* @var string
*/
public $accountId;
/**
* An entry ID, unique within the batch request.
*
* @var string
*/
public $batchId;
/**
* If set, only issues for the specified destinations are returned, otherwise
* only issues for the Shopping destination.
*
* @var string[]
*/
public $destinations;
/**
* The ID of the managing account.
*
* @var string
*/
public $merchantId;
/**
* The method of the batch entry. Acceptable values are: - "`get`"
*
* @var string
*/
public $method;
/**
* The ID of the (sub-)account whose status to get.
*
* @param string $accountId
*/
public function setAccountId($accountId)
{
$this->accountId = $accountId;
}
/**
* @return string
*/
public function getAccountId()
{
return $this->accountId;
}
/**
* An entry ID, unique within the batch request.
*
* @param string $batchId
*/
public function setBatchId($batchId)
{
$this->batchId = $batchId;
}
/**
* @return string
*/
public function getBatchId()
{
return $this->batchId;
}
/**
* If set, only issues for the specified destinations are returned, otherwise
* only issues for the Shopping destination.
*
* @param string[] $destinations
*/
public function setDestinations($destinations)
{
$this->destinations = $destinations;
}
/**
* @return string[]
*/
public function getDestinations()
{
return $this->destinations;
}
/**
* The ID of the managing account.
*
* @param string $merchantId
*/
public function setMerchantId($merchantId)
{
$this->merchantId = $merchantId;
}
/**
* @return string
*/
public function getMerchantId()
{
return $this->merchantId;
}
/**
* The method of the batch entry. Acceptable values are: - "`get`"
*
* @param string $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountstatusesCustomBatchRequestEntry::class, 'Google_Service_ShoppingContent_AccountstatusesCustomBatchRequestEntry');
@@ -0,0 +1,69 @@
<?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\ShoppingContent;
class AccountstatusesCustomBatchResponse extends \Google\Collection
{
protected $collection_key = 'entries';
protected $entriesType = AccountstatusesCustomBatchResponseEntry::class;
protected $entriesDataType = 'array';
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountstatusesCustomBatchResponse`".
*
* @var string
*/
public $kind;
/**
* The result of the execution of the batch requests.
*
* @param AccountstatusesCustomBatchResponseEntry[] $entries
*/
public function setEntries($entries)
{
$this->entries = $entries;
}
/**
* @return AccountstatusesCustomBatchResponseEntry[]
*/
public function getEntries()
{
return $this->entries;
}
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountstatusesCustomBatchResponse`".
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountstatusesCustomBatchResponse::class, 'Google_Service_ShoppingContent_AccountstatusesCustomBatchResponse');
@@ -0,0 +1,86 @@
<?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\ShoppingContent;
class AccountstatusesCustomBatchResponseEntry extends \Google\Model
{
protected $accountStatusType = AccountStatus::class;
protected $accountStatusDataType = '';
/**
* The ID of the request entry this entry responds to.
*
* @var string
*/
public $batchId;
protected $errorsType = Errors::class;
protected $errorsDataType = '';
/**
* The requested account status. Defined if and only if the request was
* successful.
*
* @param AccountStatus $accountStatus
*/
public function setAccountStatus(AccountStatus $accountStatus)
{
$this->accountStatus = $accountStatus;
}
/**
* @return AccountStatus
*/
public function getAccountStatus()
{
return $this->accountStatus;
}
/**
* The ID of the request entry this entry responds to.
*
* @param string $batchId
*/
public function setBatchId($batchId)
{
$this->batchId = $batchId;
}
/**
* @return string
*/
public function getBatchId()
{
return $this->batchId;
}
/**
* A list of errors for failed custombatch entries. *Note:* Schema errors fail
* the whole request.
*
* @param Errors $errors
*/
public function setErrors(Errors $errors)
{
$this->errors = $errors;
}
/**
* @return Errors
*/
public function getErrors()
{
return $this->errors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountstatusesCustomBatchResponseEntry::class, 'Google_Service_ShoppingContent_AccountstatusesCustomBatchResponseEntry');
@@ -0,0 +1,89 @@
<?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\ShoppingContent;
class AccountstatusesListResponse extends \Google\Collection
{
protected $collection_key = 'resources';
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountstatusesListResponse`".
*
* @var string
*/
public $kind;
/**
* The token for the retrieval of the next page of account statuses.
*
* @var string
*/
public $nextPageToken;
protected $resourcesType = AccountStatus::class;
protected $resourcesDataType = 'array';
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accountstatusesListResponse`".
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The token for the retrieval of the next page of account statuses.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param AccountStatus[] $resources
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return AccountStatus[]
*/
public function getResources()
{
return $this->resources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountstatusesListResponse::class, 'Google_Service_ShoppingContent_AccountstatusesListResponse');
@@ -0,0 +1,45 @@
<?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\ShoppingContent;
class AccounttaxCustomBatchRequest extends \Google\Collection
{
protected $collection_key = 'entries';
protected $entriesType = AccounttaxCustomBatchRequestEntry::class;
protected $entriesDataType = 'array';
/**
* The request entries to be processed in the batch.
*
* @param AccounttaxCustomBatchRequestEntry[] $entries
*/
public function setEntries($entries)
{
$this->entries = $entries;
}
/**
* @return AccounttaxCustomBatchRequestEntry[]
*/
public function getEntries()
{
return $this->entries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccounttaxCustomBatchRequest::class, 'Google_Service_ShoppingContent_AccounttaxCustomBatchRequest');
@@ -0,0 +1,134 @@
<?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\ShoppingContent;
class AccounttaxCustomBatchRequestEntry extends \Google\Model
{
/**
* The ID of the account for which to get/update account tax settings.
*
* @var string
*/
public $accountId;
protected $accountTaxType = AccountTax::class;
protected $accountTaxDataType = '';
/**
* An entry ID, unique within the batch request.
*
* @var string
*/
public $batchId;
/**
* The ID of the managing account.
*
* @var string
*/
public $merchantId;
/**
* The method of the batch entry. Acceptable values are: - "`get`" -
* "`update`"
*
* @var string
*/
public $method;
/**
* The ID of the account for which to get/update account tax settings.
*
* @param string $accountId
*/
public function setAccountId($accountId)
{
$this->accountId = $accountId;
}
/**
* @return string
*/
public function getAccountId()
{
return $this->accountId;
}
/**
* The account tax settings to update. Only defined if the method is `update`.
*
* @param AccountTax $accountTax
*/
public function setAccountTax(AccountTax $accountTax)
{
$this->accountTax = $accountTax;
}
/**
* @return AccountTax
*/
public function getAccountTax()
{
return $this->accountTax;
}
/**
* An entry ID, unique within the batch request.
*
* @param string $batchId
*/
public function setBatchId($batchId)
{
$this->batchId = $batchId;
}
/**
* @return string
*/
public function getBatchId()
{
return $this->batchId;
}
/**
* The ID of the managing account.
*
* @param string $merchantId
*/
public function setMerchantId($merchantId)
{
$this->merchantId = $merchantId;
}
/**
* @return string
*/
public function getMerchantId()
{
return $this->merchantId;
}
/**
* The method of the batch entry. Acceptable values are: - "`get`" -
* "`update`"
*
* @param string $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccounttaxCustomBatchRequestEntry::class, 'Google_Service_ShoppingContent_AccounttaxCustomBatchRequestEntry');
@@ -0,0 +1,69 @@
<?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\ShoppingContent;
class AccounttaxCustomBatchResponse extends \Google\Collection
{
protected $collection_key = 'entries';
protected $entriesType = AccounttaxCustomBatchResponseEntry::class;
protected $entriesDataType = 'array';
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accounttaxCustomBatchResponse`".
*
* @var string
*/
public $kind;
/**
* The result of the execution of the batch requests.
*
* @param AccounttaxCustomBatchResponseEntry[] $entries
*/
public function setEntries($entries)
{
$this->entries = $entries;
}
/**
* @return AccounttaxCustomBatchResponseEntry[]
*/
public function getEntries()
{
return $this->entries;
}
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accounttaxCustomBatchResponse`".
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccounttaxCustomBatchResponse::class, 'Google_Service_ShoppingContent_AccounttaxCustomBatchResponse');
@@ -0,0 +1,109 @@
<?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\ShoppingContent;
class AccounttaxCustomBatchResponseEntry extends \Google\Model
{
protected $accountTaxType = AccountTax::class;
protected $accountTaxDataType = '';
/**
* The ID of the request entry this entry responds to.
*
* @var string
*/
public $batchId;
protected $errorsType = Errors::class;
protected $errorsDataType = '';
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accounttaxCustomBatchResponseEntry`"
*
* @var string
*/
public $kind;
/**
* The retrieved or updated account tax settings.
*
* @param AccountTax $accountTax
*/
public function setAccountTax(AccountTax $accountTax)
{
$this->accountTax = $accountTax;
}
/**
* @return AccountTax
*/
public function getAccountTax()
{
return $this->accountTax;
}
/**
* The ID of the request entry this entry responds to.
*
* @param string $batchId
*/
public function setBatchId($batchId)
{
$this->batchId = $batchId;
}
/**
* @return string
*/
public function getBatchId()
{
return $this->batchId;
}
/**
* A list of errors for failed custombatch entries. *Note:* Schema errors fail
* the whole request.
*
* @param Errors $errors
*/
public function setErrors(Errors $errors)
{
$this->errors = $errors;
}
/**
* @return Errors
*/
public function getErrors()
{
return $this->errors;
}
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accounttaxCustomBatchResponseEntry`"
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccounttaxCustomBatchResponseEntry::class, 'Google_Service_ShoppingContent_AccounttaxCustomBatchResponseEntry');
@@ -0,0 +1,89 @@
<?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\ShoppingContent;
class AccounttaxListResponse extends \Google\Collection
{
protected $collection_key = 'resources';
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accounttaxListResponse`".
*
* @var string
*/
public $kind;
/**
* The token for the retrieval of the next page of account tax settings.
*
* @var string
*/
public $nextPageToken;
protected $resourcesType = AccountTax::class;
protected $resourcesDataType = 'array';
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#accounttaxListResponse`".
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The token for the retrieval of the next page of account tax settings.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param AccountTax[] $resources
*/
public function setResources($resources)
{
$this->resources = $resources;
}
/**
* @return AccountTax[]
*/
public function getResources()
{
return $this->resources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccounttaxListResponse::class, 'Google_Service_ShoppingContent_AccounttaxListResponse');
@@ -0,0 +1,162 @@
<?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\ShoppingContent;
class Action extends \Google\Collection
{
protected $collection_key = 'reasons';
protected $builtinSimpleActionType = BuiltInSimpleAction::class;
protected $builtinSimpleActionDataType = '';
protected $builtinUserInputActionType = BuiltInUserInputAction::class;
protected $builtinUserInputActionDataType = '';
/**
* Label of the action button.
*
* @var string
*/
public $buttonLabel;
protected $externalActionType = ExternalAction::class;
protected $externalActionDataType = '';
/**
* Controlling whether the button is active or disabled. The value is 'false'
* when the action was already requested or is not available. If the action is
* not available then a reason will be present. If (your) third-party
* application shows a disabled button for action that is not available, then
* it should also show reasons.
*
* @var bool
*/
public $isAvailable;
protected $reasonsType = ActionReason::class;
protected $reasonsDataType = 'array';
/**
* Action implemented and performed in (your) third-party application. The
* application should point the merchant to the place, where they can access
* the corresponding functionality or provide instructions, if the specific
* functionality is not available.
*
* @param BuiltInSimpleAction $builtinSimpleAction
*/
public function setBuiltinSimpleAction(BuiltInSimpleAction $builtinSimpleAction)
{
$this->builtinSimpleAction = $builtinSimpleAction;
}
/**
* @return BuiltInSimpleAction
*/
public function getBuiltinSimpleAction()
{
return $this->builtinSimpleAction;
}
/**
* Action implemented and performed in (your) third-party application. The
* application needs to show an additional content and input form to the
* merchant as specified for given action. They can trigger the action only
* when they provided all required inputs.
*
* @param BuiltInUserInputAction $builtinUserInputAction
*/
public function setBuiltinUserInputAction(BuiltInUserInputAction $builtinUserInputAction)
{
$this->builtinUserInputAction = $builtinUserInputAction;
}
/**
* @return BuiltInUserInputAction
*/
public function getBuiltinUserInputAction()
{
return $this->builtinUserInputAction;
}
/**
* Label of the action button.
*
* @param string $buttonLabel
*/
public function setButtonLabel($buttonLabel)
{
$this->buttonLabel = $buttonLabel;
}
/**
* @return string
*/
public function getButtonLabel()
{
return $this->buttonLabel;
}
/**
* Action that is implemented and performed outside of (your) third-party
* application. The application needs to redirect the merchant to the external
* location where they can perform the action.
*
* @param ExternalAction $externalAction
*/
public function setExternalAction(ExternalAction $externalAction)
{
$this->externalAction = $externalAction;
}
/**
* @return ExternalAction
*/
public function getExternalAction()
{
return $this->externalAction;
}
/**
* Controlling whether the button is active or disabled. The value is 'false'
* when the action was already requested or is not available. If the action is
* not available then a reason will be present. If (your) third-party
* application shows a disabled button for action that is not available, then
* it should also show reasons.
*
* @param bool $isAvailable
*/
public function setIsAvailable($isAvailable)
{
$this->isAvailable = $isAvailable;
}
/**
* @return bool
*/
public function getIsAvailable()
{
return $this->isAvailable;
}
/**
* List of reasons why the action is not available. The list of reasons is
* empty if the action is available. If there is only one reason, it can be
* displayed next to the disabled button. If there are more reasons, all of
* them should be displayed, for example in a pop-up dialog.
*
* @param ActionReason[] $reasons
*/
public function setReasons($reasons)
{
$this->reasons = $reasons;
}
/**
* @return ActionReason[]
*/
public function getReasons()
{
return $this->reasons;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Action::class, 'Google_Service_ShoppingContent_Action');
@@ -0,0 +1,181 @@
<?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\ShoppingContent;
class ActionFlow extends \Google\Collection
{
protected $collection_key = 'inputs';
/**
* Label for the button to trigger the action from the action dialog. For
* example: "Request review"
*
* @var string
*/
public $dialogButtonLabel;
protected $dialogCalloutType = Callout::class;
protected $dialogCalloutDataType = '';
protected $dialogMessageType = TextWithTooltip::class;
protected $dialogMessageDataType = '';
/**
* Title of the request dialog. For example: "Before you request a review"
*
* @var string
*/
public $dialogTitle;
/**
* Not for display but need to be sent back for the selected action flow.
*
* @var string
*/
public $id;
protected $inputsType = InputField::class;
protected $inputsDataType = 'array';
/**
* Text value describing the intent for the action flow. It can be used as an
* input label if merchant needs to pick one of multiple flows. For example:
* "I disagree with the issue"
*
* @var string
*/
public $label;
/**
* Label for the button to trigger the action from the action dialog. For
* example: "Request review"
*
* @param string $dialogButtonLabel
*/
public function setDialogButtonLabel($dialogButtonLabel)
{
$this->dialogButtonLabel = $dialogButtonLabel;
}
/**
* @return string
*/
public function getDialogButtonLabel()
{
return $this->dialogButtonLabel;
}
/**
* Important message to be highlighted in the request dialog. For example:
* "You can only request a review for disagreeing with this issue once. If
* it's not approved, you'll need to fix the issue and wait a few days before
* you can request another review."
*
* @param Callout $dialogCallout
*/
public function setDialogCallout(Callout $dialogCallout)
{
$this->dialogCallout = $dialogCallout;
}
/**
* @return Callout
*/
public function getDialogCallout()
{
return $this->dialogCallout;
}
/**
* Message displayed in the request dialog. For example: "Make sure you've
* fixed all your country-specific issues. If not, you may have to wait 7 days
* to request another review". There may be an more information to be shown in
* a tooltip.
*
* @param TextWithTooltip $dialogMessage
*/
public function setDialogMessage(TextWithTooltip $dialogMessage)
{
$this->dialogMessage = $dialogMessage;
}
/**
* @return TextWithTooltip
*/
public function getDialogMessage()
{
return $this->dialogMessage;
}
/**
* Title of the request dialog. For example: "Before you request a review"
*
* @param string $dialogTitle
*/
public function setDialogTitle($dialogTitle)
{
$this->dialogTitle = $dialogTitle;
}
/**
* @return string
*/
public function getDialogTitle()
{
return $this->dialogTitle;
}
/**
* Not for display but need to be sent back for the selected action flow.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* A list of input fields.
*
* @param InputField[] $inputs
*/
public function setInputs($inputs)
{
$this->inputs = $inputs;
}
/**
* @return InputField[]
*/
public function getInputs()
{
return $this->inputs;
}
/**
* Text value describing the intent for the action flow. It can be used as an
* input label if merchant needs to pick one of multiple flows. For example:
* "I disagree with the issue"
*
* @param string $label
*/
public function setLabel($label)
{
$this->label = $label;
}
/**
* @return string
*/
public function getLabel()
{
return $this->label;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ActionFlow::class, 'Google_Service_ShoppingContent_ActionFlow');
@@ -0,0 +1,67 @@
<?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\ShoppingContent;
class ActionInput extends \Google\Collection
{
protected $collection_key = 'inputValues';
/**
* Required. Id of the selected action flow.
*
* @var string
*/
public $actionFlowId;
protected $inputValuesType = InputValue::class;
protected $inputValuesDataType = 'array';
/**
* Required. Id of the selected action flow.
*
* @param string $actionFlowId
*/
public function setActionFlowId($actionFlowId)
{
$this->actionFlowId = $actionFlowId;
}
/**
* @return string
*/
public function getActionFlowId()
{
return $this->actionFlowId;
}
/**
* Required. Values for input fields.
*
* @param InputValue[] $inputValues
*/
public function setInputValues($inputValues)
{
$this->inputValues = $inputValues;
}
/**
* @return InputValue[]
*/
public function getInputValues()
{
return $this->inputValues;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ActionInput::class, 'Google_Service_ShoppingContent_ActionInput');
@@ -0,0 +1,99 @@
<?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\ShoppingContent;
class ActionReason extends \Google\Model
{
protected $actionType = Action::class;
protected $actionDataType = '';
/**
* Detailed explanation of the reason. Should be displayed as a hint if
* present.
*
* @var string
*/
public $detail;
/**
* Messages summarizing the reason, why the action is not available. For
* example: "Review requested on Jan 03. Review requests can take a few days
* to complete."
*
* @var string
*/
public $message;
/**
* Optional. An action that needs to be performed to solve the problem
* represented by this reason. This action will always be available. Should be
* rendered as a link or button next to the summarizing message. For example,
* the review may be available only once merchant configure all required
* attributes. In such a situation this action can be a link to the form,
* where they can fill the missing attribute to unblock the main action.
*
* @param Action $action
*/
public function setAction(Action $action)
{
$this->action = $action;
}
/**
* @return Action
*/
public function getAction()
{
return $this->action;
}
/**
* Detailed explanation of the reason. Should be displayed as a hint if
* present.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* Messages summarizing the reason, why the action is not available. For
* example: "Review requested on Jan 03. Review requests can take a few days
* to complete."
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ActionReason::class, 'Google_Service_ShoppingContent_ActionReason');
@@ -0,0 +1,25 @@
<?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\ShoppingContent;
class ActivateBuyOnGoogleProgramRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ActivateBuyOnGoogleProgramRequest::class, 'Google_Service_ShoppingContent_ActivateBuyOnGoogleProgramRequest');
@@ -0,0 +1,142 @@
<?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\ShoppingContent;
class Address extends \Google\Model
{
/**
* Required. Top-level administrative subdivision of the country. For example,
* a state like California ("CA") or a province like Quebec ("QC").
*
* @var string
*/
public $administrativeArea;
/**
* Required. City, town or commune. May also include dependent localities or
* sublocalities (for example, neighborhoods or suburbs).
*
* @var string
*/
public $city;
/**
* Required. [CLDR country code](https://github.com/unicode-
* org/cldr/blob/latest/common/main/en.xml) (for example, "US").
*
* @var string
*/
public $country;
/**
* Required. Postal code or ZIP (for example, "94043").
*
* @var string
*/
public $postalCode;
/**
* Street-level part of the address. Use `\n` to add a second line.
*
* @var string
*/
public $streetAddress;
/**
* Required. Top-level administrative subdivision of the country. For example,
* a state like California ("CA") or a province like Quebec ("QC").
*
* @param string $administrativeArea
*/
public function setAdministrativeArea($administrativeArea)
{
$this->administrativeArea = $administrativeArea;
}
/**
* @return string
*/
public function getAdministrativeArea()
{
return $this->administrativeArea;
}
/**
* Required. City, town or commune. May also include dependent localities or
* sublocalities (for example, neighborhoods or suburbs).
*
* @param string $city
*/
public function setCity($city)
{
$this->city = $city;
}
/**
* @return string
*/
public function getCity()
{
return $this->city;
}
/**
* Required. [CLDR country code](https://github.com/unicode-
* org/cldr/blob/latest/common/main/en.xml) (for example, "US").
*
* @param string $country
*/
public function setCountry($country)
{
$this->country = $country;
}
/**
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* Required. Postal code or ZIP (for example, "94043").
*
* @param string $postalCode
*/
public function setPostalCode($postalCode)
{
$this->postalCode = $postalCode;
}
/**
* @return string
*/
public function getPostalCode()
{
return $this->postalCode;
}
/**
* Street-level part of the address. Use `\n` to add a second line.
*
* @param string $streetAddress
*/
public function setStreetAddress($streetAddress)
{
$this->streetAddress = $streetAddress;
}
/**
* @return string
*/
public function getStreetAddress()
{
return $this->streetAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Address::class, 'Google_Service_ShoppingContent_Address');
@@ -0,0 +1,74 @@
<?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\ShoppingContent;
class AlternateDisputeResolution extends \Google\Model
{
/**
* The label for the alternate dispute resolution link.
*
* @var string
*/
public $label;
/**
* The URL pointing to a page, where merchant can request alternative dispute
* resolution with an [external body](https://support.google.com/european-
* union-digital-services-act-redress-options/answer/13535501).
*
* @var string
*/
public $uri;
/**
* The label for the alternate dispute resolution link.
*
* @param string $label
*/
public function setLabel($label)
{
$this->label = $label;
}
/**
* @return string
*/
public function getLabel()
{
return $this->label;
}
/**
* The URL pointing to a page, where merchant can request alternative dispute
* resolution with an [external body](https://support.google.com/european-
* union-digital-services-act-redress-options/answer/13535501).
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AlternateDisputeResolution::class, 'Google_Service_ShoppingContent_AlternateDisputeResolution');
@@ -0,0 +1,58 @@
<?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\ShoppingContent;
class Amount extends \Google\Model
{
protected $priceAmountType = Price::class;
protected $priceAmountDataType = '';
protected $taxAmountType = Price::class;
protected $taxAmountDataType = '';
/**
* @param Price
*/
public function setPriceAmount(Price $priceAmount)
{
$this->priceAmount = $priceAmount;
}
/**
* @return Price
*/
public function getPriceAmount()
{
return $this->priceAmount;
}
/**
* @param Price
*/
public function setTaxAmount(Price $taxAmount)
{
$this->taxAmount = $taxAmount;
}
/**
* @return Price
*/
public function getTaxAmount()
{
return $this->taxAmount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Amount::class, 'Google_Service_ShoppingContent_Amount');
@@ -0,0 +1,118 @@
<?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\ShoppingContent;
class AttributionSettings extends \Google\Collection
{
public const ATTRIBUTION_MODEL_ATTRIBUTION_MODEL_UNSPECIFIED = 'ATTRIBUTION_MODEL_UNSPECIFIED';
/**
* Cross-channel Last Click model.
*/
public const ATTRIBUTION_MODEL_CROSS_CHANNEL_LAST_CLICK = 'CROSS_CHANNEL_LAST_CLICK';
/**
* Ads-preferred Last Click model.
*/
public const ATTRIBUTION_MODEL_ADS_PREFERRED_LAST_CLICK = 'ADS_PREFERRED_LAST_CLICK';
/**
* Cross-channel Data Driven model.
*/
public const ATTRIBUTION_MODEL_CROSS_CHANNEL_DATA_DRIVEN = 'CROSS_CHANNEL_DATA_DRIVEN';
/**
* Cross-channel First Click model.
*/
public const ATTRIBUTION_MODEL_CROSS_CHANNEL_FIRST_CLICK = 'CROSS_CHANNEL_FIRST_CLICK';
/**
* Cross-channel Linear model.
*/
public const ATTRIBUTION_MODEL_CROSS_CHANNEL_LINEAR = 'CROSS_CHANNEL_LINEAR';
/**
* Cross-channel Position Based model.
*/
public const ATTRIBUTION_MODEL_CROSS_CHANNEL_POSITION_BASED = 'CROSS_CHANNEL_POSITION_BASED';
/**
* Cross-channel Time Decay model.
*/
public const ATTRIBUTION_MODEL_CROSS_CHANNEL_TIME_DECAY = 'CROSS_CHANNEL_TIME_DECAY';
protected $collection_key = 'conversionType';
/**
* Required. Lookback windows (in days) used for attribution in this source.
* Supported values are 7, 30, 40.
*
* @var int
*/
public $attributionLookbackWindowInDays;
/**
* @var string
*/
public $attributionModel;
protected $conversionTypeType = AttributionSettingsConversionType::class;
protected $conversionTypeDataType = 'array';
/**
* Required. Lookback windows (in days) used for attribution in this source.
* Supported values are 7, 30, 40.
*
* @param int $attributionLookbackWindowInDays
*/
public function setAttributionLookbackWindowInDays($attributionLookbackWindowInDays)
{
$this->attributionLookbackWindowInDays = $attributionLookbackWindowInDays;
}
/**
* @return int
*/
public function getAttributionLookbackWindowInDays()
{
return $this->attributionLookbackWindowInDays;
}
/**
* @param self::ATTRIBUTION_MODEL_* $attributionModel
*/
public function setAttributionModel($attributionModel)
{
$this->attributionModel = $attributionModel;
}
/**
* @return self::ATTRIBUTION_MODEL_*
*/
public function getAttributionModel()
{
return $this->attributionModel;
}
/**
* Immutable. Unordered list. List of different conversion types a conversion
* event can be classified as. A standard "purchase" type will be
* automatically created if this list is empty at creation time.
*
* @param AttributionSettingsConversionType[] $conversionType
*/
public function setConversionType($conversionType)
{
$this->conversionType = $conversionType;
}
/**
* @return AttributionSettingsConversionType[]
*/
public function getConversionType()
{
return $this->conversionType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttributionSettings::class, 'Google_Service_ShoppingContent_AttributionSettings');
@@ -0,0 +1,72 @@
<?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\ShoppingContent;
class AttributionSettingsConversionType extends \Google\Model
{
/**
* Output only. Option indicating if the type should be included in Merchant
* Center reporting.
*
* @var bool
*/
public $includeInReporting;
/**
* Output only. Conversion event name, as it'll be reported by the client.
*
* @var string
*/
public $name;
/**
* Output only. Option indicating if the type should be included in Merchant
* Center reporting.
*
* @param bool $includeInReporting
*/
public function setIncludeInReporting($includeInReporting)
{
$this->includeInReporting = $includeInReporting;
}
/**
* @return bool
*/
public function getIncludeInReporting()
{
return $this->includeInReporting;
}
/**
* Output only. Conversion event name, as it'll be reported by the client.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AttributionSettingsConversionType::class, 'Google_Service_ShoppingContent_AttributionSettingsConversionType');
@@ -0,0 +1,341 @@
<?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\ShoppingContent;
class BestSellers extends \Google\Model
{
/**
* Relative demand is unknown.
*/
public const PREVIOUS_RELATIVE_DEMAND_RELATIVE_DEMAND_UNSPECIFIED = 'RELATIVE_DEMAND_UNSPECIFIED';
/**
* Demand is 0-5% of the demand of the highest ranked product clusters or
* brands.
*/
public const PREVIOUS_RELATIVE_DEMAND_VERY_LOW = 'VERY_LOW';
/**
* Demand is 6-10% of the demand of the highest ranked product clusters or
* brands.
*/
public const PREVIOUS_RELATIVE_DEMAND_LOW = 'LOW';
/**
* Demand is 11-20% of the demand of the highest ranked product clusters or
* brands.
*/
public const PREVIOUS_RELATIVE_DEMAND_MEDIUM = 'MEDIUM';
/**
* Demand is 21-50% of the demand of the highest ranked product clusters or
* brands.
*/
public const PREVIOUS_RELATIVE_DEMAND_HIGH = 'HIGH';
/**
* Demand is 51-100% of the demand of the highest ranked product clusters or
* brands.
*/
public const PREVIOUS_RELATIVE_DEMAND_VERY_HIGH = 'VERY_HIGH';
/**
* Relative demand is unknown.
*/
public const RELATIVE_DEMAND_RELATIVE_DEMAND_UNSPECIFIED = 'RELATIVE_DEMAND_UNSPECIFIED';
/**
* Demand is 0-5% of the demand of the highest ranked product clusters or
* brands.
*/
public const RELATIVE_DEMAND_VERY_LOW = 'VERY_LOW';
/**
* Demand is 6-10% of the demand of the highest ranked product clusters or
* brands.
*/
public const RELATIVE_DEMAND_LOW = 'LOW';
/**
* Demand is 11-20% of the demand of the highest ranked product clusters or
* brands.
*/
public const RELATIVE_DEMAND_MEDIUM = 'MEDIUM';
/**
* Demand is 21-50% of the demand of the highest ranked product clusters or
* brands.
*/
public const RELATIVE_DEMAND_HIGH = 'HIGH';
/**
* Demand is 51-100% of the demand of the highest ranked product clusters or
* brands.
*/
public const RELATIVE_DEMAND_VERY_HIGH = 'VERY_HIGH';
/**
* Relative demand change is unknown.
*/
public const RELATIVE_DEMAND_CHANGE_RELATIVE_DEMAND_CHANGE_TYPE_UNSPECIFIED = 'RELATIVE_DEMAND_CHANGE_TYPE_UNSPECIFIED';
/**
* Relative demand is lower than previous time period.
*/
public const RELATIVE_DEMAND_CHANGE_SINKER = 'SINKER';
/**
* Relative demand is equal to previous time period.
*/
public const RELATIVE_DEMAND_CHANGE_FLAT = 'FLAT';
/**
* Relative demand is higher than the previous time period.
*/
public const RELATIVE_DEMAND_CHANGE_RISER = 'RISER';
/**
* Report granularity is unknown.
*/
public const REPORT_GRANULARITY_REPORT_GRANULARITY_UNSPECIFIED = 'REPORT_GRANULARITY_UNSPECIFIED';
/**
* Ranking is done over a week timeframe.
*/
public const REPORT_GRANULARITY_WEEKLY = 'WEEKLY';
/**
* Ranking is done over a month timeframe.
*/
public const REPORT_GRANULARITY_MONTHLY = 'MONTHLY';
/**
* Google product category ID to calculate the ranking for, represented in
* [Google's product
* taxonomy](https://support.google.com/merchants/answer/6324436). If a
* `WHERE` condition on `best_sellers.category_id` is not specified in the
* query, rankings for all top-level categories are returned.
*
* @var string
*/
public $categoryId;
/**
* Country where the ranking is calculated. A `WHERE` condition on
* `best_sellers.country_code` is required in the query.
*
* @var string
*/
public $countryCode;
/**
* Popularity rank in the previous week or month.
*
* @var string
*/
public $previousRank;
/**
* Estimated demand in relation to the item with the highest popularity rank
* in the same category and country in the previous week or month.
*
* @var string
*/
public $previousRelativeDemand;
/**
* Popularity on Shopping ads and free listings, in the selected category and
* country, based on the estimated number of units sold.
*
* @var string
*/
public $rank;
/**
* Estimated demand in relation to the item with the highest popularity rank
* in the same category and country.
*
* @var string
*/
public $relativeDemand;
/**
* Change in the estimated demand. Whether it rose, sank or remained flat.
*
* @var string
*/
public $relativeDemandChange;
protected $reportDateType = Date::class;
protected $reportDateDataType = '';
/**
* Granularity of the report. The ranking can be done over a week or a month
* timeframe. A `WHERE` condition on `best_sellers.report_granularity` is
* required in the query.
*
* @var string
*/
public $reportGranularity;
/**
* Google product category ID to calculate the ranking for, represented in
* [Google's product
* taxonomy](https://support.google.com/merchants/answer/6324436). If a
* `WHERE` condition on `best_sellers.category_id` is not specified in the
* query, rankings for all top-level categories are returned.
*
* @param string $categoryId
*/
public function setCategoryId($categoryId)
{
$this->categoryId = $categoryId;
}
/**
* @return string
*/
public function getCategoryId()
{
return $this->categoryId;
}
/**
* Country where the ranking is calculated. A `WHERE` condition on
* `best_sellers.country_code` is required in the query.
*
* @param string $countryCode
*/
public function setCountryCode($countryCode)
{
$this->countryCode = $countryCode;
}
/**
* @return string
*/
public function getCountryCode()
{
return $this->countryCode;
}
/**
* Popularity rank in the previous week or month.
*
* @param string $previousRank
*/
public function setPreviousRank($previousRank)
{
$this->previousRank = $previousRank;
}
/**
* @return string
*/
public function getPreviousRank()
{
return $this->previousRank;
}
/**
* Estimated demand in relation to the item with the highest popularity rank
* in the same category and country in the previous week or month.
*
* Accepted values: RELATIVE_DEMAND_UNSPECIFIED, VERY_LOW, LOW, MEDIUM, HIGH,
* VERY_HIGH
*
* @param self::PREVIOUS_RELATIVE_DEMAND_* $previousRelativeDemand
*/
public function setPreviousRelativeDemand($previousRelativeDemand)
{
$this->previousRelativeDemand = $previousRelativeDemand;
}
/**
* @return self::PREVIOUS_RELATIVE_DEMAND_*
*/
public function getPreviousRelativeDemand()
{
return $this->previousRelativeDemand;
}
/**
* Popularity on Shopping ads and free listings, in the selected category and
* country, based on the estimated number of units sold.
*
* @param string $rank
*/
public function setRank($rank)
{
$this->rank = $rank;
}
/**
* @return string
*/
public function getRank()
{
return $this->rank;
}
/**
* Estimated demand in relation to the item with the highest popularity rank
* in the same category and country.
*
* Accepted values: RELATIVE_DEMAND_UNSPECIFIED, VERY_LOW, LOW, MEDIUM, HIGH,
* VERY_HIGH
*
* @param self::RELATIVE_DEMAND_* $relativeDemand
*/
public function setRelativeDemand($relativeDemand)
{
$this->relativeDemand = $relativeDemand;
}
/**
* @return self::RELATIVE_DEMAND_*
*/
public function getRelativeDemand()
{
return $this->relativeDemand;
}
/**
* Change in the estimated demand. Whether it rose, sank or remained flat.
*
* Accepted values: RELATIVE_DEMAND_CHANGE_TYPE_UNSPECIFIED, SINKER, FLAT,
* RISER
*
* @param self::RELATIVE_DEMAND_CHANGE_* $relativeDemandChange
*/
public function setRelativeDemandChange($relativeDemandChange)
{
$this->relativeDemandChange = $relativeDemandChange;
}
/**
* @return self::RELATIVE_DEMAND_CHANGE_*
*/
public function getRelativeDemandChange()
{
return $this->relativeDemandChange;
}
/**
* Report date. The value of this field can only be one of the following: *
* The first day of the week (Monday) for weekly reports. * The first day of
* the month for monthly reports. If a `WHERE` condition on
* `best_sellers.report_date` is not specified in the query, the latest
* available weekly or monthly report is returned.
*
* @param Date $reportDate
*/
public function setReportDate(Date $reportDate)
{
$this->reportDate = $reportDate;
}
/**
* @return Date
*/
public function getReportDate()
{
return $this->reportDate;
}
/**
* Granularity of the report. The ranking can be done over a week or a month
* timeframe. A `WHERE` condition on `best_sellers.report_granularity` is
* required in the query.
*
* Accepted values: REPORT_GRANULARITY_UNSPECIFIED, WEEKLY, MONTHLY
*
* @param self::REPORT_GRANULARITY_* $reportGranularity
*/
public function setReportGranularity($reportGranularity)
{
$this->reportGranularity = $reportGranularity;
}
/**
* @return self::REPORT_GRANULARITY_*
*/
public function getReportGranularity()
{
return $this->reportGranularity;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BestSellers::class, 'Google_Service_ShoppingContent_BestSellers');
@@ -0,0 +1,48 @@
<?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\ShoppingContent;
class Brand extends \Google\Model
{
/**
* Name of the brand.
*
* @var string
*/
public $name;
/**
* Name of the brand.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Brand::class, 'Google_Service_ShoppingContent_Brand');
@@ -0,0 +1,73 @@
<?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\ShoppingContent;
class Breakdown extends \Google\Collection
{
protected $collection_key = 'regions';
/**
* Human readable, localized description of issue's effect on different
* targets. Should be rendered as a list. For example: * "Products not showing
* in ads" * "Products not showing organically"
*
* @var string[]
*/
public $details;
protected $regionsType = BreakdownRegion::class;
protected $regionsDataType = 'array';
/**
* Human readable, localized description of issue's effect on different
* targets. Should be rendered as a list. For example: * "Products not showing
* in ads" * "Products not showing organically"
*
* @param string[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return string[]
*/
public function getDetails()
{
return $this->details;
}
/**
* Lists of regions. Should be rendered as a title for this group of details.
* The full list should be shown to merchant. If the list is too long, it is
* recommended to make it expandable.
*
* @param BreakdownRegion[] $regions
*/
public function setRegions($regions)
{
$this->regions = $regions;
}
/**
* @return BreakdownRegion[]
*/
public function getRegions()
{
return $this->regions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Breakdown::class, 'Google_Service_ShoppingContent_Breakdown');
@@ -0,0 +1,74 @@
<?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\ShoppingContent;
class BreakdownRegion extends \Google\Model
{
/**
* The [CLDR territory code]
* (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
*
* @var string
*/
public $code;
/**
* The localized name of the region. For region with code='001' the value is
* 'All countries' or the equivalent in other languages.
*
* @var string
*/
public $name;
/**
* The [CLDR territory code]
* (http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml)
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* The localized name of the region. For region with code='001' the value is
* 'All countries' or the equivalent in other languages.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BreakdownRegion::class, 'Google_Service_ShoppingContent_BreakdownRegion');
@@ -0,0 +1,153 @@
<?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\ShoppingContent;
class BuiltInSimpleAction extends \Google\Model
{
/**
* Default value. Will never be provided by the API.
*/
public const TYPE_BUILT_IN_SIMPLE_ACTION_TYPE_UNSPECIFIED = 'BUILT_IN_SIMPLE_ACTION_TYPE_UNSPECIFIED';
/**
* Redirect merchant to the part of your application where they can verify
* their phone.
*/
public const TYPE_VERIFY_PHONE = 'VERIFY_PHONE';
/**
* Redirect merchant to the part of your application where they can claim
* their website.
*/
public const TYPE_CLAIM_WEBSITE = 'CLAIM_WEBSITE';
/**
* Redirect merchant to the part of your application where they can add
* products.
*/
public const TYPE_ADD_PRODUCTS = 'ADD_PRODUCTS';
/**
* Open a form where the merchant can edit their contact information.
*/
public const TYPE_ADD_CONTACT_INFO = 'ADD_CONTACT_INFO';
/**
* Redirect merchant to the part of your application where they can link ads
* account.
*/
public const TYPE_LINK_ADS_ACCOUNT = 'LINK_ADS_ACCOUNT';
/**
* Open a form where the merchant can add their business registration number.
*/
public const TYPE_ADD_BUSINESS_REGISTRATION_NUMBER = 'ADD_BUSINESS_REGISTRATION_NUMBER';
/**
* Open a form where the merchant can edit an attribute. The attribute that
* needs to be updated is specified in attribute_code field of the action.
*/
public const TYPE_EDIT_ITEM_ATTRIBUTE = 'EDIT_ITEM_ATTRIBUTE';
/**
* Redirect merchant from the product issues to the diagnostic page with their
* account issues in your application. This action will be returned only for
* product issues that are caused by an account issue and thus merchant should
* resolve the problem on the account level.
*/
public const TYPE_FIX_ACCOUNT_ISSUE = 'FIX_ACCOUNT_ISSUE';
/**
* Show additional content to the merchant. This action will be used for
* example to deliver a justification from national authority.
*/
public const TYPE_SHOW_ADDITIONAL_CONTENT = 'SHOW_ADDITIONAL_CONTENT';
protected $additionalContentType = BuiltInSimpleActionAdditionalContent::class;
protected $additionalContentDataType = '';
/**
* The attribute that needs to be updated. Present when the type is
* `EDIT_ITEM_ATTRIBUTE`. This field contains a code for attribute,
* represented in snake_case. You can find a list of product's attributes,
* with their codes
* [here](https://support.google.com/merchants/answer/7052112).
*
* @var string
*/
public $attributeCode;
/**
* The type of action that represents a functionality that is expected to be
* available in third-party application.
*
* @var string
*/
public $type;
/**
* Long text from an external source that should be available to the merchant.
* Present when the type is `SHOW_ADDITIONAL_CONTENT`.
*
* @param BuiltInSimpleActionAdditionalContent $additionalContent
*/
public function setAdditionalContent(BuiltInSimpleActionAdditionalContent $additionalContent)
{
$this->additionalContent = $additionalContent;
}
/**
* @return BuiltInSimpleActionAdditionalContent
*/
public function getAdditionalContent()
{
return $this->additionalContent;
}
/**
* The attribute that needs to be updated. Present when the type is
* `EDIT_ITEM_ATTRIBUTE`. This field contains a code for attribute,
* represented in snake_case. You can find a list of product's attributes,
* with their codes
* [here](https://support.google.com/merchants/answer/7052112).
*
* @param string $attributeCode
*/
public function setAttributeCode($attributeCode)
{
$this->attributeCode = $attributeCode;
}
/**
* @return string
*/
public function getAttributeCode()
{
return $this->attributeCode;
}
/**
* The type of action that represents a functionality that is expected to be
* available in third-party application.
*
* Accepted values: BUILT_IN_SIMPLE_ACTION_TYPE_UNSPECIFIED, VERIFY_PHONE,
* CLAIM_WEBSITE, ADD_PRODUCTS, ADD_CONTACT_INFO, LINK_ADS_ACCOUNT,
* ADD_BUSINESS_REGISTRATION_NUMBER, EDIT_ITEM_ATTRIBUTE, FIX_ACCOUNT_ISSUE,
* SHOW_ADDITIONAL_CONTENT
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuiltInSimpleAction::class, 'Google_Service_ShoppingContent_BuiltInSimpleAction');
@@ -0,0 +1,71 @@
<?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\ShoppingContent;
class BuiltInSimpleActionAdditionalContent extends \Google\Collection
{
protected $collection_key = 'paragraphs';
/**
* Long text organized into paragraphs.
*
* @var string[]
*/
public $paragraphs;
/**
* Title of the additional content;
*
* @var string
*/
public $title;
/**
* Long text organized into paragraphs.
*
* @param string[] $paragraphs
*/
public function setParagraphs($paragraphs)
{
$this->paragraphs = $paragraphs;
}
/**
* @return string[]
*/
public function getParagraphs()
{
return $this->paragraphs;
}
/**
* Title of the additional content;
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuiltInSimpleActionAdditionalContent::class, 'Google_Service_ShoppingContent_BuiltInSimpleActionAdditionalContent');
@@ -0,0 +1,72 @@
<?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\ShoppingContent;
class BuiltInUserInputAction extends \Google\Collection
{
protected $collection_key = 'flows';
/**
* Internal details. Not for display but need to be sent back when triggering
* the action.
*
* @var string
*/
public $actionContext;
protected $flowsType = ActionFlow::class;
protected $flowsDataType = 'array';
/**
* Internal details. Not for display but need to be sent back when triggering
* the action.
*
* @param string $actionContext
*/
public function setActionContext($actionContext)
{
$this->actionContext = $actionContext;
}
/**
* @return string
*/
public function getActionContext()
{
return $this->actionContext;
}
/**
* Actions may provide multiple different flows. Merchant selects one that
* fits best to their intent. Selecting the flow is the first step in user's
* interaction with the action. It affects what input fields will be available
* and required and also how the request will be processed.
*
* @param ActionFlow[] $flows
*/
public function setFlows($flows)
{
$this->flows = $flows;
}
/**
* @return ActionFlow[]
*/
public function getFlows()
{
return $this->flows;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuiltInUserInputAction::class, 'Google_Service_ShoppingContent_BuiltInUserInputAction');
@@ -0,0 +1,49 @@
<?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\ShoppingContent;
class BusinessDayConfig extends \Google\Collection
{
protected $collection_key = 'businessDays';
/**
* Regular business days, such as '"monday"'. May not be empty.
*
* @var string[]
*/
public $businessDays;
/**
* Regular business days, such as '"monday"'. May not be empty.
*
* @param string[] $businessDays
*/
public function setBusinessDays($businessDays)
{
$this->businessDays = $businessDays;
}
/**
* @return string[]
*/
public function getBusinessDays()
{
return $this->businessDays;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BusinessDayConfig::class, 'Google_Service_ShoppingContent_BusinessDayConfig');
@@ -0,0 +1,62 @@
<?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\ShoppingContent;
class BusinessMessagesLink extends \Google\Model
{
/**
* @var string
*/
public $agentId;
/**
* @var string
*/
public $businessMessagesLinkId;
/**
* @param string
*/
public function setAgentId($agentId)
{
$this->agentId = $agentId;
}
/**
* @return string
*/
public function getAgentId()
{
return $this->agentId;
}
/**
* @param string
*/
public function setBusinessMessagesLinkId($businessMessagesLinkId)
{
$this->businessMessagesLinkId = $businessMessagesLinkId;
}
/**
* @return string
*/
public function getBusinessMessagesLinkId()
{
return $this->businessMessagesLinkId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BusinessMessagesLink::class, 'Google_Service_ShoppingContent_BusinessMessagesLink');
@@ -0,0 +1,189 @@
<?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\ShoppingContent;
class BuyOnGoogleProgramStatus extends \Google\Collection
{
protected $collection_key = 'businessModel';
/**
* @var string[]
*/
public $businessModel;
/**
* @var string
*/
public $customerServicePendingEmail;
/**
* @var string
*/
public $customerServicePendingPhoneNumber;
/**
* @var string
*/
public $customerServicePendingPhoneRegionCode;
/**
* @var string
*/
public $customerServiceVerifiedEmail;
/**
* @var string
*/
public $customerServiceVerifiedPhoneNumber;
/**
* @var string
*/
public $customerServiceVerifiedPhoneRegionCode;
/**
* @var string
*/
public $onlineSalesChannel;
/**
* @var string
*/
public $participationStage;
/**
* @param string[]
*/
public function setBusinessModel($businessModel)
{
$this->businessModel = $businessModel;
}
/**
* @return string[]
*/
public function getBusinessModel()
{
return $this->businessModel;
}
/**
* @param string
*/
public function setCustomerServicePendingEmail($customerServicePendingEmail)
{
$this->customerServicePendingEmail = $customerServicePendingEmail;
}
/**
* @return string
*/
public function getCustomerServicePendingEmail()
{
return $this->customerServicePendingEmail;
}
/**
* @param string
*/
public function setCustomerServicePendingPhoneNumber($customerServicePendingPhoneNumber)
{
$this->customerServicePendingPhoneNumber = $customerServicePendingPhoneNumber;
}
/**
* @return string
*/
public function getCustomerServicePendingPhoneNumber()
{
return $this->customerServicePendingPhoneNumber;
}
/**
* @param string
*/
public function setCustomerServicePendingPhoneRegionCode($customerServicePendingPhoneRegionCode)
{
$this->customerServicePendingPhoneRegionCode = $customerServicePendingPhoneRegionCode;
}
/**
* @return string
*/
public function getCustomerServicePendingPhoneRegionCode()
{
return $this->customerServicePendingPhoneRegionCode;
}
/**
* @param string
*/
public function setCustomerServiceVerifiedEmail($customerServiceVerifiedEmail)
{
$this->customerServiceVerifiedEmail = $customerServiceVerifiedEmail;
}
/**
* @return string
*/
public function getCustomerServiceVerifiedEmail()
{
return $this->customerServiceVerifiedEmail;
}
/**
* @param string
*/
public function setCustomerServiceVerifiedPhoneNumber($customerServiceVerifiedPhoneNumber)
{
$this->customerServiceVerifiedPhoneNumber = $customerServiceVerifiedPhoneNumber;
}
/**
* @return string
*/
public function getCustomerServiceVerifiedPhoneNumber()
{
return $this->customerServiceVerifiedPhoneNumber;
}
/**
* @param string
*/
public function setCustomerServiceVerifiedPhoneRegionCode($customerServiceVerifiedPhoneRegionCode)
{
$this->customerServiceVerifiedPhoneRegionCode = $customerServiceVerifiedPhoneRegionCode;
}
/**
* @return string
*/
public function getCustomerServiceVerifiedPhoneRegionCode()
{
return $this->customerServiceVerifiedPhoneRegionCode;
}
/**
* @param string
*/
public function setOnlineSalesChannel($onlineSalesChannel)
{
$this->onlineSalesChannel = $onlineSalesChannel;
}
/**
* @return string
*/
public function getOnlineSalesChannel()
{
return $this->onlineSalesChannel;
}
/**
* @param string
*/
public function setParticipationStage($participationStage)
{
$this->participationStage = $participationStage;
}
/**
* @return string
*/
public function getParticipationStage()
{
return $this->participationStage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BuyOnGoogleProgramStatus::class, 'Google_Service_ShoppingContent_BuyOnGoogleProgramStatus');
@@ -0,0 +1,90 @@
<?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\ShoppingContent;
class Callout extends \Google\Model
{
/**
* Default value. Will never be provided by the API.
*/
public const STYLE_HINT_CALLOUT_STYLE_HINT_UNSPECIFIED = 'CALLOUT_STYLE_HINT_UNSPECIFIED';
/**
* The most important type of information highlighting problems, like an
* unsuccessful outcome of previously requested actions.
*/
public const STYLE_HINT_ERROR = 'ERROR';
/**
* Information warning about pending problems, risks or deadlines.
*/
public const STYLE_HINT_WARNING = 'WARNING';
/**
* Default severity for important information like pending status of
* previously requested action or cooldown for re-review.
*/
public const STYLE_HINT_INFO = 'INFO';
protected $fullMessageType = TextWithTooltip::class;
protected $fullMessageDataType = '';
/**
* Can be used to render messages with different severity in different styles.
* Snippets off all types contain important information that should be
* displayed to merchants.
*
* @var string
*/
public $styleHint;
/**
* A full message that needs to be shown to the merchant.
*
* @param TextWithTooltip $fullMessage
*/
public function setFullMessage(TextWithTooltip $fullMessage)
{
$this->fullMessage = $fullMessage;
}
/**
* @return TextWithTooltip
*/
public function getFullMessage()
{
return $this->fullMessage;
}
/**
* Can be used to render messages with different severity in different styles.
* Snippets off all types contain important information that should be
* displayed to merchants.
*
* Accepted values: CALLOUT_STYLE_HINT_UNSPECIFIED, ERROR, WARNING, INFO
*
* @param self::STYLE_HINT_* $styleHint
*/
public function setStyleHint($styleHint)
{
$this->styleHint = $styleHint;
}
/**
* @return self::STYLE_HINT_*
*/
public function getStyleHint()
{
return $this->styleHint;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Callout::class, 'Google_Service_ShoppingContent_Callout');
@@ -0,0 +1,25 @@
<?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\ShoppingContent;
class CaptureOrderRequest extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CaptureOrderRequest::class, 'Google_Service_ShoppingContent_CaptureOrderRequest');
@@ -0,0 +1,44 @@
<?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\ShoppingContent;
class CaptureOrderResponse extends \Google\Model
{
/**
* @var string
*/
public $executionStatus;
/**
* @param string
*/
public function setExecutionStatus($executionStatus)
{
$this->executionStatus = $executionStatus;
}
/**
* @return string
*/
public function getExecutionStatus()
{
return $this->executionStatus;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CaptureOrderResponse::class, 'Google_Service_ShoppingContent_CaptureOrderResponse');
@@ -0,0 +1,168 @@
<?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\ShoppingContent;
class CarrierRate extends \Google\Model
{
/**
* Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported
* carriers can be retrieved through the `getSupportedCarriers` method.
* Required.
*
* @var string
*/
public $carrierName;
/**
* Carrier service, such as `"ground"` or `"2 days"`. The list of supported
* services for a carrier can be retrieved through the `getSupportedCarriers`
* method. Required.
*
* @var string
*/
public $carrierService;
protected $flatAdjustmentType = Price::class;
protected $flatAdjustmentDataType = '';
/**
* Name of the carrier rate. Must be unique per rate group. Required.
*
* @var string
*/
public $name;
/**
* Shipping origin for this carrier rate. Required.
*
* @var string
*/
public $originPostalCode;
/**
* Multiplicative shipping rate modifier as a number in decimal notation. Can
* be negative. For example `"5.4"` increases the rate by 5.4%, `"-3"`
* decreases the rate by 3%. Optional.
*
* @var string
*/
public $percentageAdjustment;
/**
* Carrier service, such as `"UPS"` or `"Fedex"`. The list of supported
* carriers can be retrieved through the `getSupportedCarriers` method.
* Required.
*
* @param string $carrierName
*/
public function setCarrierName($carrierName)
{
$this->carrierName = $carrierName;
}
/**
* @return string
*/
public function getCarrierName()
{
return $this->carrierName;
}
/**
* Carrier service, such as `"ground"` or `"2 days"`. The list of supported
* services for a carrier can be retrieved through the `getSupportedCarriers`
* method. Required.
*
* @param string $carrierService
*/
public function setCarrierService($carrierService)
{
$this->carrierService = $carrierService;
}
/**
* @return string
*/
public function getCarrierService()
{
return $this->carrierService;
}
/**
* Additive shipping rate modifier. Can be negative. For example `{ "value":
* "1", "currency" : "USD" }` adds $1 to the rate, `{ "value": "-3",
* "currency" : "USD" }` removes $3 from the rate. Optional.
*
* @param Price $flatAdjustment
*/
public function setFlatAdjustment(Price $flatAdjustment)
{
$this->flatAdjustment = $flatAdjustment;
}
/**
* @return Price
*/
public function getFlatAdjustment()
{
return $this->flatAdjustment;
}
/**
* Name of the carrier rate. Must be unique per rate group. Required.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Shipping origin for this carrier rate. Required.
*
* @param string $originPostalCode
*/
public function setOriginPostalCode($originPostalCode)
{
$this->originPostalCode = $originPostalCode;
}
/**
* @return string
*/
public function getOriginPostalCode()
{
return $this->originPostalCode;
}
/**
* Multiplicative shipping rate modifier as a number in decimal notation. Can
* be negative. For example `"5.4"` increases the rate by 5.4%, `"-3"`
* decreases the rate by 3%. Optional.
*
* @param string $percentageAdjustment
*/
public function setPercentageAdjustment($percentageAdjustment)
{
$this->percentageAdjustment = $percentageAdjustment;
}
/**
* @return string
*/
public function getPercentageAdjustment()
{
return $this->percentageAdjustment;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CarrierRate::class, 'Google_Service_ShoppingContent_CarrierRate');
@@ -0,0 +1,123 @@
<?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\ShoppingContent;
class CarriersCarrier extends \Google\Collection
{
protected $collection_key = 'services';
/**
* The CLDR country code of the carrier (for example, "US"). Always present.
*
* @var string
*/
public $country;
/**
* A list of services supported for EDD (Estimated Delivery Date) calculation.
* This is the list of valid values for
* WarehouseBasedDeliveryTime.carrierService.
*
* @var string[]
*/
public $eddServices;
/**
* The name of the carrier (for example, `"UPS"`). Always present.
*
* @var string
*/
public $name;
/**
* A list of supported services (for example, `"ground"`) for that carrier.
* Contains at least one service. This is the list of valid values for
* CarrierRate.carrierService.
*
* @var string[]
*/
public $services;
/**
* The CLDR country code of the carrier (for example, "US"). Always present.
*
* @param string $country
*/
public function setCountry($country)
{
$this->country = $country;
}
/**
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* A list of services supported for EDD (Estimated Delivery Date) calculation.
* This is the list of valid values for
* WarehouseBasedDeliveryTime.carrierService.
*
* @param string[] $eddServices
*/
public function setEddServices($eddServices)
{
$this->eddServices = $eddServices;
}
/**
* @return string[]
*/
public function getEddServices()
{
return $this->eddServices;
}
/**
* The name of the carrier (for example, `"UPS"`). Always present.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* A list of supported services (for example, `"ground"`) for that carrier.
* Contains at least one service. This is the list of valid values for
* CarrierRate.carrierService.
*
* @param string[] $services
*/
public function setServices($services)
{
$this->services = $services;
}
/**
* @return string[]
*/
public function getServices()
{
return $this->services;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CarriersCarrier::class, 'Google_Service_ShoppingContent_CarriersCarrier');
@@ -0,0 +1,276 @@
<?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\ShoppingContent;
class CheckoutSettings extends \Google\Model
{
/**
* Default enrollment state when enrollment state is not specified.
*/
public const EFFECTIVE_ENROLLMENT_STATE_CHECKOUT_ON_MERCHANT_ENROLLMENT_STATE_UNSPECIFIED = 'CHECKOUT_ON_MERCHANT_ENROLLMENT_STATE_UNSPECIFIED';
/**
* Merchant has not enrolled into the feature.
*/
public const EFFECTIVE_ENROLLMENT_STATE_INACTIVE = 'INACTIVE';
/**
* Merchant has enrolled into the feature by providing either an account level
* URL or checkout URLs as part of their feed.
*/
public const EFFECTIVE_ENROLLMENT_STATE_ENROLLED = 'ENROLLED';
/**
* Merchant has previously enrolled but opted out of the feature.
*/
public const EFFECTIVE_ENROLLMENT_STATE_OPT_OUT = 'OPT_OUT';
/**
* Default review state when review state is not specified.
*/
public const EFFECTIVE_REVIEW_STATE_CHECKOUT_ON_MERCHANT_REVIEW_STATE_UNSPECIFIED = 'CHECKOUT_ON_MERCHANT_REVIEW_STATE_UNSPECIFIED';
/**
* Merchant provided URLs are being reviewed for data quality issues.
*/
public const EFFECTIVE_REVIEW_STATE_IN_REVIEW = 'IN_REVIEW';
/**
* Merchant account has been approved. Indicates the data quality checks have
* passed.
*/
public const EFFECTIVE_REVIEW_STATE_APPROVED = 'APPROVED';
/**
* Merchant account has been disapproved due to data quality issues.
*/
public const EFFECTIVE_REVIEW_STATE_DISAPPROVED = 'DISAPPROVED';
/**
* Default enrollment state when enrollment state is not specified.
*/
public const ENROLLMENT_STATE_CHECKOUT_ON_MERCHANT_ENROLLMENT_STATE_UNSPECIFIED = 'CHECKOUT_ON_MERCHANT_ENROLLMENT_STATE_UNSPECIFIED';
/**
* Merchant has not enrolled into the feature.
*/
public const ENROLLMENT_STATE_INACTIVE = 'INACTIVE';
/**
* Merchant has enrolled into the feature by providing either an account level
* URL or checkout URLs as part of their feed.
*/
public const ENROLLMENT_STATE_ENROLLED = 'ENROLLED';
/**
* Merchant has previously enrolled but opted out of the feature.
*/
public const ENROLLMENT_STATE_OPT_OUT = 'OPT_OUT';
/**
* Default review state when review state is not specified.
*/
public const REVIEW_STATE_CHECKOUT_ON_MERCHANT_REVIEW_STATE_UNSPECIFIED = 'CHECKOUT_ON_MERCHANT_REVIEW_STATE_UNSPECIFIED';
/**
* Merchant provided URLs are being reviewed for data quality issues.
*/
public const REVIEW_STATE_IN_REVIEW = 'IN_REVIEW';
/**
* Merchant account has been approved. Indicates the data quality checks have
* passed.
*/
public const REVIEW_STATE_APPROVED = 'APPROVED';
/**
* Merchant account has been disapproved due to data quality issues.
*/
public const REVIEW_STATE_DISAPPROVED = 'DISAPPROVED';
/**
* Output only. The effective value of enrollment state for a given merchant
* ID. If account level settings are present then this value will be a copy of
* the account level settings. Otherwise, it will have the value of the parent
* account.
*
* @var string
*/
public $effectiveEnrollmentState;
/**
* Output only. The effective value of review state for a given merchant ID.
* If account level settings are present then this value will be a copy of the
* account level settings. Otherwise, it will have the value of the parent
* account.
*
* @var string
*/
public $effectiveReviewState;
protected $effectiveUriSettingsType = UrlSettings::class;
protected $effectiveUriSettingsDataType = '';
/**
* Output only. Reflects the merchant enrollment state in `Checkout` feature.
*
* @var string
*/
public $enrollmentState;
/**
* Required. The ID of the account.
*
* @var string
*/
public $merchantId;
/**
* Output only. Reflects the merchant review state in `Checkout` feature. This
* is set based on the data quality reviews of the URL provided by the
* merchant. A merchant with enrollment state as `ENROLLED` can be in the
* following review states: `IN_REVIEW`, `APPROVED` or `DISAPPROVED`. A
* merchant must be in an enrollment_state of `ENROLLED` before a review can
* begin for the merchant.
*
* @var string
*/
public $reviewState;
protected $uriSettingsType = UrlSettings::class;
protected $uriSettingsDataType = '';
/**
* Output only. The effective value of enrollment state for a given merchant
* ID. If account level settings are present then this value will be a copy of
* the account level settings. Otherwise, it will have the value of the parent
* account.
*
* Accepted values: CHECKOUT_ON_MERCHANT_ENROLLMENT_STATE_UNSPECIFIED,
* INACTIVE, ENROLLED, OPT_OUT
*
* @param self::EFFECTIVE_ENROLLMENT_STATE_* $effectiveEnrollmentState
*/
public function setEffectiveEnrollmentState($effectiveEnrollmentState)
{
$this->effectiveEnrollmentState = $effectiveEnrollmentState;
}
/**
* @return self::EFFECTIVE_ENROLLMENT_STATE_*
*/
public function getEffectiveEnrollmentState()
{
return $this->effectiveEnrollmentState;
}
/**
* Output only. The effective value of review state for a given merchant ID.
* If account level settings are present then this value will be a copy of the
* account level settings. Otherwise, it will have the value of the parent
* account.
*
* Accepted values: CHECKOUT_ON_MERCHANT_REVIEW_STATE_UNSPECIFIED, IN_REVIEW,
* APPROVED, DISAPPROVED
*
* @param self::EFFECTIVE_REVIEW_STATE_* $effectiveReviewState
*/
public function setEffectiveReviewState($effectiveReviewState)
{
$this->effectiveReviewState = $effectiveReviewState;
}
/**
* @return self::EFFECTIVE_REVIEW_STATE_*
*/
public function getEffectiveReviewState()
{
return $this->effectiveReviewState;
}
/**
* The effective value of `url_settings` for a given merchant ID. If account
* level settings are present then this value will be a copy of the account
* level settings. Otherwise, it will have the value of the parent account.
*
* @param UrlSettings $effectiveUriSettings
*/
public function setEffectiveUriSettings(UrlSettings $effectiveUriSettings)
{
$this->effectiveUriSettings = $effectiveUriSettings;
}
/**
* @return UrlSettings
*/
public function getEffectiveUriSettings()
{
return $this->effectiveUriSettings;
}
/**
* Output only. Reflects the merchant enrollment state in `Checkout` feature.
*
* Accepted values: CHECKOUT_ON_MERCHANT_ENROLLMENT_STATE_UNSPECIFIED,
* INACTIVE, ENROLLED, OPT_OUT
*
* @param self::ENROLLMENT_STATE_* $enrollmentState
*/
public function setEnrollmentState($enrollmentState)
{
$this->enrollmentState = $enrollmentState;
}
/**
* @return self::ENROLLMENT_STATE_*
*/
public function getEnrollmentState()
{
return $this->enrollmentState;
}
/**
* Required. The ID of the account.
*
* @param string $merchantId
*/
public function setMerchantId($merchantId)
{
$this->merchantId = $merchantId;
}
/**
* @return string
*/
public function getMerchantId()
{
return $this->merchantId;
}
/**
* Output only. Reflects the merchant review state in `Checkout` feature. This
* is set based on the data quality reviews of the URL provided by the
* merchant. A merchant with enrollment state as `ENROLLED` can be in the
* following review states: `IN_REVIEW`, `APPROVED` or `DISAPPROVED`. A
* merchant must be in an enrollment_state of `ENROLLED` before a review can
* begin for the merchant.
*
* Accepted values: CHECKOUT_ON_MERCHANT_REVIEW_STATE_UNSPECIFIED, IN_REVIEW,
* APPROVED, DISAPPROVED
*
* @param self::REVIEW_STATE_* $reviewState
*/
public function setReviewState($reviewState)
{
$this->reviewState = $reviewState;
}
/**
* @return self::REVIEW_STATE_*
*/
public function getReviewState()
{
return $this->reviewState;
}
/**
* URL settings for cart or checkout URL.
*
* @param UrlSettings $uriSettings
*/
public function setUriSettings(UrlSettings $uriSettings)
{
$this->uriSettings = $uriSettings;
}
/**
* @return UrlSettings
*/
public function getUriSettings()
{
return $this->uriSettings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CheckoutSettings::class, 'Google_Service_ShoppingContent_CheckoutSettings');
@@ -0,0 +1,227 @@
<?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\ShoppingContent;
class CloudExportAdditionalProperties extends \Google\Collection
{
protected $collection_key = 'textValue';
/**
* Boolean value of the given property. For example for a TV product, "True"
* or "False" if the screen is UHD.
*
* @var bool
*/
public $boolValue;
/**
* Float values of the given property. For example for a TV product 1.2345.
* Maximum number of specified values for this field is 400. Values are stored
* in an arbitrary but consistent order.
*
* @var float[]
*/
public $floatValue;
/**
* Integer values of the given property. For example, 1080 for a screen
* resolution of a TV product. Maximum number of specified values for this
* field is 400. Values are stored in an arbitrary but consistent order.
*
* @var string[]
*/
public $intValue;
/**
* Maximum float value of the given property. For example for a TV product
* 100.00.
*
* @var float
*/
public $maxValue;
/**
* Minimum float value of the given property. For example for a TV product
* 1.00.
*
* @var float
*/
public $minValue;
/**
* Name of the given property. For example, "Screen-Resolution" for a TV
* product. Maximum string size is 256 characters.
*
* @var string
*/
public $propertyName;
/**
* Text value of the given property. For example, "8K(UHD)" could be a text
* value for a TV product. Maximum number of specified values for this field
* is 400. Values are stored in an arbitrary but consistent order. Maximum
* string size is 256 characters.
*
* @var string[]
*/
public $textValue;
/**
* Unit of the given property. For example, "Pixels" for a TV product. Maximum
* string size is 256 bytes.
*
* @var string
*/
public $unitCode;
/**
* Boolean value of the given property. For example for a TV product, "True"
* or "False" if the screen is UHD.
*
* @param bool $boolValue
*/
public function setBoolValue($boolValue)
{
$this->boolValue = $boolValue;
}
/**
* @return bool
*/
public function getBoolValue()
{
return $this->boolValue;
}
/**
* Float values of the given property. For example for a TV product 1.2345.
* Maximum number of specified values for this field is 400. Values are stored
* in an arbitrary but consistent order.
*
* @param float[] $floatValue
*/
public function setFloatValue($floatValue)
{
$this->floatValue = $floatValue;
}
/**
* @return float[]
*/
public function getFloatValue()
{
return $this->floatValue;
}
/**
* Integer values of the given property. For example, 1080 for a screen
* resolution of a TV product. Maximum number of specified values for this
* field is 400. Values are stored in an arbitrary but consistent order.
*
* @param string[] $intValue
*/
public function setIntValue($intValue)
{
$this->intValue = $intValue;
}
/**
* @return string[]
*/
public function getIntValue()
{
return $this->intValue;
}
/**
* Maximum float value of the given property. For example for a TV product
* 100.00.
*
* @param float $maxValue
*/
public function setMaxValue($maxValue)
{
$this->maxValue = $maxValue;
}
/**
* @return float
*/
public function getMaxValue()
{
return $this->maxValue;
}
/**
* Minimum float value of the given property. For example for a TV product
* 1.00.
*
* @param float $minValue
*/
public function setMinValue($minValue)
{
$this->minValue = $minValue;
}
/**
* @return float
*/
public function getMinValue()
{
return $this->minValue;
}
/**
* Name of the given property. For example, "Screen-Resolution" for a TV
* product. Maximum string size is 256 characters.
*
* @param string $propertyName
*/
public function setPropertyName($propertyName)
{
$this->propertyName = $propertyName;
}
/**
* @return string
*/
public function getPropertyName()
{
return $this->propertyName;
}
/**
* Text value of the given property. For example, "8K(UHD)" could be a text
* value for a TV product. Maximum number of specified values for this field
* is 400. Values are stored in an arbitrary but consistent order. Maximum
* string size is 256 characters.
*
* @param string[] $textValue
*/
public function setTextValue($textValue)
{
$this->textValue = $textValue;
}
/**
* @return string[]
*/
public function getTextValue()
{
return $this->textValue;
}
/**
* Unit of the given property. For example, "Pixels" for a TV product. Maximum
* string size is 256 bytes.
*
* @param string $unitCode
*/
public function setUnitCode($unitCode)
{
$this->unitCode = $unitCode;
}
/**
* @return string
*/
public function getUnitCode()
{
return $this->unitCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudExportAdditionalProperties::class, 'Google_Service_ShoppingContent_CloudExportAdditionalProperties');
@@ -0,0 +1,350 @@
<?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\ShoppingContent;
class Collection extends \Google\Collection
{
protected $collection_key = 'imageLink';
/**
* Label that you assign to a collection to help organize bidding and
* reporting in Shopping campaigns. [Custom
* label](https://support.google.com/merchants/answer/9674217)
*
* @var string
*/
public $customLabel0;
/**
* Label that you assign to a collection to help organize bidding and
* reporting in Shopping campaigns.
*
* @var string
*/
public $customLabel1;
/**
* Label that you assign to a collection to help organize bidding and
* reporting in Shopping campaigns.
*
* @var string
*/
public $customLabel2;
/**
* Label that you assign to a collection to help organize bidding and
* reporting in Shopping campaigns.
*
* @var string
*/
public $customLabel3;
/**
* Label that you assign to a collection to help organize bidding and
* reporting in Shopping campaigns.
*
* @var string
*/
public $customLabel4;
protected $featuredProductType = CollectionFeaturedProduct::class;
protected $featuredProductDataType = 'array';
/**
* Your collection's name. [headline
* attribute](https://support.google.com/merchants/answer/9673580)
*
* @var string[]
*/
public $headline;
/**
* Required. The REST ID of the collection. Content API methods that operate
* on collections take this as their collectionId parameter. The REST ID for a
* collection is of the form collectionId. [id
* attribute](https://support.google.com/merchants/answer/9649290)
*
* @var string
*/
public $id;
/**
* The URL of a collections image. [image_link
* attribute](https://support.google.com/merchants/answer/9703236)
*
* @var string[]
*/
public $imageLink;
/**
* The language of a collection and the language of any featured products
* linked to the collection. [language
* attribute](https://support.google.com/merchants/answer/9673781)
*
* @var string
*/
public $language;
/**
* A collections landing page. URL directly linking to your collection's page
* on your website. [link
* attribute](https://support.google.com/merchants/answer/9673983)
*
* @var string
*/
public $link;
/**
* A collections mobile-optimized landing page when you have a different URL
* for mobile and desktop traffic. [mobile_link
* attribute](https://support.google.com/merchants/answer/9646123)
*
* @var string
*/
public $mobileLink;
/**
* [product_country
* attribute](https://support.google.com/merchants/answer/9674155)
*
* @var string
*/
public $productCountry;
/**
* Label that you assign to a collection to help organize bidding and
* reporting in Shopping campaigns. [Custom
* label](https://support.google.com/merchants/answer/9674217)
*
* @param string $customLabel0
*/
public function setCustomLabel0($customLabel0)
{
$this->customLabel0 = $customLabel0;
}
/**
* @return string
*/
public function getCustomLabel0()
{
return $this->customLabel0;
}
/**
* Label that you assign to a collection to help organize bidding and
* reporting in Shopping campaigns.
*
* @param string $customLabel1
*/
public function setCustomLabel1($customLabel1)
{
$this->customLabel1 = $customLabel1;
}
/**
* @return string
*/
public function getCustomLabel1()
{
return $this->customLabel1;
}
/**
* Label that you assign to a collection to help organize bidding and
* reporting in Shopping campaigns.
*
* @param string $customLabel2
*/
public function setCustomLabel2($customLabel2)
{
$this->customLabel2 = $customLabel2;
}
/**
* @return string
*/
public function getCustomLabel2()
{
return $this->customLabel2;
}
/**
* Label that you assign to a collection to help organize bidding and
* reporting in Shopping campaigns.
*
* @param string $customLabel3
*/
public function setCustomLabel3($customLabel3)
{
$this->customLabel3 = $customLabel3;
}
/**
* @return string
*/
public function getCustomLabel3()
{
return $this->customLabel3;
}
/**
* Label that you assign to a collection to help organize bidding and
* reporting in Shopping campaigns.
*
* @param string $customLabel4
*/
public function setCustomLabel4($customLabel4)
{
$this->customLabel4 = $customLabel4;
}
/**
* @return string
*/
public function getCustomLabel4()
{
return $this->customLabel4;
}
/**
* This identifies one or more products associated with the collection. Used
* as a lookup to the corresponding product ID in your product feeds. Provide
* a maximum of 100 featuredProduct (for collections). Provide up to 10
* featuredProduct (for Shoppable Images only) with ID and X and Y
* coordinates. [featured_product
* attribute](https://support.google.com/merchants/answer/9703736)
*
* @param CollectionFeaturedProduct[] $featuredProduct
*/
public function setFeaturedProduct($featuredProduct)
{
$this->featuredProduct = $featuredProduct;
}
/**
* @return CollectionFeaturedProduct[]
*/
public function getFeaturedProduct()
{
return $this->featuredProduct;
}
/**
* Your collection's name. [headline
* attribute](https://support.google.com/merchants/answer/9673580)
*
* @param string[] $headline
*/
public function setHeadline($headline)
{
$this->headline = $headline;
}
/**
* @return string[]
*/
public function getHeadline()
{
return $this->headline;
}
/**
* Required. The REST ID of the collection. Content API methods that operate
* on collections take this as their collectionId parameter. The REST ID for a
* collection is of the form collectionId. [id
* attribute](https://support.google.com/merchants/answer/9649290)
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* The URL of a collections image. [image_link
* attribute](https://support.google.com/merchants/answer/9703236)
*
* @param string[] $imageLink
*/
public function setImageLink($imageLink)
{
$this->imageLink = $imageLink;
}
/**
* @return string[]
*/
public function getImageLink()
{
return $this->imageLink;
}
/**
* The language of a collection and the language of any featured products
* linked to the collection. [language
* attribute](https://support.google.com/merchants/answer/9673781)
*
* @param string $language
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return string
*/
public function getLanguage()
{
return $this->language;
}
/**
* A collections landing page. URL directly linking to your collection's page
* on your website. [link
* attribute](https://support.google.com/merchants/answer/9673983)
*
* @param string $link
*/
public function setLink($link)
{
$this->link = $link;
}
/**
* @return string
*/
public function getLink()
{
return $this->link;
}
/**
* A collections mobile-optimized landing page when you have a different URL
* for mobile and desktop traffic. [mobile_link
* attribute](https://support.google.com/merchants/answer/9646123)
*
* @param string $mobileLink
*/
public function setMobileLink($mobileLink)
{
$this->mobileLink = $mobileLink;
}
/**
* @return string
*/
public function getMobileLink()
{
return $this->mobileLink;
}
/**
* [product_country
* attribute](https://support.google.com/merchants/answer/9674155)
*
* @param string $productCountry
*/
public function setProductCountry($productCountry)
{
$this->productCountry = $productCountry;
}
/**
* @return string
*/
public function getProductCountry()
{
return $this->productCountry;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Collection::class, 'Google_Service_ShoppingContent_Collection');
@@ -0,0 +1,92 @@
<?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\ShoppingContent;
class CollectionFeaturedProduct extends \Google\Model
{
/**
* The unique identifier for the product item.
*
* @var string
*/
public $offerId;
/**
* Required. X-coordinate of the product callout on the Shoppable Image.
*
* @var float
*/
public $x;
/**
* Required. Y-coordinate of the product callout on the Shoppable Image.
*
* @var float
*/
public $y;
/**
* The unique identifier for the product item.
*
* @param string $offerId
*/
public function setOfferId($offerId)
{
$this->offerId = $offerId;
}
/**
* @return string
*/
public function getOfferId()
{
return $this->offerId;
}
/**
* Required. X-coordinate of the product callout on the Shoppable Image.
*
* @param float $x
*/
public function setX($x)
{
$this->x = $x;
}
/**
* @return float
*/
public function getX()
{
return $this->x;
}
/**
* Required. Y-coordinate of the product callout on the Shoppable Image.
*
* @param float $y
*/
public function setY($y)
{
$this->y = $y;
}
/**
* @return float
*/
public function getY()
{
return $this->y;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CollectionFeaturedProduct::class, 'Google_Service_ShoppingContent_CollectionFeaturedProduct');
@@ -0,0 +1,137 @@
<?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\ShoppingContent;
class CollectionStatus extends \Google\Collection
{
protected $collection_key = 'destinationStatuses';
protected $collectionLevelIssusesType = CollectionStatusItemLevelIssue::class;
protected $collectionLevelIssusesDataType = 'array';
/**
* Date on which the collection has been created in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time, and
* offset, for example "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z"
*
* @var string
*/
public $creationDate;
protected $destinationStatusesType = CollectionStatusDestinationStatus::class;
protected $destinationStatusesDataType = 'array';
/**
* Required. The ID of the collection for which status is reported.
*
* @var string
*/
public $id;
/**
* Date on which the collection has been last updated in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time, and
* offset, for example "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z"
*
* @var string
*/
public $lastUpdateDate;
/**
* A list of all issues associated with the collection.
*
* @param CollectionStatusItemLevelIssue[] $collectionLevelIssuses
*/
public function setCollectionLevelIssuses($collectionLevelIssuses)
{
$this->collectionLevelIssuses = $collectionLevelIssuses;
}
/**
* @return CollectionStatusItemLevelIssue[]
*/
public function getCollectionLevelIssuses()
{
return $this->collectionLevelIssuses;
}
/**
* Date on which the collection has been created in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time, and
* offset, for example "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z"
*
* @param string $creationDate
*/
public function setCreationDate($creationDate)
{
$this->creationDate = $creationDate;
}
/**
* @return string
*/
public function getCreationDate()
{
return $this->creationDate;
}
/**
* The intended destinations for the collection.
*
* @param CollectionStatusDestinationStatus[] $destinationStatuses
*/
public function setDestinationStatuses($destinationStatuses)
{
$this->destinationStatuses = $destinationStatuses;
}
/**
* @return CollectionStatusDestinationStatus[]
*/
public function getDestinationStatuses()
{
return $this->destinationStatuses;
}
/**
* Required. The ID of the collection for which status is reported.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Date on which the collection has been last updated in [ISO
* 8601](http://en.wikipedia.org/wiki/ISO_8601) format: Date, time, and
* offset, for example "2020-01-02T09:00:00+01:00" or "2020-01-02T09:00:00Z"
*
* @param string $lastUpdateDate
*/
public function setLastUpdateDate($lastUpdateDate)
{
$this->lastUpdateDate = $lastUpdateDate;
}
/**
* @return string
*/
public function getLastUpdateDate()
{
return $this->lastUpdateDate;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CollectionStatus::class, 'Google_Service_ShoppingContent_CollectionStatus');
@@ -0,0 +1,139 @@
<?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\ShoppingContent;
class CollectionStatusDestinationStatus extends \Google\Collection
{
protected $collection_key = 'pendingCountries';
/**
* Country codes (ISO 3166-1 alpha-2) where the collection is approved.
*
* @var string[]
*/
public $approvedCountries;
/**
* The name of the destination
*
* @var string
*/
public $destination;
/**
* Country codes (ISO 3166-1 alpha-2) where the collection is disapproved.
*
* @var string[]
*/
public $disapprovedCountries;
/**
* Country codes (ISO 3166-1 alpha-2) where the collection is pending
* approval.
*
* @var string[]
*/
public $pendingCountries;
/**
* The status for the specified destination in the collections target country.
*
* @var string
*/
public $status;
/**
* Country codes (ISO 3166-1 alpha-2) where the collection is approved.
*
* @param string[] $approvedCountries
*/
public function setApprovedCountries($approvedCountries)
{
$this->approvedCountries = $approvedCountries;
}
/**
* @return string[]
*/
public function getApprovedCountries()
{
return $this->approvedCountries;
}
/**
* The name of the destination
*
* @param string $destination
*/
public function setDestination($destination)
{
$this->destination = $destination;
}
/**
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* Country codes (ISO 3166-1 alpha-2) where the collection is disapproved.
*
* @param string[] $disapprovedCountries
*/
public function setDisapprovedCountries($disapprovedCountries)
{
$this->disapprovedCountries = $disapprovedCountries;
}
/**
* @return string[]
*/
public function getDisapprovedCountries()
{
return $this->disapprovedCountries;
}
/**
* Country codes (ISO 3166-1 alpha-2) where the collection is pending
* approval.
*
* @param string[] $pendingCountries
*/
public function setPendingCountries($pendingCountries)
{
$this->pendingCountries = $pendingCountries;
}
/**
* @return string[]
*/
public function getPendingCountries()
{
return $this->pendingCountries;
}
/**
* The status for the specified destination in the collections target country.
*
* @param string $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CollectionStatusDestinationStatus::class, 'Google_Service_ShoppingContent_CollectionStatusDestinationStatus');
@@ -0,0 +1,225 @@
<?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\ShoppingContent;
class CollectionStatusItemLevelIssue extends \Google\Collection
{
protected $collection_key = 'applicableCountries';
/**
* Country codes (ISO 3166-1 alpha-2) where issue applies to the offer.
*
* @var string[]
*/
public $applicableCountries;
/**
* The attribute's name, if the issue is caused by a single attribute.
*
* @var string
*/
public $attributeName;
/**
* The error code of the issue.
*
* @var string
*/
public $code;
/**
* A short issue description in English.
*
* @var string
*/
public $description;
/**
* The destination the issue applies to.
*
* @var string
*/
public $destination;
/**
* A detailed issue description in English.
*
* @var string
*/
public $detail;
/**
* The URL of a web page to help with resolving this issue.
*
* @var string
*/
public $documentation;
/**
* Whether the issue can be resolved by the merchant.
*
* @var string
*/
public $resolution;
/**
* How this issue affects the serving of the collection.
*
* @var string
*/
public $servability;
/**
* Country codes (ISO 3166-1 alpha-2) where issue applies to the offer.
*
* @param string[] $applicableCountries
*/
public function setApplicableCountries($applicableCountries)
{
$this->applicableCountries = $applicableCountries;
}
/**
* @return string[]
*/
public function getApplicableCountries()
{
return $this->applicableCountries;
}
/**
* The attribute's name, if the issue is caused by a single attribute.
*
* @param string $attributeName
*/
public function setAttributeName($attributeName)
{
$this->attributeName = $attributeName;
}
/**
* @return string
*/
public function getAttributeName()
{
return $this->attributeName;
}
/**
* The error code of the issue.
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* A short issue description in English.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* The destination the issue applies to.
*
* @param string $destination
*/
public function setDestination($destination)
{
$this->destination = $destination;
}
/**
* @return string
*/
public function getDestination()
{
return $this->destination;
}
/**
* A detailed issue description in English.
*
* @param string $detail
*/
public function setDetail($detail)
{
$this->detail = $detail;
}
/**
* @return string
*/
public function getDetail()
{
return $this->detail;
}
/**
* The URL of a web page to help with resolving this issue.
*
* @param string $documentation
*/
public function setDocumentation($documentation)
{
$this->documentation = $documentation;
}
/**
* @return string
*/
public function getDocumentation()
{
return $this->documentation;
}
/**
* Whether the issue can be resolved by the merchant.
*
* @param string $resolution
*/
public function setResolution($resolution)
{
$this->resolution = $resolution;
}
/**
* @return string
*/
public function getResolution()
{
return $this->resolution;
}
/**
* How this issue affects the serving of the collection.
*
* @param string $servability
*/
public function setServability($servability)
{
$this->servability = $servability;
}
/**
* @return string
*/
public function getServability()
{
return $this->servability;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CollectionStatusItemLevelIssue::class, 'Google_Service_ShoppingContent_CollectionStatusItemLevelIssue');
@@ -0,0 +1,347 @@
<?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\ShoppingContent;
class CompetitiveVisibility extends \Google\Model
{
/**
* Traffic source is unknown.
*/
public const TRAFFIC_SOURCE_UNKNOWN = 'UNKNOWN';
/**
* Organic traffic.
*/
public const TRAFFIC_SOURCE_ORGANIC = 'ORGANIC';
/**
* Traffic from Ads.
*/
public const TRAFFIC_SOURCE_ADS = 'ADS';
/**
* Organic and Ads traffic.
*/
public const TRAFFIC_SOURCE_ALL = 'ALL';
/**
* [Ads / organic ratio]
* (https://support.google.com/merchants/answer/11366442#zippy=%2Cadsfree-
* ratio) shows how often a merchant receives impressions from Shopping ads
* compared to organic traffic. The number is rounded and bucketed. Available
* only in `CompetitiveVisibilityTopMerchantView` and
* `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
* clause.
*
* @var
*/
public $adsOrganicRatio;
/**
* Change in visibility based on impressions with respect to the start of the
* selected time range (or first day with non-zero impressions) for a combined
* set of merchants with highest visibility approximating the market.
* Available only in `CompetitiveVisibilityBenchmarkView`. Cannot be filtered
* on in the 'WHERE' clause.
*
* @var
*/
public $categoryBenchmarkVisibilityTrend;
/**
* Google product category ID to calculate the report for, represented in
* [Google's product
* taxonomy](https://support.google.com/merchants/answer/6324436). Required in
* the `SELECT` clause. A `WHERE` condition on
* `competitive_visibility.category_id` is required in the query.
*
* @var string
*/
public $categoryId;
/**
* The country where impression appeared. Required in the `SELECT` clause. A
* `WHERE` condition on `competitive_visibility.country_code` is required in
* the query.
*
* @var string
*/
public $countryCode;
protected $dateType = Date::class;
protected $dateDataType = '';
/**
* Domain of your competitor or your domain, if 'is_your_domain' is true.
* Available only in `CompetitiveVisibilityTopMerchantView` and
* `CompetitiveVisibilityCompetitorView`. Required in the `SELECT` clause for
* `CompetitiveVisibilityTopMerchantView` and
* `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
* clause.
*
* @var string
*/
public $domain;
/**
* Higher position rate shows how often a competitors offer got placed in a
* higher position on the page than your offer. Available only in
* `CompetitiveVisibilityTopMerchantView` and
* `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
* clause.
*
* @var
*/
public $higherPositionRate;
/**
* True if this row contains data for your domain. Available only in
* `CompetitiveVisibilityTopMerchantView` and
* `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
* clause.
*
* @var bool
*/
public $isYourDomain;
/**
* Page overlap rate describes how frequently competing retailers offers are
* shown together with your offers on the same page. Available only in
* `CompetitiveVisibilityTopMerchantView` and
* `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
* clause.
*
* @var
*/
public $pageOverlapRate;
/**
* Position of the domain in the top merchants ranking for the selected keys
* (`date`, `category_id`, `country_code`, `listing_type`) based on
* impressions. 1 is the highest. Available only in
* `CompetitiveVisibilityTopMerchantView` and
* `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
* clause.
*
* @var string
*/
public $rank;
/**
* Relative visibility shows how often your competitors offers are shown
* compared to your offers. In other words, this is the number of displayed
* impressions of a competitor retailer divided by the number of your
* displayed impressions during a selected time range for a selected product
* category and country. Available only in
* `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
* clause.
*
* @var
*/
public $relativeVisibility;
/**
* Type of impression listing. Required in the `SELECT` clause. Cannot be
* filtered on in the 'WHERE' clause.
*
* @var string
*/
public $trafficSource;
/**
* Change in visibility based on impressions for your domain with respect to
* the start of the selected time range (or first day with non-zero
* impressions). Available only in `CompetitiveVisibilityBenchmarkView`.
* Cannot be filtered on in the 'WHERE' clause.
*
* @var
*/
public $yourDomainVisibilityTrend;
public function setAdsOrganicRatio($adsOrganicRatio)
{
$this->adsOrganicRatio = $adsOrganicRatio;
}
public function getAdsOrganicRatio()
{
return $this->adsOrganicRatio;
}
public function setCategoryBenchmarkVisibilityTrend($categoryBenchmarkVisibilityTrend)
{
$this->categoryBenchmarkVisibilityTrend = $categoryBenchmarkVisibilityTrend;
}
public function getCategoryBenchmarkVisibilityTrend()
{
return $this->categoryBenchmarkVisibilityTrend;
}
/**
* Google product category ID to calculate the report for, represented in
* [Google's product
* taxonomy](https://support.google.com/merchants/answer/6324436). Required in
* the `SELECT` clause. A `WHERE` condition on
* `competitive_visibility.category_id` is required in the query.
*
* @param string $categoryId
*/
public function setCategoryId($categoryId)
{
$this->categoryId = $categoryId;
}
/**
* @return string
*/
public function getCategoryId()
{
return $this->categoryId;
}
/**
* The country where impression appeared. Required in the `SELECT` clause. A
* `WHERE` condition on `competitive_visibility.country_code` is required in
* the query.
*
* @param string $countryCode
*/
public function setCountryCode($countryCode)
{
$this->countryCode = $countryCode;
}
/**
* @return string
*/
public function getCountryCode()
{
return $this->countryCode;
}
/**
* Date of this row. Available only in `CompetitiveVisibilityBenchmarkView`
* and `CompetitiveVisibilityCompetitorView`. Required in the `SELECT` clause
* for `CompetitiveVisibilityMarketBenchmarkView`.
*
* @param Date $date
*/
public function setDate(Date $date)
{
$this->date = $date;
}
/**
* @return Date
*/
public function getDate()
{
return $this->date;
}
/**
* Domain of your competitor or your domain, if 'is_your_domain' is true.
* Available only in `CompetitiveVisibilityTopMerchantView` and
* `CompetitiveVisibilityCompetitorView`. Required in the `SELECT` clause for
* `CompetitiveVisibilityTopMerchantView` and
* `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
* clause.
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
public function setHigherPositionRate($higherPositionRate)
{
$this->higherPositionRate = $higherPositionRate;
}
public function getHigherPositionRate()
{
return $this->higherPositionRate;
}
/**
* True if this row contains data for your domain. Available only in
* `CompetitiveVisibilityTopMerchantView` and
* `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
* clause.
*
* @param bool $isYourDomain
*/
public function setIsYourDomain($isYourDomain)
{
$this->isYourDomain = $isYourDomain;
}
/**
* @return bool
*/
public function getIsYourDomain()
{
return $this->isYourDomain;
}
public function setPageOverlapRate($pageOverlapRate)
{
$this->pageOverlapRate = $pageOverlapRate;
}
public function getPageOverlapRate()
{
return $this->pageOverlapRate;
}
/**
* Position of the domain in the top merchants ranking for the selected keys
* (`date`, `category_id`, `country_code`, `listing_type`) based on
* impressions. 1 is the highest. Available only in
* `CompetitiveVisibilityTopMerchantView` and
* `CompetitiveVisibilityCompetitorView`. Cannot be filtered on in the 'WHERE'
* clause.
*
* @param string $rank
*/
public function setRank($rank)
{
$this->rank = $rank;
}
/**
* @return string
*/
public function getRank()
{
return $this->rank;
}
public function setRelativeVisibility($relativeVisibility)
{
$this->relativeVisibility = $relativeVisibility;
}
public function getRelativeVisibility()
{
return $this->relativeVisibility;
}
/**
* Type of impression listing. Required in the `SELECT` clause. Cannot be
* filtered on in the 'WHERE' clause.
*
* Accepted values: UNKNOWN, ORGANIC, ADS, ALL
*
* @param self::TRAFFIC_SOURCE_* $trafficSource
*/
public function setTrafficSource($trafficSource)
{
$this->trafficSource = $trafficSource;
}
/**
* @return self::TRAFFIC_SOURCE_*
*/
public function getTrafficSource()
{
return $this->trafficSource;
}
public function setYourDomainVisibilityTrend($yourDomainVisibilityTrend)
{
$this->yourDomainVisibilityTrend = $yourDomainVisibilityTrend;
}
public function getYourDomainVisibilityTrend()
{
return $this->yourDomainVisibilityTrend;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CompetitiveVisibility::class, 'Google_Service_ShoppingContent_CompetitiveVisibility');
@@ -0,0 +1,160 @@
<?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\ShoppingContent;
class ConversionSource extends \Google\Model
{
public const STATE_STATE_UNSPECIFIED = 'STATE_UNSPECIFIED';
/**
* Conversion source is fully functional.
*/
public const STATE_ACTIVE = 'ACTIVE';
/**
* Conversion source has been archived in the last 30 days and not currently
* functional. Can be restored using the undelete method.
*/
public const STATE_ARCHIVED = 'ARCHIVED';
/**
* Conversion source creation has started but not fully finished yet.
*/
public const STATE_PENDING = 'PENDING';
/**
* Output only. Generated by the Content API upon creation of a new
* `ConversionSource`. Format: [a-z]{4}:.+ The four characters before the
* colon represent the type of conversio source. Content after the colon
* represents the ID of the conversion source within that type. The ID of two
* different conversion sources might be the same across different types. The
* following type prefixes are supported: - galk: For GoogleAnalyticsLink
* sources. - mcdn: For MerchantCenterDestination sources.
*
* @var string
*/
public $conversionSourceId;
/**
* Output only. The time when an archived conversion source becomes
* permanently deleted and is no longer available to undelete.
*
* @var string
*/
public $expireTime;
protected $googleAnalyticsLinkType = GoogleAnalyticsLink::class;
protected $googleAnalyticsLinkDataType = '';
protected $merchantCenterDestinationType = MerchantCenterDestination::class;
protected $merchantCenterDestinationDataType = '';
/**
* Output only. Current state of this conversion source. Can't be edited
* through the API.
*
* @var string
*/
public $state;
/**
* Output only. Generated by the Content API upon creation of a new
* `ConversionSource`. Format: [a-z]{4}:.+ The four characters before the
* colon represent the type of conversio source. Content after the colon
* represents the ID of the conversion source within that type. The ID of two
* different conversion sources might be the same across different types. The
* following type prefixes are supported: - galk: For GoogleAnalyticsLink
* sources. - mcdn: For MerchantCenterDestination sources.
*
* @param string $conversionSourceId
*/
public function setConversionSourceId($conversionSourceId)
{
$this->conversionSourceId = $conversionSourceId;
}
/**
* @return string
*/
public function getConversionSourceId()
{
return $this->conversionSourceId;
}
/**
* Output only. The time when an archived conversion source becomes
* permanently deleted and is no longer available to undelete.
*
* @param string $expireTime
*/
public function setExpireTime($expireTime)
{
$this->expireTime = $expireTime;
}
/**
* @return string
*/
public function getExpireTime()
{
return $this->expireTime;
}
/**
* Immutable. Conversion Source of type "Link to Google Analytics Property".
*
* @param GoogleAnalyticsLink $googleAnalyticsLink
*/
public function setGoogleAnalyticsLink(GoogleAnalyticsLink $googleAnalyticsLink)
{
$this->googleAnalyticsLink = $googleAnalyticsLink;
}
/**
* @return GoogleAnalyticsLink
*/
public function getGoogleAnalyticsLink()
{
return $this->googleAnalyticsLink;
}
/**
* Conversion Source of type "Merchant Center Tag Destination".
*
* @param MerchantCenterDestination $merchantCenterDestination
*/
public function setMerchantCenterDestination(MerchantCenterDestination $merchantCenterDestination)
{
$this->merchantCenterDestination = $merchantCenterDestination;
}
/**
* @return MerchantCenterDestination
*/
public function getMerchantCenterDestination()
{
return $this->merchantCenterDestination;
}
/**
* Output only. Current state of this conversion source. Can't be edited
* through the API.
*
* Accepted values: STATE_UNSPECIFIED, ACTIVE, ARCHIVED, PENDING
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConversionSource::class, 'Google_Service_ShoppingContent_ConversionSource');
@@ -0,0 +1,165 @@
<?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\ShoppingContent;
class Css extends \Google\Collection
{
protected $collection_key = 'labelIds';
/**
* Output only. Immutable. The CSS domain ID.
*
* @var string
*/
public $cssDomainId;
/**
* Output only. Immutable. The ID of the CSS group this CSS domain is
* affiliated with. Only populated for CSS group users.
*
* @var string
*/
public $cssGroupId;
/**
* Output only. Immutable. The CSS domain's display name, used when space is
* constrained.
*
* @var string
*/
public $displayName;
/**
* Output only. Immutable. The CSS domain's full name.
*
* @var string
*/
public $fullName;
/**
* Output only. Immutable. The CSS domain's homepage.
*
* @var string
*/
public $homepageUri;
/**
* A list of label IDs that are assigned to this CSS domain by its CSS group.
* Only populated for CSS group users.
*
* @var string[]
*/
public $labelIds;
/**
* Output only. Immutable. The CSS domain ID.
*
* @param string $cssDomainId
*/
public function setCssDomainId($cssDomainId)
{
$this->cssDomainId = $cssDomainId;
}
/**
* @return string
*/
public function getCssDomainId()
{
return $this->cssDomainId;
}
/**
* Output only. Immutable. The ID of the CSS group this CSS domain is
* affiliated with. Only populated for CSS group users.
*
* @param string $cssGroupId
*/
public function setCssGroupId($cssGroupId)
{
$this->cssGroupId = $cssGroupId;
}
/**
* @return string
*/
public function getCssGroupId()
{
return $this->cssGroupId;
}
/**
* Output only. Immutable. The CSS domain's display name, used when space is
* constrained.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Output only. Immutable. The CSS domain's full name.
*
* @param string $fullName
*/
public function setFullName($fullName)
{
$this->fullName = $fullName;
}
/**
* @return string
*/
public function getFullName()
{
return $this->fullName;
}
/**
* Output only. Immutable. The CSS domain's homepage.
*
* @param string $homepageUri
*/
public function setHomepageUri($homepageUri)
{
$this->homepageUri = $homepageUri;
}
/**
* @return string
*/
public function getHomepageUri()
{
return $this->homepageUri;
}
/**
* A list of label IDs that are assigned to this CSS domain by its CSS group.
* Only populated for CSS group users.
*
* @param string[] $labelIds
*/
public function setLabelIds($labelIds)
{
$this->labelIds = $labelIds;
}
/**
* @return string[]
*/
public function getLabelIds()
{
return $this->labelIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Css::class, 'Google_Service_ShoppingContent_Css');
@@ -0,0 +1,92 @@
<?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\ShoppingContent;
class CustomAttribute extends \Google\Collection
{
protected $collection_key = 'groupValues';
protected $groupValuesType = CustomAttribute::class;
protected $groupValuesDataType = 'array';
/**
* The name of the attribute. Underscores will be replaced by spaces upon
* insertion.
*
* @var string
*/
public $name;
/**
* The value of the attribute.
*
* @var string
*/
public $value;
/**
* Subattributes within this attribute group. Exactly one of value or
* groupValues must be provided.
*
* @param CustomAttribute[] $groupValues
*/
public function setGroupValues($groupValues)
{
$this->groupValues = $groupValues;
}
/**
* @return CustomAttribute[]
*/
public function getGroupValues()
{
return $this->groupValues;
}
/**
* The name of the attribute. Underscores will be replaced by spaces upon
* insertion.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The value of the attribute.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomAttribute::class, 'Google_Service_ShoppingContent_CustomAttribute');
@@ -0,0 +1,60 @@
<?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\ShoppingContent;
class Customer extends \Google\Model
{
/**
* @var string
*/
public $emailAddress;
protected $loyaltyDataType = CustomerLoyaltyData::class;
protected $loyaltyDataDataType = '';
/**
* @param string
*/
public function setEmailAddress($emailAddress)
{
$this->emailAddress = $emailAddress;
}
/**
* @return string
*/
public function getEmailAddress()
{
return $this->emailAddress;
}
/**
* @param CustomerLoyaltyData
*/
public function setLoyaltyData(CustomerLoyaltyData $loyaltyData)
{
$this->loyaltyData = $loyaltyData;
}
/**
* @return CustomerLoyaltyData
*/
public function getLoyaltyData()
{
return $this->loyaltyData;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Customer::class, 'Google_Service_ShoppingContent_Customer');
@@ -0,0 +1,44 @@
<?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\ShoppingContent;
class CustomerLoyaltyData extends \Google\Model
{
/**
* @var string
*/
public $loyaltyTier;
/**
* @param string
*/
public function setLoyaltyTier($loyaltyTier)
{
$this->loyaltyTier = $loyaltyTier;
}
/**
* @return string
*/
public function getLoyaltyTier()
{
return $this->loyaltyTier;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerLoyaltyData::class, 'Google_Service_ShoppingContent_CustomerLoyaltyData');
@@ -0,0 +1,62 @@
<?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\ShoppingContent;
class CustomerReturnReason extends \Google\Model
{
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $reasonCode;
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setReasonCode($reasonCode)
{
$this->reasonCode = $reasonCode;
}
/**
* @return string
*/
public function getReasonCode()
{
return $this->reasonCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CustomerReturnReason::class, 'Google_Service_ShoppingContent_CustomerReturnReason');
@@ -0,0 +1,98 @@
<?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\ShoppingContent;
class CutoffTime extends \Google\Model
{
/**
* Hour of the cutoff time until which an order has to be placed to be
* processed in the same day. Required.
*
* @var string
*/
public $hour;
/**
* Minute of the cutoff time until which an order has to be placed to be
* processed in the same day. Required.
*
* @var string
*/
public $minute;
/**
* Timezone identifier for the cutoff time (for example, "Europe/Zurich").
* List of identifiers. Required.
*
* @var string
*/
public $timezone;
/**
* Hour of the cutoff time until which an order has to be placed to be
* processed in the same day. Required.
*
* @param string $hour
*/
public function setHour($hour)
{
$this->hour = $hour;
}
/**
* @return string
*/
public function getHour()
{
return $this->hour;
}
/**
* Minute of the cutoff time until which an order has to be placed to be
* processed in the same day. Required.
*
* @param string $minute
*/
public function setMinute($minute)
{
$this->minute = $minute;
}
/**
* @return string
*/
public function getMinute()
{
return $this->minute;
}
/**
* Timezone identifier for the cutoff time (for example, "Europe/Zurich").
* List of identifiers. Required.
*
* @param string $timezone
*/
public function setTimezone($timezone)
{
$this->timezone = $timezone;
}
/**
* @return string
*/
public function getTimezone()
{
return $this->timezone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CutoffTime::class, 'Google_Service_ShoppingContent_CutoffTime');
@@ -0,0 +1,221 @@
<?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\ShoppingContent;
class Datafeed extends \Google\Collection
{
protected $collection_key = 'targets';
/**
* The two-letter ISO 639-1 language in which the attributes are defined in
* the data feed.
*
* @var string
*/
public $attributeLanguage;
/**
* Required. The type of data feed. For product inventory feeds, only feeds
* for local stores, not online stores, are supported. Acceptable values are:
* - "`local products`" - "`product inventory`" - "`products`"
*
* @var string
*/
public $contentType;
protected $fetchScheduleType = DatafeedFetchSchedule::class;
protected $fetchScheduleDataType = '';
/**
* Required. The filename of the feed. All feeds must have a unique file name.
*
* @var string
*/
public $fileName;
protected $formatType = DatafeedFormat::class;
protected $formatDataType = '';
/**
* Required for update. The ID of the data feed.
*
* @var string
*/
public $id;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#datafeed`"
*
* @var string
*/
public $kind;
/**
* Required for insert. A descriptive name of the data feed.
*
* @var string
*/
public $name;
protected $targetsType = DatafeedTarget::class;
protected $targetsDataType = 'array';
/**
* The two-letter ISO 639-1 language in which the attributes are defined in
* the data feed.
*
* @param string $attributeLanguage
*/
public function setAttributeLanguage($attributeLanguage)
{
$this->attributeLanguage = $attributeLanguage;
}
/**
* @return string
*/
public function getAttributeLanguage()
{
return $this->attributeLanguage;
}
/**
* Required. The type of data feed. For product inventory feeds, only feeds
* for local stores, not online stores, are supported. Acceptable values are:
* - "`local products`" - "`product inventory`" - "`products`"
*
* @param string $contentType
*/
public function setContentType($contentType)
{
$this->contentType = $contentType;
}
/**
* @return string
*/
public function getContentType()
{
return $this->contentType;
}
/**
* Fetch schedule for the feed file.
*
* @param DatafeedFetchSchedule $fetchSchedule
*/
public function setFetchSchedule(DatafeedFetchSchedule $fetchSchedule)
{
$this->fetchSchedule = $fetchSchedule;
}
/**
* @return DatafeedFetchSchedule
*/
public function getFetchSchedule()
{
return $this->fetchSchedule;
}
/**
* Required. The filename of the feed. All feeds must have a unique file name.
*
* @param string $fileName
*/
public function setFileName($fileName)
{
$this->fileName = $fileName;
}
/**
* @return string
*/
public function getFileName()
{
return $this->fileName;
}
/**
* Format of the feed file.
*
* @param DatafeedFormat $format
*/
public function setFormat(DatafeedFormat $format)
{
$this->format = $format;
}
/**
* @return DatafeedFormat
*/
public function getFormat()
{
return $this->format;
}
/**
* Required for update. The ID of the data feed.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#datafeed`"
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Required for insert. A descriptive name of the data feed.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* The targets this feed should apply to (country, language, destinations).
*
* @param DatafeedTarget[] $targets
*/
public function setTargets($targets)
{
$this->targets = $targets;
}
/**
* @return DatafeedTarget[]
*/
public function getTargets()
{
return $this->targets;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Datafeed::class, 'Google_Service_ShoppingContent_Datafeed');
@@ -0,0 +1,236 @@
<?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\ShoppingContent;
class DatafeedFetchSchedule extends \Google\Model
{
/**
* The day of the month the feed file should be fetched (1-31).
*
* @var string
*/
public $dayOfMonth;
/**
* The URL where the feed file can be fetched. Google Merchant Center will
* support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP
* protocols, so the value will need to be a valid link using one of those
* four protocols.
*
* @var string
*/
public $fetchUrl;
/**
* The hour of the day the feed file should be fetched (0-23).
*
* @var string
*/
public $hour;
/**
* The minute of the hour the feed file should be fetched (0-59). Read-only.
*
* @var string
*/
public $minuteOfHour;
/**
* An optional password for fetch_url.
*
* @var string
*/
public $password;
/**
* Whether the scheduled fetch is paused or not.
*
* @var bool
*/
public $paused;
/**
* Time zone used for schedule. UTC by default. For example,
* "America/Los_Angeles".
*
* @var string
*/
public $timeZone;
/**
* An optional user name for fetch_url.
*
* @var string
*/
public $username;
/**
* The day of the week the feed file should be fetched. Acceptable values are:
* - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" -
* "`saturday`" - "`sunday`"
*
* @var string
*/
public $weekday;
/**
* The day of the month the feed file should be fetched (1-31).
*
* @param string $dayOfMonth
*/
public function setDayOfMonth($dayOfMonth)
{
$this->dayOfMonth = $dayOfMonth;
}
/**
* @return string
*/
public function getDayOfMonth()
{
return $this->dayOfMonth;
}
/**
* The URL where the feed file can be fetched. Google Merchant Center will
* support automatic scheduled uploads using the HTTP, HTTPS, FTP, or SFTP
* protocols, so the value will need to be a valid link using one of those
* four protocols.
*
* @param string $fetchUrl
*/
public function setFetchUrl($fetchUrl)
{
$this->fetchUrl = $fetchUrl;
}
/**
* @return string
*/
public function getFetchUrl()
{
return $this->fetchUrl;
}
/**
* The hour of the day the feed file should be fetched (0-23).
*
* @param string $hour
*/
public function setHour($hour)
{
$this->hour = $hour;
}
/**
* @return string
*/
public function getHour()
{
return $this->hour;
}
/**
* The minute of the hour the feed file should be fetched (0-59). Read-only.
*
* @param string $minuteOfHour
*/
public function setMinuteOfHour($minuteOfHour)
{
$this->minuteOfHour = $minuteOfHour;
}
/**
* @return string
*/
public function getMinuteOfHour()
{
return $this->minuteOfHour;
}
/**
* An optional password for fetch_url.
*
* @param string $password
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* Whether the scheduled fetch is paused or not.
*
* @param bool $paused
*/
public function setPaused($paused)
{
$this->paused = $paused;
}
/**
* @return bool
*/
public function getPaused()
{
return $this->paused;
}
/**
* Time zone used for schedule. UTC by default. For example,
* "America/Los_Angeles".
*
* @param string $timeZone
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
/**
* An optional user name for fetch_url.
*
* @param string $username
*/
public function setUsername($username)
{
$this->username = $username;
}
/**
* @return string
*/
public function getUsername()
{
return $this->username;
}
/**
* The day of the week the feed file should be fetched. Acceptable values are:
* - "`monday`" - "`tuesday`" - "`wednesday`" - "`thursday`" - "`friday`" -
* "`saturday`" - "`sunday`"
*
* @param string $weekday
*/
public function setWeekday($weekday)
{
$this->weekday = $weekday;
}
/**
* @return string
*/
public function getWeekday()
{
return $this->weekday;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatafeedFetchSchedule::class, 'Google_Service_ShoppingContent_DatafeedFetchSchedule');
@@ -0,0 +1,104 @@
<?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\ShoppingContent;
class DatafeedFormat extends \Google\Model
{
/**
* Delimiter for the separation of values in a delimiter-separated values
* feed. If not specified, the delimiter will be auto-detected. Ignored for
* non-DSV data feeds. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`"
*
* @var string
*/
public $columnDelimiter;
/**
* Character encoding scheme of the data feed. If not specified, the encoding
* will be auto-detected. Acceptable values are: - "`latin-1`" - "`utf-16be`"
* - "`utf-16le`" - "`utf-8`" - "`windows-1252`"
*
* @var string
*/
public $fileEncoding;
/**
* Specifies how double quotes are interpreted. If not specified, the mode
* will be auto-detected. Ignored for non-DSV data feeds. Acceptable values
* are: - "`normal character`" - "`value quoting`"
*
* @var string
*/
public $quotingMode;
/**
* Delimiter for the separation of values in a delimiter-separated values
* feed. If not specified, the delimiter will be auto-detected. Ignored for
* non-DSV data feeds. Acceptable values are: - "`pipe`" - "`tab`" - "`tilde`"
*
* @param string $columnDelimiter
*/
public function setColumnDelimiter($columnDelimiter)
{
$this->columnDelimiter = $columnDelimiter;
}
/**
* @return string
*/
public function getColumnDelimiter()
{
return $this->columnDelimiter;
}
/**
* Character encoding scheme of the data feed. If not specified, the encoding
* will be auto-detected. Acceptable values are: - "`latin-1`" - "`utf-16be`"
* - "`utf-16le`" - "`utf-8`" - "`windows-1252`"
*
* @param string $fileEncoding
*/
public function setFileEncoding($fileEncoding)
{
$this->fileEncoding = $fileEncoding;
}
/**
* @return string
*/
public function getFileEncoding()
{
return $this->fileEncoding;
}
/**
* Specifies how double quotes are interpreted. If not specified, the mode
* will be auto-detected. Ignored for non-DSV data feeds. Acceptable values
* are: - "`normal character`" - "`value quoting`"
*
* @param string $quotingMode
*/
public function setQuotingMode($quotingMode)
{
$this->quotingMode = $quotingMode;
}
/**
* @return string
*/
public function getQuotingMode()
{
return $this->quotingMode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatafeedFormat::class, 'Google_Service_ShoppingContent_DatafeedFormat');
@@ -0,0 +1,275 @@
<?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\ShoppingContent;
class DatafeedStatus extends \Google\Collection
{
protected $collection_key = 'warnings';
/**
* The country for which the status is reported, represented as a CLDR
* territory code.
*
* @var string
*/
public $country;
/**
* The ID of the feed for which the status is reported.
*
* @var string
*/
public $datafeedId;
protected $errorsType = DatafeedStatusError::class;
protected $errorsDataType = 'array';
/**
* The feed label status is reported for.
*
* @var string
*/
public $feedLabel;
/**
* The number of items in the feed that were processed.
*
* @var string
*/
public $itemsTotal;
/**
* The number of items in the feed that were valid.
*
* @var string
*/
public $itemsValid;
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#datafeedStatus`"
*
* @var string
*/
public $kind;
/**
* The two-letter ISO 639-1 language for which the status is reported.
*
* @var string
*/
public $language;
/**
* The last date at which the feed was uploaded.
*
* @var string
*/
public $lastUploadDate;
/**
* The processing status of the feed. Acceptable values are: - "`"`failure`":
* The feed could not be processed or all items had errors.`" - "`in
* progress`": The feed is being processed. - "`none`": The feed has not yet
* been processed. For example, a feed that has never been uploaded will have
* this processing status. - "`success`": The feed was processed successfully,
* though some items might have had errors.
*
* @var string
*/
public $processingStatus;
protected $warningsType = DatafeedStatusError::class;
protected $warningsDataType = 'array';
/**
* The country for which the status is reported, represented as a CLDR
* territory code.
*
* @param string $country
*/
public function setCountry($country)
{
$this->country = $country;
}
/**
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* The ID of the feed for which the status is reported.
*
* @param string $datafeedId
*/
public function setDatafeedId($datafeedId)
{
$this->datafeedId = $datafeedId;
}
/**
* @return string
*/
public function getDatafeedId()
{
return $this->datafeedId;
}
/**
* The list of errors occurring in the feed.
*
* @param DatafeedStatusError[] $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return DatafeedStatusError[]
*/
public function getErrors()
{
return $this->errors;
}
/**
* The feed label status is reported for.
*
* @param string $feedLabel
*/
public function setFeedLabel($feedLabel)
{
$this->feedLabel = $feedLabel;
}
/**
* @return string
*/
public function getFeedLabel()
{
return $this->feedLabel;
}
/**
* The number of items in the feed that were processed.
*
* @param string $itemsTotal
*/
public function setItemsTotal($itemsTotal)
{
$this->itemsTotal = $itemsTotal;
}
/**
* @return string
*/
public function getItemsTotal()
{
return $this->itemsTotal;
}
/**
* The number of items in the feed that were valid.
*
* @param string $itemsValid
*/
public function setItemsValid($itemsValid)
{
$this->itemsValid = $itemsValid;
}
/**
* @return string
*/
public function getItemsValid()
{
return $this->itemsValid;
}
/**
* Identifies what kind of resource this is. Value: the fixed string
* "`content#datafeedStatus`"
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The two-letter ISO 639-1 language for which the status is reported.
*
* @param string $language
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return string
*/
public function getLanguage()
{
return $this->language;
}
/**
* The last date at which the feed was uploaded.
*
* @param string $lastUploadDate
*/
public function setLastUploadDate($lastUploadDate)
{
$this->lastUploadDate = $lastUploadDate;
}
/**
* @return string
*/
public function getLastUploadDate()
{
return $this->lastUploadDate;
}
/**
* The processing status of the feed. Acceptable values are: - "`"`failure`":
* The feed could not be processed or all items had errors.`" - "`in
* progress`": The feed is being processed. - "`none`": The feed has not yet
* been processed. For example, a feed that has never been uploaded will have
* this processing status. - "`success`": The feed was processed successfully,
* though some items might have had errors.
*
* @param string $processingStatus
*/
public function setProcessingStatus($processingStatus)
{
$this->processingStatus = $processingStatus;
}
/**
* @return string
*/
public function getProcessingStatus()
{
return $this->processingStatus;
}
/**
* The list of errors occurring in the feed.
*
* @param DatafeedStatusError[] $warnings
*/
public function setWarnings($warnings)
{
$this->warnings = $warnings;
}
/**
* @return DatafeedStatusError[]
*/
public function getWarnings()
{
return $this->warnings;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatafeedStatus::class, 'Google_Service_ShoppingContent_DatafeedStatus');
@@ -0,0 +1,111 @@
<?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\ShoppingContent;
class DatafeedStatusError extends \Google\Collection
{
protected $collection_key = 'examples';
/**
* The code of the error, for example, "validation/invalid_value".
*
* @var string
*/
public $code;
/**
* The number of occurrences of the error in the feed.
*
* @var string
*/
public $count;
protected $examplesType = DatafeedStatusExample::class;
protected $examplesDataType = 'array';
/**
* The error message, for example, "Invalid price".
*
* @var string
*/
public $message;
/**
* The code of the error, for example, "validation/invalid_value".
*
* @param string $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return string
*/
public function getCode()
{
return $this->code;
}
/**
* The number of occurrences of the error in the feed.
*
* @param string $count
*/
public function setCount($count)
{
$this->count = $count;
}
/**
* @return string
*/
public function getCount()
{
return $this->count;
}
/**
* A list of example occurrences of the error, grouped by product.
*
* @param DatafeedStatusExample[] $examples
*/
public function setExamples($examples)
{
$this->examples = $examples;
}
/**
* @return DatafeedStatusExample[]
*/
public function getExamples()
{
return $this->examples;
}
/**
* The error message, for example, "Invalid price".
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatafeedStatusError::class, 'Google_Service_ShoppingContent_DatafeedStatusError');
@@ -0,0 +1,92 @@
<?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\ShoppingContent;
class DatafeedStatusExample extends \Google\Model
{
/**
* The ID of the example item.
*
* @var string
*/
public $itemId;
/**
* Line number in the data feed where the example is found.
*
* @var string
*/
public $lineNumber;
/**
* The problematic value.
*
* @var string
*/
public $value;
/**
* The ID of the example item.
*
* @param string $itemId
*/
public function setItemId($itemId)
{
$this->itemId = $itemId;
}
/**
* @return string
*/
public function getItemId()
{
return $this->itemId;
}
/**
* Line number in the data feed where the example is found.
*
* @param string $lineNumber
*/
public function setLineNumber($lineNumber)
{
$this->lineNumber = $lineNumber;
}
/**
* @return string
*/
public function getLineNumber()
{
return $this->lineNumber;
}
/**
* The problematic value.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatafeedStatusExample::class, 'Google_Service_ShoppingContent_DatafeedStatusExample');
@@ -0,0 +1,187 @@
<?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\ShoppingContent;
class DatafeedTarget extends \Google\Collection
{
protected $collection_key = 'targetCountries';
/**
* Deprecated. Use `feedLabel` instead. The country where the items in the
* feed will be included in the search index, represented as a CLDR territory
* code.
*
* @var string
*/
public $country;
/**
* The list of [destinations to
* exclude](//support.google.com/merchants/answer/6324486) for this target
* (corresponds to cleared check boxes in Merchant Center). Products that are
* excluded from all destinations for more than 7 days are automatically
* deleted.
*
* @var string[]
*/
public $excludedDestinations;
/**
* Feed label for the DatafeedTarget. Either `country` or `feedLabel` is
* required. If both `feedLabel` and `country` is specified, the values must
* match. Must be less than or equal to 20 uppercase letters (A-Z), numbers
* (0-9), and dashes (-).
*
* @var string
*/
public $feedLabel;
/**
* The list of [destinations to
* include](//support.google.com/merchants/answer/7501026) for this target
* (corresponds to checked check boxes in Merchant Center). Default
* destinations are always included unless provided in `excludedDestinations`.
*
* @var string[]
*/
public $includedDestinations;
/**
* The two-letter ISO 639-1 language of the items in the feed. Must be a valid
* language for `targets[].country`.
*
* @var string
*/
public $language;
/**
* The countries where the items may be displayed. Represented as a CLDR
* territory code. Will be ignored for "product inventory" feeds.
*
* @var string[]
*/
public $targetCountries;
/**
* Deprecated. Use `feedLabel` instead. The country where the items in the
* feed will be included in the search index, represented as a CLDR territory
* code.
*
* @param string $country
*/
public function setCountry($country)
{
$this->country = $country;
}
/**
* @return string
*/
public function getCountry()
{
return $this->country;
}
/**
* The list of [destinations to
* exclude](//support.google.com/merchants/answer/6324486) for this target
* (corresponds to cleared check boxes in Merchant Center). Products that are
* excluded from all destinations for more than 7 days are automatically
* deleted.
*
* @param string[] $excludedDestinations
*/
public function setExcludedDestinations($excludedDestinations)
{
$this->excludedDestinations = $excludedDestinations;
}
/**
* @return string[]
*/
public function getExcludedDestinations()
{
return $this->excludedDestinations;
}
/**
* Feed label for the DatafeedTarget. Either `country` or `feedLabel` is
* required. If both `feedLabel` and `country` is specified, the values must
* match. Must be less than or equal to 20 uppercase letters (A-Z), numbers
* (0-9), and dashes (-).
*
* @param string $feedLabel
*/
public function setFeedLabel($feedLabel)
{
$this->feedLabel = $feedLabel;
}
/**
* @return string
*/
public function getFeedLabel()
{
return $this->feedLabel;
}
/**
* The list of [destinations to
* include](//support.google.com/merchants/answer/7501026) for this target
* (corresponds to checked check boxes in Merchant Center). Default
* destinations are always included unless provided in `excludedDestinations`.
*
* @param string[] $includedDestinations
*/
public function setIncludedDestinations($includedDestinations)
{
$this->includedDestinations = $includedDestinations;
}
/**
* @return string[]
*/
public function getIncludedDestinations()
{
return $this->includedDestinations;
}
/**
* The two-letter ISO 639-1 language of the items in the feed. Must be a valid
* language for `targets[].country`.
*
* @param string $language
*/
public function setLanguage($language)
{
$this->language = $language;
}
/**
* @return string
*/
public function getLanguage()
{
return $this->language;
}
/**
* The countries where the items may be displayed. Represented as a CLDR
* territory code. Will be ignored for "product inventory" feeds.
*
* @param string[] $targetCountries
*/
public function setTargetCountries($targetCountries)
{
$this->targetCountries = $targetCountries;
}
/**
* @return string[]
*/
public function getTargetCountries()
{
return $this->targetCountries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DatafeedTarget::class, 'Google_Service_ShoppingContent_DatafeedTarget');

Some files were not shown because too many files have changed in this diff Show More