mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-29 15:20:12 +01:00
1261 lines
41 KiB
PHP
1261 lines
41 KiB
PHP
|
<?php
|
||
|
/*
|
||
|
* Copyright (c) 2010 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.
|
||
|
*/
|
||
|
|
||
|
require_once 'service/apiModel.php';
|
||
|
require_once 'service/apiService.php';
|
||
|
require_once 'service/apiServiceRequest.php';
|
||
|
|
||
|
|
||
|
/**
|
||
|
* The "products" collection of methods.
|
||
|
* Typical usage is:
|
||
|
* <code>
|
||
|
* $shoppingService = new apiShoppingService(...);
|
||
|
* $products = $shoppingService->products;
|
||
|
* </code>
|
||
|
*/
|
||
|
class ProductsServiceResource extends apiServiceResource {
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Returns a list of products and content modules (products.list)
|
||
|
*
|
||
|
* @param string $source Query source
|
||
|
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
|
||
|
*
|
||
|
* @opt_param bool sayt.useGcsConfig Google Internal
|
||
|
* @opt_param string rankBy Ranking specification
|
||
|
* @opt_param bool debug.enableLogging Google Internal
|
||
|
* @opt_param bool facets.enabled Whether to return facet information
|
||
|
* @opt_param bool relatedQueries.useGcsConfig This parameter is currently ignored
|
||
|
* @opt_param bool promotions.enabled Whether to return promotion information
|
||
|
* @opt_param bool debug.enabled Google Internal
|
||
|
* @opt_param string facets.include Facets to include (applies when useGcsConfig == false)
|
||
|
* @opt_param string productFields Google Internal
|
||
|
* @opt_param string channels Channels specification
|
||
|
* @opt_param string currency Currency restriction (ISO 4217)
|
||
|
* @opt_param string startIndex Index (1-based) of first product to return
|
||
|
* @opt_param string facets.discover Facets to discover
|
||
|
* @opt_param bool debug.searchResponse Google Internal
|
||
|
* @opt_param string crowdBy Crowding specification
|
||
|
* @opt_param bool spelling.enabled Whether to return spelling suggestions
|
||
|
* @opt_param string taxonomy Taxonomy name
|
||
|
* @opt_param bool debug.geocodeRequest Google Internal
|
||
|
* @opt_param bool spelling.useGcsConfig This parameter is currently ignored
|
||
|
* @opt_param string useCase One of CommerceSearchUseCase, ShoppingApiUseCase
|
||
|
* @opt_param string location Location used to determine tax and shipping
|
||
|
* @opt_param string maxVariants Maximum number of variant results to return per result
|
||
|
* @opt_param bool debug.rdcRequest Google Internal
|
||
|
* @opt_param string categories.include Category specification
|
||
|
* @opt_param string boostBy Boosting specification
|
||
|
* @opt_param bool redirects.useGcsConfig Whether to return redirect information as configured in the GCS account
|
||
|
* @opt_param bool safe Whether safe search is enabled. Default: true
|
||
|
* @opt_param bool categories.useGcsConfig This parameter is currently ignored
|
||
|
* @opt_param string maxResults Maximum number of results to return
|
||
|
* @opt_param bool facets.useGcsConfig Whether to return facet information as configured in the GCS account
|
||
|
* @opt_param bool categories.enabled Whether to return category information
|
||
|
* @opt_param string attributeFilter Comma separated list of attributes to return
|
||
|
* @opt_param bool sayt.enabled Google Internal
|
||
|
* @opt_param bool promotions.useGcsConfig Whether to return promotion information as configured in the GCS account
|
||
|
* @opt_param string thumbnails Image thumbnails specification
|
||
|
* @opt_param string language Language restriction (BCP 47)
|
||
|
* @opt_param string country Country restriction (ISO 3166)
|
||
|
* @opt_param bool debug.geocodeResponse Google Internal
|
||
|
* @opt_param string restrictBy Restriction specification
|
||
|
* @opt_param bool debug.rdcResponse Google Internal
|
||
|
* @opt_param string q Search query
|
||
|
* @opt_param bool redirects.enabled Whether to return redirect information
|
||
|
* @opt_param bool debug.searchRequest Google Internal
|
||
|
* @opt_param bool relatedQueries.enabled Whether to return related queries
|
||
|
* @opt_param string minAvailability
|
||
|
* @opt_param string plusOne +1 rendering specification.
|
||
|
* @return Products
|
||
|
*/
|
||
|
public function listProducts($source, $optParams = array()) {
|
||
|
$params = array('source' => $source);
|
||
|
$params = array_merge($params, $optParams);
|
||
|
$data = $this->__call('list', array($params));
|
||
|
if ($this->useObjects()) {
|
||
|
return new Products($data);
|
||
|
} else {
|
||
|
return $data;
|
||
|
}
|
||
|
}
|
||
|
/**
|
||
|
* Returns a single product (products.get)
|
||
|
*
|
||
|
* @param string $source Query source
|
||
|
* @param string $accountId Merchant center account id
|
||
|
* @param string $productIdType Type of productId
|
||
|
* @param string $productId Id of product
|
||
|
* @param array $optParams Optional parameters. Valid optional parameters are listed below.
|
||
|
*
|
||
|
* @opt_param string categories.include Category specification
|
||
|
* @opt_param bool recommendations.enabled Whether to return recommendation information
|
||
|
* @opt_param bool debug.enableLogging Google Internal
|
||
|
* @opt_param string taxonomy Merchant taxonomy
|
||
|
* @opt_param bool categories.useGcsConfig This parameter is currently ignored
|
||
|
* @opt_param bool debug.searchResponse Google Internal
|
||
|
* @opt_param bool debug.enabled Google Internal
|
||
|
* @opt_param string recommendations.include Recommendation specification
|
||
|
* @opt_param bool categories.enabled Whether to return category information
|
||
|
* @opt_param string productFields Google Internal
|
||
|
* @opt_param string location Location used to determine tax and shipping
|
||
|
* @opt_param bool debug.searchRequest Google Internal
|
||
|
* @opt_param string attributeFilter Comma separated list of attributes to return
|
||
|
* @opt_param bool recommendations.useGcsConfig This parameter is currently ignored
|
||
|
* @opt_param string plusOne +1 rendering specification.
|
||
|
* @opt_param string thumbnails Thumbnail specification
|
||
|
* @return Product
|
||
|
*/
|
||
|
public function get($source, $accountId, $productIdType, $productId, $optParams = array()) {
|
||
|
$params = array('source' => $source, 'accountId' => $accountId, 'productIdType' => $productIdType, 'productId' => $productId);
|
||
|
$params = array_merge($params, $optParams);
|
||
|
$data = $this->__call('get', array($params));
|
||
|
if ($this->useObjects()) {
|
||
|
return new Product($data);
|
||
|
} else {
|
||
|
return $data;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Service definition for Shopping (v1).
|
||
|
*
|
||
|
* <p>
|
||
|
* Lets you search over product data
|
||
|
* </p>
|
||
|
*
|
||
|
* <p>
|
||
|
* For more information about this service, see the
|
||
|
* <a href="http://code.google.com/apis/shopping/search/v1/getting_started.html" target="_blank">API Documentation</a>
|
||
|
* </p>
|
||
|
*
|
||
|
* @author Google, Inc.
|
||
|
*/
|
||
|
class apiShoppingService extends apiService {
|
||
|
public $products;
|
||
|
/**
|
||
|
* Constructs the internal representation of the Shopping service.
|
||
|
*
|
||
|
* @param apiClient apiClient
|
||
|
*/
|
||
|
public function __construct(apiClient $apiClient) {
|
||
|
$this->rpcPath = '/rpc';
|
||
|
$this->restBasePath = '/shopping/search/v1/';
|
||
|
$this->version = 'v1';
|
||
|
$this->serviceName = 'shopping';
|
||
|
|
||
|
$apiClient->addService($this->serviceName, $this->version);
|
||
|
$this->products = new ProductsServiceResource($this, $this->serviceName, 'products', json_decode('{"methods": {"list": {"parameters": {"sayt.useGcsConfig": {"type": "boolean", "location": "query"}, "debug.geocodeResponse": {"type": "boolean", "location": "query"}, "debug.enableLogging": {"type": "boolean", "location": "query"}, "facets.enabled": {"type": "boolean", "location": "query"}, "relatedQueries.useGcsConfig": {"type": "boolean", "location": "query"}, "promotions.enabled": {"type": "boolean", "location": "query"}, "debug.enabled": {"type": "boolean", "location": "query"}, "facets.include": {"type": "string", "location": "query"}, "productFields": {"type": "string", "location": "query"}, "channels": {"type": "string", "location": "query"}, "currency": {"type": "string", "location": "query"}, "startIndex": {"format": "uint32", "type": "integer", "location": "query"}, "facets.discover": {"type": "string", "location": "query"}, "debug.searchResponse": {"type": "boolean", "location": "query"}, "crowdBy": {"type": "string", "location": "query"}, "spelling.enabled": {"type": "boolean", "location": "query"}, "debug.geocodeRequest": {"type": "boolean", "location": "query"}, "source": {"required": true, "type": "string", "location": "path"}, "spelling.useGcsConfig": {"type": "boolean", "location": "query"}, "useCase": {"type": "string", "location": "query"}, "location": {"type": "string", "location": "query"}, "taxonomy": {"type": "string", "location": "query"}, "debug.rdcRequest": {"type": "boolean", "location": "query"}, "categories.include": {"type": "string", "location": "query"}, "debug.searchRequest": {"type": "boolean", "location": "query"}, "safe": {"type": "boolean", "location": "query"}, "boostBy": {"type": "string", "location": "query"}, "maxVariants": {"format": "uint32", "type": "integer", "location": "query"}, "categories.useGcsConfig": {"type": "boolean", "location": "query"}, "maxResults": {"format": "uint32", "type": "integer", "location": "query"}, "facets.useGcsConfig": {"type": "boolean", "location": "query"}, "categories.enabled": {"type": "boolean", "location": "query"}, "attributeFilter": {"type": "string", "location": "query"}, "sayt.enabled": {"type": "boolean", "location": "query"}, "plusOne": {"type": "string", "location": "query"}, "thumbnails": {"type": "string", "location": "query"}, "language": {"type": "string", "location": "query"}, "redirects.useGcsConfig": {"type": "boolean", "location": "query"}, "rankBy": {"type": "string", "location": "query"}, "restrictBy": {"type": "string", "location": "query"}, "debug.rdcResponse": {"type": "boolean", "location": "query"}, "q": {"type": "string", "location": "query"}, "redirects.enabled": {"type": "boolean", "location": "query"}, "country": {"type": "string", "location": "query"}, "relatedQueries.enabled": {"type": "boolean", "location": "query"}, "minAvailability": {"enum": ["inStock", "limited", "outOfStock", "unknown"], "type": "string", "location": "query"}, "promotions.useGcsConfig": {"type": "boolean", "location": "query"}}, "id": "shopping.products.list", "httpMethod": "GET", "path": "{source}/products", "response": {"$ref": "Products"}}, "get": {"parameters": {"categories.include": {"type": "string", "location": "query"}, "recommendations.enabled": {"type": "boolean", "location": "query"}, "plusOne": {"type": "string", "location": "query"}, "debug.enableLogging": {"type": "boolean", "location": "query"}, "thumbnails": {"type": "string", "location": "query"}, "recommendations.include": {"type": "string", "location": "query"}, "taxonomy": {"type": "string", "location": "query"}, "productIdType": {"required": true, "type": "string", "location": "path"}, "categories.useGcsConfig": {"type": "boolean", "location": "query"}, "attributeFilter": {"type": "string", "location": "query"}, "debug.enabled": {"type": "boolean", "location": "query"}, "source": {"required": true, "type": "string", "location": "path"}, "categories.enabled": {"type": "boolean", "location": "query"}, "location": {"type": "string", "location": "query"}, "debug.searchRequest
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class Product extends apiModel {
|
||
|
public $selfLink;
|
||
|
public $kind;
|
||
|
protected $__productType = 'ShoppingModelProductJsonV1';
|
||
|
protected $__productDataType = '';
|
||
|
public $product;
|
||
|
public $requestId;
|
||
|
protected $__recommendationsType = 'ProductRecommendations';
|
||
|
protected $__recommendationsDataType = 'array';
|
||
|
public $recommendations;
|
||
|
protected $__debugType = 'ShoppingModelDebugJsonV1';
|
||
|
protected $__debugDataType = '';
|
||
|
public $debug;
|
||
|
public $id;
|
||
|
protected $__categoriesType = 'ShoppingModelCategoryJsonV1';
|
||
|
protected $__categoriesDataType = 'array';
|
||
|
public $categories;
|
||
|
public function setSelfLink($selfLink) {
|
||
|
$this->selfLink = $selfLink;
|
||
|
}
|
||
|
public function getSelfLink() {
|
||
|
return $this->selfLink;
|
||
|
}
|
||
|
public function setKind($kind) {
|
||
|
$this->kind = $kind;
|
||
|
}
|
||
|
public function getKind() {
|
||
|
return $this->kind;
|
||
|
}
|
||
|
public function setProduct(ShoppingModelProductJsonV1 $product) {
|
||
|
$this->product = $product;
|
||
|
}
|
||
|
public function getProduct() {
|
||
|
return $this->product;
|
||
|
}
|
||
|
public function setRequestId($requestId) {
|
||
|
$this->requestId = $requestId;
|
||
|
}
|
||
|
public function getRequestId() {
|
||
|
return $this->requestId;
|
||
|
}
|
||
|
public function setRecommendations(/* array(ProductRecommendations) */ $recommendations) {
|
||
|
$this->assertIsArray($recommendations, 'ProductRecommendations', __METHOD__);
|
||
|
$this->recommendations = $recommendations;
|
||
|
}
|
||
|
public function getRecommendations() {
|
||
|
return $this->recommendations;
|
||
|
}
|
||
|
public function setDebug(ShoppingModelDebugJsonV1 $debug) {
|
||
|
$this->debug = $debug;
|
||
|
}
|
||
|
public function getDebug() {
|
||
|
return $this->debug;
|
||
|
}
|
||
|
public function setId($id) {
|
||
|
$this->id = $id;
|
||
|
}
|
||
|
public function getId() {
|
||
|
return $this->id;
|
||
|
}
|
||
|
public function setCategories(/* array(ShoppingModelCategoryJsonV1) */ $categories) {
|
||
|
$this->assertIsArray($categories, 'ShoppingModelCategoryJsonV1', __METHOD__);
|
||
|
$this->categories = $categories;
|
||
|
}
|
||
|
public function getCategories() {
|
||
|
return $this->categories;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ProductRecommendations extends apiModel {
|
||
|
protected $__recommendationListType = 'ProductRecommendationsRecommendationList';
|
||
|
protected $__recommendationListDataType = 'array';
|
||
|
public $recommendationList;
|
||
|
public $type;
|
||
|
public function setRecommendationList(/* array(ProductRecommendationsRecommendationList) */ $recommendationList) {
|
||
|
$this->assertIsArray($recommendationList, 'ProductRecommendationsRecommendationList', __METHOD__);
|
||
|
$this->recommendationList = $recommendationList;
|
||
|
}
|
||
|
public function getRecommendationList() {
|
||
|
return $this->recommendationList;
|
||
|
}
|
||
|
public function setType($type) {
|
||
|
$this->type = $type;
|
||
|
}
|
||
|
public function getType() {
|
||
|
return $this->type;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ProductRecommendationsRecommendationList extends apiModel {
|
||
|
protected $__productType = 'ShoppingModelProductJsonV1';
|
||
|
protected $__productDataType = '';
|
||
|
public $product;
|
||
|
public function setProduct(ShoppingModelProductJsonV1 $product) {
|
||
|
$this->product = $product;
|
||
|
}
|
||
|
public function getProduct() {
|
||
|
return $this->product;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class Products extends apiModel {
|
||
|
protected $__promotionsType = 'ProductsPromotions';
|
||
|
protected $__promotionsDataType = 'array';
|
||
|
public $promotions;
|
||
|
public $selfLink;
|
||
|
public $kind;
|
||
|
protected $__storesType = 'ProductsStores';
|
||
|
protected $__storesDataType = 'array';
|
||
|
public $stores;
|
||
|
public $currentItemCount;
|
||
|
protected $__itemsType = 'Product';
|
||
|
protected $__itemsDataType = 'array';
|
||
|
public $items;
|
||
|
protected $__facetsType = 'ProductsFacets';
|
||
|
protected $__facetsDataType = 'array';
|
||
|
public $facets;
|
||
|
public $itemsPerPage;
|
||
|
public $redirects;
|
||
|
public $nextLink;
|
||
|
protected $__shelfSpaceAdsType = 'ProductsShelfSpaceAds';
|
||
|
protected $__shelfSpaceAdsDataType = 'array';
|
||
|
public $shelfSpaceAds;
|
||
|
public $startIndex;
|
||
|
public $etag;
|
||
|
public $requestId;
|
||
|
public $relatedQueries;
|
||
|
protected $__debugType = 'ShoppingModelDebugJsonV1';
|
||
|
protected $__debugDataType = '';
|
||
|
public $debug;
|
||
|
protected $__spellingType = 'ProductsSpelling';
|
||
|
protected $__spellingDataType = '';
|
||
|
public $spelling;
|
||
|
public $previousLink;
|
||
|
public $totalItems;
|
||
|
public $id;
|
||
|
protected $__categoriesType = 'ShoppingModelCategoryJsonV1';
|
||
|
protected $__categoriesDataType = 'array';
|
||
|
public $categories;
|
||
|
public function setPromotions(/* array(ProductsPromotions) */ $promotions) {
|
||
|
$this->assertIsArray($promotions, 'ProductsPromotions', __METHOD__);
|
||
|
$this->promotions = $promotions;
|
||
|
}
|
||
|
public function getPromotions() {
|
||
|
return $this->promotions;
|
||
|
}
|
||
|
public function setSelfLink($selfLink) {
|
||
|
$this->selfLink = $selfLink;
|
||
|
}
|
||
|
public function getSelfLink() {
|
||
|
return $this->selfLink;
|
||
|
}
|
||
|
public function setKind($kind) {
|
||
|
$this->kind = $kind;
|
||
|
}
|
||
|
public function getKind() {
|
||
|
return $this->kind;
|
||
|
}
|
||
|
public function setStores(/* array(ProductsStores) */ $stores) {
|
||
|
$this->assertIsArray($stores, 'ProductsStores', __METHOD__);
|
||
|
$this->stores = $stores;
|
||
|
}
|
||
|
public function getStores() {
|
||
|
return $this->stores;
|
||
|
}
|
||
|
public function setCurrentItemCount($currentItemCount) {
|
||
|
$this->currentItemCount = $currentItemCount;
|
||
|
}
|
||
|
public function getCurrentItemCount() {
|
||
|
return $this->currentItemCount;
|
||
|
}
|
||
|
public function setItems(/* array(Product) */ $items) {
|
||
|
$this->assertIsArray($items, 'Product', __METHOD__);
|
||
|
$this->items = $items;
|
||
|
}
|
||
|
public function getItems() {
|
||
|
return $this->items;
|
||
|
}
|
||
|
public function setFacets(/* array(ProductsFacets) */ $facets) {
|
||
|
$this->assertIsArray($facets, 'ProductsFacets', __METHOD__);
|
||
|
$this->facets = $facets;
|
||
|
}
|
||
|
public function getFacets() {
|
||
|
return $this->facets;
|
||
|
}
|
||
|
public function setItemsPerPage($itemsPerPage) {
|
||
|
$this->itemsPerPage = $itemsPerPage;
|
||
|
}
|
||
|
public function getItemsPerPage() {
|
||
|
return $this->itemsPerPage;
|
||
|
}
|
||
|
public function setRedirects(/* array(string) */ $redirects) {
|
||
|
$this->assertIsArray($redirects, 'string', __METHOD__);
|
||
|
$this->redirects = $redirects;
|
||
|
}
|
||
|
public function getRedirects() {
|
||
|
return $this->redirects;
|
||
|
}
|
||
|
public function setNextLink($nextLink) {
|
||
|
$this->nextLink = $nextLink;
|
||
|
}
|
||
|
public function getNextLink() {
|
||
|
return $this->nextLink;
|
||
|
}
|
||
|
public function setShelfSpaceAds(/* array(ProductsShelfSpaceAds) */ $shelfSpaceAds) {
|
||
|
$this->assertIsArray($shelfSpaceAds, 'ProductsShelfSpaceAds', __METHOD__);
|
||
|
$this->shelfSpaceAds = $shelfSpaceAds;
|
||
|
}
|
||
|
public function getShelfSpaceAds() {
|
||
|
return $this->shelfSpaceAds;
|
||
|
}
|
||
|
public function setStartIndex($startIndex) {
|
||
|
$this->startIndex = $startIndex;
|
||
|
}
|
||
|
public function getStartIndex() {
|
||
|
return $this->startIndex;
|
||
|
}
|
||
|
public function setEtag($etag) {
|
||
|
$this->etag = $etag;
|
||
|
}
|
||
|
public function getEtag() {
|
||
|
return $this->etag;
|
||
|
}
|
||
|
public function setRequestId($requestId) {
|
||
|
$this->requestId = $requestId;
|
||
|
}
|
||
|
public function getRequestId() {
|
||
|
return $this->requestId;
|
||
|
}
|
||
|
public function setRelatedQueries(/* array(string) */ $relatedQueries) {
|
||
|
$this->assertIsArray($relatedQueries, 'string', __METHOD__);
|
||
|
$this->relatedQueries = $relatedQueries;
|
||
|
}
|
||
|
public function getRelatedQueries() {
|
||
|
return $this->relatedQueries;
|
||
|
}
|
||
|
public function setDebug(ShoppingModelDebugJsonV1 $debug) {
|
||
|
$this->debug = $debug;
|
||
|
}
|
||
|
public function getDebug() {
|
||
|
return $this->debug;
|
||
|
}
|
||
|
public function setSpelling(ProductsSpelling $spelling) {
|
||
|
$this->spelling = $spelling;
|
||
|
}
|
||
|
public function getSpelling() {
|
||
|
return $this->spelling;
|
||
|
}
|
||
|
public function setPreviousLink($previousLink) {
|
||
|
$this->previousLink = $previousLink;
|
||
|
}
|
||
|
public function getPreviousLink() {
|
||
|
return $this->previousLink;
|
||
|
}
|
||
|
public function setTotalItems($totalItems) {
|
||
|
$this->totalItems = $totalItems;
|
||
|
}
|
||
|
public function getTotalItems() {
|
||
|
return $this->totalItems;
|
||
|
}
|
||
|
public function setId($id) {
|
||
|
$this->id = $id;
|
||
|
}
|
||
|
public function getId() {
|
||
|
return $this->id;
|
||
|
}
|
||
|
public function setCategories(/* array(ShoppingModelCategoryJsonV1) */ $categories) {
|
||
|
$this->assertIsArray($categories, 'ShoppingModelCategoryJsonV1', __METHOD__);
|
||
|
$this->categories = $categories;
|
||
|
}
|
||
|
public function getCategories() {
|
||
|
return $this->categories;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ProductsFacets extends apiModel {
|
||
|
public $count;
|
||
|
public $displayName;
|
||
|
public $name;
|
||
|
protected $__bucketsType = 'ProductsFacetsBuckets';
|
||
|
protected $__bucketsDataType = 'array';
|
||
|
public $buckets;
|
||
|
public $property;
|
||
|
public $type;
|
||
|
public $unit;
|
||
|
public function setCount($count) {
|
||
|
$this->count = $count;
|
||
|
}
|
||
|
public function getCount() {
|
||
|
return $this->count;
|
||
|
}
|
||
|
public function setDisplayName($displayName) {
|
||
|
$this->displayName = $displayName;
|
||
|
}
|
||
|
public function getDisplayName() {
|
||
|
return $this->displayName;
|
||
|
}
|
||
|
public function setName($name) {
|
||
|
$this->name = $name;
|
||
|
}
|
||
|
public function getName() {
|
||
|
return $this->name;
|
||
|
}
|
||
|
public function setBuckets(/* array(ProductsFacetsBuckets) */ $buckets) {
|
||
|
$this->assertIsArray($buckets, 'ProductsFacetsBuckets', __METHOD__);
|
||
|
$this->buckets = $buckets;
|
||
|
}
|
||
|
public function getBuckets() {
|
||
|
return $this->buckets;
|
||
|
}
|
||
|
public function setProperty($property) {
|
||
|
$this->property = $property;
|
||
|
}
|
||
|
public function getProperty() {
|
||
|
return $this->property;
|
||
|
}
|
||
|
public function setType($type) {
|
||
|
$this->type = $type;
|
||
|
}
|
||
|
public function getType() {
|
||
|
return $this->type;
|
||
|
}
|
||
|
public function setUnit($unit) {
|
||
|
$this->unit = $unit;
|
||
|
}
|
||
|
public function getUnit() {
|
||
|
return $this->unit;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ProductsFacetsBuckets extends apiModel {
|
||
|
public $count;
|
||
|
public $minExclusive;
|
||
|
public $min;
|
||
|
public $max;
|
||
|
public $value;
|
||
|
public $maxExclusive;
|
||
|
public function setCount($count) {
|
||
|
$this->count = $count;
|
||
|
}
|
||
|
public function getCount() {
|
||
|
return $this->count;
|
||
|
}
|
||
|
public function setMinExclusive($minExclusive) {
|
||
|
$this->minExclusive = $minExclusive;
|
||
|
}
|
||
|
public function getMinExclusive() {
|
||
|
return $this->minExclusive;
|
||
|
}
|
||
|
public function setMin($min) {
|
||
|
$this->min = $min;
|
||
|
}
|
||
|
public function getMin() {
|
||
|
return $this->min;
|
||
|
}
|
||
|
public function setMax($max) {
|
||
|
$this->max = $max;
|
||
|
}
|
||
|
public function getMax() {
|
||
|
return $this->max;
|
||
|
}
|
||
|
public function setValue($value) {
|
||
|
$this->value = $value;
|
||
|
}
|
||
|
public function getValue() {
|
||
|
return $this->value;
|
||
|
}
|
||
|
public function setMaxExclusive($maxExclusive) {
|
||
|
$this->maxExclusive = $maxExclusive;
|
||
|
}
|
||
|
public function getMaxExclusive() {
|
||
|
return $this->maxExclusive;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ProductsPromotions extends apiModel {
|
||
|
protected $__productType = 'ShoppingModelProductJsonV1';
|
||
|
protected $__productDataType = '';
|
||
|
public $product;
|
||
|
public $description;
|
||
|
public $imageLink;
|
||
|
public $destLink;
|
||
|
public $customHtml;
|
||
|
public $link;
|
||
|
protected $__customFieldsType = 'ProductsPromotionsCustomFields';
|
||
|
protected $__customFieldsDataType = 'array';
|
||
|
public $customFields;
|
||
|
public $type;
|
||
|
public $name;
|
||
|
public function setProduct(ShoppingModelProductJsonV1 $product) {
|
||
|
$this->product = $product;
|
||
|
}
|
||
|
public function getProduct() {
|
||
|
return $this->product;
|
||
|
}
|
||
|
public function setDescription($description) {
|
||
|
$this->description = $description;
|
||
|
}
|
||
|
public function getDescription() {
|
||
|
return $this->description;
|
||
|
}
|
||
|
public function setImageLink($imageLink) {
|
||
|
$this->imageLink = $imageLink;
|
||
|
}
|
||
|
public function getImageLink() {
|
||
|
return $this->imageLink;
|
||
|
}
|
||
|
public function setDestLink($destLink) {
|
||
|
$this->destLink = $destLink;
|
||
|
}
|
||
|
public function getDestLink() {
|
||
|
return $this->destLink;
|
||
|
}
|
||
|
public function setCustomHtml($customHtml) {
|
||
|
$this->customHtml = $customHtml;
|
||
|
}
|
||
|
public function getCustomHtml() {
|
||
|
return $this->customHtml;
|
||
|
}
|
||
|
public function setLink($link) {
|
||
|
$this->link = $link;
|
||
|
}
|
||
|
public function getLink() {
|
||
|
return $this->link;
|
||
|
}
|
||
|
public function setCustomFields(/* array(ProductsPromotionsCustomFields) */ $customFields) {
|
||
|
$this->assertIsArray($customFields, 'ProductsPromotionsCustomFields', __METHOD__);
|
||
|
$this->customFields = $customFields;
|
||
|
}
|
||
|
public function getCustomFields() {
|
||
|
return $this->customFields;
|
||
|
}
|
||
|
public function setType($type) {
|
||
|
$this->type = $type;
|
||
|
}
|
||
|
public function getType() {
|
||
|
return $this->type;
|
||
|
}
|
||
|
public function setName($name) {
|
||
|
$this->name = $name;
|
||
|
}
|
||
|
public function getName() {
|
||
|
return $this->name;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ProductsPromotionsCustomFields extends apiModel {
|
||
|
public $name;
|
||
|
public $value;
|
||
|
public function setName($name) {
|
||
|
$this->name = $name;
|
||
|
}
|
||
|
public function getName() {
|
||
|
return $this->name;
|
||
|
}
|
||
|
public function setValue($value) {
|
||
|
$this->value = $value;
|
||
|
}
|
||
|
public function getValue() {
|
||
|
return $this->value;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ProductsShelfSpaceAds extends apiModel {
|
||
|
protected $__productType = 'ShoppingModelProductJsonV1';
|
||
|
protected $__productDataType = '';
|
||
|
public $product;
|
||
|
public function setProduct(ShoppingModelProductJsonV1 $product) {
|
||
|
$this->product = $product;
|
||
|
}
|
||
|
public function getProduct() {
|
||
|
return $this->product;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ProductsSpelling extends apiModel {
|
||
|
public $suggestion;
|
||
|
public function setSuggestion($suggestion) {
|
||
|
$this->suggestion = $suggestion;
|
||
|
}
|
||
|
public function getSuggestion() {
|
||
|
return $this->suggestion;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ProductsStores extends apiModel {
|
||
|
public $storeCode;
|
||
|
public $name;
|
||
|
public $storeId;
|
||
|
public $telephone;
|
||
|
public $location;
|
||
|
public $address;
|
||
|
public function setStoreCode($storeCode) {
|
||
|
$this->storeCode = $storeCode;
|
||
|
}
|
||
|
public function getStoreCode() {
|
||
|
return $this->storeCode;
|
||
|
}
|
||
|
public function setName($name) {
|
||
|
$this->name = $name;
|
||
|
}
|
||
|
public function getName() {
|
||
|
return $this->name;
|
||
|
}
|
||
|
public function setStoreId($storeId) {
|
||
|
$this->storeId = $storeId;
|
||
|
}
|
||
|
public function getStoreId() {
|
||
|
return $this->storeId;
|
||
|
}
|
||
|
public function setTelephone($telephone) {
|
||
|
$this->telephone = $telephone;
|
||
|
}
|
||
|
public function getTelephone() {
|
||
|
return $this->telephone;
|
||
|
}
|
||
|
public function setLocation($location) {
|
||
|
$this->location = $location;
|
||
|
}
|
||
|
public function getLocation() {
|
||
|
return $this->location;
|
||
|
}
|
||
|
public function setAddress($address) {
|
||
|
$this->address = $address;
|
||
|
}
|
||
|
public function getAddress() {
|
||
|
return $this->address;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ShoppingModelCategoryJsonV1 extends apiModel {
|
||
|
public $url;
|
||
|
public $shortName;
|
||
|
public $parents;
|
||
|
public $id;
|
||
|
public function setUrl($url) {
|
||
|
$this->url = $url;
|
||
|
}
|
||
|
public function getUrl() {
|
||
|
return $this->url;
|
||
|
}
|
||
|
public function setShortName($shortName) {
|
||
|
$this->shortName = $shortName;
|
||
|
}
|
||
|
public function getShortName() {
|
||
|
return $this->shortName;
|
||
|
}
|
||
|
public function setParents(/* array(string) */ $parents) {
|
||
|
$this->assertIsArray($parents, 'string', __METHOD__);
|
||
|
$this->parents = $parents;
|
||
|
}
|
||
|
public function getParents() {
|
||
|
return $this->parents;
|
||
|
}
|
||
|
public function setId($id) {
|
||
|
$this->id = $id;
|
||
|
}
|
||
|
public function getId() {
|
||
|
return $this->id;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ShoppingModelDebugJsonV1 extends apiModel {
|
||
|
public $searchResponse;
|
||
|
public $searchRequest;
|
||
|
public $rdcResponse;
|
||
|
protected $__backendTimesType = 'ShoppingModelDebugJsonV1BackendTimes';
|
||
|
protected $__backendTimesDataType = 'array';
|
||
|
public $backendTimes;
|
||
|
public $elapsedMillis;
|
||
|
public function setSearchResponse($searchResponse) {
|
||
|
$this->searchResponse = $searchResponse;
|
||
|
}
|
||
|
public function getSearchResponse() {
|
||
|
return $this->searchResponse;
|
||
|
}
|
||
|
public function setSearchRequest($searchRequest) {
|
||
|
$this->searchRequest = $searchRequest;
|
||
|
}
|
||
|
public function getSearchRequest() {
|
||
|
return $this->searchRequest;
|
||
|
}
|
||
|
public function setRdcResponse($rdcResponse) {
|
||
|
$this->rdcResponse = $rdcResponse;
|
||
|
}
|
||
|
public function getRdcResponse() {
|
||
|
return $this->rdcResponse;
|
||
|
}
|
||
|
public function setBackendTimes(/* array(ShoppingModelDebugJsonV1BackendTimes) */ $backendTimes) {
|
||
|
$this->assertIsArray($backendTimes, 'ShoppingModelDebugJsonV1BackendTimes', __METHOD__);
|
||
|
$this->backendTimes = $backendTimes;
|
||
|
}
|
||
|
public function getBackendTimes() {
|
||
|
return $this->backendTimes;
|
||
|
}
|
||
|
public function setElapsedMillis($elapsedMillis) {
|
||
|
$this->elapsedMillis = $elapsedMillis;
|
||
|
}
|
||
|
public function getElapsedMillis() {
|
||
|
return $this->elapsedMillis;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ShoppingModelDebugJsonV1BackendTimes extends apiModel {
|
||
|
public $serverMillis;
|
||
|
public $hostName;
|
||
|
public $name;
|
||
|
public $elapsedMillis;
|
||
|
public function setServerMillis($serverMillis) {
|
||
|
$this->serverMillis = $serverMillis;
|
||
|
}
|
||
|
public function getServerMillis() {
|
||
|
return $this->serverMillis;
|
||
|
}
|
||
|
public function setHostName($hostName) {
|
||
|
$this->hostName = $hostName;
|
||
|
}
|
||
|
public function getHostName() {
|
||
|
return $this->hostName;
|
||
|
}
|
||
|
public function setName($name) {
|
||
|
$this->name = $name;
|
||
|
}
|
||
|
public function getName() {
|
||
|
return $this->name;
|
||
|
}
|
||
|
public function setElapsedMillis($elapsedMillis) {
|
||
|
$this->elapsedMillis = $elapsedMillis;
|
||
|
}
|
||
|
public function getElapsedMillis() {
|
||
|
return $this->elapsedMillis;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ShoppingModelProductJsonV1 extends apiModel {
|
||
|
public $queryMatched;
|
||
|
public $gtin;
|
||
|
protected $__imagesType = 'ShoppingModelProductJsonV1Images';
|
||
|
protected $__imagesDataType = 'array';
|
||
|
public $images;
|
||
|
protected $__inventoriesType = 'ShoppingModelProductJsonV1Inventories';
|
||
|
protected $__inventoriesDataType = 'array';
|
||
|
public $inventories;
|
||
|
protected $__authorType = 'ShoppingModelProductJsonV1Author';
|
||
|
protected $__authorDataType = '';
|
||
|
public $author;
|
||
|
public $condition;
|
||
|
public $providedId;
|
||
|
public $internal8;
|
||
|
public $description;
|
||
|
public $gtins;
|
||
|
public $internal1;
|
||
|
public $brand;
|
||
|
public $internal3;
|
||
|
protected $__internal4Type = 'ShoppingModelProductJsonV1Internal4';
|
||
|
protected $__internal4DataType = 'array';
|
||
|
public $internal4;
|
||
|
public $internal6;
|
||
|
public $internal7;
|
||
|
public $link;
|
||
|
protected $__attributesType = 'ShoppingModelProductJsonV1Attributes';
|
||
|
protected $__attributesDataType = 'array';
|
||
|
public $attributes;
|
||
|
public $totalMatchingVariants;
|
||
|
protected $__variantsType = 'ShoppingModelProductJsonV1Variants';
|
||
|
protected $__variantsDataType = 'array';
|
||
|
public $variants;
|
||
|
public $modificationTime;
|
||
|
public $categories;
|
||
|
public $language;
|
||
|
public $country;
|
||
|
public $title;
|
||
|
public $creationTime;
|
||
|
public $internal14;
|
||
|
public $internal12;
|
||
|
public $internal13;
|
||
|
public $internal10;
|
||
|
public $plusOne;
|
||
|
public $googleId;
|
||
|
public $internal15;
|
||
|
public function setQueryMatched($queryMatched) {
|
||
|
$this->queryMatched = $queryMatched;
|
||
|
}
|
||
|
public function getQueryMatched() {
|
||
|
return $this->queryMatched;
|
||
|
}
|
||
|
public function setGtin($gtin) {
|
||
|
$this->gtin = $gtin;
|
||
|
}
|
||
|
public function getGtin() {
|
||
|
return $this->gtin;
|
||
|
}
|
||
|
public function setImages(/* array(ShoppingModelProductJsonV1Images) */ $images) {
|
||
|
$this->assertIsArray($images, 'ShoppingModelProductJsonV1Images', __METHOD__);
|
||
|
$this->images = $images;
|
||
|
}
|
||
|
public function getImages() {
|
||
|
return $this->images;
|
||
|
}
|
||
|
public function setInventories(/* array(ShoppingModelProductJsonV1Inventories) */ $inventories) {
|
||
|
$this->assertIsArray($inventories, 'ShoppingModelProductJsonV1Inventories', __METHOD__);
|
||
|
$this->inventories = $inventories;
|
||
|
}
|
||
|
public function getInventories() {
|
||
|
return $this->inventories;
|
||
|
}
|
||
|
public function setAuthor(ShoppingModelProductJsonV1Author $author) {
|
||
|
$this->author = $author;
|
||
|
}
|
||
|
public function getAuthor() {
|
||
|
return $this->author;
|
||
|
}
|
||
|
public function setCondition($condition) {
|
||
|
$this->condition = $condition;
|
||
|
}
|
||
|
public function getCondition() {
|
||
|
return $this->condition;
|
||
|
}
|
||
|
public function setProvidedId($providedId) {
|
||
|
$this->providedId = $providedId;
|
||
|
}
|
||
|
public function getProvidedId() {
|
||
|
return $this->providedId;
|
||
|
}
|
||
|
public function setInternal8(/* array(string) */ $internal8) {
|
||
|
$this->assertIsArray($internal8, 'string', __METHOD__);
|
||
|
$this->internal8 = $internal8;
|
||
|
}
|
||
|
public function getInternal8() {
|
||
|
return $this->internal8;
|
||
|
}
|
||
|
public function setDescription($description) {
|
||
|
$this->description = $description;
|
||
|
}
|
||
|
public function getDescription() {
|
||
|
return $this->description;
|
||
|
}
|
||
|
public function setGtins(/* array(string) */ $gtins) {
|
||
|
$this->assertIsArray($gtins, 'string', __METHOD__);
|
||
|
$this->gtins = $gtins;
|
||
|
}
|
||
|
public function getGtins() {
|
||
|
return $this->gtins;
|
||
|
}
|
||
|
public function setInternal1(/* array(string) */ $internal1) {
|
||
|
$this->assertIsArray($internal1, 'string', __METHOD__);
|
||
|
$this->internal1 = $internal1;
|
||
|
}
|
||
|
public function getInternal1() {
|
||
|
return $this->internal1;
|
||
|
}
|
||
|
public function setBrand($brand) {
|
||
|
$this->brand = $brand;
|
||
|
}
|
||
|
public function getBrand() {
|
||
|
return $this->brand;
|
||
|
}
|
||
|
public function setInternal3($internal3) {
|
||
|
$this->internal3 = $internal3;
|
||
|
}
|
||
|
public function getInternal3() {
|
||
|
return $this->internal3;
|
||
|
}
|
||
|
public function setInternal4(/* array(ShoppingModelProductJsonV1Internal4) */ $internal4) {
|
||
|
$this->assertIsArray($internal4, 'ShoppingModelProductJsonV1Internal4', __METHOD__);
|
||
|
$this->internal4 = $internal4;
|
||
|
}
|
||
|
public function getInternal4() {
|
||
|
return $this->internal4;
|
||
|
}
|
||
|
public function setInternal6($internal6) {
|
||
|
$this->internal6 = $internal6;
|
||
|
}
|
||
|
public function getInternal6() {
|
||
|
return $this->internal6;
|
||
|
}
|
||
|
public function setInternal7($internal7) {
|
||
|
$this->internal7 = $internal7;
|
||
|
}
|
||
|
public function getInternal7() {
|
||
|
return $this->internal7;
|
||
|
}
|
||
|
public function setLink($link) {
|
||
|
$this->link = $link;
|
||
|
}
|
||
|
public function getLink() {
|
||
|
return $this->link;
|
||
|
}
|
||
|
public function setAttributes(/* array(ShoppingModelProductJsonV1Attributes) */ $attributes) {
|
||
|
$this->assertIsArray($attributes, 'ShoppingModelProductJsonV1Attributes', __METHOD__);
|
||
|
$this->attributes = $attributes;
|
||
|
}
|
||
|
public function getAttributes() {
|
||
|
return $this->attributes;
|
||
|
}
|
||
|
public function setTotalMatchingVariants($totalMatchingVariants) {
|
||
|
$this->totalMatchingVariants = $totalMatchingVariants;
|
||
|
}
|
||
|
public function getTotalMatchingVariants() {
|
||
|
return $this->totalMatchingVariants;
|
||
|
}
|
||
|
public function setVariants(/* array(ShoppingModelProductJsonV1Variants) */ $variants) {
|
||
|
$this->assertIsArray($variants, 'ShoppingModelProductJsonV1Variants', __METHOD__);
|
||
|
$this->variants = $variants;
|
||
|
}
|
||
|
public function getVariants() {
|
||
|
return $this->variants;
|
||
|
}
|
||
|
public function setModificationTime($modificationTime) {
|
||
|
$this->modificationTime = $modificationTime;
|
||
|
}
|
||
|
public function getModificationTime() {
|
||
|
return $this->modificationTime;
|
||
|
}
|
||
|
public function setCategories(/* array(string) */ $categories) {
|
||
|
$this->assertIsArray($categories, 'string', __METHOD__);
|
||
|
$this->categories = $categories;
|
||
|
}
|
||
|
public function getCategories() {
|
||
|
return $this->categories;
|
||
|
}
|
||
|
public function setLanguage($language) {
|
||
|
$this->language = $language;
|
||
|
}
|
||
|
public function getLanguage() {
|
||
|
return $this->language;
|
||
|
}
|
||
|
public function setCountry($country) {
|
||
|
$this->country = $country;
|
||
|
}
|
||
|
public function getCountry() {
|
||
|
return $this->country;
|
||
|
}
|
||
|
public function setTitle($title) {
|
||
|
$this->title = $title;
|
||
|
}
|
||
|
public function getTitle() {
|
||
|
return $this->title;
|
||
|
}
|
||
|
public function setCreationTime($creationTime) {
|
||
|
$this->creationTime = $creationTime;
|
||
|
}
|
||
|
public function getCreationTime() {
|
||
|
return $this->creationTime;
|
||
|
}
|
||
|
public function setInternal14($internal14) {
|
||
|
$this->internal14 = $internal14;
|
||
|
}
|
||
|
public function getInternal14() {
|
||
|
return $this->internal14;
|
||
|
}
|
||
|
public function setInternal12($internal12) {
|
||
|
$this->internal12 = $internal12;
|
||
|
}
|
||
|
public function getInternal12() {
|
||
|
return $this->internal12;
|
||
|
}
|
||
|
public function setInternal13($internal13) {
|
||
|
$this->internal13 = $internal13;
|
||
|
}
|
||
|
public function getInternal13() {
|
||
|
return $this->internal13;
|
||
|
}
|
||
|
public function setInternal10(/* array(string) */ $internal10) {
|
||
|
$this->assertIsArray($internal10, 'string', __METHOD__);
|
||
|
$this->internal10 = $internal10;
|
||
|
}
|
||
|
public function getInternal10() {
|
||
|
return $this->internal10;
|
||
|
}
|
||
|
public function setPlusOne($plusOne) {
|
||
|
$this->plusOne = $plusOne;
|
||
|
}
|
||
|
public function getPlusOne() {
|
||
|
return $this->plusOne;
|
||
|
}
|
||
|
public function setGoogleId($googleId) {
|
||
|
$this->googleId = $googleId;
|
||
|
}
|
||
|
public function getGoogleId() {
|
||
|
return $this->googleId;
|
||
|
}
|
||
|
public function setInternal15($internal15) {
|
||
|
$this->internal15 = $internal15;
|
||
|
}
|
||
|
public function getInternal15() {
|
||
|
return $this->internal15;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ShoppingModelProductJsonV1Attributes extends apiModel {
|
||
|
public $type;
|
||
|
public $value;
|
||
|
public $displayName;
|
||
|
public $name;
|
||
|
public $unit;
|
||
|
public function setType($type) {
|
||
|
$this->type = $type;
|
||
|
}
|
||
|
public function getType() {
|
||
|
return $this->type;
|
||
|
}
|
||
|
public function setValue($value) {
|
||
|
$this->value = $value;
|
||
|
}
|
||
|
public function getValue() {
|
||
|
return $this->value;
|
||
|
}
|
||
|
public function setDisplayName($displayName) {
|
||
|
$this->displayName = $displayName;
|
||
|
}
|
||
|
public function getDisplayName() {
|
||
|
return $this->displayName;
|
||
|
}
|
||
|
public function setName($name) {
|
||
|
$this->name = $name;
|
||
|
}
|
||
|
public function getName() {
|
||
|
return $this->name;
|
||
|
}
|
||
|
public function setUnit($unit) {
|
||
|
$this->unit = $unit;
|
||
|
}
|
||
|
public function getUnit() {
|
||
|
return $this->unit;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ShoppingModelProductJsonV1Author extends apiModel {
|
||
|
public $name;
|
||
|
public $accountId;
|
||
|
public function setName($name) {
|
||
|
$this->name = $name;
|
||
|
}
|
||
|
public function getName() {
|
||
|
return $this->name;
|
||
|
}
|
||
|
public function setAccountId($accountId) {
|
||
|
$this->accountId = $accountId;
|
||
|
}
|
||
|
public function getAccountId() {
|
||
|
return $this->accountId;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ShoppingModelProductJsonV1Images extends apiModel {
|
||
|
public $link;
|
||
|
protected $__thumbnailsType = 'ShoppingModelProductJsonV1ImagesThumbnails';
|
||
|
protected $__thumbnailsDataType = 'array';
|
||
|
public $thumbnails;
|
||
|
public function setLink($link) {
|
||
|
$this->link = $link;
|
||
|
}
|
||
|
public function getLink() {
|
||
|
return $this->link;
|
||
|
}
|
||
|
public function setThumbnails(/* array(ShoppingModelProductJsonV1ImagesThumbnails) */ $thumbnails) {
|
||
|
$this->assertIsArray($thumbnails, 'ShoppingModelProductJsonV1ImagesThumbnails', __METHOD__);
|
||
|
$this->thumbnails = $thumbnails;
|
||
|
}
|
||
|
public function getThumbnails() {
|
||
|
return $this->thumbnails;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ShoppingModelProductJsonV1ImagesThumbnails extends apiModel {
|
||
|
public $content;
|
||
|
public $width;
|
||
|
public $link;
|
||
|
public $height;
|
||
|
public function setContent($content) {
|
||
|
$this->content = $content;
|
||
|
}
|
||
|
public function getContent() {
|
||
|
return $this->content;
|
||
|
}
|
||
|
public function setWidth($width) {
|
||
|
$this->width = $width;
|
||
|
}
|
||
|
public function getWidth() {
|
||
|
return $this->width;
|
||
|
}
|
||
|
public function setLink($link) {
|
||
|
$this->link = $link;
|
||
|
}
|
||
|
public function getLink() {
|
||
|
return $this->link;
|
||
|
}
|
||
|
public function setHeight($height) {
|
||
|
$this->height = $height;
|
||
|
}
|
||
|
public function getHeight() {
|
||
|
return $this->height;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ShoppingModelProductJsonV1Internal4 extends apiModel {
|
||
|
public $node;
|
||
|
public $confidence;
|
||
|
public function setNode($node) {
|
||
|
$this->node = $node;
|
||
|
}
|
||
|
public function getNode() {
|
||
|
return $this->node;
|
||
|
}
|
||
|
public function setConfidence($confidence) {
|
||
|
$this->confidence = $confidence;
|
||
|
}
|
||
|
public function getConfidence() {
|
||
|
return $this->confidence;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ShoppingModelProductJsonV1Inventories extends apiModel {
|
||
|
public $distance;
|
||
|
public $price;
|
||
|
public $storeId;
|
||
|
public $tax;
|
||
|
public $shipping;
|
||
|
public $currency;
|
||
|
public $distanceUnit;
|
||
|
public $availability;
|
||
|
public $channel;
|
||
|
public function setDistance($distance) {
|
||
|
$this->distance = $distance;
|
||
|
}
|
||
|
public function getDistance() {
|
||
|
return $this->distance;
|
||
|
}
|
||
|
public function setPrice($price) {
|
||
|
$this->price = $price;
|
||
|
}
|
||
|
public function getPrice() {
|
||
|
return $this->price;
|
||
|
}
|
||
|
public function setStoreId($storeId) {
|
||
|
$this->storeId = $storeId;
|
||
|
}
|
||
|
public function getStoreId() {
|
||
|
return $this->storeId;
|
||
|
}
|
||
|
public function setTax($tax) {
|
||
|
$this->tax = $tax;
|
||
|
}
|
||
|
public function getTax() {
|
||
|
return $this->tax;
|
||
|
}
|
||
|
public function setShipping($shipping) {
|
||
|
$this->shipping = $shipping;
|
||
|
}
|
||
|
public function getShipping() {
|
||
|
return $this->shipping;
|
||
|
}
|
||
|
public function setCurrency($currency) {
|
||
|
$this->currency = $currency;
|
||
|
}
|
||
|
public function getCurrency() {
|
||
|
return $this->currency;
|
||
|
}
|
||
|
public function setDistanceUnit($distanceUnit) {
|
||
|
$this->distanceUnit = $distanceUnit;
|
||
|
}
|
||
|
public function getDistanceUnit() {
|
||
|
return $this->distanceUnit;
|
||
|
}
|
||
|
public function setAvailability($availability) {
|
||
|
$this->availability = $availability;
|
||
|
}
|
||
|
public function getAvailability() {
|
||
|
return $this->availability;
|
||
|
}
|
||
|
public function setChannel($channel) {
|
||
|
$this->channel = $channel;
|
||
|
}
|
||
|
public function getChannel() {
|
||
|
return $this->channel;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class ShoppingModelProductJsonV1Variants extends apiModel {
|
||
|
protected $__variantType = 'ShoppingModelProductJsonV1';
|
||
|
protected $__variantDataType = '';
|
||
|
public $variant;
|
||
|
public function setVariant(ShoppingModelProductJsonV1 $variant) {
|
||
|
$this->variant = $variant;
|
||
|
}
|
||
|
public function getVariant() {
|
||
|
return $this->variant;
|
||
|
}
|
||
|
}
|