public function rules(): array 	{ 		$r1 = filter_var($this->r1, FILTER_VALIDATE_BOOLEAN);  		return [ 			'discount_code' => ['nullable', 'string', 'max:10'], 			'items' => ['required', 'array'], 			'items.*.id' => ['required', 'uuid', 'distinct', 'exists:products,id'], 			'items.*.quantity' => ['required', 'integer', 'min:1'],  			'r1' => ['required', 'boolean'], 			'payment_type' => ['required', 'integer', new Enum(PaymentType::class)], 			'order_number' => ['required', 'uuid', 'unique:orders,order_number'],  			'email' => ['required', 'email', 'max:50'], 			'language' => ['required', 'string', 'size:2', Rule::in(config('custom.supported_languages'))], 			'country_code' => ['required', 'string', 'size:2'],  			'oib' => ['nullable', Rule::requiredIf($r1), 'string', 'max:50'], 			'company_name' => ['nullable', Rule::requiredIf($r1), 'string', 'max:50'], 			'company_address' => ['nullable', Rule::requiredIf($r1), 'string', 'max:100'], 			'company_zip_code' => ['nullable', Rule::requiredIf($r1), 'string', 'max:100'], 			'company_city' => ['nullable', Rule::requiredIf($r1), 'string', 'max:100'], 			'company_country' => ['nullable', Rule::requiredIf($r1), 'string', 'max:20'], 			'delivery_name' => ['nullable', Rule::requiredIf(!$r1), 'string', 'max:50'], 			'delivery_surname' => ['nullable', Rule::requiredIf(!$r1), 'string', 'max:50'],  			'delivery_phone' => ['required', 'string', 'max:20'], 			'delivery_address' => ['required', 'string', 'max:100'], 			'delivery_city' => ['required', 'string', 'max:50'], 			'delivery_zip_code' => ['required', 'string', 'max:20'], 			'delivery_company_name' => ['nullable', 'string', 'max:100'], 			'delivery_description' => ['nullable', 'string', 'max:500'],  			'billable_name' => ['required', 'string', 'max:50'], 			'billable_surname' => ['required', 'string', 'max:50'], 			'billable_phone' => ['required', 'string', 'max:20'], 			'billable_address' => ['required', 'string', 'max:100'], 			'billable_city' => ['required', 'string', 'max:50'], 			'billable_zip_code' => ['required', 'string', 'max:20'],  			'newsletter' => ['required', 'boolean'], 		]; 	}