@cfdi/xml
Version:
Libreria para crear y sellar xml cfdi V4.0
57 lines • 2.03 kB
TypeScript
import { Attributes, ElementCompact } from 'xml-js';
import { XmlComplementsConcepts } from '@cfdi/complementos';
import { XmlImpuestos } from '.';
export interface XmlConcepto {
'cfdi:Concepto': XmlConceptoProperties[];
}
export interface XmlConceptoTercerosAttributes {
RfcACuentaTerceros: string | number;
NombreACuentaTerceros: string | number;
RegimenFiscalACuentaTerceros: string | number;
DomicilioFiscalACuentaTerceros: string | number;
}
export interface XmlConceptoParte {
_attributes: XmlConceptParteAttributes;
'cfdi:InformacionAduanera'?: InformacionAduanera[];
}
export interface XmlConceptParteAttributes {
ClaveProdServ: string | number;
NoIdentificacion?: string | number;
Cantidad: string | number;
Unidad?: string | number;
Descripcion: string | number;
ValorUnitario?: string | number;
Importe?: string | number;
}
export interface InformacionAduanera {
_attributes: XmlInformacionAduaneraAttributes;
}
export interface XmlInformacionAduaneraAttributes {
NumeroPedimento: string;
}
export interface XmlConceptoProperties extends ElementCompact {
_attributes: XmlConceptoAttributes;
'cfdi:Impuestos': XmlImpuestos;
'cfdi:ComplementoConcepto': XmlComplementsConcepts;
'cfdi:Parte'?: XmlConceptoParte;
'cfdi:InformacionAduanera'?: InformacionAduanera[];
}
export declare type ObjetoImp = '01' | '02' | '03';
export declare enum ObjetoImpEnum {
NoobjetoDeimpuesto = "01",
SíObjetoDeImpuesto = "02",
SíObjetoDeImpuestoYNobligadoAlDesglose = "03"
}
export interface XmlConceptoAttributes extends Attributes {
ClaveProdServ: string;
NoIdentificacion?: string;
Cantidad: number | string;
ClaveUnidad: string;
Unidad?: string;
Descripcion: string;
ValorUnitario: number | string;
Importe: number | string;
Descuento?: number | string;
ObjetoImp: ObjetoImpEnum | ObjetoImp;
}
//# sourceMappingURL=concepts.interface.d.ts.map