# New Web Feature Validation

This document records manual browser validation results for features migrated
to `tiar-webapp`. It is the central validation log for the new web application;
future feature checks should be added here instead of creating one document per
feature.

## Validation status

| Status                    | Meaning                                                                                 |
| ------------------------- | --------------------------------------------------------------------------------------- |
| `Passed`                  | The tested behavior completed as expected.                                              |
| `Passed with known issue` | The main behavior works, but a related issue remains documented.                        |
| `Flagged`                 | The behavior is outside the current acceptance scope but must be tracked for follow-up. |
| `Failed`                  | The observed behavior does not meet the expected result.                                |
| `Blocked`                 | Testing could not continue because of an external dependency or environment issue.      |
| `Deferred`                | The feature is intentionally outside the current validation scope.                      |
| `Not tested`              | No validation has been performed yet.                                                   |

## Validation conditions

- Application: `tiar-webapp`
- Environment: local sandbox at `http://sandbox.localhost:3000`
- Auth backend configuration: TIAR v1 development backend at `https://dev.api.tiar.ai`
- Non-auth features: legacy backend services remain available through the temporary
  `BACKEND_BASE_URL_DEV` configuration until each feature is migrated.
- Tenant host: `parking-plus.dev.tiar.ai`
- Test date: 2026-08-28
- Test method: manual browser flow with DevTools Network evidence
- Credentials: test account used, but credentials are intentionally omitted

## New public v1 API endpoint

The following endpoint was reported as newly opened for public tenant
branding:

| Endpoint                                         | Intended auth   | Verification on 2026-08-31                                                                                                                            | Status                                                         |
| ------------------------------------------------ | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
| `GET https://dev.api.tiar.ai/v1/tenant/branding` | No bearer token | Direct request without authentication returned HTTP `401` with `Access token is required.`; the same result occurred with the tenant routing headers. | Flagged — public access not active or not yet confirmed in dev |

This endpoint is not yet wired into the frontend. Before integrating it, the
backend/gateway should confirm whether it is intended to be public without an
access token or whether an additional routing requirement is missing.

## Backend routing status

This section separates UI validation from backend migration status. A successful
request to a local `/api/...` route does not by itself prove that the request
reached the new backend; the local Next.js route may proxy to either v1 or the
legacy v1.1 service.

| Feature or flow                                   | Local web route(s)                                                                                                        | Current upstream                                                                                                                                                                                                                     | Status                                                                                           |
| ------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ |
| Auth core                                         | `/api/auth/check-email`, `/api/auth/login-password`, `/api/auth/me`, `/api/auth/sign-up`                                  | New v1 backend: `TIAR_V1_BASE_URL` + `/v1/...`                                                                                                                                                                                       | Migrated                                                                                         |
| Auth registration completion                      | `/api/auth/email-verification/verify`, `/api/auth/signup/set-password`                                                    | New v1 backend: `TIAR_V1_BASE_URL` + `/v1/...`                                                                                                                                                                                       | Adapter ready; registration deferred because verification is blocked                             |
| Auth token refresh                                | `/api/auth/refresh` and automatic server refresh                                                                          | New v1 backend: `TIAR_V1_BASE_URL` + `POST /v1/auth/refresh-token`                                                                                                                                                                   | Migrated; browser UAT passed                                                                     |
| Auth Change Password                              | `/api/auth/change-password`                                                                                               | New v1 adapter + `POST /v1/auth/change-password`                                                                                                                                                                                     | Migrated — UAT passed                                                                            |
| Auth Forgot Password                              | `/api/auth/forgot-password`                                                                                               | New v1 backend: `POST /v1/auth/request-password-reset`                                                                                                                       | Migrated — v1 endpoint verified                                                                    |
| Auth Reset Password                               | `/api/auth/reset-password`                                                                                                | New v1 backend: `POST /v1/auth/reset-password`                                                                                                                                 | Migrated — v1 contract implemented                                                                  |
| Auth logout, OTP, and required-password setup    | `/api/auth/logout`, `/api/auth/request-otp`, `/api/auth/verify-otp`, `/api/auth/set-password`                            | Legacy service + `/v1.1/...`; no matching v1 request identified in the collection                                                                                                                                                    | API gap / Deferred                                                                               |
| Home station/location data                        | `/api/nearest-chargepoint`                                                                                                 | New v1 adapter + `GET /v1/chargepoints`; nearest selection is calculated locally with Haversine from the v1 station coordinates. The separate legacy location lookup is no longer used by this flow.                         | Migrated — UAT pending                                                                           |
| Home — Recent Sessions                            | `/`, `SessionWidget`                                                                                                      | New v1 adapter + `GET /v1/sessions` via `getSessionsAction`                                                                                                                                                                          | Migrated — UAT passed                                                                            |
| Home — Available Stations                         | `/`, `StationWidget`                                                                                                      | New v1 adapter + `GET /v1/chargepoints` via `getChargePointsAction`; filters station-level `Available` and `online` status                                                                                                           | Migrated — UAT passed; connector data deferred                                                   |
| Stations list — basic station data                | `/api/chargepoints`, `/stations`                                                                                          | New v1 adapter + `GET /v1/chargepoints`; v1 response has station fields but no embedded connectors                                                                                                                                   | Partial v1 — connector data missing                                                              |
| Station detail — basic station data               | `/api/chargepoints/{id}`, `/stations/{id}`                                                                                | New v1 adapter + `GET /v1/chargepoints/{id}`; v1 detail has station fields but no embedded connectors                                                                                                                                | Partial v1 — connector data missing                                                              |
| Map                                               | `/api/chargepoints/map`, `/api/locations/{id}`, `/api/connectors/...`                                                     | Map/list, location, and connector-status paths remain legacy; the shared nearest-station flow now uses v1 chargepoints and local Haversine distance calculation                                      | Partial v1 — nearest migrated; map/location remain deferred                                           |
| Sessions list and statistics                      | `/api/sessions`, `/sessions`                                                                                              | New v1 adapter + `GET /v1/sessions`; statistics continue to aggregate the v1 list response                                                                                                                                           | Migrated — browser validation passed                                                             |
| Session detail and charging actions               | `/api/sessions/{id}`, `/api/sessions/{id}/stream`, `/api/sessions/{id}/stop`, `POST /api/sessions`                        | Detail still uses legacy `/v1.1/sessions/{id}`; no v1 detail request is present in the collection                                                                                                                                    | Deferred — API gap; list migrated                                                                |
| Wallet, top-up, and payment                       | `/api/wallet/...`, `/api/payment`, `/api/creditcard/...`                                                                  | Wallet balance now uses v1 `GET /v1/user`; payment-channel list and all e-wallet top-up branches use v1. OTC, virtual-account, and QR have v1 wiring. The current credit-card initiation is an Xendit-specific flow and is not the target for the new Midtrans Snap integration. The old repository contains dormant card-management components, but they are not part of the active old-app flow. | Partial v1 — wallet balance UAT passed; OVO and Mandiri backend mappings blocked; credit-card deferred pending Midtrans Snap |
| Transactions — list and detail                    | `/api/transactions/...`, `/wallet`, `/transactions/{id}`                                                                  | Active list and detail routes now use v1 adapters: `GET /v1/transaction` and `GET /v1/transaction/detail/:id`; page 2 requests reach v1 but the live response repeats page 1                                                                 | Partial v1 — detail verified; list pagination blocked upstream                                  |
| Profile and account settings — basic info/address | `/profile`, `/api/auth/me`, `/api/profile/update`                                                                         | New v1 adapter: `GET /v1/user` and `PATCH /v1/user/{id}`                                                                                                                                                                             | Migrated — browser validation passed                                                             |
| RFID                                              | Profile section and `/api/rfid/...`                                                                                       | RFID management is removed from `development`; implementation remains isolated on `feat/migrate-rfid-v1`                                                                                                                            | Deferred — feature branch only                                                                    |
| Notifications                                     | `/api/notifications/...`                                                                                                  | Legacy service + `/v1.1/...`; v1 FCM-token request exists, but notification list/subscription requests are not identified                                                                                                            | Partial v1 / Deferred; authenticated request returned HTTP 401                                   |
| Withdrawals                                       | `/api/withdrawals/...`, `/wallet/withdrawals`                                                                             | New v1 adapter: withdrawal list, channels, validation, OTP, and create withdrawal; account management remains legacy                                                                                                                 | Migrated — browser UAT pending                                                                   |
| News, support, legal, and QR UI                   | Page/CMS/device flows                                                                                                     | No matching v1 backend routing confirmed yet                                                                                                                                                                                         | Not migrated or not applicable                                                                   |

