public function createOrder(Order $calculation): Order 	{ 		$customer_id = $calculation->user->user->id ?? null;  		$order = Order::create([ 			'customer_id' => $customer_id ?? null, 			'name' => $calculation->user->name, 			'customer_email' => $calculation->user->email, 			'market_id' => $calculation->getMarket()->id, 			'status' => OrderStatus::PENDING, 			'total_weight' => $calculation->total_weight, 			'delivery_name' => $calculation->delivery_name, 			'shipping_cost' => $calculation->shipping_cost, 			'price_without_pdv' => $calculation->price_without_pdv, 			'price_with_pdv' => $calculation->price_with_pdv, 			'pdv_cost' => $calculation->pdv_cost, 			'final_price' => $calculation->final_price, 			'currency' => Currency::EUR, 			'delivery_address' => $calculation->delivery_address, 			'invoice_address' => $calculation->invoice_address, 			'delivery_note' => $calculation->delivery_note, 			'email' => $calculation->user->email, 			'r1' => $calculation->r1, 			'company_name' => $calculation->company_name, 			'company_oib' => $calculation->company_oib, 			'company_address' => $calculation->company_address, 			'shipping_provider' => $calculation->shipping_provider, 		]);  		$this->createOrderItems($calculation, $order);  		$this->createShipment($calculation, $order);  		if (!$calculation->temporary) { 			$this->registerProducts($order); 		}  		return $order; 	}