@citrineos/base
Version:
The base module for OCPP v2.0.1 including all interfaces. This module is not intended to be used directly, but rather as a dependency for other modules.
14 lines (13 loc) • 558 B
TypeScript
import type { AddressType } from '../dto/types/vat.js';
export interface IVatProvider {
/**
* Retrieves company address for the given VAT number.
*
* @param {string} vatNumber - The VAT number to look up.
*
* @returns {Promise<AddressType | null | undefined>} The company address if valid,
* null if the VAT number is permanently invalid/rejected,
* or undefined if the lookup failed due to a transient error (e.g. service unavailable).
*/
getVat(vatNumber: string): Promise<AddressType | null | undefined>;
}