@cfdi/complementos
Version:
Complementos fiscales del SAT para CFDI 4.0: pagos, nomina, comercio exterior, carta porte
1,037 lines (1,036 loc) • 42.1 kB
JavaScript
class i {
complemento = {};
xmlns;
key;
schemaLocation = [];
xmlnskey;
constructor(t) {
const { key: o, xmlns: s, xsd: a } = t;
this.xmlns = s, this.key = o, this.xmlnskey = this.key.split(":")[0], this.schemaLocation.push(s), this.schemaLocation.push(a);
}
getComplement() {
return {
complement: this.complemento,
key: this.key,
schemaLocation: this.schemaLocation,
xmlns: this.xmlns,
xmlnskey: this.xmlnskey
};
}
}
const d = "http://www.sat.gob.mx/aerolineas", b = "http://www.sat.gob.mx/sitio_internet/cfd/aerolineas/aerolineas.xsd";
class $t extends i {
complemento = {};
/**
* constructor
*
* @param attributes
* XmlAerolineasAttributes
*/
constructor(t) {
super({ key: "aerolineas:Aerolineas", xmlns: d, xsd: b }), this.complemento._attributes = t;
}
/**
* OtrosCargos
*
* @param attributes
* XmlAerolineasOtrosCargosAttributes
*/
OtrosCargos(t) {
this.complemento["aerolineas:OtrosCargos"] || (this.complemento["aerolineas:OtrosCargos"] = {}), this.complemento["aerolineas:OtrosCargos"]._attributes = t;
}
/**
*Cargo
*
* @param attributes
* XmlAerolineasCargoAttributes
*/
Cargo(t) {
if (this.complemento["aerolineas:OtrosCargos"])
this.complemento["aerolineas:OtrosCargos"]["aerolineas:Cargo"] || (this.complemento["aerolineas:OtrosCargos"]["aerolineas:Cargo"] = []), this.complemento["aerolineas:OtrosCargos"]["aerolineas:Cargo"].push({
_attributes: t
});
else
throw new Error("agrega OtrosCargos primero");
}
}
const x = "http://www.sat.gob.mx/CartaPorte20", g = "http://www.sat.gob.mx/sitio_internet/cfd/CartaPorte/CartaPorte20.xsd";
class It extends i {
complemento = {};
/**
*constructor
*
* @param attributes
* XmlCartaPorteAttribute
*/
constructor(t) {
super({ key: "cartaporte20:CartaPorte", xmlns: x, xsd: g }), t && (this.complemento = {
_attributes: t
});
}
setAttributes(t) {
this.complemento = {
_attributes: t
};
}
setUbicacion(t) {
this.complemento["cartaporte20:Ubicaciones"] || (this.complemento["cartaporte20:Ubicaciones"] = {
"cartaporte20:Ubicacion": []
}), this.complemento["cartaporte20:Ubicaciones"]["cartaporte20:Ubicacion"].push(
t.getUbicacion()
);
}
setMercancias(t) {
this.complemento["cartaporte20:Mercancias"] = t.getMercancias();
}
setFiguraTransporte(t) {
this.complemento["cartaporte20:FiguraTransporte"] || (this.complemento["cartaporte20:FiguraTransporte"] = {
"cartaporte20:TiposFigura": []
}), this.complemento["cartaporte20:FiguraTransporte"]["cartaporte20:TiposFigura"].push(t.getFiguraTransporte());
}
}
class Mt {
fTransporte = {};
constructor(t) {
t && (this.fTransporte = {
_attributes: t
});
}
setAttributes(t) {
this.fTransporte = {
_attributes: t
};
}
setPartesTransporte(t) {
this.fTransporte["cartaporte20:PartesTransporte"] || (this.fTransporte["cartaporte20:PartesTransporte"] = []), this.fTransporte["cartaporte20:PartesTransporte"].push({ _attributes: t });
}
setDomicilio(t) {
this.fTransporte["cartaporte20:Domicilio"] || (this.fTransporte["cartaporte20:Domicilio"] = []), this.fTransporte["cartaporte20:Domicilio"].push({
_attributes: t
});
}
getFiguraTransporte() {
return this.fTransporte;
}
}
class n {
static instance;
mercancia = {};
constructor(t) {
t && (this.mercancia._attributes = t);
}
reset() {
this.mercancia = {};
}
setAttributes(t) {
t && (this.mercancia._attributes = t);
}
static getInstance(t) {
return n.instance || (n.instance = new n(t)), this.instance.reset(), this.instance.setAttributes(t), n.instance;
}
setPedimentos(t) {
this.mercancia["cartaporte20:Pedimentos"] || (this.mercancia["cartaporte20:Pedimentos"] = []), this.mercancia["cartaporte20:Pedimentos"].push({
_attributes: t
});
}
setGuiaIdentificacion(t) {
this.mercancia["cartaporte20:GuiasIdentificacion"] || (this.mercancia["cartaporte20:GuiasIdentificacion"] = []), this.mercancia["cartaporte20:GuiasIdentificacion"].push({
_attributes: t
});
}
setCantidadTransporta(t) {
this.mercancia["cartaporte20:CantidadTransporta"] || (this.mercancia["cartaporte20:CantidadTransporta"] = []), this.mercancia["cartaporte20:CantidadTransporta"].push({
_attributes: t
});
}
setDetalleMercancia(t) {
this.mercancia["cartaporte20:DetalleMercancia"] || (this.mercancia["cartaporte20:DetalleMercancia"] = []), this.mercancia["cartaporte20:DetalleMercancia"].push({
_attributes: t
});
}
getMercancia() {
return this.mercancia;
}
}
class c {
static instance;
transporte = {};
constructor(t) {
t && (this.transporte._attributes = t);
}
reset() {
this.transporte = {};
}
setAttributes(t) {
t && (this.transporte._attributes = t);
}
static getInstance(t) {
return c.instance || (c.instance = new c(t)), this.instance.reset(), this.instance.setAttributes(t), c.instance;
}
setIdentificacionVehicular(t) {
this.transporte["cartaporte20:IdentificacionVehicular"] || (this.transporte["cartaporte20:IdentificacionVehicular"] = []), this.transporte["cartaporte20:IdentificacionVehicular"].push({
_attributes: t
});
}
setSeguro(t) {
this.transporte["cartaporte20:Seguros"] || (this.transporte["cartaporte20:Seguros"] = []), this.transporte["cartaporte20:Seguros"].push({
_attributes: t
});
}
setRemolque(t) {
this.transporte["cartaporte20:Remolques"] || (this.transporte["cartaporte20:Remolques"] = {
"cartaporte20:Remolque": []
}), this.transporte["cartaporte20:Remolques"]["cartaporte20:Remolque"].push({
_attributes: t
});
}
getTransporte() {
return this.transporte;
}
}
class m {
static instance;
tMaritimo = {};
constructor(t) {
t && (this.tMaritimo._attributes = t);
}
reset() {
this.tMaritimo = {};
}
setAttributes(t) {
t && (this.tMaritimo._attributes = t);
}
static getInstance(t) {
return m.instance || (m.instance = new m(t)), this.instance.reset(), this.instance.setAttributes(t), m.instance;
}
setContenedor(t) {
this.tMaritimo["cartaporte20:Contenedor"] || (this.tMaritimo["cartaporte20:Contenedor"] = []), this.tMaritimo["cartaporte20:Contenedor"].push({
_attributes: t
});
}
getTMaritimo() {
return this.tMaritimo;
}
}
class p {
static instance;
tFerroviario = {};
constructor(t) {
t && (this.tFerroviario._attributes = t);
}
reset() {
this.tFerroviario = {};
}
setAttributes(t) {
t && (this.tFerroviario._attributes = t);
}
static getInstance(t) {
return p.instance || (p.instance = new p(t)), this.instance.reset(), this.instance.setAttributes(t), p.instance;
}
setDerechosDePaso(t) {
this.tFerroviario["cartaporte20:DerechosDePaso"] || (this.tFerroviario["cartaporte20:DerechosDePaso"] = []), this.tFerroviario["cartaporte20:DerechosDePaso"].push({
_attributes: t
});
}
setCarro(t) {
this.tFerroviario["cartaporte20:Carro"] || (this.tFerroviario["cartaporte20:Carro"] = []);
const o = {
_attributes: t.carro
};
t.contenedores && t.contenedores.length && (o["cartaporte20:Contenedor"] || (o["cartaporte20:Contenedor"] = []), t.contenedores.map(
(s) => o["cartaporte20:Contenedor"].push({ _attributes: s })
)), this.tFerroviario["cartaporte20:Carro"].push(o);
}
getTransporteFerroviario() {
return this.tFerroviario;
}
}
class Ft {
mercancias = {};
constructor(t) {
t && (this.mercancias = {
_attributes: t
});
}
setAttributes(t) {
this.mercancias = {
_attributes: t
};
}
setMercancia(t) {
this.mercancias["cartaporte20:Mercancia"] || (this.mercancias["cartaporte20:Mercancia"] = []);
const o = n.getInstance(t);
return this.mercancias["cartaporte20:Mercancia"].push(o.getMercancia()), o;
}
setAutotransporte(t) {
this.mercancias["cartaporte20:Autotransporte"] || (this.mercancias["cartaporte20:Autotransporte"] = []);
const o = c.getInstance(t);
return this.mercancias["cartaporte20:Autotransporte"].push(
o.getTransporte()
), o;
}
setTransporteMaritimo(t) {
this.mercancias["cartaporte20:TransporteMaritimo"] || (this.mercancias["cartaporte20:TransporteMaritimo"] = []);
const o = m.getInstance(t);
return this.mercancias["cartaporte20:TransporteMaritimo"].push(
o.getTMaritimo()
), o;
}
setTransporteAereo(t) {
this.mercancias["cartaporte20:TransporteAereo"] || (this.mercancias["cartaporte20:TransporteAereo"] = []), this.mercancias["cartaporte20:TransporteAereo"].push({
_attributes: t
});
}
setTransporteFerroviario(t) {
this.mercancias["cartaporte20:TransporteFerroviario"] || (this.mercancias["cartaporte20:TransporteFerroviario"] = []);
const o = p.getInstance(t);
return this.mercancias["cartaporte20:TransporteFerroviario"].push(
o.getTransporteFerroviario()
), o;
}
getMercancias() {
return this.mercancias;
}
}
class At {
ubicacion = {};
constructor(t) {
t && (this.ubicacion = {
_attributes: t
});
}
setAttributes(t) {
this.ubicacion = {
_attributes: t
};
}
setDomicilio(t) {
this.ubicacion["cartaporte20:Domicilio"] || (this.ubicacion["cartaporte20:Domicilio"] = []), this.ubicacion["cartaporte20:Domicilio"].push({
_attributes: t
});
}
getUbicacion() {
return this.ubicacion;
}
}
const w = "http://www.sat.gob.mx/CartaPorte30", f = "http://www.sat.gob.mx/sitio_internet/cfd/CartaPorte/CartaPorte30.xsd";
class kt extends i {
complemento = {};
constructor(t) {
super({ key: "cartaporte30:CartaPorte", xmlns: w, xsd: f }), t && (this.complemento._attributes = t);
}
setAttributes(t) {
this.complemento._attributes = t;
}
setUbicacion(t, o) {
this.complemento["cartaporte30:Ubicaciones"] || (this.complemento["cartaporte30:Ubicaciones"] = { "cartaporte30:Ubicacion": [] });
const s = { _attributes: t };
o && (s["cartaporte30:Domicilio"] = { _attributes: o }), this.complemento["cartaporte30:Ubicaciones"]["cartaporte30:Ubicacion"].push(s);
}
setMercancias(t) {
this.complemento["cartaporte30:Mercancias"] = { _attributes: t };
}
setMercancia(t) {
if (!this.complemento["cartaporte30:Mercancias"]) throw new Error("Debe llamar setMercancias() primero");
this.complemento["cartaporte30:Mercancias"]["cartaporte30:Mercancia"] || (this.complemento["cartaporte30:Mercancias"]["cartaporte30:Mercancia"] = []), this.complemento["cartaporte30:Mercancias"]["cartaporte30:Mercancia"].push({ _attributes: t });
}
setFiguraTransporte(t, o) {
this.complemento["cartaporte30:FiguraTransporte"] || (this.complemento["cartaporte30:FiguraTransporte"] = { "cartaporte30:TiposFigura": [] });
const s = { _attributes: t };
o && (s["cartaporte30:Domicilio"] = { _attributes: o }), this.complemento["cartaporte30:FiguraTransporte"]["cartaporte30:TiposFigura"].push(s);
}
}
const P = "http://www.sat.gob.mx/CartaPorte31", _ = "http://www.sat.gob.mx/sitio_internet/cfd/CartaPorte/CartaPorte31.xsd";
class qt extends i {
complemento = {};
constructor(t) {
super({ key: "cartaporte31:CartaPorte", xmlns: P, xsd: _ }), t && (this.complemento._attributes = t);
}
setAttributes(t) {
this.complemento._attributes = t;
}
setUbicacion(t, o) {
this.complemento["cartaporte31:Ubicaciones"] || (this.complemento["cartaporte31:Ubicaciones"] = { "cartaporte31:Ubicacion": [] });
const s = { _attributes: t };
o && (s["cartaporte31:Domicilio"] = { _attributes: o }), this.complemento["cartaporte31:Ubicaciones"]["cartaporte31:Ubicacion"].push(s);
}
setMercancias(t) {
this.complemento["cartaporte31:Mercancias"] = { _attributes: t };
}
setMercancia(t) {
if (!this.complemento["cartaporte31:Mercancias"]) throw new Error("Debe llamar setMercancias() primero");
this.complemento["cartaporte31:Mercancias"]["cartaporte31:Mercancia"] || (this.complemento["cartaporte31:Mercancias"]["cartaporte31:Mercancia"] = []), this.complemento["cartaporte31:Mercancias"]["cartaporte31:Mercancia"].push({ _attributes: t });
}
setFiguraTransporte(t, o) {
this.complemento["cartaporte31:FiguraTransporte"] || (this.complemento["cartaporte31:FiguraTransporte"] = { "cartaporte31:TiposFigura": [] });
const s = { _attributes: t };
o && (s["cartaporte31:Domicilio"] = { _attributes: o }), this.complemento["cartaporte31:FiguraTransporte"]["cartaporte31:TiposFigura"].push(s);
}
}
const D = "http://www.sat.gob.mx/ComercioExterior11", C = "http://www.sat.gob.mx/sitio_internet/cfd/ComercioExterior11/ComercioExterior11.xsd";
class jt extends i {
complemento = {};
constructor(t) {
super({ key: "cce11:ComercioExterior", xmlns: D, xsd: C }), this.complemento._attributes = t;
}
Emisor(t, o) {
this.complemento["cce11:Emisor"] = {}, t && (this.complemento["cce11:Emisor"]._attributes = t), o && (this.complemento["cce11:Emisor"]["cce11:Domicilio"] = { _attributes: o });
}
Receptor(t, o) {
this.complemento["cce11:Receptor"] = {}, t && (this.complemento["cce11:Receptor"]._attributes = t), o && (this.complemento["cce11:Receptor"]["cce11:Domicilio"] = { _attributes: o });
}
Propietario(t) {
this.complemento["cce11:Propietario"] || (this.complemento["cce11:Propietario"] = []), this.complemento["cce11:Propietario"].push({ _attributes: t });
}
Destinatario(t, o) {
this.complemento["cce11:Destinatario"] || (this.complemento["cce11:Destinatario"] = []);
const s = {};
t && (s._attributes = t), o && (s["cce11:Domicilio"] = { _attributes: o }), this.complemento["cce11:Destinatario"].push(s);
}
Mercancias(t, o) {
this.complemento["cce11:Mercancias"] || (this.complemento["cce11:Mercancias"] = { "cce11:Mercancia": [] });
const s = { _attributes: t };
o?.length && (s["cce11:DescripcionesEspecificas"] = o.map((a) => ({ _attributes: a }))), this.complemento["cce11:Mercancias"]["cce11:Mercancia"].push(s);
}
}
const E = "http://www.sat.gob.mx/ComercioExterior20", v = "http://www.sat.gob.mx/sitio_internet/cfd/ComercioExterior20/ComercioExterior20.xsd";
class Ut extends i {
complemento = {};
constructor(t) {
super({ key: "cce20:ComercioExterior", xmlns: E, xsd: v }), this.complemento._attributes = t;
}
Emisor(t, o) {
this.complemento["cce20:Emisor"] = {}, t && (this.complemento["cce20:Emisor"]._attributes = t), o && (this.complemento["cce20:Emisor"]["cce20:Domicilio"] = { _attributes: o });
}
Receptor(t, o) {
this.complemento["cce20:Receptor"] = {}, t && (this.complemento["cce20:Receptor"]._attributes = t), o && (this.complemento["cce20:Receptor"]["cce20:Domicilio"] = { _attributes: o });
}
Propietario(t) {
this.complemento["cce20:Propietario"] || (this.complemento["cce20:Propietario"] = []), this.complemento["cce20:Propietario"].push({ _attributes: t });
}
Destinatario(t, o) {
this.complemento["cce20:Destinatario"] || (this.complemento["cce20:Destinatario"] = []);
const s = {};
t && (s._attributes = t), o && (s["cce20:Domicilio"] = { _attributes: o }), this.complemento["cce20:Destinatario"].push(s);
}
Mercancias(t, o) {
this.complemento["cce20:Mercancias"] || (this.complemento["cce20:Mercancias"] = { "cce20:Mercancia": [] });
const s = { _attributes: t };
o?.length && (s["cce20:DescripcionesEspecificas"] = o.map((a) => ({ _attributes: a }))), this.complemento["cce20:Mercancias"]["cce20:Mercancia"].push(s);
}
}
const R = "http://www.sat.gob.mx/ConsumoDeCombustibles11", S = "http://www.sat.gob.mx/sitio_internet/cfd/ConsumoDeCombustibles/consumodeCombustibles11.xsd";
class Lt extends i {
complemento = {};
constructor(t) {
super({ key: "consumodecombustibles11:ConsumoDeCombustibles", xmlns: R, xsd: S }), this.complemento._attributes = t;
}
Concepto(t, o) {
this.complemento["consumodecombustibles11:Conceptos"] || (this.complemento["consumodecombustibles11:Conceptos"] = {
"consumodecombustibles11:ConceptoConsumoDeCombustibles": []
});
const s = { _attributes: t };
o?.length && (s["consumodecombustibles11:Determinados"] = {
"consumodecombustibles11:Determinado": o.map((a) => ({ _attributes: a }))
}), this.complemento["consumodecombustibles11:Conceptos"]["consumodecombustibles11:ConceptoConsumoDeCombustibles"].push(s);
}
}
const T = "http://www.sat.gob.mx/renovacionysustitucionvehiculos", y = "http://www.sat.gob.mx/sitio_internet/cfd/renovacionysustitucionvehiculos/renovacionysustitucionvehiculos.xsd";
class Ot extends i {
complemento = {};
constructor(t) {
super({ key: "decreto:renovacionysustitucionvehiculos", xmlns: T, xsd: y }), this.complemento._attributes = t;
}
RenovVehicular(t) {
this.complemento["decreto:DecretoRenovVehiculos"] = { _attributes: t };
}
SustitVehicular(t) {
this.complemento["decreto:DecretoSustitVehiculos"] = { _attributes: t };
}
}
const $ = "http://www.sat.gob.mx/certificadodestruccion", I = "http://www.sat.gob.mx/sitio_internet/cfd/certificadodestruccion/certificadodedestruccion.xsd";
class Vt extends i {
complemento = {};
constructor(t) {
super({ key: "destruccion:certificadodedestruccion", xmlns: $, xsd: I }), this.complemento._attributes = t;
}
InformacionAduanera(t) {
this.complemento["destruccion:InformacionAduanera"] = { _attributes: t };
}
VehiculoDestruido(t) {
this.complemento["destruccion:VehiculoDestruido"] = { _attributes: t };
}
}
const M = "http://www.sat.gob.mx/detallista", F = "http://www.sat.gob.mx/sitio_internet/cfd/detallista/detallista.xsd";
class Gt extends i {
complemento = {};
constructor(t) {
super({ key: "detallista:detallista", xmlns: M, xsd: F }), this.complemento._attributes = t;
}
}
const A = "http://www.sat.gob.mx/divisas", k = "http://www.sat.gob.mx/sitio_internet/cfd/divisas/divisas.xsd";
class zt extends i {
complemento = {};
constructor(t) {
super({ key: "divisas:Divisas", xmlns: A, xsd: k }), this.complemento._attributes = t;
}
}
const q = "http://www.sat.gob.mx/donat", j = "http://www.sat.gob.mx/sitio_internet/cfd/donat/donat11.xsd";
class Nt extends i {
complemento = {};
constructor(t) {
super({ key: "donat:Donatarias", xmlns: q, xsd: j }), this.complemento._attributes = t;
}
}
const U = "http://www.sat.gob.mx/EstadoDeCuentaCombustible12", L = "http://www.sat.gob.mx/sitio_internet/cfd/EstadoDeCuentaCombustible/ecc12.xsd";
class Bt extends i {
complemento = {};
constructor(t) {
super({ key: "ecc12:EstadoDeCuentaCombustible", xmlns: U, xsd: L }), this.complemento._attributes = t;
}
Concepto(t, o) {
this.complemento["ecc12:Conceptos"] || (this.complemento["ecc12:Conceptos"] = {
"ecc12:ConceptoEstadoDeCuentaCombustible": []
});
const s = { _attributes: t };
o?.length && (s["ecc12:Traslados"] = {
"ecc12:Traslado": o.map((a) => ({ _attributes: a }))
}), this.complemento["ecc12:Conceptos"]["ecc12:ConceptoEstadoDeCuentaCombustible"].push(s);
}
}
const O = "http://www.sat.gob.mx/GastosHidrocarburos10", V = "http://www.sat.gob.mx/sitio_internet/cfd/GastosHidrocarburos10/GastosHidrocarburos10.xsd";
class Jt extends i {
complemento = {};
currentErogacion = null;
constructor(t) {
super({ key: "gceh:GastosHidrocarburos", xmlns: O, xsd: V }), this.complemento._attributes = t;
}
erogacion(t) {
return this.complemento["gceh:Erogacion"] || (this.complemento["gceh:Erogacion"] = []), this.currentErogacion = { _attributes: t }, this.complemento["gceh:Erogacion"].push(this.currentErogacion), this;
}
documentoRelacionado(t) {
if (!this.currentErogacion) throw new Error("Debe llamar erogacion() primero");
return this.currentErogacion["gceh:DocumentoRelacionado"] || (this.currentErogacion["gceh:DocumentoRelacionado"] = []), this.currentErogacion["gceh:DocumentoRelacionado"].push({ _attributes: t }), this;
}
actividad(t) {
if (!this.currentErogacion) throw new Error("Debe llamar erogacion() primero");
return this.currentErogacion["gceh:Actividades"] || (this.currentErogacion["gceh:Actividades"] = []), this.currentErogacion["gceh:Actividades"].push({ _attributes: t }), this;
}
centroCostos(t) {
if (!this.currentErogacion) throw new Error("Debe llamar erogacion() primero");
return this.currentErogacion["gceh:CentroCostos"] || (this.currentErogacion["gceh:CentroCostos"] = []), this.currentErogacion["gceh:CentroCostos"].push({ _attributes: t }), this;
}
}
const G = "http://www.sat.gob.mx/hidrocarburospetroliferos", z = "http://www.sat.gob.mx/sitio_internet/cfd/hidrocarburospetroliferos/hidrocarburospetroliferos.xsd";
class Kt extends i {
complemento = {};
constructor(t) {
super({ key: "hidrocarburospetroliferos:HidroYPetro", xmlns: G, xsd: z }), this.complemento = {
_attributes: t
};
}
}
var N = /* @__PURE__ */ ((e) => (e.PER01 = "PER01", e.PER02 = "PER02", e.PER03 = "PER03", e.PER04 = "PER04", e.PER05 = "PER05", e.PER06 = "PER06", e.PER07 = "PER07", e.PER08 = "PER08", e.PER09 = "PER09", e.PER10 = "PER10", e.PER11 = "PER11", e))(N || {});
const Qt = [
{ value: "PER01", label: "Permiso de refinacion" },
{ value: "PER02", label: "Permiso de procesamiento de gas natural" },
{ value: "PER03", label: "Permiso de exportacion o importacion de hidrocarburos, petroliferos o petroquimicos" },
{ value: "PER04", label: "Permiso de almacenamiento de hidrocarburos, petroliferos y petroquimicos" },
{ value: "PER05", label: "Permiso de transporte de hidrocarburos, petroliferos y petroquimicos" },
{ value: "PER06", label: "Permiso de distribucion de hidrocarburos, petroliferos y petroquimicos" },
{ value: "PER07", label: "Permiso de expendio al publico de petroliferos" },
{ value: "PER08", label: "Permiso de gestion de sistemas integrados" },
{ value: "PER09", label: "Permiso de comercializacion de hidrocarburos y petroliferos" },
{ value: "PER10", label: "Permiso de expendio al publico de gas natural" },
{ value: "PER11", label: "Permiso de distribucion por medios distintos a ducto de gas licuado de petroleo" }
];
var B = /* @__PURE__ */ ((e) => (e.SP16 = "SP16", e.SP17 = "SP17", e.SP18 = "SP18", e.SP19 = "SP19", e.SP20 = "SP20", e.SP21 = "SP21", e.SP22 = "SP22", e.SP23 = "SP23", e.SP24 = "SP24", e.SP25 = "SP25", e.SP26 = "SP26", e.SP27 = "SP27", e.SP28 = "SP28", e.SP29 = "SP29", e.SP30 = "SP30", e.SP31 = "SP31", e.SP32 = "SP32", e.SP33 = "SP33", e.SP34 = "SP34", e.SP35 = "SP35", e.SP36 = "SP36", e.SP37 = "SP37", e.SP38 = "SP38", e.SP39 = "SP39", e.SP40 = "SP40", e.SP41 = "SP41", e.SP42 = "SP42", e.SP43 = "SP43", e.SP44 = "SP44", e.SP45 = "SP45", e.SP46 = "SP46", e.SP47 = "SP47", e.SP48 = "SP48", e))(B || {});
const Wt = [
{ value: "SP16", label: "Gasolina menor a 91 octanos" },
{ value: "SP17", label: "Gasolina mayor o igual a 91 y menor a 92 octanos" },
{ value: "SP18", label: "Gasolina mayor o igual a 92 octanos" },
{ value: "SP19", label: "Diesel automotriz" },
{ value: "SP20", label: "Diesel industrial" },
{ value: "SP21", label: "Diesel marino" },
{ value: "SP22", label: "Diesel agricola" },
{ value: "SP23", label: "Mezclas de gasolinas con etanol anhidro" },
{ value: "SP24", label: "Mezclas de diesel con biodiesel" },
{ value: "SP25", label: "Gas licuado de petroleo (GLP)" },
{ value: "SP26", label: "Gas natural para uso automotriz" },
{ value: "SP27", label: "Combustoleo" },
{ value: "SP28", label: "Turbosina (combustible para jets)" },
{ value: "SP29", label: "Asfaltos" },
{ value: "SP30", label: "Lubricantes" },
{ value: "SP31", label: "Parafinas" },
{ value: "SP32", label: "Materia prima para negro de humo" },
{ value: "SP33", label: "Residuo largo" },
{ value: "SP34", label: "Gasoleo domestico" },
{ value: "SP35", label: "Naftas" },
{ value: "SP36", label: "Propano" },
{ value: "SP37", label: "Butano" },
{ value: "SP38", label: "Etano" },
{ value: "SP39", label: "Metano" },
{ value: "SP40", label: "Pentanos" },
{ value: "SP41", label: "Hexano" },
{ value: "SP42", label: "Heptano" },
{ value: "SP43", label: "Kerosenos" },
{ value: "SP44", label: "Gasolinas de aviacion" },
{ value: "SP45", label: "Biodiesel puro (B100)" },
{ value: "SP46", label: "Etanol anhidro para mezcla" },
{ value: "SP47", label: "Bioturbosina" },
{ value: "SP48", label: "Otros petroliferos" }
], J = "http://www.sat.gob.mx/iedu", K = "http://www.sat.gob.mx/sitio_internet/cfd/iedu/iedu.xsd";
class Xt extends i {
complemento = {};
/**
*constructor
*
* @param attributes
* XmlIeduAttribute
*/
constructor(t) {
super({ key: "iedu:instEducativas", xmlns: J, xsd: K }), this.complemento = {
_attributes: t
};
}
}
const Q = "http://www.sat.gob.mx/IngresosHidrocarburos10", W = "http://www.sat.gob.mx/sitio_internet/cfd/IngresosHidrocarburos10/IngresosHidrocarburos.xsd";
class Zt extends i {
complemento = {};
constructor(t) {
super({ key: "ieeh:IngresosHidrocarburos", xmlns: Q, xsd: W }), this.complemento._attributes = t;
}
docRelacionado(t) {
this.complemento["ieeh:DocumentoRelacionado"] || (this.complemento["ieeh:DocumentoRelacionado"] = []), this.complemento["ieeh:DocumentoRelacionado"].push({ _attributes: t });
}
}
const X = "http://www.sat.gob.mx/implocal", Z = "http://www.sat.gob.mx/sitio_internet/cfd/implocal/implocal.xsd";
class Ht extends i {
complemento = {};
constructor(t) {
super({ key: "implocal:ImpuestosLocales", xmlns: X, xsd: Z }), this.complemento._attributes = t;
}
retenciones(t) {
this.complemento["implocal:RetencionesLocales"] || (this.complemento["implocal:RetencionesLocales"] = []), this.complemento["implocal:RetencionesLocales"].push({ _attributes: t });
}
traslados(t) {
this.complemento["implocal:TrasladosLocales"] || (this.complemento["implocal:TrasladosLocales"] = []), this.complemento["implocal:TrasladosLocales"].push({ _attributes: t });
}
}
const H = "http://www.sat.gob.mx/ine", Y = "http://www.sat.gob.mx/sitio_internet/cfd/ine/ine11.xsd";
class Yt extends i {
complemento = {};
/**
*constructor
*
* @param attributes
* XmlIneAttribute
*/
constructor(t) {
super({ key: "ine:INE", xmlns: H, xsd: Y }), this.complemento._attributes = t;
}
/**
*Entidad
*
* @param attributes
* XmlIneEntidadAttribute
*/
Entidad(t) {
this.complemento["ine:Entidad"] || (this.complemento["ine:Entidad"] = {}), this.complemento["ine:Entidad"]._attributes = t;
}
/**
*Contabilidad
*
* @param attributes
* XmlIneContabilidadAttribute
*/
Contabilidad(t) {
if (this.complemento["ine:Entidad"])
this.complemento["ine:Entidad"]["ine:Contabilidad"] = {
_attributes: t
};
else
throw new Error("agrega entidad primero");
}
}
const tt = "http://www.sat.gob.mx/leyendasFiscales", et = "http://www.sat.gob.mx/sitio_internet/cfd/leyendasFiscales/leyendasFisc.xsd";
class te extends i {
complemento = {};
constructor(t) {
super({ key: "leyendasFisc:LeyendasFiscales", xmlns: tt, xsd: et }), this.complemento._attributes = t ?? { version: "1.0" };
}
leyenda(t) {
this.complemento["leyendasFisc:Leyenda"] || (this.complemento["leyendasFisc:Leyenda"] = []), this.complemento["leyendasFisc:Leyenda"].push({ _attributes: t });
}
}
const ot = "http://www.sat.gob.mx/nomina12", st = "http://www.sat.gob.mx/sitio_internet/cfd/nomina/nomina12.xsd";
class ee extends i {
complemento = {};
constructor(t) {
super({ key: "nomina12:Nomina", xmlns: ot, xsd: st }), this.complemento._attributes = t;
}
Emisor(t, o) {
this.complemento["nomina12:Emisor"] = {}, t && (this.complemento["nomina12:Emisor"]._attributes = t), o && (this.complemento["nomina12:Emisor"]["nomina12:EntidadSNCF"] = { _attributes: o });
}
Receptor(t) {
this.complemento["nomina12:Receptor"] = { _attributes: t };
}
SubContratacion(t) {
if (!this.complemento["nomina12:Receptor"]) throw new Error("Debe llamar Receptor() primero");
this.complemento["nomina12:Receptor"]["nomina12:SubContratacion"] || (this.complemento["nomina12:Receptor"]["nomina12:SubContratacion"] = []), this.complemento["nomina12:Receptor"]["nomina12:SubContratacion"].push({ _attributes: t });
}
Percepciones(t) {
this.complemento["nomina12:Percepciones"] = { _attributes: t };
}
Percepcion(t) {
if (!this.complemento["nomina12:Percepciones"]) throw new Error("Debe llamar Percepciones() primero");
this.complemento["nomina12:Percepciones"]["nomina12:Percepcion"] || (this.complemento["nomina12:Percepciones"]["nomina12:Percepcion"] = []), this.complemento["nomina12:Percepciones"]["nomina12:Percepcion"].push({ _attributes: t });
}
JubilacionPensionRetiro(t) {
if (!this.complemento["nomina12:Percepciones"]) throw new Error("Debe llamar Percepciones() primero");
this.complemento["nomina12:Percepciones"]["nomina12:JubilacionPensionRetiro"] = { _attributes: t };
}
SeparacionIndemnizacion(t) {
if (!this.complemento["nomina12:Percepciones"]) throw new Error("Debe llamar Percepciones() primero");
this.complemento["nomina12:Percepciones"]["nomina12:SeparacionIndemnizacion"] = { _attributes: t };
}
Deducciones(t) {
this.complemento["nomina12:Deducciones"] = {}, t && (this.complemento["nomina12:Deducciones"]._attributes = t);
}
Deduccion(t) {
if (!this.complemento["nomina12:Deducciones"]) throw new Error("Debe llamar Deducciones() primero");
this.complemento["nomina12:Deducciones"]["nomina12:Deduccion"] || (this.complemento["nomina12:Deducciones"]["nomina12:Deduccion"] = []), this.complemento["nomina12:Deducciones"]["nomina12:Deduccion"].push({ _attributes: t });
}
OtroPago(t, o, s) {
this.complemento["nomina12:OtrosPagos"] || (this.complemento["nomina12:OtrosPagos"] = { "nomina12:OtroPago": [] });
const a = { _attributes: t };
o && (a["nomina12:SubsidioAlEmpleo"] = { _attributes: o }), s && (a["nomina12:CompensacionSaldosAFavor"] = { _attributes: s }), this.complemento["nomina12:OtrosPagos"]["nomina12:OtroPago"].push(a);
}
Incapacidad(t) {
this.complemento["nomina12:Incapacidades"] || (this.complemento["nomina12:Incapacidades"] = { "nomina12:Incapacidad": [] }), this.complemento["nomina12:Incapacidades"]["nomina12:Incapacidad"].push({ _attributes: t });
}
}
const it = "http://www.sat.gob.mx/notariospublicos", at = "http://www.sat.gob.mx/sitio_internet/cfd/notariospublicos/notariospublicos.xsd";
class oe extends i {
complemento = {};
constructor(t) {
super({ key: "notariospublicos:NotariosPublicos", xmlns: it, xsd: at }), this.complemento._attributes = t ?? { Version: "1.0" };
}
DescInmueble(t) {
this.complemento["notariospublicos:DescInmuebles"] || (this.complemento["notariospublicos:DescInmuebles"] = { "notariospublicos:DescInmueble": [] }), this.complemento["notariospublicos:DescInmuebles"]["notariospublicos:DescInmueble"].push({ _attributes: t });
}
DatosOperacion(t) {
this.complemento["notariospublicos:DatosOperacion"] = { _attributes: t };
}
DatosNotario(t) {
this.complemento["notariospublicos:DatosNotario"] = { _attributes: t };
}
DatosEnajenante(t, o) {
this.complemento["notariospublicos:DatosEnajenante"] = { _attributes: t }, o && (this.complemento["notariospublicos:DatosEnajenante"]["notariospublicos:DatosUnEnajenante"] = { _attributes: o });
}
EnajenanteCopSC(t) {
if (!this.complemento["notariospublicos:DatosEnajenante"]) throw new Error("Debe llamar DatosEnajenante() primero");
this.complemento["notariospublicos:DatosEnajenante"]["notariospublicos:DatosEnajenantesCopSC"] || (this.complemento["notariospublicos:DatosEnajenante"]["notariospublicos:DatosEnajenantesCopSC"] = {
"notariospublicos:DatosEnajenanteCopSC": []
}), this.complemento["notariospublicos:DatosEnajenante"]["notariospublicos:DatosEnajenantesCopSC"]["notariospublicos:DatosEnajenanteCopSC"].push({ _attributes: t });
}
DatosAdquiriente(t, o) {
this.complemento["notariospublicos:DatosAdquiriente"] = { _attributes: t }, o && (this.complemento["notariospublicos:DatosAdquiriente"]["notariospublicos:DatosUnAdquiriente"] = { _attributes: o });
}
AdquirienteCopSC(t) {
if (!this.complemento["notariospublicos:DatosAdquiriente"]) throw new Error("Debe llamar DatosAdquiriente() primero");
this.complemento["notariospublicos:DatosAdquiriente"]["notariospublicos:DatosAdquirientesCopSC"] || (this.complemento["notariospublicos:DatosAdquiriente"]["notariospublicos:DatosAdquirientesCopSC"] = {
"notariospublicos:DatosAdquirienteCopSC": []
}), this.complemento["notariospublicos:DatosAdquiriente"]["notariospublicos:DatosAdquirientesCopSC"]["notariospublicos:DatosAdquirienteCopSC"].push({ _attributes: t });
}
}
const rt = "http://www.sat.gob.mx/arteantiguedades", nt = "http://www.sat.gob.mx/sitio_internet/cfd/arteantiguedades/obrasarteantiguedades.xsd";
class se extends i {
complemento = {};
constructor(t) {
super({ key: "obrasarte:obrasarteantiguedades", xmlns: rt, xsd: nt }), this.complemento._attributes = t;
}
}
const ct = "http://www.sat.gob.mx/pagoenespecie", mt = "http://www.sat.gob.mx/sitio_internet/cfd/pagoenespecie/pagoenespecie.xsd";
class ie extends i {
complemento = {};
constructor(t) {
super({ key: "pagoenespecie:PagoEnEspecie", xmlns: ct, xsd: mt }), this.complemento._attributes = t;
}
}
class l {
static instance;
pago = {};
constructor(t) {
this.pago = {}, t && (this.pago._attributes = t);
}
static getInstance(t) {
return l.instance || (l.instance = new l(t)), l.instance;
}
setAttribute(t) {
this.pago._attributes = t;
}
doctoRelacionado(t) {
this.pago["pago20:DoctoRelacionado"] || (this.pago["pago20:DoctoRelacionado"] = []), this.pago["pago20:DoctoRelacionado"].push(t.getRelation());
}
setImpuestosP(t) {
(!this.pago["pago20:ImpuestosP"] || this.pago["pago20:ImpuestosP"]) && (this.pago["pago20:ImpuestosP"] = []), this.pago["pago20:ImpuestosP"].push(t.getImpuestosP());
}
getPago() {
return this.pago;
}
}
class ae {
impuesto = {};
/**
*constructor
*
* @param data
* XmlPagoImptoAttributes
*/
constructor() {
}
/**
*retenciones
*
* @param data
* XmlPagoRetencionAttributes
*/
setRetencionesP(t) {
this.impuesto["pago20:RetencionesP"] || (this.impuesto["pago20:RetencionesP"] = {
"pago20:RetencionP": []
}), this.impuesto["pago20:RetencionesP"]["pago20:RetencionP"].push({
_attributes: t
});
}
/**
*traslados
*
* @param data
* XmlPagoTranladoAttributes
*/
setTrasladosP(t) {
this.impuesto["pago20:TrasladosP"] || (this.impuesto["pago20:TrasladosP"] = {
"pago20:TrasladoP": []
}), this.impuesto["pago20:TrasladosP"]["pago20:TrasladoP"].push({
_attributes: t
});
}
/**
*getImpuesto
*/
getImpuestosP() {
return this.impuesto;
}
}
class u {
doctoRelacionado = {};
static instance;
static getInstance() {
return u.instance || (u.instance = new u()), u.instance;
}
/**
*relacion
*
* @param data
*/
setRelacion({
doc: t,
retencionDR: o,
trasladoDR: s
}) {
const a = {
_attributes: t
};
(o || s) && (a["pago20:ImpuestosDR"] = {});
const r = a["pago20:ImpuestosDR"];
if (r) {
if (o) {
r["pago20:RetencionesDR"] || (r["pago20:RetencionesDR"] = {
"pago20:RetencionDR": []
});
for (const h of o)
r["pago20:RetencionesDR"]["pago20:RetencionDR"].push({
_attributes: h
});
}
if (s) {
r["pago20:TrasladosDR"] || (r["pago20:TrasladosDR"] = {
"pago20:TrasladoDR": []
});
for (const h of s)
r["pago20:TrasladosDR"]["pago20:TrasladoDR"].push({
_attributes: h
});
}
}
this.doctoRelacionado = a;
}
/**
*getRelations
*/
getRelation() {
return this.doctoRelacionado;
}
}
const pt = "http://www.sat.gob.mx/Pagos20", lt = "http://www.sat.gob.mx/sitio_internet/cfd/Pagos/Pagos20.xsd";
class re extends i {
complemento = {};
/**
*constructor
*
* @param attributes
* XmlPagos20Attributes
*/
constructor(t = { Version: "2.0" }) {
super({ key: "pago20:Pagos", xmlns: pt, xsd: lt }), this.complemento = {}, this.complemento._attributes = t;
}
setTotales(t) {
this.complemento["pago20:Totales"] || (this.complemento["pago20:Totales"] = []), this.complemento["pago20:Totales"].push({ _attributes: t });
}
/**
*pago
*
* @param pago
* Pago
*/
setPago(t) {
this.complemento["pago20:Pago"] || (this.complemento["pago20:Pago"] = []), this.complemento["pago20:Pago"].push(t.getPago());
}
}
const ut = "http://www.sat.gob.mx/pfic", ht = "http://www.sat.gob.mx/sitio_internet/cfd/pfic/pfic.xsd";
class ne extends i {
complemento = {};
constructor(t) {
super({ key: "pfic:PFintegranteCoordinado", xmlns: ut, xsd: ht }), this.complemento._attributes = t;
}
}
const dt = "http://www.sat.gob.mx/registrofiscal", bt = "http://www.sat.gob.mx/sitio_internet/cfd/cfdiregistrofiscal/cfdiregistrofiscal.xsd";
class ce extends i {
complemento = {};
constructor(t) {
super({ key: "registrofiscal:CFDIRegistroFiscal", xmlns: dt, xsd: bt }), this.complemento._attributes = t;
}
}
const xt = "http://www.sat.gob.mx/servicioparcialconstruccion", gt = "http://www.sat.gob.mx/sitio_internet/cfd/servicioparcialconstruccion/servicioparcialconstruccion.xsd";
class me extends i {
complemento = {};
constructor(t) {
super({ key: "servicioparcial:parcialesconstruccion", xmlns: xt, xsd: gt }), this.complemento._attributes = t;
}
inmueble(t) {
this.complemento["servicioparcial:Inmueble"] = { _attributes: t };
}
}
const wt = "http://www.sat.gob.mx/spei", ft = "http://www.sat.gob.mx/sitio_internet/cfd/spei/spei.xsd";
class pe extends i {
complemento = {};
currentTercero = null;
constructor() {
super({ key: "spei:Complemento_SPEI", xmlns: wt, xsd: ft });
}
tercero(t) {
return this.complemento["spei:SPEI_Tercero"] || (this.complemento["spei:SPEI_Tercero"] = []), this.currentTercero = { _attributes: t }, this.complemento["spei:SPEI_Tercero"].push(this.currentTercero), this;
}
ordenante(t) {
if (!this.currentTercero) throw new Error("Debe llamar tercero() primero");
return this.currentTercero["spei:Ordenante"] = { _attributes: t }, this;
}
beneficiario(t) {
if (!this.currentTercero) throw new Error("Debe llamar tercero() primero");
return this.currentTercero["spei:Beneficiario"] = { _attributes: t }, this;
}
}
const Pt = "http://www.sat.gob.mx/TimbreFiscalDigital", _t = "http://www.sat.gob.mx/sitio_internet/cfd/TimbreFiscalDigital/TimbreFiscalDigitalv11.xsd";
class le extends i {
complemento = {};
constructor(t) {
super({ key: "tfd:TimbreFiscalDigital", xmlns: Pt, xsd: _t }), this.complemento._attributes = t;
}
}
const Dt = "http://www.sat.gob.mx/TuristaPasajeroExtranjero", Ct = "http://www.sat.gob.mx/sitio_internet/cfd/TuristaPasajeroExtranjero/TuristaPasajeroExtranjero.xsd";
class ue extends i {
complemento = {};
constructor(t) {
super({ key: "tpe:TuristaPasajeroExtranjero", xmlns: Dt, xsd: Ct }), this.complemento._attributes = t;
}
datosTransito(t) {
this.complemento["tpe:datosTransito"] || (this.complemento["tpe:datosTransito"] = []), this.complemento["tpe:datosTransito"].push({ _attributes: t });
}
}
const Et = "http://www.sat.gob.mx/valesdedespensa", vt = "http://www.sat.gob.mx/sitio_internet/cfd/valesdedespensa/valesdedespensa.xsd";
class he extends i {
complemento = {};
constructor(t) {
super({ key: "valesdedespensa:ValesDeDespensa", xmlns: Et, xsd: vt }), this.complemento._attributes = t;
}
concepto(t) {
this.complemento["valesdedespensa:Conceptos"] || (this.complemento["valesdedespensa:Conceptos"] = { "valesdedespensa:Concepto": [] }), this.complemento["valesdedespensa:Conceptos"]["valesdedespensa:Concepto"].push({ _attributes: t });
}
}
const Rt = "http://www.sat.gob.mx/vehiculousado", St = "http://www.sat.gob.mx/sitio_internet/cfd/vehiculousado/vehiculousado.xsd";
class de extends i {
complemento = {};
constructor(t) {
super({ key: "vehiculousado:VehiculoUsado", xmlns: Rt, xsd: St }), this.complemento._attributes = t;
}
informacionAduanera(t) {
this.complemento["vehiculousado:InformacionAduanera"] = { _attributes: t };
}
}
const Tt = "http://www.sat.gob.mx/ventavehiculos", yt = "http://www.sat.gob.mx/sitio_internet/cfd/ventavehiculos/ventavehiculos11.xsd";
class be extends i {
complemento = {};
constructor(t) {
super({ key: "ventavehiculos:VentaVehiculos", xmlns: Tt, xsd: yt }), this.complemento._attributes = t;
}
InformacionAduanera(t) {
this.complemento["ventavehiculos:InformacionAduanera"] || (this.complemento["ventavehiculos:InformacionAduanera"] = []), this.complemento["ventavehiculos:InformacionAduanera"].push({ _attributes: t });
}
}
export {
$t as Aerolineas,
It as CartaPorte20,
kt as CartaPorte30,
qt as CartaPorte31,
jt as Cce11,
Ut as ComercioExterior20,
Lt as ConsumoDeCombustibles11,
Mt as CtaPrt20FiguraTransporte,
Ft as CtaPrt20Mercancias,
At as CtaPrt20Ubicacion,
Ot as Decreto,
Vt as Destruccion,
Gt as Detallista,
zt as Divisas,
Nt as Donat,
Bt as Ecc12,
Jt as Gceh,
Kt as HidrocarburosPetroliferos,
Xt as Iedu,
Zt as Ieeh,
Ht as Implocal,
Yt as Ine,
te as LeyendasFisc,
ee as Nomina12,
oe as NotariosPublicos,
se as ObrasArte,
l as Pago20,
ae as Pago20ImpuestosP,
u as Pago20Relacionado,
ie as PagoEnEspecie,
re as Pagos20,
ne as Pfic,
ce as RegistroFiscal,
me as ServicioParcial,
pe as Spei,
B as SubProductoHYP,
Wt as SubProductoHYPList,
le as Tfd,
N as TipoPermiso,
Qt as TipoPermisoList,
ue as Tpe,
he as ValesDeDespensa,
de as VehiculoUsado,
be as VentaVehiculos
};