Esempio n. 1
0
 /**
  * List Carts
  * Returns a list of customer records based on the criteria in the
  *         request. In the case there are more cart results than can be returned
  *         in a single response, a next token is provided which can be used
  *         to obtain more results via ListCartsByNextToken.
  *
  * @param mixed $request array of parameters for MWSCartService_Model_ListCarts request or MWSCartService_Model_ListCarts object itself
  * @see MWSCartService_Model_ListCartsRequest
  * @return MWSCartService_Model_ListCartsResponse
  *
  * @throws MWSCartService_Exception
  */
 public function listCarts($request)
 {
     if (!$request instanceof MWSCartService_Model_ListCartsRequest) {
         require_once dirname(__FILE__) . '/Model/ListCartsRequest.php';
         $request = new MWSCartService_Model_ListCartsRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'ListCarts';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/ListCartsResponse.php';
     $response = MWSCartService_Model_ListCartsResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
Esempio n. 2
0
 /**
  * List Carts
  * Returns a list of customer records based on the criteria in the
  *         request. In the case there are more cart results than can be returned
  *         in a single response, a next token is provided which can be used
  *         to obtain more results via ListCartsByNextToken.
  *
  * @param mixed $request array of parameters for MWSCartService_Model_ListCarts request or MWSCartService_Model_ListCarts object itself
  * @see MWSCartService_Model_ListCarts
  * @return MWSCartService_Model_ListCartsResponse
  *
  * @throws MWSCartService_Exception
  */
 public function listCarts($request)
 {
     require_once dirname(__FILE__) . '/Model/ListCartsResponse.php';
     return MWSCartService_Model_ListCartsResponse::fromXML($this->_invoke('ListCarts'));
 }