示例#1
0
文件: Client.php 项目: stephlanj/mws
 /**
  * Confirm Transport Request
  * Confirms the estimate returned by the EstimateTransportRequest operation.
  *     Once this operation has been called successfully, the seller agrees to allow Amazon to charge
  *     their account the amount returned in the estimate.
  *
  * @param mixed $request array of parameters for FBAInboundServiceMWS_Model_ConfirmTransportRequest request or FBAInboundServiceMWS_Model_ConfirmTransportRequest object itself
  * @see FBAInboundServiceMWS_Model_ConfirmTransportInputRequest
  * @return FBAInboundServiceMWS_Model_ConfirmTransportRequestResponse
  *
  * @throws FBAInboundServiceMWS_Exception
  */
 public function confirmTransportRequest($request)
 {
     if (!$request instanceof FBAInboundServiceMWS_Model_ConfirmTransportInputRequest) {
         $request = new FBAInboundServiceMWS_Model_ConfirmTransportInputRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'ConfirmTransportRequest';
     $httpResponse = $this->_invoke($parameters);
     $response = FBAInboundServiceMWS_Model_ConfirmTransportRequestResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }