Exemplo n.º 1
0
 /**
  * List Orders
  * ListOrders can be used to find orders that meet the specified criteria.
  *
  * @param mixed $request array of parameters for MarketplaceWebServiceOrders_Models_ListOrders request or MarketplaceWebServiceOrders_Models_ListOrders object itself
  * @see MarketplaceWebServiceOrders_Models_ListOrders
  * @return MarketplaceWebServiceOrders_Models_ListOrdersResponse
  *
  * @throws MarketplaceWebServiceOrders_Exception
  */
 public function listOrders($request)
 {
     return ListOrdersResponse::fromXML($this->_invoke('ListOrders'));
 }
Exemplo n.º 2
0
 /**
  * List Orders
  * ListOrders can be used to find orders that meet the specified criteria.
  *
  * @param mixed $request array of parameters for MarketplaceWebServiceOrders_Models_ListOrders request or MarketplaceWebServiceOrders_Models_ListOrders object itself
  * @see MarketplaceWebServiceOrders_Models_ListOrdersRequest
  * @return MarketplaceWebServiceOrders_Models_ListOrdersResponse
  *
  * @throws MarketplaceWebServiceOrders_Exception
  */
 public function listOrders(ListOrdersRequest $request)
 {
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'ListOrders';
     $httpResponse = $this->_invoke($parameters);
     $orders = simplexml_load_string($httpResponse['ResponseBody']);
     return ['body' => $orders, 'httpCode' => $httpResponse['Status']];
     $response = ListOrdersResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }