德国
10117
预加载英国真实城市邮编映射与 Ofcom & Royal Mail PAF 合规号段(07700 900000–900999 / 020 7946 0xxx / 01632 960xxx),支持在下方分屏控制台一键切换边界压测并导出 Playwright / Stripe / SQL / CSV。
{
"meta": {
"service": "AddressQA",
"seed": "qa-uk-01",
"country": "GB",
"countrySlug": "uk",
"state": "ALL",
"taxFree": false,
"phoneMode": "safe",
"boundary": "normal",
"count": 1
},
"fixtures": [
{
"id": "qa-uk-01-1-GB-ENG",
"index": 1,
"seed": "qa-uk-01",
"boundary": "normal",
"recipient": {
"fullName": "Gabriel Delgado-Cruz",
"nativeName": "Gabriel Delgado-Cruz",
"displayName": "Gabriel Delgado-Cruz",
"firstName": "Gabriel",
"lastName": "Delgado-Cruz",
"email": "[email protected]"
},
"address": {
"line1": "1263 Deansgate",
"line1Native": "1263 Deansgate",
"line2": null,
"city": "Manchester",
"cityNative": "Manchester",
"state": "ENG",
"stateName": "England",
"postalCode": "M1 1AE",
"zipPlus4": "M1 1AE",
"country": "GB",
"countryName": "United Kingdom",
"formatted": "1263 Deansgate, Manchester, ENG M1 1AE, GB"
},
"phone": {
"countryCode": "GB",
"dialCode": "+44",
"areaCode": "161",
"regionCode": "ENG",
"regionName": "England",
"city": "Manchester",
"mode": "safe",
"regulatorSafe": true,
"regulatorAuthority": "Ofcom & Royal Mail PAF",
"e164": "+441614960022",
"international": "+44 161 496 0022",
"national": "0161 496 0022",
"rfc3966": "tel:+441614960022",
"digitsOnly": "01614960022"
},
"qaFlags": {
"taxFreeUsState": false,
"leadingZeroPostal": false,
"streetLength": 14,
"hasUnicode": false,
"hasLine2": false,
"regulatorSafePhone": true,
"postalRequired": true
}
}
]
} // Generated by AddressQA (seed: qa-uk-01, country: GB, boundary: normal)
import { test, expect, type Page } from '@playwright/test';
const checkoutFixture = {
"fullName": "Gabriel Delgado-Cruz",
"email": "[email protected]",
"phoneE164": "+441614960022",
"line1": "1263 Deansgate",
"line2": "",
"city": "Manchester",
"state": "ENG",
"postalCode": "M1 1AE",
"country": "GB"
};
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 (GB / 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": "Gabriel Delgado-Cruz",
"phone": "+441614960022",
"address": {
"line1": "1263 Deansgate",
"line2": null,
"city": "Manchester",
"state": "ENG",
"postal_code": "M1 1AE",
"country": "GB"
}
},
"billing_details": {
"name": "Gabriel Delgado-Cruz",
"email": "[email protected]",
"phone": "+441614960022",
"address": {
"line1": "1263 Deansgate",
"line2": null,
"city": "Manchester",
"state": "ENG",
"postal_code": "M1 1AE",
"country": "GB"
}
},
"metadata": {
"qa_seed": "qa-uk-01",
"qa_boundary": "normal",
"us_tax_free_state": "false",
"regulator_safe_phone": "true"
}
} -- AddressQA deterministic SQL seed (qa-uk-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-uk-01-1-GB-ENG', 'qa-uk-01', 'Gabriel Delgado-Cruz', '[email protected]', '+441614960022', '0161 496 0022', '1263 Deansgate', NULL, 'Manchester', 'ENG', 'M1 1AE', 'GB', FALSE); # Deterministic AddressQA Edge API request
curl -sS "https://addressqa.com/api/v1/fixtures?country=GB&seed=qa-uk-01" | jq .
# Export directly as Excel-safe CSV or Stripe Checkout JSON:
curl -sS "https://addressqa.com/api/v1/fixtures?country=GB&seed=qa-uk-01&format=stripe"
curl -sS "https://addressqa.com/api/v1/fixtures?country=GB&seed=qa-uk-01&format=csv" -o fixtures-qa-uk-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-uk-01-1-GB-ENG,qa-uk-01,Gabriel Delgado-Cruz,[email protected],+441614960022,0161 496 0022,1263 Deansgate,,Manchester,ENG,M1 1AE,GB,false,normal | 校验维度 | 规范与边界说明 |
|---|---|
| 邮编正则与长度 | 示例 SW1A 1AA(最大长度 8,正则 /^(?:GIR 0AA|[A-Z]{1,2}\d[A-Z\d]? \d[A-Z]{2})$/) |
| 前导零截断风险 | 标准非零或字母开头格式,仍建议使用 VARCHAR 存储 |
| E.164 电话与区号同步 | 国家码 +44,标准有效长度 10 位,安全段 07700 900000–900999 / 020 7946 0xxx / 01632 960xxx |
| 典型测试城市样本 | London (ENG) · 邮编 SW1A 1AA · 区号 20 |
| 权威标准来源 | 英国通信管理局 Ofcom 官方影视与测试保留号段:手机 07700 900xxx、伦敦 020 7946 0xxx、曼彻斯特 0161 496 0xxx、爱丁堡 0131 496 0xxx。 (Ofcom & Royal Mail PAF) |
| 行政区 | 代码 | 城市 | 邮编 | 区号 |
|---|---|---|---|---|
| England | ENG | London | SW1A 1AA | +44 (20) |
| England | ENG | Manchester | M1 1AE | +44 (161) |
| Scotland | SCT | Edinburgh | EH1 1YZ | +44 (131) |
| Wales | WLS | Cardiff | CF10 1EP | +44 (29) |
| Northern Ireland | NIR | Belfast | BT1 5GS | +44 (28) |
10117
75001
1012 JS
28013