### Backend migration status definitions

| Status                        | Meaning                                                                                                                |
| ----------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
| `Migrated`                    | The local web route is already wired to a v1 adapter/request.                                                          |
| `Not migrated — v1 available` | A matching v1 endpoint is present in the collection, but the local web route still uses the legacy service or `/v1.1`. |
| `Partial v1`                  | Some related v1 endpoints exist, but the complete feature contract is not yet mapped.                                  |
| `API gap / Deferred`          | No matching v1 endpoint is identified, or the feature is intentionally outside the current scope.                      |

### Overall feature status

A feature is considered complete only when its UI validation passes and its
backend migration status is `Migrated`. A successful UI flow that still uses
legacy `/v1.1` services is not complete.

| Overall status                         | Meaning                                                                                                  |
| -------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| `Done`                                 | UI validation passed and the backend route uses v1.                                                      |
| `Not done — backend migration pending` | UI validation passed, but the feature still uses legacy `/v1.1` or only partial v1 coverage.             |
| `Blocked — API gap`                    | The required v1 endpoint is missing or not sufficiently defined.                                         |
| `Flagged`                              | The backend route is migrated, but a tested behavior needs follow-up; it is not counted as a clean pass. |
| `Deferred`                             | The feature is intentionally outside the current validation scope.                                       |

### Current migration boundary

The Auth core flow, token refresh, the basic station-list request, and the Home
Recent Sessions request have been switched to the new backend v1 in this
checkpoint. The collection already
contains v1 endpoints for several other business features, but their local
adapters have not been migrated yet. The presence of
`https://dev.api.tiar.ai` in the v1 configuration does not switch existing
services automatically. Existing services that import `getBackendBaseUrl()` and
call `/v1.1/...` remain on the legacy path until they are migrated explicitly.

## Feature summary

