Ejemplo n.º 1
0
 /**
  * Settle 
  * 
  * The Settle API is used in conjunction with the Reserve API and is used to settle previously reserved transaction.
  * 
  * @see http://docs.amazonwebservices.com/${docPath}Settle.html
  * @param mixed $request array of parameters for Amazon_FPS_Model_SettleRequest request
  * or Amazon_FPS_Model_SettleRequest object itself
  * @see Amazon_FPS_Model_Settle
  * @return Amazon_FPS_Model_SettleResponse Amazon_FPS_Model_SettleResponse
  *
  * @throws Amazon_FPS_Exception
  */
 public function settle($request)
 {
     if (!$request instanceof Amazon_FPS_Model_SettleRequest) {
         //require_once('Amazon/FPS/Model/SettleRequest.php');
         $request = new Amazon_FPS_Model_SettleRequest($request);
     }
     //require_once('Amazon/FPS/Model/SettleResponse.php');
     return Amazon_FPS_Model_SettleResponse::fromXML($this->_invoke($this->_convertSettle($request)));
 }
Ejemplo n.º 2
0
 /**
  * Settle 
  * 
  * The Settle API is used in conjunction with the Reserve API and is used to settle previously reserved transaction.
  *   
  * @see http://docs.amazonwebservices.com/${docPath}Settle.html      
  * @param mixed $request array of parameters for Amazon_FPS_Model_Settle request or Amazon_FPS_Model_Settle object itself
  * @see Amazon_FPS_Model_Settle
  * @return Amazon_FPS_Model_SettleResponse Amazon_FPS_Model_SettleResponse
  *
  * @throws Amazon_FPS_Exception
  */
 public function settle($request)
 {
     require_once 'Amazon/FPS/Model/SettleResponse.php';
     return Amazon_FPS_Model_SettleResponse::fromXML($this->_invoke('Settle'));
 }