Example #1
0
 /**
  * Inventory Update
  *
  * @param ProductCollection $products
  *
  * @return Response
  */
 public function inventoryUpdate(ProductCollection $products)
 {
     $endpoint = $this->configuration->getEndpoint(Configuration::ENDPOINT_INVENTORY);
     $request = new Request($endpoint, $products, $this->configuration, $this->getLogger());
     $response = new Response();
     $response->mergeData($products, $request->send());
     return $response;
 }
 /**
  * Expected data for Response
  *
  * @param  \Mobly\Buscape\Sdk\Collection\ProductCollection $collection
  * @param  integer $chunk
  * @return \Mobly\Buscape\Sdk\Collection\ProductCollection
  **/
 public function getResponseExpected(ProductCollection $collection, $chunk)
 {
     $response = new Response();
     $response->mergeData($collection, $this->getRequestExpected($collection, $chunk));
     return $response;
 }