/** * Confirm Preorder * Given a shipment id. and date as input, this API confirms a shipment as a * pre-order. * This date must be the same as the NeedByDate (NBD) that is returned in the * GetPreorderInfo API. Any other date will result in an appropriate error code. * All items in the shipment with a release date on or after the * ConfirmedFulfillableDate ( also returned by the GetPreorderInfo API) would * be pre-orderable on the website and would be fulfilled without promise breaks, * if the NBD is met. * * @param mixed $request array of parameters for FBAInboundServiceMWS_Model_ConfirmPreorder request or FBAInboundServiceMWS_Model_ConfirmPreorder object itself * @see FBAInboundServiceMWS_Model_ConfirmPreorderRequest * @return FBAInboundServiceMWS_Model_ConfirmPreorderResponse * * @throws FBAInboundServiceMWS_Exception */ public function confirmPreorder($request) { if (!$request instanceof FBAInboundServiceMWS_Model_ConfirmPreorderRequest) { require_once dirname(__FILE__) . '/Model/ConfirmPreorderRequest.php'; $request = new FBAInboundServiceMWS_Model_ConfirmPreorderRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'ConfirmPreorder'; $httpResponse = $this->_invoke($parameters); require_once dirname(__FILE__) . '/Model/ConfirmPreorderResponse.php'; $response = FBAInboundServiceMWS_Model_ConfirmPreorderResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }
/** * Confirm Preorder * Given a shipment id. and date as input, this API confirms a shipment as a * pre-order. * This date must be the same as the NeedByDate (NBD) that is returned in the * GetPreorderInfo API. Any other date will result in an appropriate error code. * All items in the shipment with a release date on or after the * ConfirmedFulfillableDate ( also returned by the GetPreorderInfo API) would * be pre-orderable on the website and would be fulfilled without promise breaks, * if the NBD is met. * * @param mixed $request array of parameters for FBAInboundServiceMWS_Model_ConfirmPreorder request or FBAInboundServiceMWS_Model_ConfirmPreorder object itself * @see FBAInboundServiceMWS_Model_ConfirmPreorder * @return FBAInboundServiceMWS_Model_ConfirmPreorderResponse * * @throws FBAInboundServiceMWS_Exception */ public function confirmPreorder($request) { require_once dirname(__FILE__) . '/Model/ConfirmPreorderResponse.php'; return FBAInboundServiceMWS_Model_ConfirmPreorderResponse::fromXML($this->_invoke('ConfirmPreorder')); }