| Feature                                           | UI validation             | Backend migration              | Overall status                         | Notes                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| ------------------------------------------------- | ------------------------- | ------------------------------ | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Authentication — sign-in and valid password login | `Passed`                  | `Migrated`                     | `Done`                                 | Valid login reached Home and authenticated user lookup returned HTTP 200.                                                                                                                                                                                                                                                                                                                                                                                                                            |
| Authentication — logout                           | `Passed`                  | `API gap / Deferred`           | `Blocked — API gap`                    | UI logout returned HTTP 200 and returned to Sign In, but no v1 logout endpoint is in the collection.                                                                                                                                                                                                                                                                                                                                                                                                 |
| Authentication — token refresh                    | `Passed`                  | `Migrated`                     | `Done`                                 | `POST /api/auth/refresh` returned success; the refreshed access token had new issue time, expiry, and token ID claims.                                                                                                                                                                                                                                                                                                                                                                               |
| Authentication — unregistered email routing       | `Passed`                  | `Migrated`                     | `Done`                                 | Account check returned HTTP 200 and the app routed to Sign Up.                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Authentication — invalid password handling        | `Flagged`                 | `Migrated`                     | `Flagged`                              | The scenario is outside the current acceptance scope; HTTP 500 is flagged for follow-up and should become a user-facing HTTP 401/4xx error.                                                                                                                                                                                                                                                                                                                                                          |
| Authentication — change password                  | `Passed`                  | `Migrated`                     | `Done`                                 | `POST /api/auth/change-password` returned HTTP 200 with `Password changed successfully`; after logout, login with the new password succeeded and reached Home.                                                                                                                                                                                                                                                                                                                                       |
| Authentication — email input editing              | `Passed`                  | `Not applicable`               | `Done`                                 | Query-string email no longer overwrites manual edits after the initialization fix.                                                                                                                                                                                                                                                                                                                                                                                                                   |
| Registration                                      | `Deferred`                | `Deferred`                     | `Deferred`                             | Registration was intentionally skipped; the email-verification backend flow remains unresolved.                                                                                                                                                                                                                                                                                                                                                                                                      |
| Home                                              | `Passed`                  | `Partial v1`                   | `Not done — backend migration pending` | Nearest station and Available Stations now use v1 chargepoints; notifications and other Home widgets remain tracked separately.                                                                                                                                                                                                                                                                                                                                                         |
| Home — Recent Sessions                            | `Passed`                  | `Migrated`                     | `Done`                                 | Home displays a maximum of five v1-backed sessions with station/location, status, energy, total, duration, timestamp, and connector information. UI UAT was accepted.                                                                                                                                                                                                                                                                                                                                |
| Home — Available Stations                         | `Passed`                  | `Migrated`                     | `Done`                                 | Home reads `GET /v1/chargepoints` and shows online stations with station-level status `Available`; UAT passed. Connector counts remain deferred because v1 list responses do not embed connectors.                                                                                                                                                                                                                                                                                                   |
| Stations list — basic station data                | `Passed with known issue` | `Partial v1`                   | `Not done — backend migration pending` | `/stations` and `/api/chargepoints` use `GET /v1/chargepoints`; the page and request passed, but v1 does not return embedded connectors.                                                                                                                                                                                                                                                                                                                                                             |
| Station detail — basic station data               | `Passed with known issue` | `Partial v1`                   | `Not done — backend migration pending` | `/stations/{id}` and `/api/chargepoints/{id}` use `GET /v1/chargepoints/{id}` and passed; live connector status stream returned HTTP 500 and remains on the legacy path.                                                                                                                                                                                                                                                                                                                             |
| Profile — basic info and address                  | `Passed`                  | `Migrated`                     | `Done`                                 | Profile loaded from `GET /v1/user`; saving basic information/address returned HTTP 200 and the changes remained after reload.                                                                                                                                                                                                                                                                                                                                                                        |
| RFID                                              | `Deferred`                | `Not migrated — feature branch only` | `Deferred`                          | RFID management UI and routes are intentionally excluded from `development`; the implementation remains on `feat/migrate-rfid-v1`, and the required scan/tap flow is still unavailable.                                                                                                                                                                                                                                                                                                      |
| Sessions list and statistics                      | `Passed`                  | `Migrated`                     | `Done`                                 | Five sessions loaded; identifiers and status/statistics mapping were corrected for v1 response aliases.                                                                                                                                                                                                                                                                                                                                                                                              |
| Session detail and charging actions               | `Deferred`                | `API gap / legacy detail path` | `Not done — API gap`                   | Detail navigation returns to `/sessions`; `GET /v1/sessions/{id}` is not present in the v1 collection and detail still calls `/v1.1`.                                                                                                                                                                                                                                                                                                                                                                |
| Transactions                                      | `Partial`                | `Migrated — pagination blocked` | `Not done — backend pagination blocker` | Transaction list and detail routes use v1 adapters, and detail UAT passed. The initial list loads 10 records, but a page-2 request currently receives the same page-1 records from the live v1 endpoint, so the UI correctly refuses to append duplicates.                                                                                                                                                                              |
| Wallet and Top-up                                 | `Partial`                 | `Partial v1`                   | `Not done — payment UAT blocked`       | Wallet balance is routed through v1 `GET /v1/user`; browser refresh UAT passed on 2026-09-01 with `GET /api/wallet/balance` returning HTTP 200 and the UI displaying `Rp0`. The v1 response had an empty currency, so the adapter defaults it to `IDR`; backend should still populate the currency and active status. On 2026-08-31, v1 payment channels and sandbox OTC top-up creation returned success. OVO remains blocked by backend mapping. Credit-card payment is deferred because the current implementation is an Xendit-specific flow while the target gateway is Midtrans Snap, which still requires configuration. |
| Notifications                                     | `Deferred`                | `Partial v1 / Deferred`        | `Deferred`                             | Not part of the current Auth validation scope; HTTP 401 remains tracked for the Notifications feature.                                                                                                                                                                                                                                                                                                                                                                                               |
| Withdrawals                                       | `Not tested`              | `Migrated`                     | `Not done — browser UAT pending`       | Withdrawal list, channel list, eligibility validation, OTP request, pending-check, and create withdrawal now use the v1 transaction endpoints. Account management remains on the legacy path.                                                                                                                                                                                                                                                                                                        |

## 1. Authentication

### 1.1 Open Sign In

**Expected behavior:** The user can open the Sign In page and enter an email.

**Observed result:** `Passed`

- The Sign In page loaded at `/signin`.
- The email-first sign-in form was available.
- The request flow originated from the local sandbox host.

### 1.2 Valid password login

**Expected behavior:** A registered user with a valid password can sign in and
continue to the authenticated Home page.

**Observed result:** `Passed`

Evidence from the browser network log:

| Request                         | Result   |
| ------------------------------- | -------- |
| `POST /api/auth/check-email`    | HTTP 200 |
| `POST /api/auth/login-password` | HTTP 200 |
| `GET /api/auth/me`              | HTTP 200 |
| `GET /`                         | HTTP 200 |

The browser reached Home after login and the authenticated user was loaded.

### 1.3 Logout

**Expected behavior:** An authenticated user can log out and is returned to the
Sign In page.

**Observed result:** `Passed`

| Request                 | Result   |
| ----------------------- | -------- |
| `POST /api/auth/logout` | HTTP 200 |
| `GET /signin`           | HTTP 200 |

### 1.4 Unregistered email routing

**Expected behavior:** When the account check identifies an unregistered email
and sign-up is allowed, the user is directed to Sign Up.

**Observed result:** `Passed`

| Request                                           | Result   |
| ------------------------------------------------- | -------- |
| `POST /api/auth/check-email`                      | HTTP 200 |
| `GET /signup?email=...&reason=unregistered-email` | HTTP 200 |

The email value is intentionally omitted from this document.

### 1.5 Token refresh

**Expected behavior:** An authenticated user with a valid refresh cookie can
refresh the session without signing in again. The server should rotate the
authentication cookies and must not expose raw tokens in the response body.

**Observed result:** `Passed`

| Request                  | Result                                                          |
| ------------------------ | --------------------------------------------------------------- |
| `POST /api/auth/refresh` | HTTP 200; response returned `ok: true` and `data.success: true` |

The refreshed access token was compared with the previous token locally. Its
issue time (`iat`), expiry (`exp`), token ID (`jti`), and signature changed,
while the user and tenant claims remained consistent. Raw token values are
intentionally excluded from this document. The local route uses the TIAR v1
adapter and calls `POST /v1/auth/refresh-token` upstream.

### 1.6 Invalid password handling

**Expected behavior:** An invalid password should keep the user on Sign In and
show a clear authentication error. The server response should be an appropriate
HTTP 401 or other 4xx status, not a server error.

**Observed result:** `Flagged`

- `POST /api/auth/check-email` returned HTTP 200.
- `POST /api/auth/login-password` returned HTTP 500 for the invalid-password scenario.
- The browser displayed the development error stack-frame request after the 500.

**Flag for follow-up:** Inspect the v1 backend error response or local proxy
mapping so invalid credentials are returned as HTTP 401/4xx with a safe
user-facing error. This does not block the current Auth acceptance checkpoint.

### 1.7 Email input editing

**Expected behavior:** An email loaded from the URL may initialize the form, but
manual edits must remain under the user's control.

**Observed result:** `Passed`

The initialization logic was changed so the query-string email is synchronized
only once. The regression test verifies that later renders do not overwrite a
manually edited value. This fix added two passing tests to the test suite.

### 1.8 Registration

**Expected behavior:** A new user can register, verify the email, set a
password, and continue into the application.

**Observed result:** `Deferred`

Registration was intentionally skipped for this checkpoint. The v1 email
verification endpoint previously returned an authentication error before the
verification challenge could be completed. A registration request using an
already-existing account returned HTTP 400, which is not sufficient evidence to
validate the new-user registration flow.

### 1.9 Change password

**Expected behavior:** An authenticated user can change the current password,
remain authenticated, log out, and sign in again with the new password.

**Observed result:** `Passed`

Evidence from the browser UAT:

| Request or action                | Result                                                                     |
| -------------------------------- | -------------------------------------------------------------------------- |
| `POST /api/auth/change-password` | HTTP 200; response returned `ok: true` and `Password changed successfully` |
| Logout                           | Passed                                                                     |
| Login with the new password      | Passed; user reached Home                                                  |

The local route keeps the old UI contract but now uses the server-side v1
adapter and sends `POST /v1/auth/change-password` upstream. The request body
contains `old_password`, `new_password`, and `confirm_password`. Passwords and
authentication tokens are intentionally omitted from this document.

**Feature status:** `Done`

## 2. Home

**Expected behavior:** After successful authentication, Home loads the
authenticated user and its primary station data.

**Observed result:** `Passed`

Evidence from the browser network log:

| Request                            | Result   |
| ---------------------------------- | -------- |
| `GET /`                            | HTTP 200 |
| `GET /api/auth/me`                 | HTTP 200 |
| `GET /api/nearest-chargepoint?...` | Implementation migrated to v1; UAT pending |
| `GET /api/notifications`           | HTTP 401 |

The Notifications feature is outside the current Auth checkpoint and is
deferred to its own feature validation; its HTTP 401 response remains recorded
there.

### Nearest station widget

**Implementation status:** `Migrated to v1 — UAT pending`

The local `/api/nearest-chargepoint` route now reads the authenticated v1
chargepoint list from `GET /v1/chargepoints`. It filters by the requested
online state and radius, calculates straight-line distance with the Haversine
formula, then enriches the selected station with `GET /v1/chargepoints/{id}`
so connector and power data can be shown. The widget no longer calls the
legacy `/v1.1/locations/{id}` lookup; address text falls back to v1 metadata
when available.

### Recent Sessions widget

**Expected behavior:** The Home page displays the user's recent sessions using
the same v1-backed session data as the Sessions page.

**Implementation status:** `Migrated — UAT passed`

The Home page now calls `getSessionsAction`, which routes the request through
`GET /v1/sessions` with the server-held access token. The widget requests and
renders a maximum of five sessions. Each card shows the station/location,
status, energy, total cost, duration, timestamp, and connector when those
values are available in the v1 response. Available Stations, nearest-station,
location, reservations, and notifications are outside this change and retain
their documented statuses.

**UAT result:** `Passed`. The Home widget displayed no more than five recent
sessions and the expanded cards were accepted as readable and sufficiently
informative. The v1 routing is covered by the existing action/adapter tests.

**UAT checklist:**

1. Open Home while signed in.
2. Confirm Recent Sessions renders no more than five latest sessions or a safe
   empty state.
3. Confirm each card has readable station/location, status, energy, total,
   duration, timestamp, and connector information where available.
4. Check the Network panel or server logs and confirm the session request uses
   v1, not `/v1.1`.

### Available Stations widget

**Expected behavior:** Home displays online stations that are currently
available for charging.

**Implementation status:** `Migrated — UAT passed`

The widget now calls `GET /v1/chargepoints` through the v1-enabled chargepoint
action and displays stations with station-level status `Available` and
`online: true`. It does not infer connector availability from an empty v1
`connectors` array; until the backend embeds connector data, the widget shows
`Connector details unavailable`.

**UAT result:** `Passed`. Available Stations displayed the expected online and
available stations, used the v1 route, and did not show missing connector data
as `0 Available of 0`.

**UAT checklist:**

1. Open Home while signed in.
2. Confirm Available Stations renders online/available stations, or a safe
   empty state when none match.
3. Check the Network panel or server logs and confirm the request uses
   `GET /v1/chargepoints`, not `/v1.1/chargepoints`.
4. Confirm a station without connector data is not shown as `0 Available of 0`.

## 2.1 Stations list — basic station data

**Backend contract verified:** The authenticated request to
`GET /v1/chargepoints` returned HTTP `200` from `https://dev.api.tiar.ai` with
the required tenant routing headers. The response contains station identity,
status, online/active state, coordinates as separate `latitude` and
`longitude` fields, and pagination metadata.

The new adapter maps those fields to the existing UI model, including
`latitude`/`longitude` to `coordinates` and `metadata` to `meta_data`. The
`/stations` server page and `/api/chargepoints` route now use this adapter.

**Migration limitation:** The v1 list and detail responses tested so far do
not include a `connectors` array. Connector counts, rates, and connector-level
availability therefore remain incomplete and this feature stays `Partial v1`.

**Browser validation:** `Passed with known issue` on 2026-08-28. The local
`/stations` page returned HTTP `200`, `/api/chargepoints` returned HTTP `200`,
and `/api/auth/me` returned HTTP `200`. No `Invalid ChargePoint data` warning
was observed after blank `avatar_url` values were normalized to `undefined`.
Connector-related fields remain incomplete because they are not present in the
v1 list response.

## 2.2 Station detail — basic station data

The station detail route and API route now use the v1 chargepoint detail
adapter. The adapter requests `GET /v1/chargepoints/{id}` and maps the v1
response into the existing station detail model, including coordinates,
metadata, status, and station identity fields.

**Migration limitation:** The tested v1 detail response does not include a
`connectors` array. Connector selection, connector rates, live connector
status, and charging actions therefore remain deferred for this slice.

**Browser validation:** `Passed with known issue` on 2026-08-28. The local
`/stations/{id}` page returned HTTP `200`, `/api/chargepoints/{id}` returned
HTTP `200`, and `/api/auth/me` returned HTTP `200`. The browser also requested
`/api/chargepoints/{id}/connectors/status/stream`, which returned HTTP `500`.
That stream route is still backed by the legacy connector-status path and is
tracked separately from the successful v1 station-detail request.

## 2.3 Sessions — API mapping

The existing Sessions UI uses `/sessions` for the list and `/sessions/{id}` for
detail. The list page loads session statistics and paginated sessions, while
the detail page loads one session, its chargepoint/location context, a realtime
stream, and a stop control. Reservations are a separate tab and are not part
of this Sessions API mapping.

| UI behavior             | Current local route                     | Legacy upstream                     | v1 collection endpoint         | Mapping result                                                                                                                                                   |
| ----------------------- | --------------------------------------- | ----------------------------------- | ------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Session list            | `GET /api/sessions`                     | `GET /v1.1/sessions`                | `GET /v1/sessions`             | Migrated; browser validation passed after adapter field/status normalization                                                                                     |
| Session detail          | `GET /api/sessions/{id}`                | `GET /v1.1/sessions/{id}`           | Not present                    | Deferred/API gap — no v1 detail request in the collection; clicking a list item currently returns to `/sessions` because the detail lookup remains legacy-backed |
| Realtime session detail | `GET /api/sessions/{id}/stream`         | `GET /v1.1/sessions/{id}/stream`    | `GET /v1/sessions/{id}/stream` | Candidate v1 endpoint; SSE response needs verification                                                                                                           |
| Start session           | `POST /api/sessions`                    | `POST /v1.1/sessions`               | `POST /v1/sessions`            | Flow differs; v1 uses `charge_point_id`, `connector_id`, and `payment_method`                                                                                    |
| Stop session            | `GET /api/sessions/{id}/stop`           | `POST /v1.1/sessions/{id}/stop`     | `POST /v1/sessions/{id}/stop`  | Method and payload need adapter handling; v1 collection includes charge point and connector fields                                                               |
| Session statistics      | Server-side aggregation over list calls | Multiple `GET /v1.1/sessions` calls | No dedicated v1 stats request  | Keep client/server aggregation over a verified v1 list contract                                                                                                  |

The Postman collection contains no saved response examples for these requests.
It also shows a stale request body under the GET list and stream entries; GET
requests should not send that body. The collection does not document the list
query parameters or the v1 response schema, so those items remain unverified.

One existing implementation issue was identified during the audit:
`sessionService.getSessions()` constructs an Authorization header but does not
pass it to its `fetch` call. The v1 adapter must send the access token
explicitly.

### 2.4 Sessions — browser validation

The Sessions list was validated against the local web and v1-backed list flow:

- Five sessions loaded successfully.
- Session identifiers displayed without `undefined`.
- Four completed sessions were counted correctly.
- v1 status aliases were normalized for the legacy UI (`completed` to `Ended`
  and active `stopping` to `Started`).

Session detail is intentionally not marked complete. The browser navigated to
`/sessions/{id}`, but the page then returned to `/sessions` because the server
detail module still calls the legacy `GET /v1.1/sessions/{id}` service. The v1
Postman collection does not contain a `GET /v1/sessions/{id}` endpoint, so this
flow remains **Deferred / API gap** until the backend contract is available.

**Implementation status:** The v1 list adapter is now implemented and wired to
the server action, session statistics aggregation, and `GET /api/sessions`.
Detail, stream, start, and stop remain on their existing paths until their
individual contracts are migrated.

## 3. Transactions — API validation

Transactions are part of the old Wallet flow. The old UI shows transaction
history on `/wallet` and opens a transaction detail page at
`/transactions/{id}`. The active list and detail routes use v1 adapters; the
legacy `/v1.1/transactions` service remains only as unused compatibility code.

### 3.1 Transaction list

**Request:**

```text
GET https://dev.api.tiar.ai/v1/transaction
```

The request used the v1 access token, `X-App-Name: mobile_app`, and
`X-Forwarded-Host: parking-plus.dev.tiar.ai`. The following variants were
tested on 2026-08-31:

- No query parameters.
- `paginate=CURSOR&paginate_limit=10`.
- `paginate=PAGE&paginate_limit=10`.
- `limit=10`.
- `page=1&limit=10`.
- With and without the tenant/organization routing headers.

**Historical direct result (2026-08-31):** `Blocked — upstream HTTP 500`

Every variant returned:

```json
{
  "ok": false,
  "message": "Internal Server Error",
  "result": null,
  "pagination": null
}
```

The gateway reached the endpoint, but the upstream transaction-list service
failed. This is not a route-not-found or authentication response. Backend
investigation should use request ID `4e9134336e026b3ac34707e825017b00`.

**Latest result:** `GET /api/transactions?paginate=CURSOR&limit=10` returned
HTTP `200` during browser UAT, the transaction history was visible in the UI,
and direct `GET /v1/transaction` was subsequently confirmed working.

The frontend adapter is wired to the documented initial request shape without
undocumented pagination parameters. It normalizes v1 transaction aliases,
supports a cursor for subsequent pages, and converts missing or invalid dates
to `null` instead of the Unix epoch (`Jan 1, 1970`). The local API returns a
controlled error when the upstream response is unsuccessful.

The Wallet Recent History UI displays a status badge for every transaction using
the normalized v1 status: `Pending`, `Success`, `Failed`, `Expired`, or
`Reversed`. Pending and non-final transactions remain visibly distinct from
successful transactions, so the history does not imply completion before the
backend reports a final status.

#### Transaction pagination blocker

On 2026-09-09, browser logs confirmed that the scroll flow constructs and sends
the page-2 request correctly:

```text
GET /api/transactions?paginate=PAGE&limit=10&page=2
GET /v1/transaction?paginate=PAGE&paginate_enabled=true&paginate_limit=10&paginate_page=2
```

However, the live v1 response returned the page-1 transaction IDs again and
reported `pagination.page: 1`, `paging_counter: 1`, and
`has_next_page: true`. The local UI detects that all returned IDs already
exist and deliberately does not append them, which is why the wallet history
remains at 10 visible records. This is not a scroll-trigger or duplicate
rendering issue in the frontend.

Direct Postman evidence:

- Request: `GET https://dev.api.tiar.ai/v1/transaction?paginate=PAGE&paginate_enabled=true&paginate_limit=10&paginate_page=2`
- Response: HTTP `200`, but `pagination.page` was `1` and the records matched
  page 1.
- Request ID: `17f9c348e1be35a9996f94faef482d64`

**Feature status:** `Blocked — backend/gateway must honor
`paginate_page=2` and return page-2 records. Do not remove the frontend
duplicate guard as a workaround.**

### 3.2 Transaction detail

**Request:**

```text
GET https://dev.api.tiar.ai/v1/transaction/detail/:id
```

Using the example transaction ID from the Postman collection returned
`200 OK` with message `Transaction retrieved successfully`. The sample result
contained these fields:

```text
amount, created_at, currency, email, id, metadata,
organization_code, status, transaction_type, updated_at, user_id
```

The frontend normalizes the v1 detail response into the existing UI model,
including uppercase transaction type and status aliases such as `paid` to
`SUCCESS`. Browser UAT passed on 2026-09-02: the detail page loaded successfully
for transaction `01a06023-e0e0-7535-81c9-cd1dc7b48def`. The top-up detail icon
uses local payment-channel assets with a safe fallback.

**Feature status:** `Done` — list and detail adapters are wired, browser UAT
passed through the local routes, and the direct v1 list endpoint was confirmed
working after the historical HTTP `500`.

## 4. Payment — top-up API validation

The old UI exposes top-up from `/wallet` and `/topup`. The flow lets the user
choose an amount and payment channel, then displays the payment-specific
result screen. The current web implementation uses v1 for payment
channel loading, OTC, all e-wallet branches, virtual-account, QR, and
credit-card initiation. Some wallet/card-management routes still use legacy
`/v1.1/...` services.

After the user finishes or confirms payment in the payment-specific screen,
the web app returns directly to `/wallet`. It does not open a WebSocket or poll
for a terminal payment status. The wallet can be refreshed manually if the
payment gateway has not updated the balance yet; final payment state remains
owned by the backend/payment gateway callback flow.

### 4.1 Payment channel list

**Request:**

```text
GET https://dev.api.tiar.ai/v1/transaction/topup
```

The request used the v1 access token, `X-App-Name: mobile_app`, and
`X-Forwarded-Host: parking-plus.dev.tiar.ai`.

**Observed result:** `Passed` — HTTP `200 OK`

The API returned `Available payment channels retrieved successfully` and 22
channels. Each channel included fields such as:

```text
id, name, code, type, description, logo_url,
created_at, updated_at, gateway_id
```

The response included a `VIRTUAL_ACCOUNT` channel. The v1 channel-list route
is therefore reachable and can provide the data needed to populate the top-up
payment-method selector.

### 4.2 Wallet balance

**Request:**

```text
GET https://dev.api.tiar.ai/v1/user
```

The request returned `200 OK` with message `User profile retrieved
successfully`. The result included a `wallet` object with these fields:

```text
active, balance, created_at, currency, updated_at, user_id
```

This confirms that the v1 profile response can supply the read-only wallet
balance and currency needed by the Wallet page. A dedicated v1 wallet-balance
endpoint was not present in the Postman collection.

The wallet server module, wallet refresh action, and local
`/api/wallet/balance` route now use the v1 `GET /v1/user` response. The local
route keeps its existing UI-facing response shape (`result.balance` and
`result.currency`) while no longer calling the legacy
`/v1.1/users/{id}/wallet/balance` endpoint.

During browser validation on 2026-09-01, `/api/auth/me` returned a wallet with
`balance: 0` but an empty `currency` and `active: false`. A zero balance is a
valid wallet value, so the v1 adapter now accepts it and defaults an empty
currency to `IDR` for this application. The backend should still populate the
wallet currency and active status when the account is ready for real wallet
operations.

**Browser UAT:** Retest after the adapter update. Confirm that `/wallet`
displays `Rp0`, the refresh button returns HTTP 200, and no `/v1.1`
wallet-balance request is made.

### 4.3 Top-up creation

The Postman collection documents a consolidated v1 request:

```text
POST https://dev.api.tiar.ai/v1/transaction/topup/:id
```

The `:id` represents the payment method type, with examples for virtual
account, e-wallet, OTC (`otc`), QR, and credit card. The backend identifier for
the OTC variant is `:id=otc`, amount `50000`, and channel `INDOMARET`.

The frontend previously used `:id=over-the-counter`, which returned HTTP `404`
(`page not found`) during the latest local UAT. The adapter now uses the
backend's updated `:id=otc` path.

**Observed result:** `Passed` — HTTP `201 Created`

The updated `:id=otc` request was retested successfully. The API returned
`Topup via OTC created successfully`. The created payment transaction had
status `PENDING` and transaction type `TOPUP`. The response structure was:

```text
result.payment_transaction
result.topup_detail
```

The transaction ID from this test was
`01a0567a-0462-7279-afff-67fc848b39e1`. The payment action value was returned
inside `result.topup_detail.details.actions[]`, rather than the legacy
`details.otc_code` field. The payment action value is intentionally omitted
from this document.

Top-up creation for the remaining methods and credit-card payment sessions
must be validated before the Payment feature can be considered migrated. The
v1 adapters are implemented in `src/services/v1/topupAdapter.ts` and
`src/services/v1/creditCardAdapter.ts`.

#### Virtual Account response mapping

During the 2026-09-03 Postman validation, the BCA Virtual Account endpoint
returned a successful `201 Created` response using the Midtrans-shaped field:

```text
result.topup_detail.details.va_numbers[0].va_number
```

The frontend previously only accepted `details.virtual_account_number` or a
`PRESENT_TO_CUSTOMER` action, which caused the local UI to show
`V1 Virtual Account response is missing virtual account number` even though
the backend had created the payment successfully. The v1 adapter now supports
the Midtrans `va_numbers[].va_number` shape and maps it to the UI's common
`details.virtual_account_number` field. It also maps `details.expiry_time` to
`details.expires_at`.

### 4.4 Payment-channel UAT summary

The following payment-channel results were observed during local sandbox UAT:

| Payment channel     | Result    | Notes                                                                                                                                               |
| ------------------- | --------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| BCA Virtual Account | `Passed`  | Payment details were created successfully.                                                                                                          |
| Mandiri Virtual Account | `Blocked` | The v1 channel list exposes `name: "Mandiri"` with `code: "echannel"`, but creating a top-up with `echannel` returned a Permata VA response instead of Mandiri payment details. See the mapping blocker below. |
| GoPay               | `Passed`  | Payment flow proceeded successfully.                                                                                                                |
| QRIS                | `Passed`  | QR payment flow proceeded successfully.                                                                                                             |
| OTC                 | `Passed`  | The adapter uses the backend's `:id=otc` path; the local browser UAT completed successfully and returned to `/wallet` without WebSocket or polling. |
| Credit Card         | `Deferred` | The current UI uses the Xendit Cards Session flow. It reached `https://api.xendit.co/v3/payment_with_session`, which returned `404 DATA_NOT_FOUND: Payment session not found`. The target implementation is Midtrans Snap; Midtrans payment configuration and the final v1 contract are pending. |
| OVO                 | `Blocked` | Backend/Xendit mapping requires `channel_properties.account_mobile_number`.                                                                         |
| JENIUSPAY           | `Blocked` | Backend requires a `cashtag`, which the current UI does not collect.                                                                                |

The Payment feature remains partial until the blocked channels are resolved
and retested successfully. Credit-card work is explicitly deferred until the
Midtrans Snap configuration and integration contract are available.

#### Mandiri virtual-account mapping blocker

On 2026-09-08, the v1 payment-channel response returned both of these entries:

```json
{ "name": "Mandiri", "code": "echannel", "type": "VIRTUAL_ACCOUNT" }
{ "name": "Permata", "code": "permata", "type": "VIRTUAL_ACCOUNT" }
```

A direct request to `POST /v1/transaction/topup/virtual-account` with
`channel_name: "echannel"` returned HTTP `201`, but the response contained:

```json
{
  "status_message": "Success, PERMATA VA transaction is successful",
  "permata_va_number": "..."
}
```

This means the transaction was created, but the backend/payment-gateway
mapping processed the channel as Permata even though v1 advertises `echannel`
as Mandiri. The frontend must not silently display the Permata number as a
Mandiri VA. The backend/payment team must correct the channel mapping or
update the channel list to match the actual gateway behavior, then the
Mandiri flow must be retested. The frontend adapter error
`V1 Virtual Account response is missing virtual account number` is a
secondary symptom: it does not recognize `details.permata_va_number`, but
adding that fallback alone would risk showing the wrong bank to the user.

**Feature status:** `Blocked — backend payment-channel mapping required for
Mandiri`

### 4.5 E-wallet UAT

The e-wallet branches are wired to the v1 adapter and send the account phone
number as `phone_number`, matching the e-wallet example in the Postman
collection. During local UAT on 2026-08-31, an OVO top-up was rejected with:

```text
Xendit API_VALIDATION_ERROR: channel_properties must have required property 'account_mobile_number'
```

The backend v1 accepted the request far enough to call Xendit, but did not
map the submitted phone number to OVO's required
`channel_properties.account_mobile_number` field. The frontend request follows
the currently documented v1 payload, so this is tracked as a backend contract
or mapping issue.

**Feature status:** `Blocked — backend mapping required for OVO`

### 4.6 Credit-card top-up

**Gateway transition:** The current local credit-card form was implemented for
the Xendit Cards Session flow. That flow is no longer the target because the
new payment gateway will use Midtrans Snap for credit-card payment. The
Midtrans Snap configuration, client integration, and final backend/v1 contract
must be provided before this feature can be migrated and accepted.

The local UI reaches the credit-card form, but the payment cannot currently
complete. During local UAT, submitting a new card sent the Xendit-specific
payment-session request and returned:

```text
Payment session not found
```

The frontend is wired to create a new-card session through:

```text
POST https://dev.api.tiar.ai/v1/transaction/creditcards/sessions
```

and then passes the returned `payment_session_id` to the Xendit Cards Session
SDK. The browser subsequently called:

```http
POST https://api.xendit.co/v3/payment_with_session
```

Xendit returned HTTP `404` with `DATA_NOT_FOUND` and `Payment session not
found`. This is consistent with the frontend using an Xendit-specific flow
while the payment gateway is being changed to Midtrans. It is not sufficient
evidence that the card data or the `ps-...` identifier is malformed.

Saved-card top-ups and the current `payment_token_id` flow are also deferred;
they must be reassessed against the Midtrans Snap design rather than migrated
as Xendit behavior.

**Blocker:** the backend/payment team must configure Midtrans Snap and provide
the supported request/response contract, including the Snap token/session
creation flow, client-side payment handoff, result handling, and whether saved
cards are supported. No successful credit-card payment is recorded.

#### Payment-session validation required

The former Xendit flow would have required the backend team to validate the
returned ID server-side with the same Xendit account, API mode, and credentials
used when creating the session:

```http
GET https://api.xendit.co/sessions/{payment_session_id}
Authorization: Basic <XENDIT_SECRET_API_KEY>
```

Expected checks for a successful response are:

- HTTP `200` and the same `payment_session_id`.
- `status` is `ACTIVE` when the card form is opened.
- `mode` matches the frontend integration mode.
- `amount`, `currency`, and `expires_at` match the top-up request and remain
  valid.
- `business_id` belongs to the intended Xendit merchant/environment.

