Exemplo n.º 1
0
 /**
  * List Financial Events
  * ListFinancialEvents can be used to find financial events that meet the specified criteria.
  *
  * @param mixed $request array of parameters for MWSFinancesService_Model_ListFinancialEvents request or MWSFinancesService_Model_ListFinancialEvents object itself
  * @see MWSFinancesService_Model_ListFinancialEvents
  * @return MWSFinancesService_Model_ListFinancialEventsResponse
  *
  * @throws Finances_Exception
  */
 public function listFinancialEvents($request)
 {
     //require_once (dirname(__FILE__) . '/Model/ListFinancialEventsResponse.php');
     return MWSFinancesService_Model_ListFinancialEventsResponse::fromXML($this->_invoke('ListFinancialEvents'));
 }
Exemplo n.º 2
0
 /**
  * List Financial Events
  * ListFinancialEvents can be used to find financial events that meet the specified criteria.
  *
  * @param mixed $request array of parameters for MWSFinancesService_Model_ListFinancialEvents request or MWSFinancesService_Model_ListFinancialEvents object itself
  * @see MWSFinancesService_Model_ListFinancialEventsRequest
  * @return MWSFinancesService_Model_ListFinancialEventsResponse
  *
  * @throws MWSFinancesService_Exception
  */
 public function listFinancialEvents($request)
 {
     if (!$request instanceof MWSFinancesService_Model_ListFinancialEventsRequest) {
         require_once dirname(__FILE__) . '/Model/ListFinancialEventsRequest.php';
         $request = new MWSFinancesService_Model_ListFinancialEventsRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'ListFinancialEvents';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/ListFinancialEventsResponse.php';
     $response = MWSFinancesService_Model_ListFinancialEventsResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }