英国
SW1A 1AA
预加载意大利真实城市邮编映射与 AGCOM & Poste Italiane 合规号段(+39 330 000 xxxx / +39 02 0000 xxxx),支持在下方分屏控制台一键切换边界压测并导出 Playwright / Stripe / SQL / CSV。
{
"meta": {
"service": "AddressQA",
"seed": "qa-it-01",
"country": "IT",
"countrySlug": "it",
"state": "ALL",
"taxFree": false,
"phoneMode": "safe",
"boundary": "normal",
"count": 1
},
"fixtures": [
{
"id": "qa-it-01-1-IT-RM",
"index": 1,
"seed": "qa-it-01",
"boundary": "normal",
"recipient": {
"fullName": "Javier Jansen",
"nativeName": "Javier Jansen",
"displayName": "Javier Jansen",
"firstName": "Javier",
"lastName": "Jansen",
"email": "javier.jansen.60@qa.example.org"
},
"address": {
"line1": "Via del Corso 66",
"line1Native": "Via del Corso 66",
"line2": null,
"city": "Rome",
"cityNative": "Roma",
"state": "RM",
"stateName": "Rome",
"postalCode": "00187",
"zipPlus4": "00187",
"country": "IT",
"countryName": "Italy",
"formatted": "Via del Corso 66, Rome, RM 00187, IT"
},
"phone": {
"countryCode": "IT",
"dialCode": "+39",
"areaCode": "06",
"regionCode": "RM",
"regionName": "Rome",
"city": "Rome",
"mode": "safe",
"regulatorSafe": false,
"regulatorAuthority": "AGCOM & Poste Italiane",
"e164": "+390600005823",
"international": "+39 06 0000 5823",
"national": "06 0000 5823",
"rfc3966": "tel:+390600005823",
"digitsOnly": "0600005823"
},
"qaFlags": {
"taxFreeUsState": false,
"leadingZeroPostal": true,
"streetLength": 16,
"hasUnicode": false,
"hasLine2": false,
"regulatorSafePhone": false,
"postalRequired": true
}
}
]
} // Generated by AddressQA (seed: qa-it-01, country: IT, boundary: normal)
import { test, expect, type Page } from '@playwright/test';
const checkoutFixture = {
"fullName": "Javier Jansen",
"email": "javier.jansen.60@qa.example.org",
"phoneE164": "+390600005823",
"line1": "Via del Corso 66",
"line2": "",
"city": "Rome",
"state": "RM",
"postalCode": "00187",
"country": "IT"
};
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 (IT / 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": "Javier Jansen",
"phone": "+390600005823",
"address": {
"line1": "Via del Corso 66",
"line2": null,
"city": "Rome",
"state": "RM",
"postal_code": "00187",
"country": "IT"
}
},
"billing_details": {
"name": "Javier Jansen",
"email": "javier.jansen.60@qa.example.org",
"phone": "+390600005823",
"address": {
"line1": "Via del Corso 66",
"line2": null,
"city": "Rome",
"state": "RM",
"postal_code": "00187",
"country": "IT"
}
},
"metadata": {
"qa_seed": "qa-it-01",
"qa_boundary": "normal",
"us_tax_free_state": "false",
"regulator_safe_phone": "false"
}
} -- AddressQA deterministic SQL seed (qa-it-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-it-01-1-IT-RM', 'qa-it-01', 'Javier Jansen', 'javier.jansen.60@qa.example.org', '+390600005823', '06 0000 5823', 'Via del Corso 66', NULL, 'Rome', 'RM', '00187', 'IT', FALSE); # Deterministic AddressQA Edge API request
curl -sS "https://addressqa.com/api/v1/fixtures?country=IT&seed=qa-it-01" | jq .
# Export directly as Excel-safe CSV or Stripe Checkout JSON:
curl -sS "https://addressqa.com/api/v1/fixtures?country=IT&seed=qa-it-01&format=stripe"
curl -sS "https://addressqa.com/api/v1/fixtures?country=IT&seed=qa-it-01&format=csv" -o fixtures-qa-it-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-it-01-1-IT-RM,qa-it-01,Javier Jansen,javier.jansen.60@qa.example.org,+390600005823,06 0000 5823,Via del Corso 66,,Rome,RM,"=""00187""",IT,false,normal | 校验维度 | 规范与边界说明 |
|---|---|
| 邮编正则与长度 | 示例 20121(最大长度 5,正则 /^\d{5}$/) |
| 前导零截断风险 | 高风险(例如 00187)— 严禁存为 INT,CSV 须加引号保护 |
| E.164 电话与区号同步 | 国家码 +39,标准有效长度 10 位,安全段 +39 330 000 xxxx / +39 02 0000 xxxx |
| 典型测试城市样本 | Milan (MI) · 邮编 20121 · 区号 02 |
| 权威标准来源 | 高频国际化坑点:意大利固话在 E.164 国际格式下仍必须保留开头 0(+39 02 ...),且罗马 CAP 邮编为双前导零 00187。 (AGCOM & Poste Italiane) |
| 行政区 | 代码 | 城市 | 邮编 | 区号 |
|---|---|---|---|---|
| Milano (Milan) | MI | Milano (Milan) | 20121 | +39 (02) |
| Roma (Rome) | RM | Roma (Rome) | 00187 | +39 (06) |
SW1A 1AA
10117
75001
1012 JS