_invoke('CancelFulfillmentOrder')); } /** * Create Fulfillment Order * The SellerFulfillmentOrderId must be unique for all fulfillment * orders created by the seller. If your system already has a * unique order identifier, then that may be a good value to put in * this field. * * This DisplayableOrderDateTime will appear as the "order date" in * recipient-facing materials such as the packing slip. The format * must be timestamp. * * * The DisplayableOrderId will appear as the "order id" in those * materials, and the DisplayableOrderComment will appear as well. * * ShippingSpeedCategory is the Service Level Agreement for how long it * will take a shipment to be transported from the fulfillment center * to the recipient, once shipped. no default. * The following shipping speeds are available for US domestic: * * Standard, 3-5 business days * * Expedited, 2 business days * * Priority, 1 business day * * Shipping speeds may vary elsewhere. Please consult your manual for published SLAs. * * * DestinationAddress is the address the items will be shipped to. * * FulfillmentPolicy indicates how unfulfillable items should be * handled. default is FillOrKill. * * FillOrKill if any item is determined to be unfulfillable * before any items have started shipping, the entire order is * considered unfulfillable. Once any part of the order has * started shipping, as much of the order as possible will be * shipped. * * FillAll never consider any item unfulfillable. Items must * either be fulfilled or merchant-cancelled. * * FillAllAvailable fulfill as much of the order as possible. * * FulfillmentMethod indicates the intended recipient channel for the * order whether it be a consumer order or inventory return. * default is Consumer. * The available methods to fulfill a given order: * * Consumer indicates a customer order, this is the default. * * Removal indicates that the inventory should be returned to the * specified destination address. * * * NotificationEmailList can be used to provide a list of e-mail * addresses to receive ship-complete e-mail notifications. These * e-mails are customer-facing e-mails sent by FBA on behalf of * the seller. * * @param mixed $request array of parameters for FBAOutboundServiceMWS_Model_CreateFulfillmentOrder request or FBAOutboundServiceMWS_Model_CreateFulfillmentOrder object itself * @see FBAOutboundServiceMWS_Model_CreateFulfillmentOrder * @return FBAOutboundServiceMWS_Model_CreateFulfillmentOrderResponse * * @throws FBAOutboundServiceMWS_Exception */ public function createFulfillmentOrder($request) { require_once (dirname(__FILE__) . '/Model/CreateFulfillmentOrderResponse.php'); return FBAOutboundServiceMWS_Model_CreateFulfillmentOrderResponse::fromXML($this->_invoke('CreateFulfillmentOrder')); } /** * 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 FBAOutboundServiceMWS_Model_GetFulfillmentOrder request or FBAOutboundServiceMWS_Model_GetFulfillmentOrder object itself * @see FBAOutboundServiceMWS_Model_GetFulfillmentOrder * @return FBAOutboundServiceMWS_Model_GetFulfillmentOrderResponse * * @throws FBAOutboundServiceMWS_Exception */ public function getFulfillmentOrder($request) { require_once (dirname(__FILE__) . '/Model/GetFulfillmentOrderResponse.php'); return FBAOutboundServiceMWS_Model_GetFulfillmentOrderResponse::fromXML($this->_invoke('GetFulfillmentOrder')); } /** * Get Fulfillment Preview * Get estimated shipping dates and fees for all * available shipping speed given a set of seller SKUs and quantities * * If "ShippingSpeedCategories" are inputed, only previews for those options will be returned. * * If "ShippingSpeedCategories" are not inputed, then previews for all available options * are returned. * * The service will return the fulfillment estimates for a set of Seller * SKUs and quantities. * * @param mixed $request array of parameters for FBAOutboundServiceMWS_Model_GetFulfillmentPreview request or FBAOutboundServiceMWS_Model_GetFulfillmentPreview object itself * @see FBAOutboundServiceMWS_Model_GetFulfillmentPreview * @return FBAOutboundServiceMWS_Model_GetFulfillmentPreviewResponse * * @throws FBAOutboundServiceMWS_Exception */ public function getFulfillmentPreview($request) { require_once (dirname(__FILE__) . '/Model/GetFulfillmentPreviewResponse.php'); return FBAOutboundServiceMWS_Model_GetFulfillmentPreviewResponse::fromXML($this->_invoke('GetFulfillmentPreview')); } /** * Get Package Tracking Details * Gets the tracking details for a shipment package. * * @param mixed $request array of parameters for FBAOutboundServiceMWS_Model_GetPackageTrackingDetails request or FBAOutboundServiceMWS_Model_GetPackageTrackingDetails object itself * @see FBAOutboundServiceMWS_Model_GetPackageTrackingDetails * @return FBAOutboundServiceMWS_Model_GetPackageTrackingDetailsResponse * * @throws FBAOutboundServiceMWS_Exception */ public function getPackageTrackingDetails($request) { require_once (dirname(__FILE__) . '/Model/GetPackageTrackingDetailsResponse.php'); return FBAOutboundServiceMWS_Model_GetPackageTrackingDetailsResponse::fromXML($this->_invoke('GetPackageTrackingDetails')); } /** * Get Service Status * Request to poll the system for availability. * Status is one of GREEN, RED representing: * GREEN: The service section is operating normally. * RED: The service section disruption. * * @param mixed $request array of parameters for FBAOutboundServiceMWS_Model_GetServiceStatus request or FBAOutboundServiceMWS_Model_GetServiceStatus object itself * @see FBAOutboundServiceMWS_Model_GetServiceStatus * @return FBAOutboundServiceMWS_Model_GetServiceStatusResponse * * @throws FBAOutboundServiceMWS_Exception */ public function getServiceStatus($request) { require_once (dirname(__FILE__) . '/Model/GetServiceStatusResponse.php'); return FBAOutboundServiceMWS_Model_GetServiceStatusResponse::fromXML($this->_invoke('GetServiceStatus')); } /** * List All Fulfillment Orders * Gets the first set of fulfillment orders that are currently being * fulfilled or that were being fulfilled at some time in the past * (as specified by the query parameters). Also returns a NextToken * which can be used iterate through the remaining fulfillment orders * (via the ListAllFulfillmentOrdersByNextToken operation). * * If a NextToken is not returned, it indicates the end-of-data. * * If the QueryStartDateTime is set, the results will include all orders * currently being fulfilled, and all orders that were being fulfilled * since that date and time. * * @param mixed $request array of parameters for FBAOutboundServiceMWS_Model_ListAllFulfillmentOrders request or FBAOutboundServiceMWS_Model_ListAllFulfillmentOrders object itself * @see FBAOutboundServiceMWS_Model_ListAllFulfillmentOrders * @return FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersResponse * * @throws FBAOutboundServiceMWS_Exception */ public function listAllFulfillmentOrders($request) { require_once (dirname(__FILE__) . '/Model/ListAllFulfillmentOrdersResponse.php'); return FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersResponse::fromXML($this->_invoke('ListAllFulfillmentOrders')); } /** * List All Fulfillment Orders By Next Token * Gets the next set of fulfillment orders that are currently being * being fulfilled or that were being fulfilled at some time in the * past. * * If a NextToken is not returned, it indicates the end-of-data. * * @param mixed $request array of parameters for FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextToken request or FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextToken object itself * @see FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextToken * @return FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextTokenResponse * * @throws FBAOutboundServiceMWS_Exception */ public function listAllFulfillmentOrdersByNextToken($request) { require_once (dirname(__FILE__) . '/Model/ListAllFulfillmentOrdersByNextTokenResponse.php'); return FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextTokenResponse::fromXML($this->_invoke('ListAllFulfillmentOrdersByNextToken')); } /** * Update Fulfillment Order * The SellerFulfillmentOrderId must be the order ID of the original * order that needs to be updated. * * This DisplayableOrderDateTime will appear as the "order date" in * recipient-facing materials such as the packing slip. The format * must be timestamp. * * The DisplayableOrderId will appear as the "order id" in those * materials, and the DisplayableOrderComment will appear as well. * * ShippingSpeedCategory is the Service Level Agreement for how long it * will take a shipment to be transported from the fulfillment center * to the recipient, once shipped. no default. * The following shipping speeds are available for US domestic: * * Standard, 3-5 business days * * Expedited, 2 business days * * Priority, 1 business day * * Shipping speeds may vary elsewhere. Please consult your manual for published SLAs. * * * DestinationAddress is the address the items will be shipped to. * * FulfillmentAction indicates whether an order will be held or shipped. * Default is Hold. * * Hold if the order needs to be held but does not need to be shipped. * * Ship if the order is to be fulfilled and shipped out to the customer * immediately. * * FulfillmentPolicy indicates how unfulfillable items should be * handled. default is FillOrKill. * * FillOrKill if any item is determined to be unfulfillable * before any items have started shipping, the entire order is * considered unfulfillable. Once any part of the order has * started shipping, as much of the order as possible will be * shipped. * * FillAll never consider any item unfulfillable. Items must * either be fulfilled or merchant-cancelled. * * FillAllAvailable fulfill as much of the order as possible. * * NotificationEmailList can be used to provide a list of e-mail * addresses to receive ship-complete e-mail notifications. These * e-mails are customer-facing e-mails sent by FBA on behalf of * the seller. * * @param mixed $request array of parameters for FBAOutboundServiceMWS_Model_UpdateFulfillmentOrder request or FBAOutboundServiceMWS_Model_UpdateFulfillmentOrder object itself * @see FBAOutboundServiceMWS_Model_UpdateFulfillmentOrder * @return FBAOutboundServiceMWS_Model_UpdateFulfillmentOrderResponse * * @throws FBAOutboundServiceMWS_Exception */ public function updateFulfillmentOrder($request) { require_once (dirname(__FILE__) . '/Model/UpdateFulfillmentOrderResponse.php'); return FBAOutboundServiceMWS_Model_UpdateFulfillmentOrderResponse::fromXML($this->_invoke('UpdateFulfillmentOrder')); } // Private API ------------------------------------------------------------// private function _invoke($actionName) { return $xml = file_get_contents(dirname(__FILE__) . '/Mock/' . $actionName . 'Response.xml', /** search include path */ TRUE); } }