日本
150-0001
预加载中国香港真实城市邮编映射与 OFCA & Hongkong Post 合规号段(+852 5500 0xxx),支持在下方分屏控制台一键切换边界压测并导出 Playwright / Stripe / SQL / CSV。
{
"meta": {
"service": "AddressQA",
"seed": "qa-hk-01",
"country": "HK",
"countrySlug": "hk",
"state": "ALL",
"taxFree": false,
"phoneMode": "safe",
"boundary": "normal",
"count": 1
},
"fixtures": [
{
"id": "qa-hk-01-1-HK-HK",
"index": 1,
"seed": "qa-hk-01",
"boundary": "normal",
"recipient": {
"fullName": "Yen-Ting Chen",
"nativeName": "林欣穎",
"displayName": "林欣穎 (Yen-Ting Chen)",
"firstName": "Yen-Ting",
"lastName": "Chen",
"email": "[email protected]"
},
"address": {
"line1": "3101 Hennessy Road",
"line1Native": "3101 軒尼詩道",
"line2": null,
"city": "Wan Chai",
"cityNative": "灣仔",
"state": "HK",
"stateName": "Hong Kong Island",
"postalCode": "",
"zipPlus4": "",
"country": "HK",
"countryName": "Hong Kong",
"formatted": "3101 Hennessy Road, Wan Chai, HK, HK"
},
"phone": {
"countryCode": "HK",
"dialCode": "+852",
"areaCode": "2",
"regionCode": "HK",
"regionName": "Hong Kong Island",
"city": "Wan Chai",
"mode": "safe",
"regulatorSafe": false,
"regulatorAuthority": "OFCA & Hongkong Post",
"e164": "+85255000411",
"international": "+852 5500 0411",
"national": "5500 0411",
"rfc3966": "tel:+85255000411",
"digitsOnly": "55000411"
},
"qaFlags": {
"taxFreeUsState": false,
"leadingZeroPostal": false,
"streetLength": 18,
"hasUnicode": true,
"hasLine2": false,
"regulatorSafePhone": false,
"postalRequired": false
}
}
]
} // Generated by AddressQA (seed: qa-hk-01, country: HK, boundary: normal)
import { test, expect, type Page } from '@playwright/test';
const checkoutFixture = {
"fullName": "Yen-Ting Chen",
"email": "[email protected]",
"phoneE164": "+85255000411",
"line1": "3101 Hennessy Road",
"line2": "",
"city": "Wan Chai",
"state": "HK",
"postalCode": "",
"country": "HK"
};
async function fillCheckoutForm(page: Page, data: typeof checkoutFixture) {
await page.getByLabel(/full name/i).fill(data.fullName);
await page.getByLabel(/email/i).fill(data.email);
await page.getByLabel(/phone/i).fill(data.phoneE164);
await page.getByLabel(/address line 1|street/i).fill(data.line1);
if (data.line2) await page.getByLabel(/address line 2|apt|suite/i).fill(data.line2);
await page.getByLabel(/city/i).fill(data.city);
await page.getByLabel(/state|region|province/i).fill(data.state);
if (data.postalCode) await page.getByLabel(/zip|postal/i).fill(data.postalCode);
}
test('checkout validation (HK / normal)', async ({ page }) => {
const target = checkoutFixture;
await page.goto('/checkout');
await fillCheckoutForm(page, target);
await page.getByRole('button', { name: /continue|pay/i }).click();
await expect(page.getByTestId('order-summary-postal')).toHaveText(target.postalCode || 'N/A');
}); {
"shipping": {
"name": "Yen-Ting Chen",
"phone": "+85255000411",
"address": {
"line1": "3101 Hennessy Road",
"line2": null,
"city": "Wan Chai",
"state": "HK",
"postal_code": null,
"country": "HK"
}
},
"billing_details": {
"name": "Yen-Ting Chen",
"email": "[email protected]",
"phone": "+85255000411",
"address": {
"line1": "3101 Hennessy Road",
"line2": null,
"city": "Wan Chai",
"state": "HK",
"postal_code": null,
"country": "HK"
}
},
"metadata": {
"qa_seed": "qa-hk-01",
"qa_boundary": "normal",
"us_tax_free_state": "false",
"regulator_safe_phone": "false"
}
} -- AddressQA deterministic SQL seed (qa-hk-01)
INSERT INTO qa_address_fixtures (fixture_id, seed, full_name, email, phone_e164, phone_national, street_line1, street_line2, city, region_code, postal_code, country_code, tax_free_us_state) VALUES ('qa-hk-01-1-HK-HK', 'qa-hk-01', 'Yen-Ting Chen', '[email protected]', '+85255000411', '5500 0411', '3101 Hennessy Road', NULL, 'Wan Chai', 'HK', '', 'HK', FALSE); # Deterministic AddressQA Edge API request
curl -sS "https://addressqa.com/api/v1/fixtures?country=HK&seed=qa-hk-01" | jq .
# Export directly as Excel-safe CSV or Stripe Checkout JSON:
curl -sS "https://addressqa.com/api/v1/fixtures?country=HK&seed=qa-hk-01&format=stripe"
curl -sS "https://addressqa.com/api/v1/fixtures?country=HK&seed=qa-hk-01&format=csv" -o fixtures-qa-hk-01.csv fixture_id,seed,full_name,email,phone_e164,phone_national,street_line1,street_line2,city,state,postal_code,country,tax_free_us_state,boundary
qa-hk-01-1-HK-HK,qa-hk-01,Yen-Ting Chen,[email protected],+85255000411,5500 0411,3101 Hennessy Road,,Wan Chai,HK,,HK,false,normal | 校验维度 | 规范与边界说明 |
|---|---|
| 无邮编免填兼容 | 中国香港不实行街道邮编,checkout 表单必须允许 postal_code 为空 |
| 前导零截断风险 | 不适用(无邮编) |
| E.164 电话与区号同步 | 国家码 +852,标准有效长度 8 位,安全段 +852 5500 0xxx |
| 典型测试城市样本 | Central (HK) · 区号 2 |
| 权威标准来源 | 香港地区不实行邮政编码制度,是测试结账表单“无邮编国家放行逻辑”的关键 QA 用例。 (OFCA & Hongkong Post) |
| 行政区 | 代码 | 城市 | 邮编 | 区号 |
|---|---|---|---|---|
| 香港島 (Hong Kong Island) | HK | 中環 (Central) | N/A | +852 (2) |
| 香港島 (Hong Kong Island) | HK | 灣仔 (Wan Chai) | N/A | +852 (2) |
| 九龍 (Kowloon) | KLN | 尖沙咀 (Tsim Sha Tsui) | N/A | +852 (2) |
| 新界 (New Territories) | NT | 沙田 (Sha Tin) | N/A | +852 (2) |
150-0001
106
049315
06164