protected function createOrderItems(CalculationOrder $calculation, Order $order): void 	{ 		foreach ($calculation->getProducts() as $item) { 			$discountInfo = null;  			if ($item->getDiscounts()) { 				$discountInfo = $this->createOrderItemDiscountsInfo($item->getDiscounts()); 			}  			$itemInfo['id'] = $item->getDiscountableItem()->id; 			$itemInfo['name'] = $item->getDiscountableItem()->getOrderItemName();  			$orderItem = $order->orderItems()->create([ 				'product_id' => $item->getDiscountableItem() instanceof ProductVariant ? $item->getDiscountableItem()->product_id : $item->getDiscountableItem()->id, 				'product_variant_id' => $item->getDiscountableItem() instanceof ProductVariant ? $item->getDiscountableItem()->id : null, 				'price' => round($item->getPrice(), 2), 				'tax' => round($item->getTotalTax(), 2), 				'discount_amount' => round($item->getTotalDiscounts(), 2), 				'total_price' => round($item->getTotalPrice(), 2), 				'total_price_minus_discounts' => round($item->getTotalPriceWithDiscounts(), 2), 				'quantity' => $item->getQuantity(), 				'tax_rate' => $item->getTaxRate(), 				'discounts_applied' => $discountInfo ?? null, 				'order_item_details' => $itemInfo, 			]);  			if ($discountInfo) { 				foreach ($discountInfo as $discount) { 					$orderItem->appliedDiscounts()->create([ 						'order_id' => $order->id, 						'discount_id' => $discount['discount_id'], 					]); 				} 			} 		} 	}