code: protected function updateState(SaleInterface $sale)
      {
          if ($this->stateResolver->resolve($sale)) {
              $this->scheduleStateChangeEvent($sale);
  
              return true;
          }
  
          return false;
      }
docs: Updates the state.
  
  @param SaleInterface $sale
  
  @return bool Whether the sale has been changed or not.
  
  @throws \Ekyna\Component\Commerce\Exception\CommerceExceptionInterface