新西兰
1010
预加载澳大利亚真实城市邮编映射与 ACMA & Australia Post 合规号段(+61 491 570 xxx / +61 2 5550 xxxx),支持在下方分屏控制台一键切换边界压测并导出 Playwright / Stripe / SQL / CSV。
{
"meta": {
"service": "AddressQA",
"seed": "qa-au-01",
"country": "AU",
"countrySlug": "au",
"state": "ALL",
"taxFree": false,
"phoneMode": "safe",
"boundary": "normal",
"count": 1
},
"fixtures": [
{
"id": "qa-au-01-1-AU-QLD",
"index": 1,
"seed": "qa-au-01",
"boundary": "normal",
"recipient": {
"fullName": "Aiden Keller",
"nativeName": "Aiden Keller",
"displayName": "Aiden Keller",
"firstName": "Aiden",
"lastName": "Keller",
"email": "[email protected]"
},
"address": {
"line1": "7880 Adelaide St",
"line1Native": "7880 Adelaide St",
"line2": null,
"city": "Brisbane",
"cityNative": "Brisbane",
"state": "QLD",
"stateName": "Queensland",
"postalCode": "4000",
"zipPlus4": "4000",
"country": "AU",
"countryName": "Australia",
"formatted": "7880 Adelaide St, Brisbane, QLD 4000, AU"
},
"phone": {
"countryCode": "AU",
"dialCode": "+61",
"areaCode": "7",
"regionCode": "QLD",
"regionName": "Queensland",
"city": "Brisbane",
"mode": "safe",
"regulatorSafe": true,
"regulatorAuthority": "ACMA & Australia Post",
"e164": "+61491570787",
"international": "+61 491 570 787",
"national": "0491 570 787",
"rfc3966": "tel:+61491570787",
"digitsOnly": "0491570787"
},
"qaFlags": {
"taxFreeUsState": false,
"leadingZeroPostal": false,
"streetLength": 16,
"hasUnicode": false,
"hasLine2": false,
"regulatorSafePhone": true,
"postalRequired": true
}
}
]
} // Generated by AddressQA (seed: qa-au-01, country: AU, boundary: normal)
import { test, expect, type Page } from '@playwright/test';
const checkoutFixture = {
"fullName": "Aiden Keller",
"email": "[email protected]",
"phoneE164": "+61491570787",
"line1": "7880 Adelaide St",
"line2": "",
"city": "Brisbane",
"state": "QLD",
"postalCode": "4000",
"country": "AU"
};
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 (AU / 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": "Aiden Keller",
"phone": "+61491570787",
"address": {
"line1": "7880 Adelaide St",
"line2": null,
"city": "Brisbane",
"state": "QLD",
"postal_code": "4000",
"country": "AU"
}
},
"billing_details": {
"name": "Aiden Keller",
"email": "[email protected]",
"phone": "+61491570787",
"address": {
"line1": "7880 Adelaide St",
"line2": null,
"city": "Brisbane",
"state": "QLD",
"postal_code": "4000",
"country": "AU"
}
},
"metadata": {
"qa_seed": "qa-au-01",
"qa_boundary": "normal",
"us_tax_free_state": "false",
"regulator_safe_phone": "true"
}
} -- AddressQA deterministic SQL seed (qa-au-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-au-01-1-AU-QLD', 'qa-au-01', 'Aiden Keller', '[email protected]', '+61491570787', '0491 570 787', '7880 Adelaide St', NULL, 'Brisbane', 'QLD', '4000', 'AU', FALSE); # Deterministic AddressQA Edge API request
curl -sS "https://addressqa.com/api/v1/fixtures?country=AU&seed=qa-au-01" | jq .
# Export directly as Excel-safe CSV or Stripe Checkout JSON:
curl -sS "https://addressqa.com/api/v1/fixtures?country=AU&seed=qa-au-01&format=stripe"
curl -sS "https://addressqa.com/api/v1/fixtures?country=AU&seed=qa-au-01&format=csv" -o fixtures-qa-au-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-au-01-1-AU-QLD,qa-au-01,Aiden Keller,[email protected],+61491570787,0491 570 787,7880 Adelaide St,,Brisbane,QLD,4000,AU,false,normal | 校验维度 | 规范与边界说明 |
|---|---|
| 邮编正则与长度 | 示例 2000(最大长度 4,正则 /^\d{4}$/) |
| 前导零截断风险 | 高风险(例如 0800)— 严禁存为 INT,CSV 须加引号保护 |
| E.164 电话与区号同步 | 国家码 +61,标准有效长度 9 位,安全段 +61 491 570 xxx / +61 2 5550 xxxx |
| 典型测试城市样本 | Sydney (NSW) · 邮编 2000 · 区号 2 |
| 权威标准来源 | 澳大利亚 ACMA 官方虚构测试保留号段:手机 0491 570 xxx 与固话 02 5550 xxxx,覆盖北领地前导零 4 位邮编(0800 达尔文)。 (ACMA & Australia Post) |
| 行政区 | 代码 | 城市 | 邮编 | 区号 |
|---|---|---|---|---|
| New South Wales | NSW | Sydney | 2000 | +61 (2) |
| Victoria | VIC | Melbourne | 3000 | +61 (3) |
| Queensland | QLD | Brisbane | 4000 | +61 (7) |
| Northern Territory | NT | Darwin | 0800 | +61 (8) |
1010