diff --git a/.gitignore b/.gitignore index c115549..ee8d9d9 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ dist/ .kimi-code/ .omp/ .opencode/ +.omc/ diff --git a/apps/mall/locales/checkout.ts b/apps/mall/locales/checkout.ts index edb512a..03aaf31 100644 --- a/apps/mall/locales/checkout.ts +++ b/apps/mall/locales/checkout.ts @@ -15,6 +15,8 @@ export default { backToCart: "Back to cart", loadError: "Unable to load the order.", submitError: "Unable to place the order.", + addressRequired: "Please select or fill in a shipping address.", + noSavedAddress: "No saved address. Please enter one below.", paymentTitle: "Choose payment", balance: "Balance payment", wechat: "WeChat Pay", @@ -48,6 +50,8 @@ export default { backToCart: "返回购物车", loadError: "订单信息加载失败,请稍后重试。", submitError: "订单提交失败,请稍后重试。", + addressRequired: "请选择或填写收货地址。", + noSavedAddress: "暂无收货地址,请在下方填写。", paymentTitle: "选择支付方式", balance: "余额支付", wechat: "微信支付", diff --git a/apps/mall/locales/user.ts b/apps/mall/locales/user.ts index a99a5ff..db58a22 100644 --- a/apps/mall/locales/user.ts +++ b/apps/mall/locales/user.ts @@ -68,6 +68,8 @@ export default { defaultAddress: "Default", setDefault: "Set as default", saveAddress: "Save address", + country: "Country", + saveFailed: "Save failed. Please try again.", noAddresses: "No shipping addresses yet.", favoritesTitle: "Favorites", favoriteProductsTab: "Products", @@ -159,6 +161,8 @@ export default { defaultAddress: "默认", setDefault: "设为默认", saveAddress: "保存地址", + country: "国家", + saveFailed: "保存失败,请重试。", noAddresses: "暂无收货地址。", favoritesTitle: "我的收藏", favoriteProductsTab: "商品", diff --git a/apps/mall/mock/api.ts b/apps/mall/mock/api.ts index 51f6a28..b820b97 100644 --- a/apps/mall/mock/api.ts +++ b/apps/mall/mock/api.ts @@ -5,6 +5,8 @@ import { ApiError } from "@vmall/shared"; import type { Address, + AddressBookEntry, + AddressInput, ApiClient, AuthTokens, Cart, @@ -28,6 +30,7 @@ import { MOCK_QUICK_LINKS, MOCK_STORES, MOCK_USER, + MOCK_ADDRESSES, defaultAddress, mockConvertMinor, productById, @@ -42,15 +45,16 @@ interface MockState { orders: Order[]; shipments: Shipment[]; invoices: Invoice[]; + addresses: AddressBookEntry[]; + addressSeq: number; orderSeq: number; invoiceSeq: number; } -// v2: cart lines gained shop_id/shop_name/stock, so state saved by an older -// build is no longer a valid CartItem[]. -const STORAGE_KEY = "vmall.mock.state.v2"; +// v3: address book joined the persisted state. +const STORAGE_KEY = "vmall.mock.state.v3"; -type PersistedState = Pick; +type PersistedState = Pick; // Load cart/order session state persisted by a previous page load (client only). function loadPersisted(): PersistedState | null { @@ -64,6 +68,7 @@ function loadPersisted(): PersistedState | null { if (!Array.isArray(p.cart) || !Array.isArray(p.orders)) return null; if (!Array.isArray(p.shipments) || !Array.isArray(p.invoices)) return null; if (typeof p.orderSeq !== "number" || typeof p.invoiceSeq !== "number") return null; + if (!Array.isArray(p.addresses) || typeof p.addressSeq !== "number") return null; return p as PersistedState; } catch { return null; @@ -74,12 +79,27 @@ function initialState(): MockState { const persisted = loadPersisted(); if (persisted) return { token: null, ...persisted }; const seed = seedOrders(MOCK_USER.id); + const seededAddresses: AddressBookEntry[] = MOCK_ADDRESSES.map((a, i) => ({ + id: a.id, + user_id: MOCK_USER.id, + recipient: a.recipient, + phone: a.phone, + country: "US", + region: a.region, + city: a.city, + line1: a.line1, + postal_code: a.postalCode, + is_default: a.isDefault, + created_at: `2026-08-0${i + 1}T09:00:00.000Z`, + })); return { token: null, cart: [], orders: seed.orders, shipments: seed.shipments, invoices: seed.invoices, + addresses: seededAddresses, + addressSeq: 100, orderSeq: 100, invoiceSeq: 100, }; @@ -132,6 +152,8 @@ export function createMockApi(): ApiClient { invoices: state.invoices, orderSeq: state.orderSeq, invoiceSeq: state.invoiceSeq, + addresses: state.addresses, + addressSeq: state.addressSeq, }; localStorage.setItem(STORAGE_KEY, JSON.stringify(snapshot)); } catch { @@ -386,6 +408,74 @@ export function createMockApi(): ApiClient { return Promise.resolve(toShopProfile(store)); }, + listMyAddresses: () => + Promise.resolve( + [...state.addresses].sort( + (a, b) => Number(b.is_default) - Number(a.is_default) || b.created_at.localeCompare(a.created_at), + ), + ), + + createAddress: (input: AddressInput) => { + const makeDefault = input.is_default === true || state.addresses.length === 0; + if (makeDefault) for (const a of state.addresses) a.is_default = false; + state.addressSeq += 1; + const entry: AddressBookEntry = { + id: `a-${state.addressSeq}`, + user_id: MOCK_USER.id, + recipient: input.recipient, + phone: input.phone, + country: input.country, + region: input.region, + city: input.city, + line1: input.line1, + postal_code: input.postal_code, + is_default: makeDefault, + created_at: new Date().toISOString(), + }; + state.addresses.push(entry); + persist(); + return Promise.resolve(entry); + }, + + updateAddress: (id: string, input: AddressInput) => { + const entry = state.addresses.find((a) => a.id === id); + if (!entry) return Promise.reject(new ApiError(404, "NOT_FOUND", "Address not found")); + if (input.is_default === true && !entry.is_default) { + for (const a of state.addresses) a.is_default = false; + } + entry.recipient = input.recipient; + entry.phone = input.phone; + entry.country = input.country; + entry.region = input.region; + entry.city = input.city; + entry.line1 = input.line1; + entry.postal_code = input.postal_code; + entry.is_default = input.is_default === true || entry.is_default; + persist(); + return Promise.resolve({ ...entry }); + }, + + deleteAddress: (id: string) => { + const entry = state.addresses.find((a) => a.id === id); + if (!entry) return Promise.reject(new ApiError(404, "NOT_FOUND", "Address not found")); + const wasDefault = entry.is_default; + state.addresses = state.addresses.filter((a) => a.id !== id); + if (wasDefault && state.addresses.length > 0) { + const latest = state.addresses.reduce((a, b) => (a.created_at > b.created_at ? a : b)); + latest.is_default = true; + } + persist(); + return Promise.resolve([...state.addresses]); + }, + + setDefaultAddress: (id: string) => { + const entry = state.addresses.find((a) => a.id === id); + if (!entry) return Promise.reject(new ApiError(404, "NOT_FOUND", "Address not found")); + for (const a of state.addresses) a.is_default = a.id === id; + persist(); + return Promise.resolve({ ...entry }); + }, + shop: { getMyShop: () => unsupported(), listMyProducts: () => unsupported(), diff --git a/apps/mall/nuxt.config.ts b/apps/mall/nuxt.config.ts index a9bbe4e..b95c960 100644 --- a/apps/mall/nuxt.config.ts +++ b/apps/mall/nuxt.config.ts @@ -9,7 +9,7 @@ export default defineNuxtConfig({ // Domains served by the live backend; every other domain stays on the // fixed-data adapter. Override with NUXT_PUBLIC_LIVE_DOMAINS='["catalog"]'. // See openspec/changes/replace-mock-api-wave-1/design.md and waves 2-3. - liveDomains: ["catalog", "currency", "content", "shops", "brands", "auth", "cart", "orders", "shipments", "invoices"], + liveDomains: ["catalog", "currency", "content", "shops", "brands", "auth", "cart", "orders", "shipments", "invoices", "addresses"], appName: "mall", }, }, diff --git a/apps/mall/pages/checkout/index.vue b/apps/mall/pages/checkout/index.vue index 7ffd72c..eb2b8d8 100644 --- a/apps/mall/pages/checkout/index.vue +++ b/apps/mall/pages/checkout/index.vue @@ -1,8 +1,6 @@ @@ -107,12 +140,13 @@ function save(): void { {{ t("user.addresses") }} - + + @@ -125,16 +159,18 @@ function save(): void { + - + @@ -150,6 +186,10 @@ function save(): void { {{ t("user.phone") }} +

{{ t(errorKey) }}

diff --git a/apps/mall/plugins/api.ts b/apps/mall/plugins/api.ts index fa34f85..3e32e32 100644 --- a/apps/mall/plugins/api.ts +++ b/apps/mall/plugins/api.ts @@ -17,7 +17,8 @@ type LiveDomain = | "cart" | "orders" | "shipments" - | "invoices"; + | "invoices" + | "addresses"; /** * Explicit per-domain method picks rather than a string allowlist: indexing @@ -56,6 +57,13 @@ const LIVE_PICKS = { requestInvoice: a.requestInvoice, listMyInvoices: a.listMyInvoices, }), + addresses: (a: ApiClient) => ({ + listMyAddresses: a.listMyAddresses, + createAddress: a.createAddress, + updateAddress: a.updateAddress, + deleteAddress: a.deleteAddress, + setDefaultAddress: a.setDefaultAddress, + }), } satisfies Record Partial>; const KNOWN_DOMAINS = Object.keys(LIVE_PICKS) as LiveDomain[]; @@ -72,6 +80,7 @@ const DEFAULT_LIVE_DOMAINS: LiveDomain[] = [ "orders", "shipments", "invoices", + "addresses", ]; export default defineNuxtPlugin(() => { diff --git a/openspec/changes/archive/2026-09-18-replace-mock-api-wave-7/proposal.md b/openspec/changes/archive/2026-09-18-replace-mock-api-wave-7/proposal.md new file mode 100644 index 0000000..ee5a214 --- /dev/null +++ b/openspec/changes/archive/2026-09-18-replace-mock-api-wave-7/proposal.md @@ -0,0 +1,34 @@ +# Proposal: replace-mock-api-wave-7 + +## Why + +The address book is the last piece of the core purchase chain still on fixed mock data: `user/addresses.vue` renders `MOCK_ADDRESSES` with local-only edits, and checkout picks from the same static list. A real address entity closes the chain end-to-end against the live API, following the established wave pattern (per-domain live pick in the mall's api plugin, mock adapter stays as fallback). + +## What Changes + +- New `addresses` table: `user_id` FK (cascade), recipient/phone/country/region/city/line1/postal_code, `is_default`, timestamps; partial unique index enforces one default per user. +- New route module `apps/api/src/routes/addresses.rs`: `GET/POST /api/addresses`, `PUT/DELETE /api/addresses/:id`, `POST /api/addresses/:id/default` — customer role only, ownership via `WHERE user_id =` (cross-user → 404). Default management is transactional (unset siblings in the same statement/transaction); the first address becomes default automatically; deleting the default promotes the most recent remaining address. +- `packages/shared`: `AddressBookEntry` type + `listMyAddresses` / `createAddress` / `updateAddress` / `deleteAddress` / `setDefaultAddress` on `ApiClient`. +- Mall mock adapter implements the same methods against its persisted state (seeded from `MOCK_ADDRESSES`), so mock mode keeps working and the rollback flag stays meaningful. +- Mall pages: `user/addresses.vue` switches to real CRUD (existing `UiModal` form pattern, plus delete + set-default); `checkout/index.vue` loads the address list from the API (falls back to an inline manual form when the list is empty) and submits the selected one; `addresses` joins `LIVE_PICKS`/`DEFAULT_LIVE_DOMAINS`. +- `scripts/seed-demo.mjs` seeds two demo addresses for `customer@vmall.local`, idempotently. +- Integration tests in `apps/api/tests/addresses.rs` (fixtures from `tests/common/mod.rs`): CRUD happy path, cross-user 404, single-default invariant, delete-default promotion, role guard. + +## Capabilities + +### New Capabilities + +- `address-book`: per-customer saved shipping addresses with a single default. + +### Modified Capabilities + +- `frontend-mall`: the buyer center address page and checkout address selection use the live address API. + +## Impact + +`apps/api/migrations/0009_addresses.sql`, `apps/api/src/routes/{addresses.rs,mod.rs}`, router registration, `packages/shared/src/{types.ts,api.ts}`, `apps/mall/{mock/api.ts,plugins/api.ts,pages/user/addresses.vue,pages/checkout/index.vue,locales/user.ts,locales/checkout.ts}`, `scripts/seed-demo.mjs`, `apps/api/tests/addresses.rs`. The contract change rebuilds all three frontends. + +## Non-goals + +- No address auto-geocoding, no region cascader data (free-text region/city stays), no address selector inside the order-before flow beyond radio pick. +- Coupons, favorites, wallet stats, marketing subsystems (seckill/collective/integral) and reviews remain mock/future work, unchanged. diff --git a/openspec/changes/archive/2026-09-18-replace-mock-api-wave-7/specs/address-book/spec.md b/openspec/changes/archive/2026-09-18-replace-mock-api-wave-7/specs/address-book/spec.md new file mode 100644 index 0000000..7e3678a --- /dev/null +++ b/openspec/changes/archive/2026-09-18-replace-mock-api-wave-7/specs/address-book/spec.md @@ -0,0 +1,25 @@ +# Spec delta: address-book + +## ADDED Requirements + +### Requirement: Saved shipping addresses +A customer SHALL be able to list, create, update and delete their own shipping addresses through the API. Every address operation SHALL be scoped to the authenticated customer; operating on another user's address SHALL return 404. Non-customer roles SHALL be rejected with 403. + +#### Scenario: manage own addresses +- **WHEN** a customer creates, updates or deletes an address they own +- **THEN** the change persists and appears in their address list + +#### Scenario: cross-user access +- **WHEN** a customer requests an address id owned by a different user +- **THEN** the API returns 404 as if the address did not exist + +### Requirement: Single default address +Each customer SHALL have at most one default address, enforced by the database. The first saved address SHALL become the default. Setting a new default SHALL unset the previous one atomically. Deleting the default address SHALL promote the most recently created remaining address to default. + +#### Scenario: switch default +- **WHEN** a customer marks address B as default while address A was default +- **THEN** B is default and A is not, after one request + +#### Scenario: delete the default +- **WHEN** a customer deletes their default address and other addresses remain +- **THEN** the most recently created remaining address becomes the default diff --git a/openspec/changes/archive/2026-09-18-replace-mock-api-wave-7/specs/frontend-mall/spec.md b/openspec/changes/archive/2026-09-18-replace-mock-api-wave-7/specs/frontend-mall/spec.md new file mode 100644 index 0000000..49adcef --- /dev/null +++ b/openspec/changes/archive/2026-09-18-replace-mock-api-wave-7/specs/frontend-mall/spec.md @@ -0,0 +1,17 @@ +# Spec delta: frontend-mall + +## ADDED Requirements + +### Requirement: Address book management +The mall buyer center SHALL list, add, edit, delete and set-default the signed-in customer's saved addresses through the selected API adapter, replacing the previous fixed mock list. + +#### Scenario: manage addresses in the buyer center +- **WHEN** a signed-in shopper opens `/user/addresses` and adds or edits an address +- **THEN** the change persists through the adapter and survives a full page reload + +### Requirement: Checkout address selection +Checkout SHALL offer the customer's saved addresses for selection, defaulting to their default address, and SHALL submit the selected address with the order. When the customer has no saved address, checkout SHALL provide an inline manual address form instead. + +#### Scenario: checkout with a saved address +- **WHEN** a signed-in shopper with saved addresses checks out +- **THEN** the default address is preselected and the created order carries the chosen address diff --git a/openspec/changes/archive/2026-09-18-replace-mock-api-wave-7/tasks.md b/openspec/changes/archive/2026-09-18-replace-mock-api-wave-7/tasks.md new file mode 100644 index 0000000..070867c --- /dev/null +++ b/openspec/changes/archive/2026-09-18-replace-mock-api-wave-7/tasks.md @@ -0,0 +1,29 @@ +# Tasks: replace-mock-api-wave-7 + +## 1. Backend +- [x] `apps/api/migrations/0009_addresses.sql`: table + `addresses_one_default` partial unique index +- [x] `apps/api/src/routes/addresses.rs`: list/create/update/delete/set-default; customer role; `WHERE user_id` ownership (404 cross-user); transactional default switching; first address auto-default; delete-default promotes latest remaining +- [x] Register module + router; `AddressBookEntry` row model + +## 2. Shared contract +- [x] `packages/shared/src/types.ts`: `AddressBookEntry` +- [x] `packages/shared/src/api.ts`: `listMyAddresses`, `createAddress`, `updateAddress`, `deleteAddress`, `setDefaultAddress` + +## 3. Mock adapter +- [x] `apps/mall/mock/api.ts`: same five methods over persisted mock state (seed from `MOCK_ADDRESSES`) +- [x] `apps/mall/plugins/api.ts`: `addresses` live pick + `DEFAULT_LIVE_DOMAINS` entry + +## 4. Mall pages +- [x] `user/addresses.vue`: real CRUD via `$api` (modal add/edit, delete, set-default) +- [x] `checkout/index.vue`: load addresses from `$api`; radio select; inline manual form fallback when empty; submit selected address +- [x] Locale keys (user/checkout domains, en+zh) + +## 5. Seed + tests +- [x] `scripts/seed-demo.mjs`: two idempotent demo customer addresses +- [x] `apps/api/tests/addresses.rs`: CRUD, cross-user 404, single-default invariant, delete-default promotion, non-customer 403 + +## 6. Verify +- [x] `cargo test -p vmall-api` green (docker vmall_test + Redis) +- [x] `pnpm --filter @vmall/mall build` + shop-admin + admin builds green (contract change) +- [x] `openspec validate replace-mock-api-wave-7 --strict` green +- [x] Browser smoke: address CRUD in user center; checkout with saved address end-to-end diff --git a/openspec/specs/address-book/spec.md b/openspec/specs/address-book/spec.md new file mode 100644 index 0000000..68202a0 --- /dev/null +++ b/openspec/specs/address-book/spec.md @@ -0,0 +1,27 @@ +# address-book Specification + +## Purpose +TBD - created by archiving change replace-mock-api-wave-7. Update Purpose after archive. +## Requirements +### Requirement: Saved shipping addresses +A customer SHALL be able to list, create, update and delete their own shipping addresses through the API. Every address operation SHALL be scoped to the authenticated customer; operating on another user's address SHALL return 404. Non-customer roles SHALL be rejected with 403. + +#### Scenario: manage own addresses +- **WHEN** a customer creates, updates or deletes an address they own +- **THEN** the change persists and appears in their address list + +#### Scenario: cross-user access +- **WHEN** a customer requests an address id owned by a different user +- **THEN** the API returns 404 as if the address did not exist + +### Requirement: Single default address +Each customer SHALL have at most one default address, enforced by the database. The first saved address SHALL become the default. Setting a new default SHALL unset the previous one atomically. Deleting the default address SHALL promote the most recently created remaining address to default. + +#### Scenario: switch default +- **WHEN** a customer marks address B as default while address A was default +- **THEN** B is default and A is not, after one request + +#### Scenario: delete the default +- **WHEN** a customer deletes their default address and other addresses remain +- **THEN** the most recently created remaining address becomes the default + diff --git a/openspec/specs/frontend-mall/spec.md b/openspec/specs/frontend-mall/spec.md index f7cc297..5923b1b 100644 --- a/openspec/specs/frontend-mall/spec.md +++ b/openspec/specs/frontend-mall/spec.md @@ -2,9 +2,7 @@ ## Purpose The buyer-facing storefront: shell, home page, discovery, shopping and transaction flows, and the buyer center. - ## Requirements - ### Requirement: Localized storefront The mall SHALL render every UI string and all catalog/store/marketing mock content in en or zh from one switcher, defaulting to en. Switching locale SHALL update the desktop shell and current page without a full reload. @@ -138,3 +136,18 @@ The mall SHALL provide a store directory and store home reading live shops from #### Scenario: a shop without a profile still renders - **WHEN** a shop has no profile row - **THEN** the directory and store home render it without inventing logo, scores or copy + +### Requirement: Address book management +The mall buyer center SHALL list, add, edit, delete and set-default the signed-in customer's saved addresses through the selected API adapter, replacing the previous fixed mock list. + +#### Scenario: manage addresses in the buyer center +- **WHEN** a signed-in shopper opens `/user/addresses` and adds or edits an address +- **THEN** the change persists through the adapter and survives a full page reload + +### Requirement: Checkout address selection +Checkout SHALL offer the customer's saved addresses for selection, defaulting to their default address, and SHALL submit the selected address with the order. When the customer has no saved address, checkout SHALL provide an inline manual address form instead. + +#### Scenario: checkout with a saved address +- **WHEN** a signed-in shopper with saved addresses checks out +- **THEN** the default address is preselected and the created order carries the chosen address + diff --git a/packages/shared/src/api.ts b/packages/shared/src/api.ts index 2f65fa9..f97c80d 100644 --- a/packages/shared/src/api.ts +++ b/packages/shared/src/api.ts @@ -1,5 +1,6 @@ import type { Address, + AddressBookEntry, AuthTokens, Brand, BrandInput, @@ -77,6 +78,10 @@ export interface ShipmentItemBody { qty: number; } +export interface AddressInput extends Address { + is_default?: boolean; +} + export interface CurrencyUpsertBody { code: string; name: LocalizedText; @@ -175,6 +180,11 @@ export interface ApiClient { /** Public store directory: active shops with whatever profile they have. */ listShops(): Promise; getShop(slug: string): Promise; + listMyAddresses(): Promise; + createAddress(address: AddressInput): Promise; + updateAddress(id: string, address: AddressInput): Promise; + deleteAddress(id: string): Promise; + setDefaultAddress(id: string): Promise; shop: { getMyShop(): Promise; listMyProducts(q?: ShopProductQuery): Promise>; @@ -250,6 +260,11 @@ export function createApi(opts: ApiClientOptions): ApiClient { getHomeContent: () => r("GET", "/content/home"), listShops: () => r("GET", "/shops"), getShop: (slug) => r("GET", `/shops/${slug}`), + listMyAddresses: () => r("GET", "/addresses"), + createAddress: (address) => r("POST", "/addresses", address), + updateAddress: (id, address) => r("PUT", `/addresses/${id}`, address), + deleteAddress: (id) => r("DELETE", `/addresses/${id}`), + setDefaultAddress: (id) => r("POST", `/addresses/${id}/default`), shop: { getMyShop: () => r("GET", "/shop/profile"), listMyProducts: (q = {}) => r("GET", "/shop/products", undefined, { ...q }), diff --git a/packages/shared/src/types.ts b/packages/shared/src/types.ts index 46c39db..f63ca7f 100644 --- a/packages/shared/src/types.ts +++ b/packages/shared/src/types.ts @@ -176,6 +176,13 @@ export interface Address { postal_code: string; } +export interface AddressBookEntry extends Address { + id: string; + user_id: string; + is_default: boolean; + created_at: string; +} + export type ShipmentStatus = "pending" | "shipped" | "delivered"; export interface Shipment { diff --git a/scripts/seed-demo.mjs b/scripts/seed-demo.mjs index 7d9246e..b6c876d 100755 --- a/scripts/seed-demo.mjs +++ b/scripts/seed-demo.mjs @@ -177,6 +177,24 @@ for (const def of SHOPS) { await call("POST", "/auth/register", { body: { email: "customer@vmall.local", password: "customer123", display_name: "Demo Customer" }, }); +{ + r = await call("POST", "/auth/login", { + body: { email: "customer@vmall.local", password: "customer123" }, + }); + if (r.status !== 200) fail("customer login", r); + const customerToken = r.data.token; + const existing = (await call("GET", "/addresses", { token: customerToken })).data; + if (Array.isArray(existing) && existing.length === 0) { + const demoAddresses = [ + { recipient: "Demo Customer", phone: "+1 555 0100", country: "US", region: "California", city: "Cupertino", line1: "1 Infinite Loop", postal_code: "95014", is_default: true }, + { recipient: "Demo Customer", phone: "+1 555 0100", country: "US", region: "New York", city: "New York", line1: "88 Fifth Ave", postal_code: "10011" }, + ]; + for (const address of demoAddresses) { + r = await call("POST", "/addresses", { token: customerToken, body: address }); + if (r.status !== 200 && r.status !== 201) fail("seed address", r); + } + } +} // 4. categories (reference data from the migrations) const cats = (await call("GET", "/categories")).data;
{{ t("user.recipient") }} {{ t("user.phone") }}{{ t("user.country") }} {{ t("user.region") }} {{ t("user.city") }} {{ t("user.line1") }}
{{ row.recipient }} {{ row.phone }}{{ row.country }} {{ row.region }} {{ row.city }} {{ row.line1 }}{{ row.postalCode }}{{ row.postal_code }} - {{ t("user.defaultAddress") }} + {{ t("user.defaultAddress") }} +