code: protected function handleStateChange(SaleInterface $sale)
      {
          if ($this->configureAcceptedSale($sale)) {
              $this->persistenceHelper->persistAndRecompute($sale, false);
          }
      }
docs: Handles the state change.
  
  @param SaleInterface $sale