falcotura-atv-sdk
Version:
Librería (SDK) de Javascript/NodeJS para acceder al API de Administración Tributaria Virtual (ATV) del Ministerio de Hacienda.
39 lines (38 loc) • 1.03 kB
TypeScript
export type LocationProps = {
province: '1' | '2' | '3' | '4' | '5' | '6' | '7';
canton: string;
district: string;
neighborhood: string;
details?: string;
};
export type PhoneProps = {
countryCode: string;
number: string;
};
export type PersonProps = {
fullName: string;
identifier: {
type: '01' | '02' | undefined;
id: string;
};
commercialName: string;
activityCode: string;
location?: LocationProps;
phone?: PhoneProps;
fax?: PhoneProps;
email?: string;
};
export declare class Person {
props: PersonProps;
constructor(props: PersonProps);
get fullName(): string;
get identifierType(): PersonProps['identifier']['type'];
get identifierId(): string;
get commercialName(): string;
get activityCode(): string;
get location(): LocationProps | undefined;
get phone(): PhoneProps | undefined;
get fax(): PhoneProps | undefined;
get email(): string | undefined;
static create(props: PersonProps): Person;
}