/**
  * Service Call: BMSetInventory
  * @param BMSetInventoryReq $bMSetInventoryReq
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return BMSetInventoryResponseType
  * @throws APIException
  */
 public function BMSetInventory($bMSetInventoryReq, $apiCredential = NULL)
 {
     $this->setStandardParams($bMSetInventoryReq->BMSetInventoryRequest);
     $ret = new BMSetInventoryResponseType();
     $apiContext = new PPApiContext($this->config);
     $handlers = array(new PPMerchantServiceHandler($apiCredential, self::$SDK_NAME, self::$SDK_VERSION));
     $resp = $this->call('PayPalAPI', 'BMSetInventory', $bMSetInventoryReq, $apiContext, $handlers);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }
 /**
  * Service Call: BMSetInventory
  * @param BMSetInventoryReq $bMSetInventoryReq
  * @param mixed $apiCredential - Optional API credential - can either be
  * 		a username configured in sdk_config.ini or a ICredential object
  *      created dynamically 		
  * @return BMSetInventoryResponseType
  * @throws APIException
  */
 public function BMSetInventory($bMSetInventoryReq, $apiCredential = NULL)
 {
     $this->setStandardParams($bMSetInventoryReq->BMSetInventoryRequest);
     $ret = new BMSetInventoryResponseType();
     $resp = $this->call('PayPalAPI', 'BMSetInventory', $bMSetInventoryReq, $apiCredential);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }
 /**
  * Service Call: BMSetInventory
  * @param BMSetInventoryReq $bMSetInventoryReq
  * @return BMSetInventoryResponseType
  * @throws APIException
  */
 public function BMSetInventory($bMSetInventoryReq, $apiUsername = null)
 {
     $this->setStandardParams($bMSetInventoryReq->BMSetInventoryRequest);
     $ret = new BMSetInventoryResponseType();
     $resp = $this->call("BMSetInventory", $bMSetInventoryReq, $apiUsername);
     $ret->init(PPUtils::xmlToArray($resp));
     return $ret;
 }