/** * Get Fulfillment Order * Get detailed information about a FulfillmentOrder. This includes the * original fulfillment order request, the status of the order and its * items in Amazon's fulfillment network, and the shipments that have been * generated to fulfill the order. * * @param mixed $request array of parameters for MwsFbaOutboundServiceModel_GetFulfillmentOrder request or MwsFbaOutboundServiceModel_GetFulfillmentOrder object itself * @see MwsFbaOutboundServiceModel_GetFulfillmentOrderRequest * @return MwsFbaOutboundServiceModel_GetFulfillmentOrderResponse * * @throws FbaOutbound_Exception */ public function getFulfillmentOrder($request) { if (!$request instanceof Model\MwsFbaOutboundServiceModel_GetFulfillmentOrderRequest) { //require_once (dirname(__FILE__) . '/Model/GetFulfillmentOrderRequest.php'); $request = new MwsFbaOutboundServiceModel_GetFulfillmentOrderRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'GetFulfillmentOrder'; $httpResponse = $this->_invoke($parameters); //require_once (dirname(__FILE__) . '/Model/GetFulfillmentOrderResponse.php'); $response = Model\MwsFbaOutboundServiceModel_GetFulfillmentOrderResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }
* Uncomment to try out Mock Service that simulates FBAOutboundServiceMWS * responses without calling FBAOutboundServiceMWS service. * * Responses are loaded from local XML files. You can tweak XML files to * experiment with various outputs during development * * XML files available under FBAOutboundServiceMWS/Mock tree * ***********************************************************************/ // $service = new FBAOutboundServiceMWS_Mock(); /************************************************************************ * Setup request parameters and uncomment invoke to try out * sample for Get Fulfillment Order Action ***********************************************************************/ // @TODO: set request. Action can be passed as MwsFbaOutboundServiceModel_GetFulfillmentOrder $request = new MwsFbaOutboundServiceModel_GetFulfillmentOrderRequest(); $request->setSellerId(MERCHANT_ID); // object or array of parameters invokeGetFulfillmentOrder($service, $request); /** * Get Get Fulfillment Order Action Sample * Gets competitive pricing and related information for a product identified by * the MarketplaceId and ASIN. * * @param FBAOutboundServiceMWS_Interface $service instance of FBAOutboundServiceMWS_Interface * @param mixed $request MwsFbaOutboundServiceModel_GetFulfillmentOrder or array of parameters */ function invokeGetFulfillmentOrder(FBAOutboundServiceMWS_Interface $service, $request) { try { $response = $service->GetFulfillmentOrder($request);