英国
SW1A 1AA
预加载法国真实城市邮编映射与 Arcep & La Poste 合规号段(+33 6 39 98 xx xx / +33 1 99 00 xx xx),支持在下方分屏控制台一键切换边界压测并导出 Playwright / Stripe / SQL / CSV。
{
"meta": {
"service": "AddressQA",
"seed": "qa-fr-01",
"country": "FR",
"countrySlug": "fr",
"state": "ALL",
"taxFree": false,
"phoneMode": "safe",
"boundary": "normal",
"count": 1
},
"fixtures": [
{
"id": "qa-fr-01-1-FR-PAC",
"index": 1,
"seed": "qa-fr-01",
"boundary": "normal",
"recipient": {
"fullName": "Priya Bakker",
"nativeName": "Priya Bakker",
"displayName": "Priya Bakker",
"firstName": "Priya",
"lastName": "Bakker",
"email": "priya.bakker.24@example.test"
},
"address": {
"line1": "6488 Promenade des Anglais",
"line1Native": "6488 Promenade des Anglais",
"line2": null,
"city": "Nice",
"cityNative": "Nice",
"state": "PAC",
"stateName": "Provence-Alpes-Cote d Azur",
"postalCode": "06000",
"zipPlus4": "06000",
"country": "FR",
"countryName": "France",
"formatted": "6488 Promenade des Anglais, Nice, PAC 06000, FR"
},
"phone": {
"countryCode": "FR",
"dialCode": "+33",
"areaCode": "4",
"regionCode": "PAC",
"regionName": "Provence-Alpes-Cote d Azur",
"city": "Nice",
"mode": "safe",
"regulatorSafe": true,
"regulatorAuthority": "Arcep & La Poste",
"e164": "+33639988999",
"international": "+33 6 39 98 89 99",
"national": "06 39 98 89 99",
"rfc3966": "tel:+33639988999",
"digitsOnly": "0639988999"
},
"qaFlags": {
"taxFreeUsState": false,
"leadingZeroPostal": true,
"streetLength": 26,
"hasUnicode": false,
"hasLine2": false,
"regulatorSafePhone": true,
"postalRequired": true
}
}
]
} // Generated by AddressQA (seed: qa-fr-01, country: FR, boundary: normal)
import { test, expect, type Page } from '@playwright/test';
const checkoutFixture = {
"fullName": "Priya Bakker",
"email": "priya.bakker.24@example.test",
"phoneE164": "+33639988999",
"line1": "6488 Promenade des Anglais",
"line2": "",
"city": "Nice",
"state": "PAC",
"postalCode": "06000",
"country": "FR"
};
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 (FR / 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": "Priya Bakker",
"phone": "+33639988999",
"address": {
"line1": "6488 Promenade des Anglais",
"line2": null,
"city": "Nice",
"state": "PAC",
"postal_code": "06000",
"country": "FR"
}
},
"billing_details": {
"name": "Priya Bakker",
"email": "priya.bakker.24@example.test",
"phone": "+33639988999",
"address": {
"line1": "6488 Promenade des Anglais",
"line2": null,
"city": "Nice",
"state": "PAC",
"postal_code": "06000",
"country": "FR"
}
},
"metadata": {
"qa_seed": "qa-fr-01",
"qa_boundary": "normal",
"us_tax_free_state": "false",
"regulator_safe_phone": "true"
}
} -- AddressQA deterministic SQL seed (qa-fr-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-fr-01-1-FR-PAC', 'qa-fr-01', 'Priya Bakker', 'priya.bakker.24@example.test', '+33639988999', '06 39 98 89 99', '6488 Promenade des Anglais', NULL, 'Nice', 'PAC', '06000', 'FR', FALSE); # Deterministic AddressQA Edge API request
curl -sS "https://addressqa.com/api/v1/fixtures?country=FR&seed=qa-fr-01" | jq .
# Export directly as Excel-safe CSV or Stripe Checkout JSON:
curl -sS "https://addressqa.com/api/v1/fixtures?country=FR&seed=qa-fr-01&format=stripe"
curl -sS "https://addressqa.com/api/v1/fixtures?country=FR&seed=qa-fr-01&format=csv" -o fixtures-qa-fr-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-fr-01-1-FR-PAC,qa-fr-01,Priya Bakker,priya.bakker.24@example.test,+33639988999,06 39 98 89 99,6488 Promenade des Anglais,,Nice,PAC,"=""06000""",FR,false,normal | 校验维度 | 规范与边界说明 |
|---|---|
| 邮编正则与长度 | 示例 75001(最大长度 5,正则 /^\d{5}$/) |
| 前导零截断风险 | 高风险(例如 06000)— 严禁存为 INT,CSV 须加引号保护 |
| E.164 电话与区号同步 | 国家码 +33,标准有效长度 9 位,安全段 +33 6 39 98 xx xx / +33 1 99 00 xx xx |
| 典型测试城市样本 | Paris (IDF) · 邮编 75001 · 区号 1 |
| 权威标准来源 | 法国电子通信监管局 Arcep 官方影视保留段(06 39 98 xx xx 与 01 99 00 xx xx),支持法语重音字符与 06000 尼斯前导零邮编测试。 (Arcep & La Poste) |
| 行政区 | 代码 | 城市 | 邮编 | 区号 |
|---|---|---|---|---|
| Île-de-France (Ile-de-France) | IDF | Paris | 75001 | +33 (1) |
| Provence-Alpes-Côte d'Azur (Provence-Alpes-Cote d Azur) | PAC | Nice | 06000 | +33 (4) |
| Auvergne-Rhône-Alpes (Auvergne-Rhone-Alpes) | ARA | Lyon | 69002 | +33 (4) |
SW1A 1AA
10117
1012 JS
28013