modules/acm_sku/src/StockManager.php
public function refreshStock(string $sku) {
    try {
      $stock = $this->apiWrapper->skuStockCheck($sku);
      $this->processStockMessage($stock);
    }
    catch (\Exception $e) {
      $this->logger->error('Exception occurred while resetting stock for sku: @sku, message: @message', [
        '@sku' => $sku,
        '@message' => $e->getMessage(),
      ]);
    }
  }
public function refreshStock(string $sku) {
    try {
      $stock = $this->apiWrapper->skuStockCheck($sku);
      $this->processStockMessage($stock);
    }
    catch (\Exception $e) {
      $this->logger->error('Exception occurred while resetting stock for sku: @sku, message: @message', [
        '@sku' => $sku,
        '@message' => $e->getMessage(),
      ]);
    }
  }
public function refreshStock ( string $ sku ) { try { $ stock = $ this -> apiWrapper -> skuStockCheck ( $ sku ) ; $ this -> processStockMessage ( $ stock ) ; } catch ( \ Exception $ e ) { $ this -> logger -> error ( 'Exception occurred while resetting stock for sku: @sku, message: @message' , [ '@sku' => $ sku , '@message' => $ e -> getMessage ( ) , ] ) ; } }
Refresh stock for an SKU from API.

@param string $sku
SKU string.
Refresh stock for an SKU from API .