特拉华州 (Delaware)
Wilmington 19801 · Dover 19901 · Newark 19711
新罕布什尔州一次性覆盖两大高发 QA 边界场景:0% 州级与地方零售销售税 + 全州以 0 开头的前导零邮编(03101、03301、03060),专门捕捉数据库整型转换与 Excel CSV 吞零缺陷。
{
"meta": {
"service": "AddressQA",
"seed": "qa-nh-zero-01",
"country": "US",
"countrySlug": "us",
"state": "NH",
"taxFree": true,
"phoneMode": "safe",
"boundary": "leading_zero",
"count": 1
},
"fixtures": [
{
"id": "qa-nh-zero-01-1-US-NH",
"index": 1,
"seed": "qa-nh-zero-01",
"boundary": "leading_zero",
"recipient": {
"fullName": "Maya Sinclair",
"nativeName": "Maya Sinclair",
"displayName": "Maya Sinclair",
"firstName": "Maya",
"lastName": "Sinclair",
"email": "maya.sinclair.44@example.test"
},
"address": {
"line1": "2382 Main St",
"line1Native": "2382 Main St",
"line2": null,
"city": "Nashua",
"cityNative": "Nashua",
"state": "NH",
"stateName": "New Hampshire",
"postalCode": "03060",
"zipPlus4": "03060-3410",
"country": "US",
"countryName": "United States",
"formatted": "2382 Main St, Nashua, NH 03060, US"
},
"phone": {
"countryCode": "US",
"dialCode": "+1",
"areaCode": "603",
"regionCode": "NH",
"regionName": "New Hampshire",
"city": "Nashua",
"mode": "safe",
"regulatorSafe": true,
"regulatorAuthority": "NANPA & USPS",
"e164": "+16035550187",
"international": "+1 603-555-0187",
"national": "(603) 555-0187",
"rfc3966": "tel:+1-603-555-0187",
"digitsOnly": "6035550187"
},
"qaFlags": {
"taxFreeUsState": true,
"leadingZeroPostal": true,
"streetLength": 12,
"hasUnicode": false,
"hasLine2": false,
"regulatorSafePhone": true,
"postalRequired": true
}
}
]
} // Generated by AddressQA (seed: qa-nh-zero-01, country: US, boundary: leading_zero)
import { test, expect, type Page } from '@playwright/test';
const checkoutFixture = {
"fullName": "Maya Sinclair",
"email": "maya.sinclair.44@example.test",
"phoneE164": "+16035550187",
"line1": "2382 Main St",
"line2": "",
"city": "Nashua",
"state": "NH",
"postalCode": "03060",
"country": "US"
};
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 (US / leading_zero)', 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": "Maya Sinclair",
"phone": "+16035550187",
"address": {
"line1": "2382 Main St",
"line2": null,
"city": "Nashua",
"state": "NH",
"postal_code": "03060",
"country": "US"
}
},
"billing_details": {
"name": "Maya Sinclair",
"email": "maya.sinclair.44@example.test",
"phone": "+16035550187",
"address": {
"line1": "2382 Main St",
"line2": null,
"city": "Nashua",
"state": "NH",
"postal_code": "03060",
"country": "US"
}
},
"metadata": {
"qa_seed": "qa-nh-zero-01",
"qa_boundary": "leading_zero",
"us_tax_free_state": "true",
"regulator_safe_phone": "true"
}
} -- AddressQA deterministic SQL seed (qa-nh-zero-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-nh-zero-01-1-US-NH', 'qa-nh-zero-01', 'Maya Sinclair', 'maya.sinclair.44@example.test', '+16035550187', '(603) 555-0187', '2382 Main St', NULL, 'Nashua', 'NH', '03060', 'US', TRUE); # Deterministic AddressQA Edge API request
curl -sS "https://addressqa.com/api/v1/fixtures?country=US&state=NH&taxFree=true&boundary=leading_zero&seed=qa-nh-zero-01" | jq .
# Export directly as Excel-safe CSV or Stripe Checkout JSON:
curl -sS "https://addressqa.com/api/v1/fixtures?country=US&state=NH&taxFree=true&boundary=leading_zero&seed=qa-nh-zero-01&format=stripe"
curl -sS "https://addressqa.com/api/v1/fixtures?country=US&state=NH&taxFree=true&boundary=leading_zero&seed=qa-nh-zero-01&format=csv" -o fixtures-qa-nh-zero-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-nh-zero-01-1-US-NH,qa-nh-zero-01,Maya Sinclair,maya.sinclair.44@example.test,+16035550187,(603) 555-0187,2382 Main St,,Nashua,NH,"=""03060""",US,true,leading_zero 新罕布什尔州不对一般商品征收州级或地方销售税(餐饮住宿税属独立税目)。更具工程杀伤力的是其所有邮编均以 03 开头:若后端误用 INT 存储邮编或 CSV 未加引号保护,03101 会静默变成 3101,导致 Stripe AVS 与物流打单失败。
官方税务主管机构参考: New Hampshire Dept. of Revenue Administration
| 城市 | 郡 / 行政区 | ZIP | ZIP+4 | 区号 (NPA) | 安全测试号段 |
|---|---|---|---|---|---|
| Manchester | Hillsborough | 03101 | 03101-1604 | 603 | +1 603-555-0100..0199 |
| Concord | Merrimack | 03301 | 03301-4902 | 603 | +1 603-555-0100..0199 |
| Nashua | Hillsborough | 03060 | 03060-3410 | 603 | +1 603-555-0100..0199 |
Wilmington 19801 · Dover 19901 · Newark 19711
Portland 97204 · Salem 97301 · Eugene 97401
Billings 59101 · Helena 59601 · Missoula 59801
Anchorage 99501 · Juneau 99801 · Fairbanks 99701