/** * Get Preorder Info * Given a shipment id. as input, based on the release date of the items in the * shipment, this API returns the suggested need By Date that the shipment items * must reach Amazon FC to successfully fulfill Pre-Orders without any promise * breaks. * This API also returns the confirmed Fullfillable date. All items in the * shipment that have a release date on or after this date would have the * pre-order buy box show up on the detail page if this shipment is marked as a * pre-orderable. * * @param mixed $request array of parameters for FBAInboundServiceMWS_Model_GetPreorderInfo request or FBAInboundServiceMWS_Model_GetPreorderInfo object itself * @see FBAInboundServiceMWS_Model_GetPreorderInfo * @return FBAInboundServiceMWS_Model_GetPreorderInfoResponse * * @throws FBAInboundServiceMWS_Exception */ public function getPreorderInfo($request) { require_once dirname(__FILE__) . '/Model/GetPreorderInfoResponse.php'; return FBAInboundServiceMWS_Model_GetPreorderInfoResponse::fromXML($this->_invoke('GetPreorderInfo')); }
/** * Get Preorder Info * Given a shipment id. as input, based on the release date of the items in the * shipment, this API returns the suggested need By Date that the shipment items * must reach Amazon FC to successfully fulfill Pre-Orders without any promise * breaks. * This API also returns the confirmed Fullfillable date. All items in the * shipment that have a release date on or after this date would have the * pre-order buy box show up on the detail page if this shipment is marked as a * pre-orderable. * * @param mixed $request array of parameters for FBAInboundServiceMWS_Model_GetPreorderInfo request or FBAInboundServiceMWS_Model_GetPreorderInfo object itself * @see FBAInboundServiceMWS_Model_GetPreorderInfoRequest * @return FBAInboundServiceMWS_Model_GetPreorderInfoResponse * * @throws FBAInboundServiceMWS_Exception */ public function getPreorderInfo($request) { if (!$request instanceof FBAInboundServiceMWS_Model_GetPreorderInfoRequest) { require_once dirname(__FILE__) . '/Model/GetPreorderInfoRequest.php'; $request = new FBAInboundServiceMWS_Model_GetPreorderInfoRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'GetPreorderInfo'; $httpResponse = $this->_invoke($parameters); require_once dirname(__FILE__) . '/Model/GetPreorderInfoResponse.php'; $response = FBAInboundServiceMWS_Model_GetPreorderInfoResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }