| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418 |
- <?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\Merchant;
- class MerchantReviewAttributes extends \Google\Model
- {
- /**
- * Collection method unspecified.
- */
- public const COLLECTION_METHOD_COLLECTION_METHOD_UNSPECIFIED = 'COLLECTION_METHOD_UNSPECIFIED';
- /**
- * The user was not responding to a specific solicitation when they submitted
- * the review.
- */
- public const COLLECTION_METHOD_MERCHANT_UNSOLICITED = 'MERCHANT_UNSOLICITED';
- /**
- * The user submitted the review in response to a solicitation when the user
- * placed an order.
- */
- public const COLLECTION_METHOD_POINT_OF_SALE = 'POINT_OF_SALE';
- /**
- * The user submitted the review in response to a solicitation after
- * fulfillment of the user's order.
- */
- public const COLLECTION_METHOD_AFTER_FULFILLMENT = 'AFTER_FULFILLMENT';
- /**
- * Optional. The method used to collect the review.
- *
- * @var string
- */
- public $collectionMethod;
- /**
- * Required. This should be any freeform text provided by the user and should
- * not be truncated. If multiple responses to different questions are
- * provided, all responses should be included, with the minimal context for
- * the responses to make sense. Context should not be provided if questions
- * were left unanswered.
- *
- * @var string
- */
- public $content;
- /**
- * Optional. Set to true if the reviewer should remain anonymous.
- *
- * @var bool
- */
- public $isAnonymous;
- /**
- * Optional. The maximum possible number for the rating. The value of the max
- * rating must be greater than the value of the min rating.
- *
- * @var string
- */
- public $maxRating;
- /**
- * Optional. Human-readable display name for the merchant.
- *
- * @var string
- */
- public $merchantDisplayName;
- /**
- * Required. Must be unique and stable across all requests. In other words, if
- * a request today and another 90 days ago refer to the same merchant, they
- * must have the same id.
- *
- * @var string
- */
- public $merchantId;
- /**
- * Optional. URL to the merchant's main website. Do not use a redirect URL for
- * this value. In other words, the value should point directly to the
- * merchant's site.
- *
- * @var string
- */
- public $merchantLink;
- /**
- * Optional. URL to the landing page that hosts the reviews for this merchant.
- * Do not use a redirect URL.
- *
- * @var string
- */
- public $merchantRatingLink;
- /**
- * Optional. The minimum possible number for the rating. This should be the
- * worst possible rating and should not be a value for no rating.
- *
- * @var string
- */
- public $minRating;
- /**
- * Optional. The reviewer's overall rating of the merchant.
- *
- * @var
- */
- public $rating;
- /**
- * Optional. The country where the reviewer made the order defined by ISO
- * 3166-1 Alpha-2 Country Code.
- *
- * @var string
- */
- public $reviewCountry;
- /**
- * Optional. The language of the review defined by BCP-47 language code.
- *
- * @var string
- */
- public $reviewLanguage;
- /**
- * Required. The timestamp indicating when the review was written.
- *
- * @var string
- */
- public $reviewTime;
- /**
- * Optional. A permanent, unique identifier for the author of the review in
- * the publisher's system.
- *
- * @var string
- */
- public $reviewerId;
- /**
- * Optional. Display name of the review author.
- *
- * @var string
- */
- public $reviewerUsername;
- /**
- * Optional. The title of the review.
- *
- * @var string
- */
- public $title;
- /**
- * Optional. The method used to collect the review.
- *
- * Accepted values: COLLECTION_METHOD_UNSPECIFIED, MERCHANT_UNSOLICITED,
- * POINT_OF_SALE, AFTER_FULFILLMENT
- *
- * @param self::COLLECTION_METHOD_* $collectionMethod
- */
- public function setCollectionMethod($collectionMethod)
- {
- $this->collectionMethod = $collectionMethod;
- }
- /**
- * @return self::COLLECTION_METHOD_*
- */
- public function getCollectionMethod()
- {
- return $this->collectionMethod;
- }
- /**
- * Required. This should be any freeform text provided by the user and should
- * not be truncated. If multiple responses to different questions are
- * provided, all responses should be included, with the minimal context for
- * the responses to make sense. Context should not be provided if questions
- * were left unanswered.
- *
- * @param string $content
- */
- public function setContent($content)
- {
- $this->content = $content;
- }
- /**
- * @return string
- */
- public function getContent()
- {
- return $this->content;
- }
- /**
- * Optional. Set to true if the reviewer should remain anonymous.
- *
- * @param bool $isAnonymous
- */
- public function setIsAnonymous($isAnonymous)
- {
- $this->isAnonymous = $isAnonymous;
- }
- /**
- * @return bool
- */
- public function getIsAnonymous()
- {
- return $this->isAnonymous;
- }
- /**
- * Optional. The maximum possible number for the rating. The value of the max
- * rating must be greater than the value of the min rating.
- *
- * @param string $maxRating
- */
- public function setMaxRating($maxRating)
- {
- $this->maxRating = $maxRating;
- }
- /**
- * @return string
- */
- public function getMaxRating()
- {
- return $this->maxRating;
- }
- /**
- * Optional. Human-readable display name for the merchant.
- *
- * @param string $merchantDisplayName
- */
- public function setMerchantDisplayName($merchantDisplayName)
- {
- $this->merchantDisplayName = $merchantDisplayName;
- }
- /**
- * @return string
- */
- public function getMerchantDisplayName()
- {
- return $this->merchantDisplayName;
- }
- /**
- * Required. Must be unique and stable across all requests. In other words, if
- * a request today and another 90 days ago refer to the same merchant, they
- * must have the same id.
- *
- * @param string $merchantId
- */
- public function setMerchantId($merchantId)
- {
- $this->merchantId = $merchantId;
- }
- /**
- * @return string
- */
- public function getMerchantId()
- {
- return $this->merchantId;
- }
- /**
- * Optional. URL to the merchant's main website. Do not use a redirect URL for
- * this value. In other words, the value should point directly to the
- * merchant's site.
- *
- * @param string $merchantLink
- */
- public function setMerchantLink($merchantLink)
- {
- $this->merchantLink = $merchantLink;
- }
- /**
- * @return string
- */
- public function getMerchantLink()
- {
- return $this->merchantLink;
- }
- /**
- * Optional. URL to the landing page that hosts the reviews for this merchant.
- * Do not use a redirect URL.
- *
- * @param string $merchantRatingLink
- */
- public function setMerchantRatingLink($merchantRatingLink)
- {
- $this->merchantRatingLink = $merchantRatingLink;
- }
- /**
- * @return string
- */
- public function getMerchantRatingLink()
- {
- return $this->merchantRatingLink;
- }
- /**
- * Optional. The minimum possible number for the rating. This should be the
- * worst possible rating and should not be a value for no rating.
- *
- * @param string $minRating
- */
- public function setMinRating($minRating)
- {
- $this->minRating = $minRating;
- }
- /**
- * @return string
- */
- public function getMinRating()
- {
- return $this->minRating;
- }
- public function setRating($rating)
- {
- $this->rating = $rating;
- }
- public function getRating()
- {
- return $this->rating;
- }
- /**
- * Optional. The country where the reviewer made the order defined by ISO
- * 3166-1 Alpha-2 Country Code.
- *
- * @param string $reviewCountry
- */
- public function setReviewCountry($reviewCountry)
- {
- $this->reviewCountry = $reviewCountry;
- }
- /**
- * @return string
- */
- public function getReviewCountry()
- {
- return $this->reviewCountry;
- }
- /**
- * Optional. The language of the review defined by BCP-47 language code.
- *
- * @param string $reviewLanguage
- */
- public function setReviewLanguage($reviewLanguage)
- {
- $this->reviewLanguage = $reviewLanguage;
- }
- /**
- * @return string
- */
- public function getReviewLanguage()
- {
- return $this->reviewLanguage;
- }
- /**
- * Required. The timestamp indicating when the review was written.
- *
- * @param string $reviewTime
- */
- public function setReviewTime($reviewTime)
- {
- $this->reviewTime = $reviewTime;
- }
- /**
- * @return string
- */
- public function getReviewTime()
- {
- return $this->reviewTime;
- }
- /**
- * Optional. A permanent, unique identifier for the author of the review in
- * the publisher's system.
- *
- * @param string $reviewerId
- */
- public function setReviewerId($reviewerId)
- {
- $this->reviewerId = $reviewerId;
- }
- /**
- * @return string
- */
- public function getReviewerId()
- {
- return $this->reviewerId;
- }
- /**
- * Optional. Display name of the review author.
- *
- * @param string $reviewerUsername
- */
- public function setReviewerUsername($reviewerUsername)
- {
- $this->reviewerUsername = $reviewerUsername;
- }
- /**
- * @return string
- */
- public function getReviewerUsername()
- {
- return $this->reviewerUsername;
- }
- /**
- * Optional. The title of the review.
- *
- * @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(MerchantReviewAttributes::class, 'Google_Service_Merchant_MerchantReviewAttributes');
|