//#region src/tax-identity.d.ts /** * How a jurisdiction reads a party's tax registration number — label, format, validation. * * Odoo's shape: one neutral tax-id field on the party, and everything jurisdiction-specific behind * the country — `vat_label`, `_ref_vat`, `check_vat_`. A pack exports one of these; the party * stores `{ countryCode, taxId }` and names no jurisdiction. */ interface TaxIdentityRules { /** What the jurisdiction calls it ('BIN', 'GSTIN', 'VAT') — data, not a translation of 'VAT'. */ readonly label: string; /** Human-readable expected format, for an error message. */ readonly expectedFormat?: string | undefined; /** A boolean, not a throw: a checkout may warn where a statutory document must refuse. */ readonly isValid: (taxId: string) => boolean; /** Canonical display form (BD: `0020-0000-0000-0`). */ readonly format?: ((taxId: string) => string) | undefined; } //#endregion export { TaxIdentityRules };