示例#1
0
 /**
  * List Inventory Supply
  * Get information about the supply of seller-owned inventory in
  *     Amazon's fulfillment network. "Supply" is inventory that is available
  *     for fulfilling (a.k.a. Multi-Channel Fulfillment) orders. In general
  *     this includes all sellable inventory that has been received by Amazon,
  *     that is not reserved for existing orders or for internal FC processes,
  *     and also inventory expected to be received from inbound shipments.
  *
  *     This operation provides 2 typical usages by setting different
  *     ListInventorySupplyRequest value:
  *
  *     1. Set value to SellerSkus and not set value to QueryStartDateTime,
  *     this operation will return all sellable inventory that has been received
  *     by Amazon's fulfillment network for these SellerSkus.
  *
  *     2. Not set value to SellerSkus and set value to QueryStartDateTime,
  *     This operation will return information about the supply of all seller-owned
  *     inventory in Amazon's fulfillment network, for inventory items that may have had
  *     recent changes in inventory levels. It provides the most efficient mechanism
  *     for clients to maintain local copies of inventory supply data.
  *
  *     Only 1 of these 2 parameters (SellerSkus and QueryStartDateTime) can be set value for 1 request.
  *     If both with values or neither with values, an exception will be thrown.
  *
  *     This operation is used with ListInventorySupplyByNextToken
  *     to paginate over the resultset. Begin pagination by invoking the
  *     ListInventorySupply operation, and retrieve the first set of
  *     results. If more results are available,continuing iteratively requesting further
  *     pages results by invoking the ListInventorySupplyByNextToken operation (each time
  *     passing in the NextToken value from the previous result), until the returned NextToken
  *     is null, indicating no further results are available.
  *
  * @param mixed $request array of parameters for FBAInventoryServiceMWS_Model_ListInventorySupply request or FBAInventoryServiceMWS_Model_ListInventorySupply object itself
  * @see FBAInventoryServiceMWS_Model_ListInventorySupplyRequest
  * @return FBAInventoryServiceMWS_Model_ListInventorySupplyResponse
  *
  * @throws FBAInventoryServiceMWS_Exception
  */
 public function listInventorySupply($request)
 {
     if (!$request instanceof FBAInventoryServiceMWS_Model_ListInventorySupplyRequest) {
         $request = new FBAInventoryServiceMWS_Model_ListInventorySupplyRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'ListInventorySupply';
     $httpResponse = $this->_invoke($parameters);
     $response = FBAInventoryServiceMWS_Model_ListInventorySupplyResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
示例#2
0
文件: Mock.php 项目: brickfox/mws
 /**
  * List Inventory Supply
  * Get information about the supply of seller-owned inventory in
  *     Amazon's fulfillment network. "Supply" is inventory that is available
  *     for fulfilling (a.k.a. Multi-Channel Fulfillment) orders. In general
  *     this includes all sellable inventory that has been received by Amazon,
  *     that is not reserved for existing orders or for internal FC processes,
  *     and also inventory expected to be received from inbound shipments.
  *
  *     This operation provides 2 typical usages by setting different
  *     ListInventorySupplyRequest value:
  *
  *     1. Set value to SellerSkus and not set value to QueryStartDateTime,
  *     this operation will return all sellable inventory that has been received
  *     by Amazon's fulfillment network for these SellerSkus.
  *
  *     2. Not set value to SellerSkus and set value to QueryStartDateTime,
  *     This operation will return information about the supply of all seller-owned
  *     inventory in Amazon's fulfillment network, for inventory items that may have had
  *     recent changes in inventory levels. It provides the most efficient mechanism
  *     for clients to maintain local copies of inventory supply data.
  *
  *     Only 1 of these 2 parameters (SellerSkus and QueryStartDateTime) can be set value for 1 request.
  *     If both with values or neither with values, an exception will be thrown.
  *
  *     This operation is used with ListInventorySupplyByNextToken
  *     to paginate over the resultset. Begin pagination by invoking the
  *     ListInventorySupply operation, and retrieve the first set of
  *     results. If more results are available,continuing iteratively requesting further
  *     pages results by invoking the ListInventorySupplyByNextToken operation (each time
  *     passing in the NextToken value from the previous result), until the returned NextToken
  *     is null, indicating no further results are available.
  *
  * @param mixed $request array of parameters for FBAInventoryServiceMWS_Model_ListInventorySupply request or FBAInventoryServiceMWS_Model_ListInventorySupply object itself
  * @see FBAInventoryServiceMWS_Model_ListInventorySupply
  * @return FBAInventoryServiceMWS_Model_ListInventorySupplyResponse
  *
  * @throws FBAInventoryServiceMWS_Exception
  */
 public function listInventorySupply($request)
 {
     return FBAInventoryServiceMWS_Model_ListInventorySupplyResponse::fromXML($this->_invoke('ListInventorySupply'));
 }
 /**
  * List Inventory Supply 
  * Get information about the supply of seller-owned inventory in
  * Amazon's fulfillment network. "Supply" is inventory that is available
  * for fulfilling (a.k.a. Multi-Channel Fulfillment) orders. In general
  * this includes all sellable inventory that has been received by Amazon,
  * that is not reserved for existing orders or for internal FC processes,
  * and also inventory expected to be received from inbound shipments.
  * This operation provides 2 typical usages by setting different
  * ListInventorySupplyRequest value:
  * 
  * 1. Set value to SellerSkus and not set value to QueryStartDateTime,
  * this operation will return all sellable inventory that has been received
  * by Amazon's fulfillment network for these SellerSkus.
  * 2. Not set value to SellerSkus and set value to QueryStartDateTime,
  * This operation will return information about the supply of all seller-owned
  * inventory in Amazon's fulfillment network, for inventory items that may have had
  * recent changes in inventory levels. It provides the most efficient mechanism
  * for clients to maintain local copies of inventory supply data.
  * Only 1 of these 2 parameters (SellerSkus and QueryStartDateTime) can be set value for 1 request.
  * If both with values or neither with values, an exception will be thrown.
  * This operation is used with ListInventorySupplyByNextToken
  * to paginate over the resultset. Begin pagination by invoking the
  * ListInventorySupply operation, and retrieve the first set of
  * results. If more results are available,continuing iteratively requesting further
  * pages results by invoking the ListInventorySupplyByNextToken operation (each time
  * passing in the NextToken value from the previous result), until the returned NextToken
  * is null, indicating no further results are available.
  * 
  * @param mixed $request array of parameters for FBAInventoryServiceMWS_Model_ListInventorySupplyRequest request
  * or FBAInventoryServiceMWS_Model_ListInventorySupplyRequest object itself
  * @see FBAInventoryServiceMWS_Model_ListInventorySupply
  * @return FBAInventoryServiceMWS_Model_ListInventorySupplyResponse FBAInventoryServiceMWS_Model_ListInventorySupplyResponse
  *
  * @throws FBAInventoryServiceMWS_Exception
  */
 public function listInventorySupply($request)
 {
     if (!$request instanceof FBAInventoryServiceMWS_Model_ListInventorySupplyRequest) {
         $request = new FBAInventoryServiceMWS_Model_ListInventorySupplyRequest($request);
     }
     return FBAInventoryServiceMWS_Model_ListInventorySupplyResponse::fromXML($this->_invoke($this->_convertListInventorySupply($request)));
 }
示例#4
0
 /**
  * List Inventory Supply
  * Get information about the supply of seller-owned inventory in
  *     Amazon's fulfillment network. "Supply" is inventory that is available
  *     for fulfilling (a.k.a. Multi-Channel Fulfillment) orders. In general
  *     this includes all sellable inventory that has been received by Amazon,
  *     that is not reserved for existing orders or for internal FC processes,
  *     and also inventory expected to be received from inbound shipments.
  * 
  *     This operation provides 2 typical usages by setting different 
  *     ListInventorySupplyRequest value:
  *     
  *     1. Set value to SellerSkus and not set value to QueryStartDateTime, 
  *     this operation will return all sellable inventory that has been received 
  *     by Amazon's fulfillment network for these SellerSkus.
  * 
  *     2. Not set value to SellerSkus and set value to QueryStartDateTime,
  *     This operation will return information about the supply of all seller-owned
  *     inventory in Amazon's fulfillment network, for inventory items that may have had
  *     recent changes in inventory levels. It provides the most efficient mechanism 
  *     for clients to maintain local copies of inventory supply data.
  * 
  *     Only 1 of these 2 parameters (SellerSkus and QueryStartDateTime) can be set value for 1 request.
  *     If both with values or neither with values, an exception will be thrown.
  * 
  *     This operation is used with ListInventorySupplyByNextToken
  *     to paginate over the resultset. Begin pagination by invoking the
  *     ListInventorySupply operation, and retrieve the first set of
  *     results. If more results are available,continuing iteratively requesting further 
  *     pages results by invoking the ListInventorySupplyByNextToken operation (each time 
  *     passing in the NextToken value from the previous result), until the returned NextToken
  *     is null, indicating no further results are available.
  *
  * @param mixed $request array of parameters for FBAInventoryServiceMWS_Model_ListInventorySupply request or FBAInventoryServiceMWS_Model_ListInventorySupply object itself
  * @see FBAInventoryServiceMWS_Model_ListInventorySupply
  * @return FBAInventoryServiceMWS_Model_ListInventorySupplyResponse
  *
  * @throws FBAInventoryServiceMWS_Exception
  */
 public function listInventorySupply($request)
 {
     require_once dirname(__FILE__) . '/Model/ListInventorySupplyResponse.php';
     return FBAInventoryServiceMWS_Model_ListInventorySupplyResponse::fromXML($this->_invoke('ListInventorySupply'));
 }