中国台湾
106
预加载日本真实城市邮编映射与 MIC Japan & Japan Post 合规号段(090-0000-xxxx / +81 3-0000-xxxx),支持在下方分屏控制台一键切换边界压测并导出 Playwright / Stripe / SQL / CSV。
{
"meta": {
"service": "AddressQA",
"seed": "qa-jp-01",
"country": "JP",
"countrySlug": "jp",
"state": "ALL",
"taxFree": false,
"phoneMode": "safe",
"boundary": "normal",
"count": 1
},
"fixtures": [
{
"id": "qa-jp-01-1-JP-27",
"index": 1,
"seed": "qa-jp-01",
"boundary": "normal",
"recipient": {
"fullName": "Yuna Kobayashi",
"nativeName": "山口琴葉",
"displayName": "山口琴葉 (Yuna Kobayashi)",
"firstName": "Yuna",
"lastName": "Kobayashi",
"email": "[email protected]"
},
"address": {
"line1": "Umeda 1-chome-7-6",
"line1Native": "梅田1丁目-7-6",
"line2": "Suite 501",
"city": "Kita-ku, Osaka-shi",
"cityNative": "大阪市北区",
"state": "27",
"stateName": "Osaka",
"postalCode": "530-0001",
"zipPlus4": "530-0001",
"country": "JP",
"countryName": "Japan",
"formatted": "〒530-0001 大阪府大阪市北区梅田1丁目-7-6 Suite 501"
},
"phone": {
"countryCode": "JP",
"dialCode": "+81",
"areaCode": "6",
"regionCode": "27",
"regionName": "Osaka",
"city": "Kita-ku, Osaka-shi",
"mode": "safe",
"regulatorSafe": false,
"regulatorAuthority": "MIC Japan & Japan Post",
"e164": "+819000002939",
"international": "+81 90-0000-2939",
"national": "090-0000-2939",
"rfc3966": "tel:+819000002939",
"digitsOnly": "09000002939"
},
"qaFlags": {
"taxFreeUsState": false,
"leadingZeroPostal": false,
"streetLength": 17,
"hasUnicode": true,
"hasLine2": true,
"regulatorSafePhone": false,
"postalRequired": true
}
}
]
} // Generated by AddressQA (seed: qa-jp-01, country: JP, boundary: normal)
import { test, expect, type Page } from '@playwright/test';
const checkoutFixture = {
"fullName": "Yuna Kobayashi",
"email": "[email protected]",
"phoneE164": "+819000002939",
"line1": "Umeda 1-chome-7-6",
"line2": "Suite 501",
"city": "Kita-ku, Osaka-shi",
"state": "27",
"postalCode": "530-0001",
"country": "JP"
};
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 (JP / 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": "Yuna Kobayashi",
"phone": "+819000002939",
"address": {
"line1": "Umeda 1-chome-7-6",
"line2": "Suite 501",
"city": "Kita-ku, Osaka-shi",
"state": "27",
"postal_code": "530-0001",
"country": "JP"
}
},
"billing_details": {
"name": "Yuna Kobayashi",
"email": "[email protected]",
"phone": "+819000002939",
"address": {
"line1": "Umeda 1-chome-7-6",
"line2": "Suite 501",
"city": "Kita-ku, Osaka-shi",
"state": "27",
"postal_code": "530-0001",
"country": "JP"
}
},
"metadata": {
"qa_seed": "qa-jp-01",
"qa_boundary": "normal",
"us_tax_free_state": "false",
"regulator_safe_phone": "false"
}
} -- AddressQA deterministic SQL seed (qa-jp-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-jp-01-1-JP-27', 'qa-jp-01', 'Yuna Kobayashi', '[email protected]', '+819000002939', '090-0000-2939', 'Umeda 1-chome-7-6', 'Suite 501', 'Kita-ku, Osaka-shi', '27', '530-0001', 'JP', FALSE); # Deterministic AddressQA Edge API request
curl -sS "https://addressqa.com/api/v1/fixtures?country=JP&seed=qa-jp-01" | jq .
# Export directly as Excel-safe CSV or Stripe Checkout JSON:
curl -sS "https://addressqa.com/api/v1/fixtures?country=JP&seed=qa-jp-01&format=stripe"
curl -sS "https://addressqa.com/api/v1/fixtures?country=JP&seed=qa-jp-01&format=csv" -o fixtures-qa-jp-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-jp-01-1-JP-27,qa-jp-01,Yuna Kobayashi,[email protected],+819000002939,090-0000-2939,Umeda 1-chome-7-6,Suite 501,"Kita-ku, Osaka-shi",27,530-0001,JP,false,normal | 校验维度 | 规范与边界说明 |
|---|---|
| 邮编正则与长度 | 示例 150-0001(最大长度 8,正则 /^\d{3}-\d{4}$/) |
| 前导零截断风险 | 高风险(例如 064-0941)— 严禁存为 INT,CSV 须加引号保护 |
| E.164 电话与区号同步 | 国家码 +81,标准有效长度 10 位,安全段 090-0000-xxxx / +81 3-0000-xxxx |
| 典型测试城市样本 | Shibuya-ku (13) · 邮编 150-0001 · 区号 3 |
| 权威标准来源 | 日本非核配合成测试号段(090-0000-xxxx / 市外局番 0000-xxxx),兼容全角邮编 〒150-0001 归一化校验。 (MIC Japan & Japan Post) |
| 行政区 | 代码 | 城市 | 邮编 | 区号 |
|---|---|---|---|---|
| 東京都 (Tokyo) | 13 | 渋谷区 (Shibuya-ku) | 150-0001 | +81 (3) |
| 東京都 (Tokyo) | 13 | 千代田区 (Chiyoda-ku) | 100-0005 | +81 (3) |
| 大阪府 (Osaka) | 27 | 大阪市北区 (Kita-ku, Osaka-shi) | 530-0001 | +81 (6) |
| 大阪府 (Osaka) | 27 | 大阪市中央区 (Chuo-ku, Osaka-shi) | 542-0076 | +81 (6) |
| 北海道 (Hokkaido) | 01 | 札幌市中央区 (Chuo-ku, Sapporo-shi) | 064-0941 | +81 (11) |
106
049315
No Postal Code
06164