{ } /**
* @throws DeliveryWithoutAddressException
*
* @return array<string, mixed|float|string|array<int, array<string, string|int|bool|mixed>>|null>
*/
public function convertToOrder(Cart
$cart, SalesChannelContext
$context, OrderConversionContext
$conversionContext): array
{ foreach ($cart->
getDeliveries() as $delivery) { if ($delivery->
getLocation()->
getAddress() !== null ||
$delivery->
hasExtensionOfType(self::ORIGINAL_ID, IdStruct::
class)) { continue;
} throw new DeliveryWithoutAddressException();
} $data = CartTransformer::
transform( $cart,
$context,
$this->initialStateIdLoader->
get(OrderStates::STATE_MACHINE
),
$conversionContext->
shouldIncludeOrderDate() );