code: public function clearInformation()
      {
          if (!$this->hasCart() || $this->cart->isLocked()) {
              return $this;
          }
  
          $this->cart
              ->setCustomer(null)
              ->setCustomerGroup(null)
              ->setEmail(null)
              ->setCompany(null)
              ->setGender(null)
              ->setFirstName(null)
              ->setLastName(null)
              ->setInvoiceAddress(null)
              ->setDeliveryAddress(null)
              ->setSameAddress(true);
  
          $this->updateCustomerGroupAndCurrency();
  
          return $this;
      }
docs: {@inheritdoc}