/**
  * Perform the capture call for the order
  * Throw an exception if the capture is not processed, as this is the
  * expected result
  *
  * @param float $captureAmount
  *            amount to capture from the buyer
  * @param string $amazonAuthorizationId
  *            auth id to perform the capture on
  *            
  * @return no response
  */
 private function _captureOrderAmount($captureAmount, $amazonAuthorizationId)
 {
     $response = $this->callStepAndCheckForException('captureOrderAmount', array($captureAmount, $amazonAuthorizationId));
     validateThatCaptureIsCompleted($response->getCaptureResult());
     printCaptureResponse($response);
 }
 /**
  * Perform the capture for a single shipment
  *
  * @param int    $shipmentNumber        order item index to capture
  * @param string $amazonAuthorizationId authorization to capture
  *
  */
 private function _performCaptureForShipment($shipmentNumber, $amazonAuthorizationId)
 {
     $response = $this->callStepAndCheckForException('performCaptureForShipment', array($shipmentNumber, $amazonAuthorizationId));
     validateThatCaptureIsCompleted($response->getCaptureResult());
     printCaptureResponse($response);
 }
 /**
  * Perform the capture call for the order
  * Throw an exception if the capture is not processed, as this is the
  * expected result
  *
  * @param float  $captureAmount         amount to capture from the buyer
  * @param string $amazonAuthorizationId auth id to perform the capture on
  *
  * @return no response
  */
 private function _captureOrderAmount($captureAmount, $amazonAuthorizationId)
 {
     $providerCreditInfo = $this->_getProviderIdAndCreditAmountFromStdIn();
     $response = $this->callStepAndCheckForException('captureOrderAmount', array($captureAmount, $amazonAuthorizationId, $providerCreditInfo));
     validateThatCaptureIsCompleted($response->getCaptureResult());
     printCaptureResponse($response);
     return $response->getCaptureResult()->getCaptureDetails()->getAmazonCaptureId();
 }