- Prefijo v2: MCH - TRACEABILITY-MASTER.yml creado - Listo para integracion como submodulo Workspace: v2.0.0 | SIMCO: v4.0.0
54 lines
1.2 KiB
TypeScript
54 lines
1.2 KiB
TypeScript
import { InvoiceItem } from './invoice-item.entity';
|
|
export declare enum InvoiceType {
|
|
INGRESO = "I",
|
|
EGRESO = "E",
|
|
TRASLADO = "T",
|
|
PAGO = "P",
|
|
NOMINA = "N"
|
|
}
|
|
export declare enum InvoiceStatus {
|
|
DRAFT = "draft",
|
|
PENDING = "pending",
|
|
STAMPED = "stamped",
|
|
SENT = "sent",
|
|
CANCELLED = "cancelled"
|
|
}
|
|
export declare class Invoice {
|
|
id: string;
|
|
tenantId: string;
|
|
saleId: string;
|
|
tipoComprobante: InvoiceType;
|
|
uuid: string;
|
|
serie: string;
|
|
folio: number;
|
|
receptorRfc: string;
|
|
receptorNombre: string;
|
|
receptorRegimenFiscal: string;
|
|
receptorCodigoPostal: string;
|
|
receptorUsoCfdi: string;
|
|
receptorEmail: string;
|
|
subtotal: number;
|
|
descuento: number;
|
|
totalImpuestosTrasladados: number;
|
|
totalImpuestosRetenidos: number;
|
|
total: number;
|
|
formaPago: string;
|
|
metodoPago: string;
|
|
condicionesPago: string;
|
|
moneda: string;
|
|
tipoCambio: number;
|
|
xmlUrl: string;
|
|
pdfUrl: string;
|
|
qrUrl: string;
|
|
status: InvoiceStatus;
|
|
cancelledAt: Date;
|
|
cancelReason: string;
|
|
cancelUuidReplacement: string;
|
|
stampedAt: Date;
|
|
pacResponse: Record<string, any>;
|
|
notes: string;
|
|
createdAt: Date;
|
|
updatedAt: Date;
|
|
items: InvoiceItem[];
|
|
}
|