code: private function getSaleDeliveryAddress(ShipmentInterface $shipment)
      {
          if (null === $sale = $shipment->getSale()) {
              throw new LogicException("Shipment's sale must be set at this point.");
          }
  
          return $sale->isSameAddress() ? $sale->getInvoiceAddress() : $sale->getDeliveryAddress();
      }
docs: Returns the delivery address of the shipment's sale.
  
  @param ShipmentInterface $shipment
  
  @return AddressInterface
  @throws LogicException