Example #1
0
 /**
  * Get Carts
  * Returns cart information for
  *         one or more customers, given a seller-directed customer ID.
  *         There is a maximum number of customer IDs supported per request.
  *         See service documentation for that limit.
  *
  * @param mixed $request array of parameters for MWSCartService_Model_GetCarts request or MWSCartService_Model_GetCarts object itself
  * @see MWSCartService_Model_GetCartsRequest
  * @return MWSCartService_Model_GetCartsResponse
  *
  * @throws MWSCartService_Exception
  */
 public function getCarts($request)
 {
     if (!$request instanceof MWSCartService_Model_GetCartsRequest) {
         require_once dirname(__FILE__) . '/Model/GetCartsRequest.php';
         $request = new MWSCartService_Model_GetCartsRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'GetCarts';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/GetCartsResponse.php';
     $response = MWSCartService_Model_GetCartsResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
Example #2
0
 /**
  * Get Carts
  * Returns cart information for
  *         one or more customers, given a seller-directed customer ID.
  *         There is a maximum number of customer IDs supported per request.
  *         See service documentation for that limit.
  *
  * @param mixed $request array of parameters for MWSCartService_Model_GetCarts request or MWSCartService_Model_GetCarts object itself
  * @see MWSCartService_Model_GetCarts
  * @return MWSCartService_Model_GetCartsResponse
  *
  * @throws MWSCartService_Exception
  */
 public function getCarts($request)
 {
     require_once dirname(__FILE__) . '/Model/GetCartsResponse.php';
     return MWSCartService_Model_GetCartsResponse::fromXML($this->_invoke('GetCarts'));
 }