UNPKG

facturacionelectronicapy-ts-xmlgen

Version:

Genera el contenido del archivo XML del Documento electrónico exigido por la SET

58 lines (57 loc) • 2.05 kB
import { z } from 'zod'; import { TaxpayerNotTaxpayer } from '../../data/taxpayerNotTaxpayer.table'; import { IdentityDocumentCarrier } from '../../data/idDocsCarriers.table'; export declare const IgnoranceEventSchema: z.ZodEffects<z.ZodObject<{ cdc: z.ZodString; fechaEmision: z.ZodEffects<z.ZodDate, string, Date>; fechaRecepcion: z.ZodEffects<z.ZodDate, string, Date>; contribuyente: z.ZodEffects<z.ZodBoolean, TaxpayerNotTaxpayer, boolean>; nombre: z.ZodString; ruc: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>; documentoTipo: z.ZodOptional<z.ZodNativeEnum<typeof IdentityDocumentCarrier>>; documentoNumero: z.ZodOptional<z.ZodString>; motivo: z.ZodOptional<z.ZodString>; }, "strip", z.ZodTypeAny, { nombre: string; contribuyente: TaxpayerNotTaxpayer; cdc: string; fechaRecepcion: string; fechaEmision: string; documentoTipo?: IdentityDocumentCarrier | undefined; documentoNumero?: string | undefined; ruc?: string | undefined; motivo?: string | undefined; }, { nombre: string; contribuyente: boolean; cdc: string; fechaRecepcion: Date; fechaEmision: Date; documentoTipo?: IdentityDocumentCarrier | undefined; documentoNumero?: string | undefined; ruc?: string | undefined; motivo?: string | undefined; }>, { rucID: string | undefined; rucDV: string | undefined; nombre: string; contribuyente: TaxpayerNotTaxpayer; cdc: string; fechaRecepcion: string; fechaEmision: string; documentoTipo?: IdentityDocumentCarrier | undefined; documentoNumero?: string | undefined; ruc?: string | undefined; motivo?: string | undefined; }, { nombre: string; contribuyente: boolean; cdc: string; fechaRecepcion: Date; fechaEmision: Date; documentoTipo?: IdentityDocumentCarrier | undefined; documentoNumero?: string | undefined; ruc?: string | undefined; motivo?: string | undefined; }>; export type IgnoranceEventInput = z.input<typeof IgnoranceEventSchema>;