澳大利亚
2000
预加载新西兰真实城市邮编映射与 NAD & NZ Post 合规号段(+64 21 000 xxxx),支持在下方分屏控制台一键切换边界压测并导出 Playwright / Stripe / SQL / CSV。
{
"meta": {
"service": "AddressQA",
"seed": "qa-nz-01",
"country": "NZ",
"countrySlug": "nz",
"state": "ALL",
"taxFree": false,
"phoneMode": "safe",
"boundary": "normal",
"count": 1
},
"fixtures": [
{
"id": "qa-nz-01-1-NZ-AUK",
"index": 1,
"seed": "qa-nz-01",
"boundary": "normal",
"recipient": {
"fullName": "Elena Keller",
"nativeName": "Elena Keller",
"displayName": "Elena Keller",
"firstName": "Elena",
"lastName": "Keller",
"email": "[email protected]"
},
"address": {
"line1": "7645 Customs St E",
"line1Native": "7645 Customs St E",
"line2": null,
"city": "Auckland",
"cityNative": "Auckland",
"state": "AUK",
"stateName": "Auckland",
"postalCode": "1010",
"zipPlus4": "1010",
"country": "NZ",
"countryName": "New Zealand",
"formatted": "7645 Customs St E, Auckland, AUK 1010, NZ"
},
"phone": {
"countryCode": "NZ",
"dialCode": "+64",
"areaCode": "9",
"regionCode": "AUK",
"regionName": "Auckland",
"city": "Auckland",
"mode": "safe",
"regulatorSafe": false,
"regulatorAuthority": "NAD & NZ Post",
"e164": "+64220000201",
"international": "+64 220 000 201",
"national": "0220 000 201",
"rfc3966": "tel:+64220000201",
"digitsOnly": "0220000201"
},
"qaFlags": {
"taxFreeUsState": false,
"leadingZeroPostal": false,
"streetLength": 17,
"hasUnicode": false,
"hasLine2": false,
"regulatorSafePhone": false,
"postalRequired": true
}
}
]
} // Generated by AddressQA (seed: qa-nz-01, country: NZ, boundary: normal)
import { test, expect, type Page } from '@playwright/test';
const checkoutFixture = {
"fullName": "Elena Keller",
"email": "[email protected]",
"phoneE164": "+64220000201",
"line1": "7645 Customs St E",
"line2": "",
"city": "Auckland",
"state": "AUK",
"postalCode": "1010",
"country": "NZ"
};
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 (NZ / 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": "Elena Keller",
"phone": "+64220000201",
"address": {
"line1": "7645 Customs St E",
"line2": null,
"city": "Auckland",
"state": "AUK",
"postal_code": "1010",
"country": "NZ"
}
},
"billing_details": {
"name": "Elena Keller",
"email": "[email protected]",
"phone": "+64220000201",
"address": {
"line1": "7645 Customs St E",
"line2": null,
"city": "Auckland",
"state": "AUK",
"postal_code": "1010",
"country": "NZ"
}
},
"metadata": {
"qa_seed": "qa-nz-01",
"qa_boundary": "normal",
"us_tax_free_state": "false",
"regulator_safe_phone": "false"
}
} -- AddressQA deterministic SQL seed (qa-nz-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-nz-01-1-NZ-AUK', 'qa-nz-01', 'Elena Keller', '[email protected]', '+64220000201', '0220 000 201', '7645 Customs St E', NULL, 'Auckland', 'AUK', '1010', 'NZ', FALSE); # Deterministic AddressQA Edge API request
curl -sS "https://addressqa.com/api/v1/fixtures?country=NZ&seed=qa-nz-01" | jq .
# Export directly as Excel-safe CSV or Stripe Checkout JSON:
curl -sS "https://addressqa.com/api/v1/fixtures?country=NZ&seed=qa-nz-01&format=stripe"
curl -sS "https://addressqa.com/api/v1/fixtures?country=NZ&seed=qa-nz-01&format=csv" -o fixtures-qa-nz-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-nz-01-1-NZ-AUK,qa-nz-01,Elena Keller,[email protected],+64220000201,0220 000 201,7645 Customs St E,,Auckland,AUK,1010,NZ,false,normal | 校验维度 | 规范与边界说明 |
|---|---|
| 邮编正则与长度 | 示例 1010(最大长度 4,正则 /^\d{4}$/) |
| 前导零截断风险 | 高风险(例如 0620)— 严禁存为 INT,CSV 须加引号保护 |
| E.164 电话与区号同步 | 国家码 +64,标准有效长度 9 位,安全段 +64 21 000 xxxx |
| 典型测试城市样本 | Auckland (AUK) · 邮编 1010 · 区号 9 |
| 权威标准来源 | 新西兰 4 位邮编(含北地大区 0xxx 前导零邮编)与 +64 21 000 xxxx 合成测试号。 (NAD & NZ Post) |
| 行政区 | 代码 | 城市 | 邮编 | 区号 |
|---|---|---|---|---|
| Auckland | AUK | Auckland | 1010 | +64 (9) |
| Auckland | AUK | Takapuna | 0622 | +64 (9) |
| Wellington | WGN | Wellington | 6011 | +64 (4) |
2000