{
  "openapi": "3.0.1",
  "info": {
    "title": "CityTransferTurkey Mobile API",
    "description": "City Transfer Turkey mobil uygulaması (müşteri): üyelik, arama, rezervasyon. Kimlik: `/mobile/v1/auth/login` ile alınan `Authorization: Bearer cttm_…` erişim token'ı (60 dk); süresi dolunca `/mobile/v1/auth/refresh` ile yenileyin.",
    "version": "mobile-v1"
  },
  "paths": {
    "/mobile/v1/auth/register": {
      "post": {
        "tags": [
          "MobileAuth"
        ],
        "summary": "Yeni hesap. E-posta kayıtlıysa 409.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/mobile/v1/auth/login": {
      "post": {
        "tags": [
          "MobileAuth"
        ],
        "summary": "Giriş. Yanlış bilgi 401 (nedeni söylenmez).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/mobile/v1/auth/refresh": {
      "post": {
        "tags": [
          "MobileAuth"
        ],
        "summary": "Erişim token'ını yeniler. Yenileme token'ı tek kullanımlıktır; aynı token ikinci kez gelirse oturum kapanır.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/mobile/v1/auth/logout": {
      "post": {
        "tags": [
          "MobileAuth"
        ],
        "summary": "Çıkış: oturumun yenileme token'ları iptal edilir.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          }
        }
      }
    },
    "/mobile/v1/auth/forgot-password": {
      "post": {
        "tags": [
          "MobileAuth"
        ],
        "summary": "Şifre sıfırlama kodu e-postayla gönderilir. Hesap olup olmadığı söylenmez — her zaman 202.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ForgotPasswordRequest"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted"
          }
        }
      }
    },
    "/mobile/v1/auth/reset-password": {
      "post": {
        "tags": [
          "MobileAuth"
        ],
        "summary": "Kodla yeni şifre. Kod hatalı/süresi dolmuş/çok deneme: 422 (`reason` alanında).",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ResetPasswordRequest"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No Content"
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/mobile/v1/bookings": {
      "post": {
        "tags": [
          "MobileBookings"
        ],
        "summary": "Rezervasyon açar; dönen `payment.url` ödeme sayfasıdır. Kapalı gün / süre / kapasite kuralları 422.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMobileBookingRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMobileBookingRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CreateMobileBookingRequest"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "201": {
            "description": "Created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBookingResponse"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      },
      "get": {
        "tags": [
          "MobileBookings"
        ],
        "summary": "Rezervasyonlarım (en yeni önce). Dönüşlü rezervasyonlar tek kayıt olarak gelir.",
        "parameters": [
          {
            "name": "language",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MobileBookingResponse"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/mobile/v1/bookings/{code}": {
      "get": {
        "tags": [
          "MobileBookings"
        ],
        "summary": "Tek rezervasyon (gidiş ya da dönüş koduyla). Başkasının rezervasyonu 404.",
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "language",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MobileBookingResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not Found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/mobile/v1/locations": {
      "get": {
        "tags": [
          "MobileCatalog"
        ],
        "summary": "Havalimanı / bölge arama (en az 2 karakter).",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LocationResponse"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/mobile/v1/locations/{regionId}/destinations": {
      "get": {
        "tags": [
          "MobileCatalog"
        ],
        "summary": "Bu bölgeden transfer yapılabilen varış bölgeleri.",
        "parameters": [
          {
            "name": "regionId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/LocationResponse"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/mobile/v1/search": {
      "get": {
        "tags": [
          "MobileCatalog"
        ],
        "summary": "Fiyatlı araç seçenekleri (en ucuzdan pahalıya). Rezervasyonda `priceId` kullanılır. `paymentMethods`:\r\no firmanın kabul ettiği ödeme yöntemleri (CreditCard, PartialPayment, Cash).",
        "parameters": [
          {
            "name": "fromRegionId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "toRegionId",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "date",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "passengers",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "currency",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/CurrencyType"
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransferOffersResult"
                }
              }
            }
          }
        }
      }
    },
    "/mobile/v1/me": {
      "get": {
        "tags": [
          "MobileMe"
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileResponse"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "MobileMe"
        ],
        "summary": "Profil güncelleme. Yeni e-posta başka hesapta kayıtlıysa 409.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileBody"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileBody"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileBody"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileResponse"
                }
              }
            }
          },
          "409": {
            "description": "Conflict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    },
    "/mobile/v1/me/password": {
      "post": {
        "tags": [
          "MobileMe"
        ],
        "summary": "Şifre değiştirme. Mevcut şifre yanlışsa 422.",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordBody"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordBody"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordBody"
              }
            }
          }
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "429": {
            "description": "Too Many Requests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "204": {
            "description": "No Content"
          },
          "422": {
            "description": "Unprocessable Content",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "BookingStatus": {
        "enum": [
          "Pending",
          "Confirmed",
          "Assigned",
          "Completed",
          "Cancelled"
        ],
        "type": "string"
      },
      "ChangePasswordBody": {
        "required": [
          "currentPassword",
          "newPassword"
        ],
        "type": "object",
        "properties": {
          "currentPassword": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "newPassword": {
            "maxLength": 200,
            "minLength": 8,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "CreateMobileBookingRequest": {
        "required": [
          "fromRegionId",
          "pickupDate",
          "pickupTime",
          "priceId",
          "toRegionId"
        ],
        "type": "object",
        "properties": {
          "priceId": {
            "type": "string",
            "description": "Aramadaki `priceId`.",
            "format": "uuid"
          },
          "fromRegionId": {
            "type": "string",
            "format": "uuid"
          },
          "toRegionId": {
            "type": "string",
            "format": "uuid"
          },
          "pickupDate": {
            "type": "string",
            "format": "date"
          },
          "pickupTime": {
            "minLength": 1,
            "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
            "type": "string",
            "description": "Türkiye yerel saati (HH:mm)."
          },
          "passengerCount": {
            "maximum": 50,
            "minimum": 1,
            "type": "integer",
            "format": "int32"
          },
          "passenger": {
            "$ref": "#/components/schemas/MobilePassenger"
          },
          "flightCode": {
            "maxLength": 20,
            "type": "string",
            "nullable": true
          },
          "hotelAddress": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "notes": {
            "maxLength": 2000,
            "type": "string",
            "nullable": true
          },
          "return": {
            "$ref": "#/components/schemas/MobileReturnLeg"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyType"
          },
          "language": {
            "maxLength": 5,
            "type": "string",
            "description": "Ödeme sayfasının dili: \"en\" | \"tr\" (varsayılan en).",
            "nullable": true
          },
          "couponCode": {
            "maxLength": 30,
            "type": "string",
            "description": "İndirim kuponu (isteğe bağlı). Geçersizse 422 döner, rezervasyon açılmaz.",
            "nullable": true
          },
          "useWallet": {
            "type": "boolean",
            "description": "true: müşterinin sadakat cüzdanı bakiyesi indirim olarak kullanılır (komisyon marjı kadar)."
          }
        },
        "additionalProperties": false,
        "description": "Aramadan seçilen teklifle rezervasyon. CityTransferTurkey.Api.Contracts.Mobile.CreateMobileBookingRequest.Passenger boşsa hesap sahibinin bilgileri kullanılır.\r\nFiyat rezervasyon anında yeniden hesaplanır (aramayla aynı yöntem). Ödeme yanıttaki `payment.url` sayfasında yapılır."
      },
      "CurrencyType": {
        "enum": [
          "TRY",
          "EUR",
          "USD"
        ],
        "type": "string"
      },
      "ForgotPasswordRequest": {
        "required": [
          "email"
        ],
        "type": "object",
        "properties": {
          "email": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string",
            "format": "email"
          }
        },
        "additionalProperties": false
      },
      "LocationResponse": {
        "type": "object",
        "properties": {
          "regionId": {
            "type": "string",
            "format": "uuid"
          },
          "name": {
            "type": "string",
            "nullable": true
          },
          "isAirport": {
            "type": "boolean"
          },
          "cityId": {
            "type": "string",
            "format": "uuid"
          },
          "cityName": {
            "type": "string",
            "nullable": true
          },
          "country": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LoginRequest": {
        "required": [
          "email",
          "password"
        ],
        "type": "object",
        "properties": {
          "email": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string",
            "format": "email"
          },
          "password": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          },
          "deviceName": {
            "maxLength": 100,
            "type": "string",
            "description": "İsteğe bağlı cihaz adı (ör. \"iPhone 15\") — oturum listesinde görünür.",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MobileBookingResponse": {
        "type": "object",
        "properties": {
          "booking": {
            "$ref": "#/components/schemas/MobileLegResponse"
          },
          "return": {
            "$ref": "#/components/schemas/MobileLegResponse"
          },
          "totalPrice": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyType"
          },
          "payment": {
            "$ref": "#/components/schemas/MobilePaymentResponse"
          }
        },
        "additionalProperties": false
      },
      "MobileLegResponse": {
        "type": "object",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "$ref": "#/components/schemas/BookingStatus"
          },
          "pickupDate": {
            "type": "string",
            "format": "date"
          },
          "pickupTime": {
            "type": "string",
            "nullable": true
          },
          "fromRegion": {
            "type": "string",
            "nullable": true
          },
          "toRegion": {
            "type": "string",
            "nullable": true
          },
          "vehicleType": {
            "type": "string",
            "nullable": true
          },
          "passengerCount": {
            "type": "integer",
            "format": "int32"
          },
          "passengerName": {
            "type": "string",
            "nullable": true
          },
          "price": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyType"
          },
          "flightCode": {
            "type": "string",
            "nullable": true
          },
          "hotelAddress": {
            "type": "string",
            "nullable": true
          },
          "cancellationReason": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "MobilePassenger": {
        "required": [
          "email",
          "firstName",
          "lastName",
          "phone"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "lastName": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "phoneCode": {
            "maxLength": 8,
            "type": "string",
            "nullable": true
          },
          "phone": {
            "maxLength": 32,
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string",
            "format": "email"
          }
        },
        "additionalProperties": false
      },
      "MobilePaymentResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "nullable": true
          },
          "method": {
            "$ref": "#/components/schemas/PaymentMethodType"
          },
          "url": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "CityTransferTurkey.Api.Contracts.Mobile.MobilePaymentResponse.Status: \"awaiting_payment\" (ödeme yöntemi henüz seçilmedi — CityTransferTurkey.Api.Contracts.Mobile.MobilePaymentResponse.Url sayfasında kart, ön ödeme\r\n            ya da nakit seçilir), \"paid\" (kartla ödendi), \"deposit_paid\" (ön ödeme alındı, kalanı sürücüye), \"pay_driver\"\r\n            (tamamı sürücüye nakit), \"refunded\", \"none\" (ödemesiz iptal)."
      },
      "MobileReturnLeg": {
        "required": [
          "date",
          "time"
        ],
        "type": "object",
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "time": {
            "minLength": 1,
            "pattern": "^([01]\\d|2[0-3]):[0-5]\\d$",
            "type": "string",
            "description": "Türkiye yerel saati (HH:mm)."
          },
          "flightCode": {
            "maxLength": 20,
            "type": "string",
            "nullable": true
          },
          "hotelAddress": {
            "maxLength": 500,
            "type": "string",
            "nullable": true
          },
          "notes": {
            "maxLength": 2000,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PaymentMethodType": {
        "enum": [
          "CreditCard",
          "PartialPayment",
          "Cash",
          "OnAccount"
        ],
        "type": "string"
      },
      "PricedTransferOfferDto": {
        "type": "object",
        "properties": {
          "priceId": {
            "type": "string",
            "format": "uuid"
          },
          "providerId": {
            "type": "string",
            "format": "uuid"
          },
          "providerName": {
            "type": "string",
            "nullable": true
          },
          "vehicleTypeId": {
            "type": "string",
            "format": "uuid"
          },
          "vehicleTypeName": {
            "type": "string",
            "nullable": true
          },
          "passengerCapacity": {
            "type": "integer",
            "format": "int32"
          },
          "luggageCapacity": {
            "type": "integer",
            "format": "int32"
          },
          "imagePath": {
            "type": "string",
            "nullable": true
          },
          "transferMode": {
            "$ref": "#/components/schemas/TransferMode"
          },
          "averageRating": {
            "type": "number",
            "format": "double"
          },
          "reviewCount": {
            "type": "integer",
            "format": "int32"
          },
          "price": {
            "type": "number",
            "format": "double"
          },
          "currency": {
            "$ref": "#/components/schemas/CurrencyType"
          },
          "paymentMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PaymentMethodType"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": { }
      },
      "ProfileResponse": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "firstName": {
            "type": "string",
            "nullable": true
          },
          "lastName": {
            "type": "string",
            "nullable": true
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "phoneCode": {
            "type": "string",
            "nullable": true
          },
          "phone": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RefreshRequest": {
        "required": [
          "refreshToken"
        ],
        "type": "object",
        "properties": {
          "refreshToken": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "RegisterRequest": {
        "required": [
          "email",
          "firstName",
          "lastName",
          "password",
          "phone"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "lastName": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string",
            "format": "email"
          },
          "phoneCode": {
            "maxLength": 8,
            "type": "string",
            "nullable": true
          },
          "phone": {
            "maxLength": 32,
            "minLength": 1,
            "type": "string"
          },
          "password": {
            "maxLength": 200,
            "minLength": 8,
            "type": "string",
            "description": "En az 8 karakter."
          },
          "deviceName": {
            "maxLength": 100,
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ResetPasswordRequest": {
        "required": [
          "code",
          "email",
          "newPassword"
        ],
        "type": "object",
        "properties": {
          "email": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string",
            "format": "email"
          },
          "code": {
            "maxLength": 6,
            "minLength": 6,
            "type": "string",
            "description": "E-postayla gelen 6 haneli kod (15 dk geçerli, en fazla 5 deneme)."
          },
          "newPassword": {
            "maxLength": 200,
            "minLength": 8,
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "TokenResponse": {
        "type": "object",
        "properties": {
          "accessToken": {
            "type": "string",
            "nullable": true
          },
          "tokenType": {
            "type": "string",
            "nullable": true
          },
          "expiresAt": {
            "type": "string",
            "format": "date-time"
          },
          "refreshToken": {
            "type": "string",
            "nullable": true
          },
          "refreshTokenExpiresAt": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false,
        "description": "CityTransferTurkey.Api.Contracts.TokenResponse.AccessToken: her istekte `Authorization: Bearer …` (60 dk). Süresi dolunca\r\n            CityTransferTurkey.Api.Contracts.TokenResponse.RefreshToken ile yenileyin — yenileme token'ı her kullanımda değişir, eskisini saklamayın."
      },
      "TransferMode": {
        "enum": [
          "Private",
          "Shuttle"
        ],
        "type": "string"
      },
      "TransferOffersResult": {
        "type": "object",
        "properties": {
          "fromRegionName": {
            "type": "string",
            "nullable": true
          },
          "toRegionName": {
            "type": "string",
            "nullable": true
          },
          "fromRegionIsAirport": {
            "type": "boolean"
          },
          "toRegionIsAirport": {
            "type": "boolean"
          },
          "offers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/PricedTransferOfferDto"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UpdateProfileBody": {
        "required": [
          "email",
          "firstName",
          "lastName",
          "phone"
        ],
        "type": "object",
        "properties": {
          "firstName": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "lastName": {
            "maxLength": 100,
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "maxLength": 256,
            "minLength": 1,
            "type": "string",
            "format": "email"
          },
          "phoneCode": {
            "maxLength": 8,
            "type": "string",
            "nullable": true
          },
          "phone": {
            "maxLength": 32,
            "minLength": 1,
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "ApiKey": {
        "type": "http",
        "description": "Partner API anahtarı (ctt_live_… / ctt_test_…) ya da uygulama erişim token'ı (cttm_…)",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "ApiKey": [ ]
    }
  ]
}