facturacionelectronicapy-ts-xmlgen
Version:
Genera el contenido del archivo XML del Documento electrónico exigido por la SET
115 lines (114 loc) • 4.82 kB
TypeScript
import { z } from 'zod';
import { IdentityDocumentReceptor } from '../../data/idDocsReceptors.table';
import { OperationType } from '../../data/operationTypes.table';
import { TaxpayerType } from '../../data/taxpayerTypes.table';
import { TaxpayerNotTaxpayer } from '../../data/taxpayerNotTaxpayer.table';
/** Campos que identifican al receptor del Documento Electrónico DE (D200-D299) */
export declare const ClienteSchema: z.ZodEffects<z.ZodObject<{
contribuyente: z.ZodEffects<z.ZodBoolean, TaxpayerNotTaxpayer, boolean>;
tipoOperacion: z.ZodNativeEnum<typeof OperationType>;
pais: z.ZodNativeEnum<typeof import("../../types").Country>;
tipoContribuyente: z.ZodOptional<z.ZodNativeEnum<typeof TaxpayerType>>;
ruc: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
documentoTipo: z.ZodOptional<z.ZodNativeEnum<typeof IdentityDocumentReceptor>>;
descripcionTipoDocumento: z.ZodOptional<z.ZodString>;
documentoNumero: z.ZodOptional<z.ZodString>;
razonSocial: z.ZodString;
nombreFantasia: z.ZodOptional<z.ZodString>;
direccion: z.ZodOptional<z.ZodString>;
telefono: z.ZodString;
celular: z.ZodOptional<z.ZodString>;
email: z.ZodOptional<z.ZodString>;
codigo: z.ZodOptional<z.ZodString>;
numeroCasa: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
departamento: z.ZodOptional<z.ZodNativeEnum<typeof import("../../types").Department>>;
distrito: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
ciudad: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
}, "strip", z.ZodTypeAny, {
pais: import("../../types").Country;
contribuyente: TaxpayerNotTaxpayer;
tipoOperacion: OperationType;
razonSocial: string;
telefono: string;
email?: string | undefined;
distrito?: number | undefined;
codigo?: string | undefined;
departamento?: import("../../types").Department | undefined;
ciudad?: number | undefined;
documentoTipo?: IdentityDocumentReceptor | undefined;
documentoNumero?: string | undefined;
direccion?: string | undefined;
numeroCasa?: number | undefined;
tipoContribuyente?: TaxpayerType | undefined;
ruc?: string | undefined;
descripcionTipoDocumento?: string | undefined;
nombreFantasia?: string | undefined;
celular?: string | undefined;
}, {
pais: import("../../types").Country;
contribuyente: boolean;
tipoOperacion: OperationType;
razonSocial: string;
telefono: string;
email?: string | undefined;
distrito?: number | undefined;
codigo?: string | undefined;
departamento?: import("../../types").Department | undefined;
ciudad?: number | undefined;
documentoTipo?: IdentityDocumentReceptor | undefined;
documentoNumero?: string | undefined;
direccion?: string | undefined;
numeroCasa?: number | undefined;
tipoContribuyente?: TaxpayerType | undefined;
ruc?: string | undefined;
descripcionTipoDocumento?: string | undefined;
nombreFantasia?: string | undefined;
celular?: string | undefined;
}>, {
paisDescripcion: string;
rucID: string | undefined;
rucDV: string | undefined;
descripcionDepartamento: string | undefined;
descripcionDistrito: string | undefined;
descripcionCiudad: string | undefined;
pais: import("../../types").Country;
contribuyente: TaxpayerNotTaxpayer;
tipoOperacion: OperationType;
razonSocial: string;
telefono: string;
email?: string | undefined;
distrito?: number | undefined;
codigo?: string | undefined;
departamento?: import("../../types").Department | undefined;
ciudad?: number | undefined;
documentoTipo?: IdentityDocumentReceptor | undefined;
documentoNumero?: string | undefined;
direccion?: string | undefined;
numeroCasa?: number | undefined;
tipoContribuyente?: TaxpayerType | undefined;
ruc?: string | undefined;
descripcionTipoDocumento?: string | undefined;
nombreFantasia?: string | undefined;
celular?: string | undefined;
}, {
pais: import("../../types").Country;
contribuyente: boolean;
tipoOperacion: OperationType;
razonSocial: string;
telefono: string;
email?: string | undefined;
distrito?: number | undefined;
codigo?: string | undefined;
departamento?: import("../../types").Department | undefined;
ciudad?: number | undefined;
documentoTipo?: IdentityDocumentReceptor | undefined;
documentoNumero?: string | undefined;
direccion?: string | undefined;
numeroCasa?: number | undefined;
tipoContribuyente?: TaxpayerType | undefined;
ruc?: string | undefined;
descripcionTipoDocumento?: string | undefined;
nombreFantasia?: string | undefined;
celular?: string | undefined;
}>;
export type Cliente = z.infer<typeof ClienteSchema>;