### 4.7 Saved credit-card management scope

The old repository contains `CreditCardSection`, credit-card actions, and
legacy `GET`/`DELETE` service methods for linking and removing a saved card.
However, source inspection found no active route importing or rendering this
card-management section in the old application. It is dormant/dead code, not
an active old-UI behavior to preserve.

Therefore, saved credit-card management is **not a migration target**. The
active scope remains credit-card payment during top-up only. Do not implement
separate Link/Remove Card UI or migrate the legacy card-management endpoints
unless product requirements explicitly bring that flow back into scope.

For historical context, Xendit documents `404 NOT_FOUND` when the session does
not exist or does not belong to the business associated with the credentials.
Therefore, the local error was not evidence that the ID was syntactically fake;
it indicated that the session could not be found by the Xendit payment request.
This Xendit validation is no longer the next action. The next action is for the
backend/payment team to provide the Midtrans Snap configuration and contract.

**Feature status:** `Deferred — Midtrans Snap configuration and integration contract pending`

## 5. Profile — basic information and address

This slice keeps the existing Profile UI and changes only its active profile
read/update routes to the new v1 backend.

### 5.1 Current routing

| UI operation                | Local route           | Upstream route        | Status                              |
| --------------------------- | --------------------- | --------------------- | ----------------------------------- |
| Load profile                | `/profile`            | `GET /v1/user`        | Migrated; browser validation passed |
| Refresh profile             | `/api/auth/me`        | `GET /v1/user`        | Existing v1 auth route              |
| Save basic info and address | `/api/profile/update` | `PATCH /v1/user/{id}` | Migrated; browser validation passed |

The local API route remains unchanged so the existing UI does not need a
rewrite. The active Profile page no longer calls the legacy user service for
basic information and address updates. RFID, notification settings, and Forgot
Password remain separate migration slices.

**Observed result (2026-08-31):** `Passed`

- `/profile` loaded successfully in the local sandbox.
- Saving profile information through `POST /api/profile/update` returned HTTP
  `200 OK`.
- The edited profile value remained after refreshing `/profile`.

**Feature status:** `Done`

## 6. RFID

RFID management is intentionally excluded from `development` for now. The
UI, local RFID routes, and service remain available on `feat/migrate-rfid-v1`
for later reactivation.

**Feature status:** `Deferred — feature removed from development and kept in feature branch`

The feature must not be reactivated until the expected physical RFID scan/tap
flow and its backend contract are confirmed.

## 7. Withdrawals — API validation

The withdrawal flow now uses the v1 transaction endpoints for the user-facing
operations. The local UI route and server actions remain unchanged; only the
upstream adapter changed.

### 7.1 Current routing

| UI operation             | Local flow                 | Upstream v1 route                          | Status                   |
| ------------------------ | -------------------------- | ------------------------------------------ | ------------------------ |
| Check withdrawal history | Pending withdrawal check   | `GET /v1/transaction/withdrawals`          | Implemented; UAT pending |
| Load payout channels     | `/api/withdrawals`         | `GET /v1/transaction/withdrawals/channels` | Implemented; UAT pending |
| Validate eligibility     | Withdrawal form validation | `GET /v1/transaction/withdrawals/validate` | Implemented; UAT pending |
| Request withdrawal OTP   | Withdrawal OTP action      | `POST /v1/transaction/withdrawals/otp`     | Implemented; UAT pending |
| Create withdrawal        | `POST /wallet/withdrawals` | `POST /v1/transaction/withdrawals`         | Implemented; UAT pending |

The v1 payload intentionally sends only the fields defined by the Postman
contract for OTP and create requests. The local `Idempotency-Key` is forwarded
for create withdrawal requests.

### 7.2 UAT checklist

- Open `/wallet/withdrawals` while authenticated.
- Confirm payout channels load from the v1 channel endpoint.
- Submit a valid withdrawal form and confirm the v1 validation response.
- Request OTP and confirm the OTP request reaches the v1 OTP endpoint.
- Submit the received OTP and confirm the withdrawal is created through v1.
- Confirm a `pending_approval` withdrawal blocks a second request.
- Record any backend callback/status-update limitation separately; it does not
  change the upstream routing result.

**Feature status:** `Migrated — browser UAT pending`

## 8. Remaining feature validation

The following features are present in the migrated UI inventory but have not
yet been validated against the new backend:

| Feature                                 | Status                                                                                                                                        |
| --------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| Map                                     | `Deferred — Google Maps configuration and v1 map contracts unavailable`                                                                       |
| Station detail and charging actions     | `Partial — basic station detail uses v1; connector/status flow deferred`                                                                      |
| Sessions list                           | `Passed` — v1 list/statistics validated; session detail remains `Deferred / API gap`                                                          |
| Wallet and Top-up                       | `Partial — wallet balance browser UAT passed; OVO UAT blocked by backend mapping and credit-card deferred pending Midtrans Snap configuration` |
| Transactions                            | `Passed` — list and detail browser UAT passed; direct v1 list endpoint confirmed working                                                      |
| Profile — basic info and address        | `Passed` — profile update returned HTTP 200 and changes persisted after reload                                                                |
| RFID                                    | `Deferred` — UI and migration kept in `feat/migrate-rfid-v1`; RFID scan/tap flow is unavailable                                             |
| Notifications                           | `Deferred` — outside the current Auth checkpoint; authenticated request currently returns HTTP 401                                            |
| News, support, terms, and refund policy | `Not tested`                                                                                                                                  |
| QR scan                                 | `Not tested`                                                                                                                                  |
| Withdrawals                             | `Migrated — browser UAT pending`                                                                                                              |

## Next validation priorities

1. Keep the invalid-password HTTP 500 flagged for follow-up.
2. Validate station-detail basic data separately from the deferred charging/status stream.
3. Run withdrawal browser UAT when the OTP and payment-gateway callback flow is available.
4. Keep RFID outside `development` until the scan/tap contract is confirmed.
5. Validate Stations/Map remaining contracts as a separate slice.
6. Validate Notifications separately when that feature enters scope.
7. Revisit OVO and JENIUSPAY after the backend mapping changes.
8. Revisit Credit Card after Midtrans Snap is configured; do not continue the Xendit flow.
9. Continue adding each feature's evidence and known issues to this document.
