日本
150-0001
预加载新加坡真实城市邮编映射与 IMDA & SingPost 合规号段(+65 8000 0xxx / +65 6000 0xxx),支持在下方分屏控制台一键切换边界压测并导出 Playwright / Stripe / SQL / CSV。
{
"meta": {
"service": "AddressQA",
"seed": "qa-sg-01",
"country": "SG",
"countrySlug": "sg",
"state": "ALL",
"taxFree": false,
"phoneMode": "safe",
"boundary": "normal",
"count": 1
},
"fixtures": [
{
"id": "qa-sg-01-1-SG-SG",
"index": 1,
"seed": "qa-sg-01",
"boundary": "normal",
"recipient": {
"fullName": "Julian Vaughn",
"nativeName": "Julian Vaughn",
"displayName": "Julian Vaughn",
"firstName": "Julian",
"lastName": "Vaughn",
"email": "julian.vaughn.40@fixtures.example"
},
"address": {
"line1": "3321 Robinson Road",
"line1Native": "3321 Robinson Road",
"line2": null,
"city": "Singapore",
"cityNative": "Singapore",
"state": "SG",
"stateName": "Singapore",
"postalCode": "049315",
"zipPlus4": "049315",
"country": "SG",
"countryName": "Singapore",
"formatted": "3321 Robinson Road, Singapore, SG 049315, SG"
},
"phone": {
"countryCode": "SG",
"dialCode": "+65",
"areaCode": "6",
"regionCode": "SG",
"regionName": "Singapore",
"city": "Singapore",
"mode": "safe",
"regulatorSafe": false,
"regulatorAuthority": "IMDA & SingPost",
"e164": "+6580000565",
"international": "+65 8000 0565",
"national": "8000 0565",
"rfc3966": "tel:+6580000565",
"digitsOnly": "80000565"
},
"qaFlags": {
"taxFreeUsState": false,
"leadingZeroPostal": true,
"streetLength": 18,
"hasUnicode": false,
"hasLine2": false,
"regulatorSafePhone": false,
"postalRequired": true
}
}
]
} // Generated by AddressQA (seed: qa-sg-01, country: SG, boundary: normal)
import { test, expect, type Page } from '@playwright/test';
const checkoutFixture = {
"fullName": "Julian Vaughn",
"email": "julian.vaughn.40@fixtures.example",
"phoneE164": "+6580000565",
"line1": "3321 Robinson Road",
"line2": "",
"city": "Singapore",
"state": "SG",
"postalCode": "049315",
"country": "SG"
};
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 (SG / 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": "Julian Vaughn",
"phone": "+6580000565",
"address": {
"line1": "3321 Robinson Road",
"line2": null,
"city": "Singapore",
"state": "SG",
"postal_code": "049315",
"country": "SG"
}
},
"billing_details": {
"name": "Julian Vaughn",
"email": "julian.vaughn.40@fixtures.example",
"phone": "+6580000565",
"address": {
"line1": "3321 Robinson Road",
"line2": null,
"city": "Singapore",
"state": "SG",
"postal_code": "049315",
"country": "SG"
}
},
"metadata": {
"qa_seed": "qa-sg-01",
"qa_boundary": "normal",
"us_tax_free_state": "false",
"regulator_safe_phone": "false"
}
} -- AddressQA deterministic SQL seed (qa-sg-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-sg-01-1-SG-SG', 'qa-sg-01', 'Julian Vaughn', 'julian.vaughn.40@fixtures.example', '+6580000565', '8000 0565', '3321 Robinson Road', NULL, 'Singapore', 'SG', '049315', 'SG', FALSE); # Deterministic AddressQA Edge API request
curl -sS "https://addressqa.com/api/v1/fixtures?country=SG&seed=qa-sg-01" | jq .
# Export directly as Excel-safe CSV or Stripe Checkout JSON:
curl -sS "https://addressqa.com/api/v1/fixtures?country=SG&seed=qa-sg-01&format=stripe"
curl -sS "https://addressqa.com/api/v1/fixtures?country=SG&seed=qa-sg-01&format=csv" -o fixtures-qa-sg-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-sg-01-1-SG-SG,qa-sg-01,Julian Vaughn,julian.vaughn.40@fixtures.example,+6580000565,8000 0565,3321 Robinson Road,,Singapore,SG,"=""049315""",SG,false,normal | 校验维度 | 规范与边界说明 |
|---|---|
| 邮编正则与长度 | 示例 049315(最大长度 6,正则 /^\d{6}$/) |
| 前导零截断风险 | 高风险(例如 049315)— 严禁存为 INT,CSV 须加引号保护 |
| E.164 电话与区号同步 | 国家码 +65,标准有效长度 8 位,安全段 +65 8000 0xxx / +65 6000 0xxx |
| 典型测试城市样本 | Singapore (SG) · 邮编 049315 · 区号 6 |
| 权威标准来源 | 新加坡 IMDA 8 位无长途字冠号码结构,支持中央商务区 049315 等前导零 6 位邮编测试。 (IMDA & SingPost) |
| 行政区 | 代码 | 城市 | 邮编 | 区号 |
|---|---|---|---|---|
| Singapore | SG | Singapore | 049315 | +65 (6) |
150-0001
106
No Postal Code
06164