/** * Create Inbound Shipment * Creates an inbound shipment. It may include up to 200 items. * The initial status of a shipment will be set to 'Working'. * This operation will simply return a shipment Id upon success, * otherwise an explicit error will be returned. * More items may be added using the Update call. * * @param mixed $request array of parameters for FBAInboundServiceMWS_Model_CreateInboundShipment request or FBAInboundServiceMWS_Model_CreateInboundShipment object itself * @see FBAInboundServiceMWS_Model_CreateInboundShipmentRequest * @return FBAInboundServiceMWS_Model_CreateInboundShipmentResponse * * @throws FBAInboundServiceMWS_Exception */ public function createInboundShipment($request) { if (!$request instanceof FBAInboundServiceMWS_Model_CreateInboundShipmentRequest) { $request = new FBAInboundServiceMWS_Model_CreateInboundShipmentRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'CreateInboundShipment'; $httpResponse = $this->_invoke($parameters); $response = FBAInboundServiceMWS_Model_CreateInboundShipmentResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }
/** * Create Inbound Shipment * Creates an inbound shipment. It may include up to 200 items. * The initial status of a shipment will be set to 'Working'. * This operation will simply return a shipment Id upon success, * otherwise an explicit error will be returned. * More items may be added using the Update call. * * @param mixed $request array of parameters for FBAInboundServiceMWS_Model_CreateInboundShipment request or FBAInboundServiceMWS_Model_CreateInboundShipment object itself * @see FBAInboundServiceMWS_Model_CreateInboundShipment * @return FBAInboundServiceMWS_Model_CreateInboundShipmentResponse * * @throws FbaInbound_Exception */ public function createInboundShipment($request) { //require_once (dirname(__FILE__) . '/Model/CreateInboundShipmentResponse.php'); return FBAInboundServiceMWS_Model_CreateInboundShipmentResponse::fromXML($this->_invoke('CreateInboundShipment')); }
/** * Create Inbound Shipment * Creates an inbound shipment. It may include up to 200 items. * The initial status of a shipment will be set to 'Working'. * This operation will simply return a shipment Id upon success, * otherwise an explicit error will be returned. * More items may be added using the Update call. * * @param mixed $request array of parameters for FBAInboundServiceMWS_Model_CreateInboundShipment request or FBAInboundServiceMWS_Model_CreateInboundShipment object itself * @see FBAInboundServiceMWS_Model_CreateInboundShipment * @return FBAInboundServiceMWS_Model_CreateInboundShipmentResponse * * @throws FBAInboundServiceMWS_Exception */ public function createInboundShipment($request) { return FBAInboundServiceMWS_Model_CreateInboundShipmentResponse::fromXML($this->_invoke('CreateInboundShipment')); }