驗證 8 位統一編號 checksum。預設 rule='post-2023'(mod 5), 可改 'pre-2023' 走舊規則 (mod 10)。
參數
| 參數 | 型別 | 說明 |
|---|---|---|
| tax_id * | string | — |
| rule | string | — |
原始 JSON schema
{
"properties": {
"tax_id": {
"title": "Tax Id",
"type": "string"
},
"rule": {
"default": "post-2023",
"title": "Rule",
"type": "string"
}
},
"required": [
"tax_id"
],
"title": "validate_tax_id_numberArguments",
"type": "object",
"additionalProperties": false
}呼叫方式
起手式——參數見上表
tw_validate_tax_id_number({ tax_id: "…" })