日本
150-0001
预加载马来西亚真实城市邮编映射与 MCMC & Pos Malaysia 合规号段(+60 12 000 xxxx),支持在下方分屏控制台一键切换边界压测并导出 Playwright / Stripe / SQL / CSV。
{
"meta": {
"service": "AddressQA",
"seed": "qa-my-01",
"country": "MY",
"countrySlug": "my",
"state": "ALL",
"taxFree": false,
"phoneMode": "safe",
"boundary": "normal",
"count": 1
},
"fixtures": [
{
"id": "qa-my-01-1-MY-KUL",
"index": 1,
"seed": "qa-my-01",
"boundary": "normal",
"recipient": {
"fullName": "Elena Mercer",
"nativeName": "Elena Mercer",
"displayName": "Elena Mercer",
"firstName": "Elena",
"lastName": "Mercer",
"email": "[email protected]"
},
"address": {
"line1": "2795 Jalan Bukit Bintang",
"line1Native": "2795 Jalan Bukit Bintang",
"line2": "Suite 334",
"city": "Kuala Lumpur",
"cityNative": "Kuala Lumpur",
"state": "KUL",
"stateName": "Kuala Lumpur",
"postalCode": "50088",
"zipPlus4": "50088",
"country": "MY",
"countryName": "Malaysia",
"formatted": "2795 Jalan Bukit Bintang, Suite 334, Kuala Lumpur, KUL 50088, MY"
},
"phone": {
"countryCode": "MY",
"dialCode": "+60",
"areaCode": "3",
"regionCode": "KUL",
"regionName": "Kuala Lumpur",
"city": "Kuala Lumpur",
"mode": "safe",
"regulatorSafe": false,
"regulatorAuthority": "MCMC & Pos Malaysia",
"e164": "+60170000932",
"international": "+60 170 000 932",
"national": "0170 000 932",
"rfc3966": "tel:+60170000932",
"digitsOnly": "0170000932"
},
"qaFlags": {
"taxFreeUsState": false,
"leadingZeroPostal": false,
"streetLength": 24,
"hasUnicode": false,
"hasLine2": true,
"regulatorSafePhone": false,
"postalRequired": true
}
}
]
} // Generated by AddressQA (seed: qa-my-01, country: MY, boundary: normal)
import { test, expect, type Page } from '@playwright/test';
const checkoutFixture = {
"fullName": "Elena Mercer",
"email": "[email protected]",
"phoneE164": "+60170000932",
"line1": "2795 Jalan Bukit Bintang",
"line2": "Suite 334",
"city": "Kuala Lumpur",
"state": "KUL",
"postalCode": "50088",
"country": "MY"
};
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 (MY / 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 Mercer",
"phone": "+60170000932",
"address": {
"line1": "2795 Jalan Bukit Bintang",
"line2": "Suite 334",
"city": "Kuala Lumpur",
"state": "KUL",
"postal_code": "50088",
"country": "MY"
}
},
"billing_details": {
"name": "Elena Mercer",
"email": "[email protected]",
"phone": "+60170000932",
"address": {
"line1": "2795 Jalan Bukit Bintang",
"line2": "Suite 334",
"city": "Kuala Lumpur",
"state": "KUL",
"postal_code": "50088",
"country": "MY"
}
},
"metadata": {
"qa_seed": "qa-my-01",
"qa_boundary": "normal",
"us_tax_free_state": "false",
"regulator_safe_phone": "false"
}
} -- AddressQA deterministic SQL seed (qa-my-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-my-01-1-MY-KUL', 'qa-my-01', 'Elena Mercer', '[email protected]', '+60170000932', '0170 000 932', '2795 Jalan Bukit Bintang', 'Suite 334', 'Kuala Lumpur', 'KUL', '50088', 'MY', FALSE); # Deterministic AddressQA Edge API request
curl -sS "https://addressqa.com/api/v1/fixtures?country=MY&seed=qa-my-01" | jq .
# Export directly as Excel-safe CSV or Stripe Checkout JSON:
curl -sS "https://addressqa.com/api/v1/fixtures?country=MY&seed=qa-my-01&format=stripe"
curl -sS "https://addressqa.com/api/v1/fixtures?country=MY&seed=qa-my-01&format=csv" -o fixtures-qa-my-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-my-01-1-MY-KUL,qa-my-01,Elena Mercer,[email protected],+60170000932,0170 000 932,2795 Jalan Bukit Bintang,Suite 334,Kuala Lumpur,KUL,50088,MY,false,normal | 校验维度 | 规范与边界说明 |
|---|---|
| 邮编正则与长度 | 示例 50088(最大长度 5,正则 /^\d{5}$/) |
| 前导零截断风险 | 高风险(例如 01000)— 严禁存为 INT,CSV 须加引号保护 |
| E.164 电话与区号同步 | 国家码 +60,标准有效长度 9 位,安全段 +60 12 000 xxxx |
| 典型测试城市样本 | Kuala Lumpur (KUL) · 邮编 50088 · 区号 3 |
| 权威标准来源 | 马来西亚 5 位邮编(含玻璃市/吉打州 01xxx–09xxx 前导零)与 +60 合成测试号码。 (MCMC & Pos Malaysia) |
| 行政区 | 代码 | 城市 | 邮编 | 区号 |
|---|---|---|---|---|
| Kuala Lumpur | KUL | Kuala Lumpur | 50088 | +60 (3) |
| Pulau Pinang (Penang) | PNG | George Town | 10200 | +60 (4) |
150-0001
106
049315
No Postal Code