/** * List Inbound Shipment Items * Gets the first set of inbound shipment items for the given ShipmentId or * all inbound shipment items updated between the given date range. * A NextToken is also returned to further iterate through the Seller's * remaining inbound shipment items. To get the next set of inbound * shipment items, you must call ListInboundShipmentItemsByNextToken and * pass in the 'NextToken' this call returned. If a NextToken is not * returned, it indicates the end-of-data. Use LastUpdatedBefore * and LastUpdatedAfter to filter results based on last updated time. * Either the ShipmentId or a pair of LastUpdatedBefore and LastUpdatedAfter * must be passed in. if ShipmentId is set, the LastUpdatedBefore and * LastUpdatedAfter will be ignored. * * @param mixed $request array of parameters for FBAInboundServiceMWS_Model_ListInboundShipmentItems request or FBAInboundServiceMWS_Model_ListInboundShipmentItems object itself * @see FBAInboundServiceMWS_Model_ListInboundShipmentItemsRequest * @return FBAInboundServiceMWS_Model_ListInboundShipmentItemsResponse * * @throws FbaInbound_Exception */ public function listInboundShipmentItems($request) { if (!$request instanceof Model\FBAInboundServiceMWS_Model_ListInboundShipmentItemsRequest) { //require_once (dirname(__FILE__) . '/Model/ListInboundShipmentItemsRequest.php'); $request = new FBAInboundServiceMWS_Model_ListInboundShipmentItemsRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'ListInboundShipmentItems'; $httpResponse = $this->_invoke($parameters); //require_once (dirname(__FILE__) . '/Model/ListInboundShipmentItemsResponse.php'); $response = Model\FBAInboundServiceMWS_Model_ListInboundShipmentItemsResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }
* Uncomment to try out Mock Service that simulates FBAInboundServiceMWS * responses without calling FBAInboundServiceMWS service. * * Responses are loaded from local XML files. You can tweak XML files to * experiment with various outputs during development * * XML files available under FBAInboundServiceMWS/Mock tree * ***********************************************************************/ // $service = new FBAInboundServiceMWS_Mock(); /************************************************************************ * Setup request parameters and uncomment invoke to try out * sample for List Inbound Shipment Items Action ***********************************************************************/ // @TODO: set request. Action can be passed as FBAInboundServiceMWS_Model_ListInboundShipmentItems $request = new FBAInboundServiceMWS_Model_ListInboundShipmentItemsRequest(); $request->setSellerId(MERCHANT_ID); // object or array of parameters invokeListInboundShipmentItems($service, $request); /** * Get List Inbound Shipment Items Action Sample * Gets competitive pricing and related information for a product identified by * the MarketplaceId and ASIN. * * @param FBAInboundServiceMWS_Interface $service instance of FBAInboundServiceMWS_Interface * @param mixed $request FBAInboundServiceMWS_Model_ListInboundShipmentItems or array of parameters */ function invokeListInboundShipmentItems(FBAInboundServiceMWS_Interface $service, $request) { try { $response = $service->ListInboundShipmentItems($request);