diff --git a/src/MarketplaceWebServiceProducts/Client.php b/src/MarketplaceWebServiceProducts/Client.php index 2b2d4e6..55676ee 100644 --- a/src/MarketplaceWebServiceProducts/Client.php +++ b/src/MarketplaceWebServiceProducts/Client.php @@ -128,6 +128,32 @@ public function getLowestOfferListingsForASIN($request) } + /** + * Get Lowest Offer Priced For ASIN + * Returns lowest priced offers for a single product, based on ASIN. + * + * @param mixed $request array of parameters for MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASIN request or MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASIN object itself + * @see MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINRequest + * @return MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINResponse + * + * @throws MarketplaceWebServiceProducts_Exception + */ + public function getLowestPricedOffersForASIN($request) + { + if (!($request instanceof MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINRequest)) { + $request = new MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINRequest($request); + } + $parameters = $request->toQueryParameterArray(); + $parameters['Action'] = 'GetLowestPricedOffersForASIN'; + $httpResponse = $this->_invoke($parameters); + + $response = MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINResponse + ::fromXML($httpResponse['ResponseBody']); + $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); + return $response; + } + + /** * Get Lowest Offer Listings For SKU * Gets some of the lowest prices based on the product identified by the given diff --git a/src/MarketplaceWebServiceProducts/Model/ASINIdentifier.php b/src/MarketplaceWebServiceProducts/Model/ASINIdentifier.php index e82686d..0781d7b 100644 --- a/src/MarketplaceWebServiceProducts/Model/ASINIdentifier.php +++ b/src/MarketplaceWebServiceProducts/Model/ASINIdentifier.php @@ -36,6 +36,7 @@ public function __construct($data = null) $this->_fields = array( 'MarketplaceId' => array('FieldValue' => null, 'FieldType' => 'string'), 'ASIN' => array('FieldValue' => null, 'FieldType' => 'string'), + 'ItemCondition' => array('FieldValue' => null, 'FieldType' => 'string'), ); parent::__construct($data); } diff --git a/src/MarketplaceWebServiceProducts/Model/BuyBoxPrice.php b/src/MarketplaceWebServiceProducts/Model/BuyBoxPrice.php new file mode 100644 index 0000000..83e5b8a --- /dev/null +++ b/src/MarketplaceWebServiceProducts/Model/BuyBoxPrice.php @@ -0,0 +1,100 @@ +<?php +/******************************************************************************* + * Copyright 2009-2014 Amazon Services. All Rights Reserved. + * 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://aws.amazon.com/apache2.0 + * This file 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. + ******************************************************************************* + * PHP Version 5 + * @category Amazon + * @package Marketplace Web Service Products + * @version 2011-10-01 + * Library Version: 2014-10-20 + * Generated: Fri Oct 17 17:59:56 GMT 2014 + */ + +/** + * MarketplaceWebServiceProducts_Model_BuyBoxPrice + * + * Properties: + * <ul> + * + * <li>LandedPrice: MarketplaceWebServiceProducts_Model_LandedPrice</li> + * <li>ListingPrice: MarketplaceWebServiceProducts_Model_LandedPrice</li> + * <li>Shipping: MarketplaceWebServiceProducts_Model_LandedPrice</li> + * <li>condition: string</li> + * + * </ul> + */ +class MarketplaceWebServiceProducts_Model_BuyBoxPrice extends MarketplaceWebServiceProducts_Model +{ + public function __construct($data = null) + { + $this->_fields = array( + 'LandedPrice' => array( + 'FieldValue' => null, + 'FieldType' => 'MarketplaceWebServiceProducts_Model_LandedPrice' + ), + 'ListingPrice' => array( + 'FieldValue' => null, + 'FieldType' => 'MarketplaceWebServiceProducts_Model_LandedPrice' + ), + 'Shipping' => array( + 'FieldValue' => null, + 'FieldType' => 'MarketplaceWebServiceProducts_Model_LandedPrice' + ), + 'condition' => array('FieldValue' => null, 'FieldType' => '@string'), + ); + parent::__construct($data); + } + + /** + * Get the value of the condition property. + * + * @return String condition. + */ + public function getcondition() + { + return $this->_fields['condition']['FieldValue']; + } + + /** + * Set the value of the condition property. + * + * @param string $value condition + * @return $this This instance + */ + public function setcondition($value) + { + $this->_fields['condition']['FieldValue'] = $value; + return $this; + } + + /** + * Check to see if condition is set. + * + * @return true if condition is set. + */ + public function isSetcondition() + { + return !is_null($this->_fields['condition']['FieldValue']); + } + + /** + * Set the value of condition, return this. + * + * @param condition + * The new value to set. + * + * @return $this This instance. + */ + public function withcondition($value) + { + $this->setcondition($value); + return $this; + } +} diff --git a/src/MarketplaceWebServiceProducts/Model/BuyBoxPriceList.php b/src/MarketplaceWebServiceProducts/Model/BuyBoxPriceList.php new file mode 100644 index 0000000..50148f4 --- /dev/null +++ b/src/MarketplaceWebServiceProducts/Model/BuyBoxPriceList.php @@ -0,0 +1,42 @@ +<?php +/******************************************************************************* + * Copyright 2009-2014 Amazon Services. All Rights Reserved. + * 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://aws.amazon.com/apache2.0 + * This file 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. + ******************************************************************************* + * PHP Version 5 + * @category Amazon + * @package Marketplace Web Service Products + * @version 2011-10-01 + * Library Version: 2014-10-20 + * Generated: Fri Oct 17 17:59:56 GMT 2014 + */ + +/** + * MarketplaceWebServiceProducts_Model_BuyBoxPriceList + * + * Properties: + * <ul> + * + * <li>OfferCount: MarketplaceWebServiceProducts_Model_BuyBoxPrice</li> + * + * </ul> + */ +class MarketplaceWebServiceProducts_Model_BuyBoxPriceList extends MarketplaceWebServiceProducts_Model +{ + public function __construct($data = null) + { + $this->_fields = array( + 'BuyBoxPrice' => array( + 'FieldValue' => array(), + 'FieldType' => array('MarketplaceWebServiceProducts_Model_BuyBoxPrice') + ), + ); + parent::__construct($data); + } +} diff --git a/src/MarketplaceWebServiceProducts/Model/GetLowestPricedOffersForASINRequest.php b/src/MarketplaceWebServiceProducts/Model/GetLowestPricedOffersForASINRequest.php new file mode 100644 index 0000000..34b412c --- /dev/null +++ b/src/MarketplaceWebServiceProducts/Model/GetLowestPricedOffersForASINRequest.php @@ -0,0 +1,339 @@ +<?php +/******************************************************************************* + * Copyright 2009-2014 Amazon Services. All Rights Reserved. + * 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://aws.amazon.com/apache2.0 + * This file 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. + ******************************************************************************* + * PHP Version 5 + * @category Amazon + * @package Marketplace Web Service Products + * @version 2011-10-01 + * Library Version: 2014-10-20 + * Generated: Fri Oct 17 17:59:56 GMT 2014 + */ + +/** + * MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINRequest + * + * Properties: + * <ul> + * + * <li>SellerId: string</li> + * <li>MWSAuthToken: string</li> + * <li>MarketplaceId: string</li> + * <li>ASIN: string</li> + * <li>ItemCondition: string</li> + * <li>ExcludeMe: bool</li> + * + * </ul> + */ +class MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINRequest extends MarketplaceWebServiceProducts_Model +{ + + public function __construct($data = null) + { + $this->_fields = array( + 'SellerId' => array('FieldValue' => null, 'FieldType' => 'string'), + 'MWSAuthToken' => array('FieldValue' => null, 'FieldType' => 'string'), + 'MarketplaceId' => array('FieldValue' => null, 'FieldType' => 'string'), + 'ASIN' => array('FieldValue' => null, 'FieldType' => 'string'), + 'ItemCondition' => array('FieldValue' => null, 'FieldType' => 'string'), + 'ExcludeMe' => array('FieldValue' => null, 'FieldType' => 'bool'), + ); + parent::__construct($data); + } + + /** + * Get the value of the SellerId property. + * + * @return String SellerId. + */ + public function getSellerId() + { + return $this->_fields['SellerId']['FieldValue']; + } + + /** + * Set the value of the SellerId property. + * + * @param string $value sellerId + * @return $this This instance + */ + public function setSellerId($value) + { + $this->_fields['SellerId']['FieldValue'] = $value; + return $this; + } + + /** + * Check to see if SellerId is set. + * + * @return true if SellerId is set. + */ + public function isSetSellerId() + { + return !is_null($this->_fields['SellerId']['FieldValue']); + } + + /** + * Set the value of SellerId, return this. + * + * @param sellerId + * The new value to set. + * + * @return $this This instance. + */ + public function withSellerId($value) + { + $this->setSellerId($value); + return $this; + } + + /** + * Get the value of the MWSAuthToken property. + * + * @return String MWSAuthToken. + */ + public function getMWSAuthToken() + { + return $this->_fields['MWSAuthToken']['FieldValue']; + } + + /** + * Set the value of the MWSAuthToken property. + * + * @param string $value mwsAuthToken + * @return $this This instance + */ + public function setMWSAuthToken($value) + { + $this->_fields['MWSAuthToken']['FieldValue'] = $value; + return $this; + } + + /** + * Check to see if MWSAuthToken is set. + * + * @return true if MWSAuthToken is set. + */ + public function isSetMWSAuthToken() + { + return !is_null($this->_fields['MWSAuthToken']['FieldValue']); + } + + /** + * Set the value of MWSAuthToken, return this. + * + * @param mwsAuthToken + * The new value to set. + * + * @return $this This instance. + */ + public function withMWSAuthToken($value) + { + $this->setMWSAuthToken($value); + return $this; + } + + /** + * Get the value of the MarketplaceId property. + * + * @return String MarketplaceId. + */ + public function getMarketplaceId() + { + return $this->_fields['MarketplaceId']['FieldValue']; + } + + /** + * Set the value of the MarketplaceId property. + * + * @param string $value marketplaceId + * @return $this This instance + */ + public function setMarketplaceId($value) + { + $this->_fields['MarketplaceId']['FieldValue'] = $value; + return $this; + } + + /** + * Check to see if MarketplaceId is set. + * + * @return true if MarketplaceId is set. + */ + public function isSetMarketplaceId() + { + return !is_null($this->_fields['MarketplaceId']['FieldValue']); + } + + /** + * Set the value of MarketplaceId, return this. + * + * @param marketplaceId + * The new value to set. + * + * @return $this This instance. + */ + public function withMarketplaceId($value) + { + $this->setMarketplaceId($value); + return $this; + } + + + + /** + * Get the value of the ASIN property. + * + * @return String ASIN. + */ + public function getASIN() + { + return $this->_fields['ASIN']['FieldValue']; + } + + /** + * Set the value of the ASIN property. + * + * @param string $value asin + * @return $this This instance + */ + public function setASIN($value) + { + $this->_fields['ASIN']['FieldValue'] = $value; + return $this; + } + + /** + * Check to see if ASIN is set. + * + * @return true if ASIN is set. + */ + public function isSetASIN() + { + return !is_null($this->_fields['ASIN']['FieldValue']); + } + + /** + * Set the value of ASIN, return this. + * + * @param asin + * The new value to set. + * + * @return $this This instance. + */ + public function withASIN($value) + { + $this->setASIN($value); + return $this; + } + + /** + * Get the value of the ItemCondition property. + * + * @return String ItemCondition. + */ + public function getItemCondition() + { + return $this->_fields['ItemCondition']['FieldValue']; + } + + /** + * Set the value of the ItemCondition property. + * + * @param string $value itemCondition + * @return $this This instance + */ + public function setItemCondition($value) + { + $this->_fields['ItemCondition']['FieldValue'] = $value; + return $this; + } + + /** + * Check to see if ItemCondition is set. + * + * @return true if ItemCondition is set. + */ + public function isSetItemCondition() + { + return !is_null($this->_fields['ItemCondition']['FieldValue']); + } + + /** + * Set the value of ItemCondition, return this. + * + * @param itemCondition + * The new value to set. + * + * @return $this This instance. + */ + public function withItemCondition($value) + { + $this->setItemCondition($value); + return $this; + } + + /** + * Check the value of ExcludeMe. + * + * @return true if ExcludeMe is set to true. + */ + public function isExcludeMe() + { + return !is_null($this->_fields['ExcludeMe']['FieldValue']) && $this->_fields['ExcludeMe']['FieldValue']; + } + + /** + * Get the value of the ExcludeMe property. + * + * @return Boolean ExcludeMe. + */ + public function getExcludeMe() + { + return $this->_fields['ExcludeMe']['FieldValue']; + } + + /** + * Set the value of the ExcludeMe property. + * + * @param bool $value excludeMe + * @return $this This instance + */ + public function setExcludeMe($value) + { + $this->_fields['ExcludeMe']['FieldValue'] = $value; + return $this; + } + + /** + * Check to see if ExcludeMe is set. + * + * @return true if ExcludeMe is set. + */ + public function isSetExcludeMe() + { + return !is_null($this->_fields['ExcludeMe']['FieldValue']); + } + + /** + * Set the value of ExcludeMe, return this. + * + * @param excludeMe + * The new value to set. + * + * @return $this This instance. + */ + public function withExcludeMe($value) + { + $this->setExcludeMe($value); + return $this; + } + +} diff --git a/src/MarketplaceWebServiceProducts/Model/GetLowestPricedOffersForASINResponse.php b/src/MarketplaceWebServiceProducts/Model/GetLowestPricedOffersForASINResponse.php new file mode 100644 index 0000000..8b1b51f --- /dev/null +++ b/src/MarketplaceWebServiceProducts/Model/GetLowestPricedOffersForASINResponse.php @@ -0,0 +1,244 @@ +<?php +/******************************************************************************* + * Copyright 2009-2014 Amazon Services. All Rights Reserved. + * 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://aws.amazon.com/apache2.0 + * This file 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. + ******************************************************************************* + * PHP Version 5 + * @category Amazon + * @package Marketplace Web Service Products + * @version 2011-10-01 + * Library Version: 2014-10-20 + * Generated: Fri Oct 17 17:59:56 GMT 2014 + */ + +/** + * MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINResponse + * + * Properties: + * <ul> + * + * <li>GetLowestPricedOffersForASINResult: array</li> + * <li>ResponseMetadata: MarketplaceWebServiceProducts_Model_ResponseMetadata</li> + * <li>ResponseHeaderMetadata: MarketplaceWebServiceProducts_Model_ResponseHeaderMetadata</li> + * + * </ul> + */ +class MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINResponse extends MarketplaceWebServiceProducts_Model +{ + + public function __construct($data = null) + { + $this->_fields = array( + 'GetLowestPricedOffersForASINResult' => array( + 'FieldValue' => array(), + 'FieldType' => array('MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINResult') + ), + 'ResponseMetadata' => array( + 'FieldValue' => null, + 'FieldType' => 'MarketplaceWebServiceProducts_Model_ResponseMetadata' + ), + 'ResponseHeaderMetadata' => array( + 'FieldValue' => null, + 'FieldType' => 'MarketplaceWebServiceProducts_Model_ResponseHeaderMetadata' + ), + ); + parent::__construct($data); + } + + /** + * Get the value of the GetLowestPricedOffersForASINResult property. + * + * @return MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINResult[] GetLowestPricedOffersForASINResult. + */ + public function getGetLowestPricedOffersForASINResult() + { + if ($this->_fields['GetLowestPricedOffersForASINResult']['FieldValue'] == null) { + $this->_fields['GetLowestPricedOffersForASINResult']['FieldValue'] = array(); + } + return $this->_fields['GetLowestPricedOffersForASINResult']['FieldValue']; + } + + /** + * Set the value of the GetLowestPricedOffersForASINResult property. + * + * @param array $value getLowestPricedOffersForASINResult + * @return $this This instance + */ + public function setGetLowestPricedOffersForASINResult($value) + { + if (!$this->_isNumericArray($value)) { + $value = array($value); + } + $this->_fields['GetLowestPricedOffersForASINResult']['FieldValue'] = $value; + return $this; + } + + /** + * Clear GetLowestPricedOffersForASINResult. + */ + public function unsetGetLowestPricedOffersForASINResult() + { + $this->_fields['GetLowestPricedOffersForASINResult']['FieldValue'] = array(); + } + + /** + * Check to see if GetLowestPricedOffersForASINResult is set. + * + * @return true if GetLowestPricedOffersForASINResult is set. + */ + public function isSetGetLowestPricedOffersForASINResult() + { + return !empty($this->_fields['GetLowestPricedOffersForASINResult']['FieldValue']); + } + + /** + * Add values for GetLowestPricedOffersForASINResult, return this. + * + * @param getLowestPricedOffersForASINResult + * New values to add. + * + * @return $this This instance. + */ + public function withGetLowestPricedOffersForASINResult() + { + foreach (func_get_args() as $GetLowestPricedOffersForASINResult) { + $this->_fields['GetLowestPricedOffersForASINResult']['FieldValue'][] = $GetLowestPricedOffersForASINResult; + } + return $this; + } + + /** + * Get the value of the ResponseMetadata property. + * + * @return MarketplaceWebServiceProducts_Model_ResponseMetadata ResponseMetadata. + */ + public function getResponseMetadata() + { + return $this->_fields['ResponseMetadata']['FieldValue']; + } + + /** + * Set the value of the ResponseMetadata property. + * + * @param MarketplaceWebServiceProducts_Model_ResponseMetadata $value responseMetadata + * @return $this This instance + */ + public function setResponseMetadata($value) + { + $this->_fields['ResponseMetadata']['FieldValue'] = $value; + return $this; + } + + /** + * Check to see if ResponseMetadata is set. + * + * @return true if ResponseMetadata is set. + */ + public function isSetResponseMetadata() + { + return !is_null($this->_fields['ResponseMetadata']['FieldValue']); + } + + /** + * Set the value of ResponseMetadata, return this. + * + * @param responseMetadata + * The new value to set. + * + * @return $this This instance. + */ + public function withResponseMetadata($value) + { + $this->setResponseMetadata($value); + return $this; + } + + /** + * Get the value of the ResponseHeaderMetadata property. + * + * @return MarketplaceWebServiceProducts_Model_ResponseHeaderMetadata ResponseHeaderMetadata. + */ + public function getResponseHeaderMetadata() + { + return $this->_fields['ResponseHeaderMetadata']['FieldValue']; + } + + /** + * Set the value of the ResponseHeaderMetadata property. + * + * @param MarketplaceWebServiceProducts_Model_ResponseHeaderMetadata $value responseHeaderMetadata + * @return $this This instance + */ + public function setResponseHeaderMetadata($value) + { + $this->_fields['ResponseHeaderMetadata']['FieldValue'] = $value; + return $this; + } + + /** + * Check to see if ResponseHeaderMetadata is set. + * + * @return true if ResponseHeaderMetadata is set. + */ + public function isSetResponseHeaderMetadata() + { + return !is_null($this->_fields['ResponseHeaderMetadata']['FieldValue']); + } + + /** + * Set the value of ResponseHeaderMetadata, return this. + * + * @param responseHeaderMetadata + * The new value to set. + * + * @return $this This instance. + */ + public function withResponseHeaderMetadata($value) + { + $this->setResponseHeaderMetadata($value); + return $this; + } + + /** + * Construct MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINResponse from XML string + * + * @param $xml + * XML string to construct from + * @return MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINResponse + * @throws Exception + */ + public static function fromXML($xml) + { + $dom = new DOMDocument(); + $dom->loadXML($xml); + $xpath = new DOMXPath($dom); + $response = $xpath->query("//*[local-name()='GetLowestPricedOffersForASINResponse']"); + if ($response->length == 1) { + return new MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINResponse(($response->item(0))); + } else { + throw new Exception ("Unable to construct MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINResponse from provided XML. + Make sure that GetLowestPricedOffersForASINResponse is a root element"); + } + } + + /** + * XML Representation for this object + * + * @return string XML for this object + */ + public function toXML() + { + $xml = ""; + $xml .= "<GetLowestPricedOffersForASINResponse xmlns=\"http://mws.amazonservices.com/schema/Products/2011-10-01\">"; + $xml .= $this->_toXMLFragment(); + $xml .= "</GetLowestPricedOffersForASINResponse>"; + return $xml; + } + +} diff --git a/src/MarketplaceWebServiceProducts/Model/GetLowestPricedOffersForASINResult.php b/src/MarketplaceWebServiceProducts/Model/GetLowestPricedOffersForASINResult.php new file mode 100644 index 0000000..3ea0541 --- /dev/null +++ b/src/MarketplaceWebServiceProducts/Model/GetLowestPricedOffersForASINResult.php @@ -0,0 +1,52 @@ +<?php +/******************************************************************************* + * Copyright 2009-2014 Amazon Services. All Rights Reserved. + * 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://aws.amazon.com/apache2.0 + * This file 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. + ******************************************************************************* + * PHP Version 5 + * @category Amazon + * @package Marketplace Web Service Products + * @version 2011-10-01 + * Library Version: 2014-10-20 + * Generated: Fri Oct 17 17:59:56 GMT 2014 + */ + +/** + * MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINResult + * + * Properties: + * <ul> + * + * <li>Identifier: MarketplaceWebServiceProducts_Model_ASINIdentifier</li> + * <li>Summary: MarketplaceWebServiceProducts_Model_Product</li> + * <li>Error: MarketplaceWebServiceProducts_Model_Error</li> + * <li>status: string</li> + * + * </ul> + */ +class MarketplaceWebServiceProducts_Model_GetLowestPricedOffersForASINResult extends MarketplaceWebServiceProducts_Model +{ + + public function __construct($data = null) + { + $this->_fields = array( + 'Identifier' => array( + 'FieldValue' => null, + 'FieldType' => 'MarketplaceWebServiceProducts_Model_ASINIdentifier' + ), + 'Summary' => array('FieldValue' => null, 'FieldType' => 'MarketplaceWebServiceProducts_Model_Summary'), + 'Offers' => array( + 'FieldValue' => null, + 'FieldType' => 'MarketplaceWebServiceProducts_Model_LowestPricedOffersList' + ), + 'status' => array('FieldValue' => null, 'FieldType' => '@string'), + ); + parent::__construct($data); + } +} diff --git a/src/MarketplaceWebServiceProducts/Model/LandedPrice.php b/src/MarketplaceWebServiceProducts/Model/LandedPrice.php new file mode 100644 index 0000000..16498c9 --- /dev/null +++ b/src/MarketplaceWebServiceProducts/Model/LandedPrice.php @@ -0,0 +1,41 @@ +<?php +/******************************************************************************* + * Copyright 2009-2014 Amazon Services. All Rights Reserved. + * 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://aws.amazon.com/apache2.0 + * This file 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. + ******************************************************************************* + * PHP Version 5 + * @category Amazon + * @package Marketplace Web Service Products + * @version 2011-10-01 + * Library Version: 2014-10-20 + * Generated: Fri Oct 17 17:59:56 GMT 2014 + */ + +/** + * MarketplaceWebServiceProducts_Model_LandedPrice + * + * Properties: + * <ul> + * + * <li>CurrencyCode: string</li> + * <li>Amount: string</li> + * + * </ul> + */ +class MarketplaceWebServiceProducts_Model_LandedPrice extends MarketplaceWebServiceProducts_Model +{ + public function __construct($data = null) + { + $this->_fields = array( + 'CurrencyCode' => array('FieldValue' => null, 'FieldType' => 'string'), + 'Amount' => array('FieldValue' => null, 'FieldType' => 'string'), + ); + parent::__construct($data); + } +} diff --git a/src/MarketplaceWebServiceProducts/Model/LowestPrice.php b/src/MarketplaceWebServiceProducts/Model/LowestPrice.php new file mode 100644 index 0000000..5ae5bfd --- /dev/null +++ b/src/MarketplaceWebServiceProducts/Model/LowestPrice.php @@ -0,0 +1,102 @@ +<?php +/******************************************************************************* + * Copyright 2009-2014 Amazon Services. All Rights Reserved. + * 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://aws.amazon.com/apache2.0 + * This file 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. + ******************************************************************************* + * PHP Version 5 + * @category Amazon + * @package Marketplace Web Service Products + * @version 2011-10-01 + * Library Version: 2014-10-20 + * Generated: Fri Oct 17 17:59:56 GMT 2014 + */ + +/** + * MarketplaceWebServiceProducts_Model_LowestPrice + * + * Properties: + * <ul> + * + * <li>LandedPrice: MarketplaceWebServiceProducts_Model_LandedPrice</li> + * <li>ListingPrice: MarketplaceWebServiceProducts_Model_LandedPrice</li> + * <li>Shipping: MarketplaceWebServiceProducts_Model_LandedPrice</li> + * <li>condition: string</li> + * <li>fulfillmentChannel: string</li> + * + * </ul> + */ +class MarketplaceWebServiceProducts_Model_LowestPrice extends MarketplaceWebServiceProducts_Model +{ + public function __construct($data = null) + { + $this->_fields = array( + 'LandedPrice' => array( + 'FieldValue' => null, + 'FieldType' => 'MarketplaceWebServiceProducts_Model_LandedPrice' + ), + 'ListingPrice' => array( + 'FieldValue' => null, + 'FieldType' => 'MarketplaceWebServiceProducts_Model_LandedPrice' + ), + 'Shipping' => array( + 'FieldValue' => null, + 'FieldType' => 'MarketplaceWebServiceProducts_Model_LandedPrice' + ), + 'condition' => array('FieldValue' => null, 'FieldType' => '@string'), + 'fulfillmentChannel' => array('FieldValue' => null, 'FieldType' => '@string'), + ); + parent::__construct($data); + } + + /** + * Get the value of the condition property. + * + * @return String condition. + */ + public function getcondition() + { + return $this->_fields['condition']['FieldValue']; + } + + /** + * Set the value of the condition property. + * + * @param string $value condition + * @return $this This instance + */ + public function setcondition($value) + { + $this->_fields['condition']['FieldValue'] = $value; + return $this; + } + + /** + * Check to see if condition is set. + * + * @return true if condition is set. + */ + public function isSetcondition() + { + return !is_null($this->_fields['condition']['FieldValue']); + } + + /** + * Set the value of condition, return this. + * + * @param condition + * The new value to set. + * + * @return $this This instance. + */ + public function withcondition($value) + { + $this->setcondition($value); + return $this; + } +} diff --git a/src/MarketplaceWebServiceProducts/Model/LowestPriceList.php b/src/MarketplaceWebServiceProducts/Model/LowestPriceList.php new file mode 100644 index 0000000..1603d19 --- /dev/null +++ b/src/MarketplaceWebServiceProducts/Model/LowestPriceList.php @@ -0,0 +1,42 @@ +<?php +/******************************************************************************* + * Copyright 2009-2014 Amazon Services. All Rights Reserved. + * 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://aws.amazon.com/apache2.0 + * This file 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. + ******************************************************************************* + * PHP Version 5 + * @category Amazon + * @package Marketplace Web Service Products + * @version 2011-10-01 + * Library Version: 2014-10-20 + * Generated: Fri Oct 17 17:59:56 GMT 2014 + */ + +/** + * MarketplaceWebServiceProducts_Model_LowestPriceList + * + * Properties: + * <ul> + * + * <li>OfferCount: MarketplaceWebServiceProducts_Model_LowestPrice</li> + * + * </ul> + */ +class MarketplaceWebServiceProducts_Model_LowestPriceList extends MarketplaceWebServiceProducts_Model +{ + public function __construct($data = null) + { + $this->_fields = array( + 'OfferCount' => array( + 'FieldValue' => array(), + 'FieldType' => array('MarketplaceWebServiceProducts_Model_OfferCount') + ), + ); + parent::__construct($data); + } +} diff --git a/src/MarketplaceWebServiceProducts/Model/LowestPricedOffer.php b/src/MarketplaceWebServiceProducts/Model/LowestPricedOffer.php new file mode 100644 index 0000000..ba54605 --- /dev/null +++ b/src/MarketplaceWebServiceProducts/Model/LowestPricedOffer.php @@ -0,0 +1,61 @@ +<?php +/******************************************************************************* + * Copyright 2009-2014 Amazon Services. All Rights Reserved. + * 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://aws.amazon.com/apache2.0 + * This file 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. + ******************************************************************************* + * PHP Version 5 + * @category Amazon + * @package Marketplace Web Service Products + * @version 2011-10-01 + * Library Version: 2014-10-20 + * Generated: Fri Oct 17 17:59:56 GMT 2014 + */ + +/** + * MarketplaceWebServiceProducts_Model_LowestPricedOffer + * + * Properties: + * <ul> + * + * <li>Offer: array</li> + * + * </ul> + */ +class MarketplaceWebServiceProducts_Model_LowestPricedOffer extends MarketplaceWebServiceProducts_Model +{ + public function __construct($data = null) + { + $this->_fields = array( + 'SubCondition' => array( + 'FieldValue' => array(), + 'FieldType' => array('string') + ), + 'SellerFeedbackRating' => array( + 'FieldValue' => array(), + 'FieldType' => array('MarketplaceWebServiceProducts_Model_SellerFeedbackRating') + ), + 'ListingPrice' => array( + 'FieldValue' => array(), + 'FieldType' => array('MarketplaceWebServiceProducts_Model_LandedPrice') + ), + 'Shipping' => array( + 'FieldValue' => array(), + 'FieldType' => array('MarketplaceWebServiceProducts_Model_LandedPrice') + ), + 'ShipsFrom' => array( + 'FieldValue' => array(), + 'FieldType' => array('MarketplaceWebServiceProducts_Model_ShipsFrom') + ), + 'IsFulfilledByAmazon' => array('FieldValue' => null, 'FieldType' => 'bool'), + 'IsBuyBoxWinner' => array('FieldValue' => null, 'FieldType' => 'bool'), + 'IsFeaturedMerchant' => array('FieldValue' => null, 'FieldType' => 'bool'), + ); + parent::__construct($data); + } +} diff --git a/src/MarketplaceWebServiceProducts/Model/LowestPricedOffersList.php b/src/MarketplaceWebServiceProducts/Model/LowestPricedOffersList.php new file mode 100644 index 0000000..470ecdc --- /dev/null +++ b/src/MarketplaceWebServiceProducts/Model/LowestPricedOffersList.php @@ -0,0 +1,43 @@ +<?php +/******************************************************************************* + * Copyright 2009-2014 Amazon Services. All Rights Reserved. + * 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://aws.amazon.com/apache2.0 + * This file 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. + ******************************************************************************* + * PHP Version 5 + * @category Amazon + * @package Marketplace Web Service Products + * @version 2011-10-01 + * Library Version: 2014-10-20 + * Generated: Fri Oct 17 17:59:56 GMT 2014 + */ + +/** + * MarketplaceWebServiceProducts_Model_LowestPricedOffersList + * + * Properties: + * <ul> + * + * <li>Offer: array</li> + * + * </ul> + */ +class MarketplaceWebServiceProducts_Model_LowestPricedOffersList extends MarketplaceWebServiceProducts_Model +{ + + public function __construct($data = null) + { + $this->_fields = array( + 'Offer' => array( + 'FieldValue' => array(), + 'FieldType' => array('MarketplaceWebServiceProducts_Model_LowestPricedOffer') + ), + ); + parent::__construct($data); + } +} diff --git a/src/MarketplaceWebServiceProducts/Model/OfferCount.php b/src/MarketplaceWebServiceProducts/Model/OfferCount.php new file mode 100644 index 0000000..99b7c3d --- /dev/null +++ b/src/MarketplaceWebServiceProducts/Model/OfferCount.php @@ -0,0 +1,89 @@ +<?php +/******************************************************************************* + * Copyright 2009-2014 Amazon Services. All Rights Reserved. + * 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://aws.amazon.com/apache2.0 + * This file 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. + ******************************************************************************* + * PHP Version 5 + * @category Amazon + * @package Marketplace Web Service Products + * @version 2011-10-01 + * Library Version: 2014-10-20 + * Generated: Fri Oct 17 17:59:56 GMT 2014 + */ + +/** + * MarketplaceWebServiceProducts_Model_OfferCount + * + * Properties: + * <ul> + * + * <li>Value: int</li> + * <li>condition: string</li> + * <li>fulfillmentChannel: string</li> + * + * </ul> + */ +class MarketplaceWebServiceProducts_Model_OfferCount extends MarketplaceWebServiceProducts_Model +{ + public function __construct($data = null) + { + $this->_fields = array( + 'Value' => array('FieldValue' => null, 'FieldType' => 'int'), + 'condition' => array('FieldValue' => null, 'FieldType' => '@string'), + 'fulfillmentChannel' => array('FieldValue' => null, 'FieldType' => '@string'), + ); + parent::__construct($data); + } + + /** + * Get the value of the condition property. + * + * @return String condition. + */ + public function getcondition() + { + return $this->_fields['condition']['FieldValue']; + } + + /** + * Set the value of the condition property. + * + * @param string $value condition + * @return $this This instance + */ + public function setcondition($value) + { + $this->_fields['condition']['FieldValue'] = $value; + return $this; + } + + /** + * Check to see if condition is set. + * + * @return true if condition is set. + */ + public function isSetcondition() + { + return !is_null($this->_fields['condition']['FieldValue']); + } + + /** + * Set the value of condition, return this. + * + * @param condition + * The new value to set. + * + * @return $this This instance. + */ + public function withcondition($value) + { + $this->setcondition($value); + return $this; + } +} diff --git a/src/MarketplaceWebServiceProducts/Model/OfferCountList.php b/src/MarketplaceWebServiceProducts/Model/OfferCountList.php new file mode 100644 index 0000000..8b785ee --- /dev/null +++ b/src/MarketplaceWebServiceProducts/Model/OfferCountList.php @@ -0,0 +1,42 @@ +<?php +/******************************************************************************* + * Copyright 2009-2014 Amazon Services. All Rights Reserved. + * 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://aws.amazon.com/apache2.0 + * This file 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. + ******************************************************************************* + * PHP Version 5 + * @category Amazon + * @package Marketplace Web Service Products + * @version 2011-10-01 + * Library Version: 2014-10-20 + * Generated: Fri Oct 17 17:59:56 GMT 2014 + */ + +/** + * MarketplaceWebServiceProducts_Model_OfferCountList + * + * Properties: + * <ul> + * + * <li>OfferCount: MarketplaceWebServiceProducts_Model_OfferCount</li> + * + * </ul> + */ +class MarketplaceWebServiceProducts_Model_OfferCountList extends MarketplaceWebServiceProducts_Model +{ + public function __construct($data = null) + { + $this->_fields = array( + 'OfferCount' => array( + 'FieldValue' => array(), + 'FieldType' => array('MarketplaceWebServiceProducts_Model_OfferCount') + ), + ); + parent::__construct($data); + } +} diff --git a/src/MarketplaceWebServiceProducts/Model/SellerFeedbackRating.php b/src/MarketplaceWebServiceProducts/Model/SellerFeedbackRating.php new file mode 100644 index 0000000..0995c28 --- /dev/null +++ b/src/MarketplaceWebServiceProducts/Model/SellerFeedbackRating.php @@ -0,0 +1,89 @@ +<?php +/******************************************************************************* + * Copyright 2009-2014 Amazon Services. All Rights Reserved. + * 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://aws.amazon.com/apache2.0 + * This file 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. + ******************************************************************************* + * PHP Version 5 + * @category Amazon + * @package Marketplace Web Service Products + * @version 2011-10-01 + * Library Version: 2014-10-20 + * Generated: Fri Oct 17 17:59:56 GMT 2014 + */ + +/** + * MarketplaceWebServiceProducts_Model_SellerFeedbackRating + * + * Properties: + * <ul> + * + * <li>LandedPrice: MarketplaceWebServiceProducts_Model_LandedPrice</li> + * <li>ListingPrice: MarketplaceWebServiceProducts_Model_LandedPrice</li> + * <li>Shipping: MarketplaceWebServiceProducts_Model_LandedPrice</li> + * <li>condition: string</li> + * + * </ul> + */ +class MarketplaceWebServiceProducts_Model_SellerFeedbackRating extends MarketplaceWebServiceProducts_Model +{ + public function __construct($data = null) + { + $this->_fields = array( + 'SellerPositiveFeedbackRating' => array('FieldValue' => null, 'FieldType' => 'string'), + 'FeedbackCount' => array('FieldValue' => null, 'FieldType' => 'string'), + ); + parent::__construct($data); + } + + /** + * Get the value of the condition property. + * + * @return String condition. + */ + public function getcondition() + { + return $this->_fields['condition']['FieldValue']; + } + + /** + * Set the value of the condition property. + * + * @param string $value condition + * @return $this This instance + */ + public function setcondition($value) + { + $this->_fields['condition']['FieldValue'] = $value; + return $this; + } + + /** + * Check to see if condition is set. + * + * @return true if condition is set. + */ + public function isSetcondition() + { + return !is_null($this->_fields['condition']['FieldValue']); + } + + /** + * Set the value of condition, return this. + * + * @param condition + * The new value to set. + * + * @return $this This instance. + */ + public function withcondition($value) + { + $this->setcondition($value); + return $this; + } +} diff --git a/src/MarketplaceWebServiceProducts/Model/ShipsFrom.php b/src/MarketplaceWebServiceProducts/Model/ShipsFrom.php new file mode 100644 index 0000000..f9c45d7 --- /dev/null +++ b/src/MarketplaceWebServiceProducts/Model/ShipsFrom.php @@ -0,0 +1,94 @@ +<?php +/******************************************************************************* + * Copyright 2009-2014 Amazon Services. All Rights Reserved. + * 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://aws.amazon.com/apache2.0 + * This file 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. + ******************************************************************************* + * PHP Version 5 + * @category Amazon + * @package Marketplace Web Service Products + * @version 2011-10-01 + * Library Version: 2014-10-20 + * Generated: Fri Oct 17 17:59:56 GMT 2014 + */ + +/** + * MarketplaceWebServiceProducts_Model_ShipsFrom + * + * Properties: + * <ul> + * + * <li>State: string</li> + * <li>Country: string</li> + * <li>fulfillmentChannel: string</li> + * + * </ul> + */ +class MarketplaceWebServiceProducts_Model_ShipsFrom extends MarketplaceWebServiceProducts_Model +{ + public function __construct($data = null) + { + $this->_fields = array( + 'State' => array( + 'FieldValue' => null, + 'FieldType' => 'string' + ), + 'Country' => array( + 'FieldValue' => null, + 'FieldType' => 'string' + ), + ); + parent::__construct($data); + } + + /** + * Get the value of the condition property. + * + * @return String condition. + */ + public function getcondition() + { + return $this->_fields['condition']['FieldValue']; + } + + /** + * Set the value of the condition property. + * + * @param string $value condition + * @return $this This instance + */ + public function setcondition($value) + { + $this->_fields['condition']['FieldValue'] = $value; + return $this; + } + + /** + * Check to see if condition is set. + * + * @return true if condition is set. + */ + public function isSetcondition() + { + return !is_null($this->_fields['condition']['FieldValue']); + } + + /** + * Set the value of condition, return this. + * + * @param condition + * The new value to set. + * + * @return $this This instance. + */ + public function withcondition($value) + { + $this->setcondition($value); + return $this; + } +} diff --git a/src/MarketplaceWebServiceProducts/Model/Summary.php b/src/MarketplaceWebServiceProducts/Model/Summary.php new file mode 100644 index 0000000..f66a8df --- /dev/null +++ b/src/MarketplaceWebServiceProducts/Model/Summary.php @@ -0,0 +1,62 @@ +<?php +/******************************************************************************* + * Copyright 2009-2014 Amazon Services. All Rights Reserved. + * 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://aws.amazon.com/apache2.0 + * This file 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. + ******************************************************************************* + * PHP Version 5 + * @category Amazon + * @package Marketplace Web Service Products + * @version 2011-10-01 + * Library Version: 2014-10-20 + * Generated: Fri Oct 17 17:59:56 GMT 2014 + */ + +/** + * MarketplaceWebServiceProducts_Model_Summary + * + * Properties: + * <ul> + * + * <li>TotalOfferCount: string</li> + * <li>NumberOfOffers: MarketplaceWebServiceProducts_Model_OfferCountList</li> + * <li>LowestPrices: MarketplaceWebServiceProducts_Model_LowestPriceList</li> + * <li>BuyBoxPrices: MarketplaceWebServiceProducts_Model_OfferCountList</li> + * + * </ul> + */ +class MarketplaceWebServiceProducts_Model_Summary extends MarketplaceWebServiceProducts_Model +{ + public function __construct($data = null) + { + $this->_fields = array( + 'TotalOfferCount' => array('FieldValue' => null, 'FieldType' => 'int'), + 'NumberOfOffers' => array( + 'FieldValue' => null, + 'FieldType' => 'MarketplaceWebServiceProducts_Model_OfferCountList' + ), + 'LowestPrices' => array( + 'FieldValue' => null, + 'FieldType' => 'MarketplaceWebServiceProducts_Model_LowestPriceList' + ), + 'BuyBoxPrices' => array( + 'FieldValue' => null, + 'FieldType' => 'MarketplaceWebServiceProducts_Model_BuyBoxPriceList' + ), + 'ListPrice' => array( + 'FieldValue' => null, + 'FieldType' => 'MarketplaceWebServiceProducts_Model_LandedPrice' + ), + 'BuyBoxEligibleOffers' => array( + 'FieldValue' => null, + 'FieldType' => 'MarketplaceWebServiceProducts_Model_OfferCountList' + ), + ); + parent::__construct($data); + } +}