UNPKG

facturacionelectronicapy-ts-xmlgen

Version:

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

58 lines (57 loc) • 2.03 kB
import { z } from 'zod'; import { IdentityDocumentCarrier } from '../../data/idDocsCarriers.table'; import { TaxpayerNotTaxpayer } from '../../data/taxpayerNotTaxpayer.table'; export declare const NotificationEventSchema: 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>; totalPYG: z.ZodEffects<z.ZodNumber, number, number>; }, "strip", z.ZodTypeAny, { nombre: string; contribuyente: TaxpayerNotTaxpayer; cdc: string; fechaRecepcion: string; fechaEmision: string; totalPYG: number; documentoTipo?: IdentityDocumentCarrier | undefined; documentoNumero?: string | undefined; ruc?: string | undefined; }, { nombre: string; contribuyente: boolean; cdc: string; fechaRecepcion: Date; fechaEmision: Date; totalPYG: number; documentoTipo?: IdentityDocumentCarrier | undefined; documentoNumero?: string | undefined; ruc?: string | undefined; }>, { rucID: string | undefined; rucDV: string | undefined; nombre: string; contribuyente: TaxpayerNotTaxpayer; cdc: string; fechaRecepcion: string; fechaEmision: string; totalPYG: number; documentoTipo?: IdentityDocumentCarrier | undefined; documentoNumero?: string | undefined; ruc?: string | undefined; }, { nombre: string; contribuyente: boolean; cdc: string; fechaRecepcion: Date; fechaEmision: Date; totalPYG: number; documentoTipo?: IdentityDocumentCarrier | undefined; documentoNumero?: string | undefined; ruc?: string | undefined; }>; export type NotificationEventInput = z.input<typeof NotificationEventSchema>;