@cfdi/complementos
Version:
Libreria para generar complementos del cfdi V4.0
3 lines (2 loc) • 31.8 kB
JavaScript
function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,o=Array(e);i<e;i++)o[i]=t[i];return o}function e(e,i){var o="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(o)return(o=o.call(e)).next.bind(o);if(Array.isArray(e)||(o=function(e,i){if(e){if("string"==typeof e)return t(e,i);var o={}.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?t(e,i):void 0}}(e))||i&&e&&"number"==typeof e.length){o&&(e=o);var s=0;return function(){return s>=e.length?{done:!0}:{done:!1,value:e[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,function(t,e){(Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}(t,e)}var o,s,n,a,r,c,u,h,m,p,l,d,f,b,g,x,w,_,E,A,C=function(){function t(t){this.complemento={},this.schemaLocation=[];var e=t.key,i=t.xmlns,o=t.xsd;this.xmlns=i,this.key=e,this.xmlnskey=this.key.split(":")[0],this.schemaLocation.push(i),this.schemaLocation.push(o)}return t.prototype.getComplement=function(){return{complement:this.complemento,key:this.key,schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),y=function(t){function e(e){var i;return(i=t.call(this,{key:"aerolineas:Aerolineas",xmlns:"http://www.sat.gob.mx/aerolineas",xsd:"http://www.sat.gob.mx/sitio_internet/cfd/aerolineas/aerolineas.xsd"})||this).complemento={},i.complemento._attributes=e,i}i(e,t);var o=e.prototype;return o.OtrosCargos=function(t){this.complemento["aerolineas:OtrosCargos"]||(this.complemento["aerolineas:OtrosCargos"]={}),this.complemento["aerolineas:OtrosCargos"]._attributes=t},o.Cargo=function(t){if(!this.complemento["aerolineas:OtrosCargos"])throw new Error("agrega OtrosCargos primero");this.complemento["aerolineas:OtrosCargos"]["aerolineas:Cargo"]||(this.complemento["aerolineas:OtrosCargos"]["aerolineas:Cargo"]=[]),this.complemento["aerolineas:OtrosCargos"]["aerolineas:Cargo"].push({_attributes:t})},e}(C),T=function(){function t(t){this.cce11={},this.xmlns="http://www.sat.gob.mx/ComercioExterior11",this.xmlnskey="cce11",this.schemaLocation=["http://www.sat.gob.mx/ComercioExterior11","http://www.sat.gob.mx/sitio_internet/cfd/ComercioExterior11/ComercioExterior11.xsd"],this.cce11._attributes=t}var e=t.prototype;return e.Emisor=function(t,e){this.cce11["cce11:Emisor"]||(this.cce11["cce11:Emisor"]={}),this.cce11["cce11:Emisor"]._attributes=t,e&&(this.cce11["cce11:Emisor"]["cce11:Domicilio"]={_attributes:e})},e.Receptor=function(t,e){this.cce11["cce11:Receptor"]||(this.cce11["cce11:Receptor"]={}),this.cce11["cce11:Receptor"]._attributes=t,e&&(this.cce11["cce11:Receptor"]["cce11:Domicilio"]={_attributes:e})},e.Propietario=function(t){this.cce11["cce11:Propietario"]||(this.cce11["cce11:Propietario"]=[]),this.cce11["cce11:Propietario"].push({_attributes:t})},e.Destinatario=function(t,e){this.cce11["cce11:Destinatario"]||(this.cce11["cce11:Destinatario"]=[]);var i={_attributes:t};e&&(i["cce11:Domicilio"]={_attributes:e}),this.cce11["cce11:Destinatario"].push(i)},e.Mercancias=function(t,e){this.cce11["cce11:Mercancias"]||(this.cce11["cce11:Mercancias"]={"cce11:Mercancia":[]});var i={_attributes:t};e&&e.length>0&&(i["cce11:DescripcionesEspecificas"]||(i["cce11:DescripcionesEspecificas"]=[]),e.forEach((function(t){var e;null==(e=i["cce11:DescripcionesEspecificas"])||e.push({_attributes:t})}))),this.cce11["cce11:Mercancias"]["cce11:Mercancia"].push(i)},e.getComplement=function(){return{complement:this.cce11,key:"cce11:ComercioExterior",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),v=function(){function t(t){this.CondCom={},this.xmlns="http://www.sat.gob.mx/ConsumoDeCombustibles11",this.xmlnskey="consumodecombustibles11",this.schemaLocation=["http://www.sat.gob.mx/ConsumoDeCombustibles11","http://www.sat.gob.mx/sitio_internet/cfd/ConsumoDeCombustibles/consumodeCombustibles11.xsd"],this.CondCom._attributes=t}var e=t.prototype;return e.Concepto=function(t,e){this.CondCom["consumodecombustibles11:Conceptos"]||(this.CondCom["consumodecombustibles11:Conceptos"]={"consumodecombustibles11:ConceptoConsumoDeCombustibles":[]});var i={_attributes:t};e&&e.length>0&&(i["consumodecombustibles11:Determinados"]||(i["consumodecombustibles11:Determinados"]={"consumodecombustibles11:Determinado":[]}),e.forEach((function(t){i["consumodecombustibles11:Determinados"]&&i["consumodecombustibles11:Determinados"]["consumodecombustibles11:Determinado"].push({_attributes:t})}))),this.CondCom["consumodecombustibles11:Conceptos"]["consumodecombustibles11:ConceptoConsumoDeCombustibles"].push(i)},e.getComplement=function(){return{complement:this.CondCom,key:"consumodecombustibles11:ConsumoDeCombustibles",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),D=function(){function t(t){this.decreto={},this.xmlns="http://www.sat.gob.mx/renovacionysustitucionvehiculos",this.xmlnskey="decreto",this.schemaLocation=["http://www.sat.gob.mx/renovacionysustitucionvehiculos","http://www.sat.gob.mx/sitio_internet/cfd/renovacionysustitucionvehiculos/renovacionysustitucionvehiculos.xsd"],this.decreto._attributes=t}var e=t.prototype;return e.RenovVehicular=function(t){this.decreto["decreto:DecretoRenovVehicular"]||(this.decreto["decreto:DecretoRenovVehicular"]=t.getRenoVehicular())},e.SustitVehicular=function(t){this.decreto["decreto:DecretoSustitVehicular"]||(this.decreto["decreto:DecretoSustitVehicular"]=t.getSustitVehicular())},e.getComplement=function(){return{complement:this.decreto,key:"decreto:renovacionysustitucionvehiculos",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),R=function(){function t(t){this.renoVehicular={},this.renoVehicular._attributes=t}var e=t.prototype;return e.VehiculosUsados=function(t){this.renoVehicular["decreto:VehiculosUsadosEnajenadoPermAlFab"]||(this.renoVehicular["decreto:VehiculosUsadosEnajenadoPermAlFab"]=[]),this.renoVehicular["decreto:VehiculosUsadosEnajenadoPermAlFab"].push({_attributes:t})},e.VehiculoNuvoSem=function(t){this.renoVehicular["decreto:VehiculoNuvoSemEnajenadoFabAlPerm"]||(this.renoVehicular["decreto:VehiculoNuvoSemEnajenadoFabAlPerm"]={_attributes:t})},e.getRenoVehicular=function(){return this.renoVehicular},t}(),L=function(){function t(t){this.sustitVehicular={},this.sustitVehicular._attributes=t}var e=t.prototype;return e.VehiculoUsado=function(t){this.sustitVehicular["decreto:VehiculoUsadoEnajenadoPermAlFab"]||(this.sustitVehicular["decreto:VehiculoUsadoEnajenadoPermAlFab"]={_attributes:t})},e.VehiculoNuvoSem=function(t){this.sustitVehicular["decreto:VehiculoNuvoSemEnajenadoFabAlPerm"]||(this.sustitVehicular["decreto:VehiculoNuvoSemEnajenadoFabAlPerm"]={_attributes:t})},e.getSustitVehicular=function(){return this.sustitVehicular},t}(),I=function(){function t(t){this.destruccion={},this.xmlns="http://www.sat.gob.mx/certificadodestruccion",this.xmlnskey="destruccion",this.schemaLocation=["http://www.sat.gob.mx/certificadodestruccion","http://www.sat.gob.mx/sitio_internet/cfd/certificadodestruccion/certificadodedestruccion.xsd"],this.destruccion._attributes=t}var e=t.prototype;return e.InformacionAduanera=function(t){this.destruccion["destruccion:InformacionAduanera"]||(this.destruccion["destruccion:InformacionAduanera"]={_attributes:t})},e.VehiculoDestruido=function(t){this.destruccion["destruccion:VehiculoDestruido"]||(this.destruccion["destruccion:VehiculoDestruido"]={_attributes:t})},e.getComplement=function(){return{complement:this.destruccion,key:"destruccion:certificadodedestruccion",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),P=function(t){this.detallista={},this.detallista._attributes=t},F=function(){function t(t){this.divisa={},this.xmlns="http://www.sat.gob.mx/divisas",this.xmlnskey="divisas",this.schemaLocation=["http://www.sat.gob.mx/divisas","http://www.sat.gob.mx/sitio_internet/cfd/divisas/divisas.xsd"],this.divisa={_attributes:t}}return t.prototype.getComplement=function(){return{complement:this.divisa,key:"divisas:Divisas",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),k=function(){function t(t){this.donat={},this.xmlns="http://www.sat.gob.mx/donat",this.xmlnskey="donat",this.schemaLocation=["http://www.sat.gob.mx/donat","http://www.sat.gob.mx/sitio_internet/cfd/donat/donat11.xsd"],this.donat={_attributes:t}}return t.prototype.getComplement=function(){return{complement:this.donat,key:"donat:Donatarias",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),O=function(){this.name="",this.name=""},N=function(){function t(t){this.ieeh={},this.xmlns="http://www.sat.gob.mx/IngresosHidrocarburos10",this.xmlnskey="ieeh",this.schemaLocation=["http://www.sat.gob.mx/IngresosHidrocarburos10","http://www.sat.gob.mx/sitio_internet/cfd/IngresosHidrocarburos10/IngresosHidrocarburos.xsd"],this.ieeh._attributes=t}var e=t.prototype;return e.docRelacionado=function(t){this.ieeh["ieeh:DocumentoRelacionado"]||(this.ieeh["ieeh:DocumentoRelacionado"]=[]),this.ieeh["ieeh:DocumentoRelacionado"].push({_attributes:t})},e.getComplement=function(){return{complement:this.ieeh,key:"ieeh:IngresosHidrocarburos",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),S=function(){function t(t){this.gceh={},this.xmlns="http://www.sat.gob.mx/GastosHidrocarburos10",this.xmlnskey="gceh",this.schemaLocation=["http://www.sat.gob.mx/GastosHidrocarburos10","http://www.sat.gob.mx/sitio_internet/cfd/GastosHidrocarburos10/GastosHidrocarburos10.xsd"],this.gceh._attributes=t}var e=t.prototype;return e.erogacion=function(t){this.gceh["gceh:Erogacion"]||(this.gceh["gceh:Erogacion"]=[]),this.gceh["gceh:Erogacion"].push(t.getErogacion())},e.getComplement=function(){return{complement:this.gceh,key:"gceh:GastosHidrocarburos",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),V=function(){function t(t){this.implocal={},this.xmlns="http://www.sat.gob.mx/implocal",this.xmlnskey="implocal",this.schemaLocation=["http://www.sat.gob.mx/implocal","http://www.sat.gob.mx/sitio_internet/cfd/implocal/implocal.xsd"],this.implocal._attributes=t}var e=t.prototype;return e.retenciones=function(t){this.implocal["implocal:RetencionesLocales"]||(this.implocal["implocal:RetencionesLocales"]=[]),this.implocal["implocal:RetencionesLocales"].push({_attributes:t})},e.traslados=function(t){this.implocal["implocal:TrasladosLocales"]||(this.implocal["implocal:TrasladosLocales"]=[]),this.implocal["implocal:TrasladosLocales"].push({_attributes:t})},e.getComplement=function(){return{complement:this.implocal,key:"implocal:ImpuestosLocales",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),M=function(t){function e(e){var i;return(i=t.call(this,{key:"ine:INE",xmlns:"http://www.sat.gob.mx/ine",xsd:"http://www.sat.gob.mx/sitio_internet/cfd/ine/ine11.xsd"})||this).complemento={},i.complemento._attributes=e,i}i(e,t);var o=e.prototype;return o.Entidad=function(t){this.complemento["ine:Entidad"]||(this.complemento["ine:Entidad"]={}),this.complemento["ine:Entidad"]._attributes=t},o.Contabilidad=function(t){if(!this.complemento["ine:Entidad"])throw new Error("agrega entidad primero");this.complemento["ine:Entidad"]["ine:Contabilidad"]={_attributes:t}},e}(C),U=function(){function t(t){this.tfd={},this.xmlns="http://www.sat.gob.mx/TimbreFiscalDigital",this.xmlnskey="tfd",this.schemaLocation=["http://www.sat.gob.mx/TimbreFiscalDigital","http://www.sat.gob.mx/sitio_internet/cfd/TimbreFiscalDigital/TimbreFiscalDigitalv11.xsd"],this.tfd={_attributes:t}}return t.prototype.getComplement=function(){return{complement:this.tfd,key:"tfd:TimbreFiscalDigital",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),B=function(){function t(t){void 0===t&&(t={version:"1.0"}),this.leyendafiscal={},this.xmlns="http://www.sat.gob.mx/leyendasFiscales",this.xmlnskey="leyendasFisc",this.schemaLocation=["http://www.sat.gob.mx/leyendasFiscales","http://www.sat.gob.mx/sitio_internet/cfd/leyendasFiscales/leyendasFisc.xsd"],this.leyendafiscal={_attributes:t}}var e=t.prototype;return e.leyenda=function(t){this.leyendafiscal["leyendasFisc:Leyenda"]||(this.leyendafiscal["leyendasFisc:Leyenda"]=[]),this.leyendafiscal["leyendasFisc:Leyenda"].push({_attributes:t})},e.getComplement=function(){return{complement:this.leyendafiscal,key:"leyendasFisc:LeyendasFiscales",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),G=function(){},j=function(){this.name="",this.name=""},H=function(){function t(t){this.obra={},this.xmlns="http://www.sat.gob.mx/arteantiguedades",this.xmlnskey="obrasarte",this.schemaLocation=["http://www.sat.gob.mx/arteantiguedades","http://www.sat.gob.mx/sitio_internet/cfd/arteantiguedades/obrasarteantiguedades.xsd"],this.obra={_attributes:t}}return t.prototype.getComplement=function(){return{complement:this.obra,key:"obrasarte:obrasarteantiguedades",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),Y=function(){function t(t){this.specie={},this.xmlns="http://www.sat.gob.mx/pagoenespecie",this.xmlnskey="pagoenespecie",this.schemaLocation=["http://www.sat.gob.mx/pagoenespecie","http://www.sat.gob.mx/sitio_internet/cfd/pagoenespecie/pagoenespecie.xsd"],this.specie={_attributes:t}}return t.prototype.getComplement=function(){return{complement:this.specie,key:"pagoenespecie:PagoEnEspecie",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),Z=function(){function t(t){this.pfic={},this.xmlns="http://www.sat.gob.mx/pfic",this.xmlnskey="pfic",this.schemaLocation=["http://www.sat.gob.mx/pfic","http://www.sat.gob.mx/sitio_internet/cfd/pfic/pfic.xsd"],this.pfic={_attributes:t}}return t.prototype.getComplement=function(){return{complement:this.pfic,key:"pfic:PFintegranteCoordinado",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),X=function(){function t(t){void 0===t&&(t={Folio:"",Version:"1.0"}),this.registrofiscal={},this.xmlns="http://www.sat.gob.mx/registrofiscal",this.xmlnskey="registrofiscal",this.schemaLocation=["http://www.sat.gob.mx/registrofiscal","http://www.sat.gob.mx/sitio_internet/cfd/cfdiregistrofiscal/cfdiregistrofiscal.xsd"],0===t.Folio.length&&/^\s+$/.test(t.Folio)||(this.registrofiscal={_attributes:t})}return t.prototype.getComplement=function(){return{complement:this.registrofiscal,key:"registrofiscal:CFDIRegistroFiscal",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),W=function(){function t(t){this.servicio={},this.xmlns="http://www.sat.gob.mx/servicioparcialconstruccion",this.xmlnskey="servicioparcial",this.schemaLocation=["http://www.sat.gob.mx/servicioparcialconstruccion","http://www.sat.gob.mx/sitio_internet/cfd/servicioparcialconstruccion/servicioparcialconstruccion.xsd"],this.servicio._attributes=t}var e=t.prototype;return e.inmueble=function(t){this.servicio["servicioparcial:Inmueble"]={_attributes:t}},e.getComplement=function(){return{complement:this.servicio,key:"servicioparcial:parcialesconstruccion",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),q=function(){function t(t){this.tercero={},this.tercero={_attributes:t}}var e=t.prototype;return e.ordenante=function(t){this.tercero["spei:Ordenante"]={_attributes:t}},e.beneficiario=function(t){this.tercero["spei:Beneficiario"]={_attributes:t}},e.getTercero=function(){return this.tercero},t}(),K=function(){function t(){this.spei={},this.xmlns="http://www.sat.gob.mx/spei",this.xmlnskey="spei",this.schemaLocation=["http://www.sat.gob.mx/spei","http://www.sat.gob.mx/sitio_internet/cfd/spei/spei.xsd"]}var e=t.prototype;return e.tercero=function(t){this.spei["spei:SPEI_Tercero"]||(this.spei["spei:SPEI_Tercero"]=[]),this.spei["spei:SPEI_Tercero"].push(t.getTercero())},e.getComplement=function(){return{complement:this.spei,key:"spei:Complemento_SPEI",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),Q=function(){this.name=""},J=function(){function t(t){this.tpe={},this.xmlns="http://www.sat.gob.mx/TuristaPasajeroExtranjero",this.xmlnskey="tpe",this.schemaLocation=["http://www.sat.gob.mx/TuristaPasajeroExtranjero","http://www.sat.gob.mx/sitio_internet/cfd/TuristaPasajeroExtranjero/TuristaPasajeroExtranjero.xsd"],this.tpe={_attributes:t}}var e=t.prototype;return e.datosTransito=function(t){this.tpe["tpe:datosTransito"]={_attributes:t}},e.getComplement=function(){return{complement:this.tpe,key:"tpe:TuristaPasajeroExtranjero",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),$=function(){function t(t){this.vale={},this.xmlns="http://www.sat.gob.mx/valesdedespensa",this.xmlnskey="valesdedespensa",this.schemaLocation=["http://www.sat.gob.mx/valesdedespensa","http://www.sat.gob.mx/sitio_internet/cfd/valesdedespensa/valesdedespensa.xsd"],this.vale={_attributes:t}}var e=t.prototype;return e.concepto=function(t){this.vale["valesdedespensa:Conceptos"]||(this.vale["valesdedespensa:Conceptos"]={"valesdedespensa:Concepto":[]}),this.vale["valesdedespensa:Conceptos"]["valesdedespensa:Concepto"].push({_attributes:t})},e.getComplement=function(){return{complement:this.vale,key:"valesdedespensa:ValesDeDespensa",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),z=function(){function t(t){this.vehiculo={},this.xmlns="http://www.sat.gob.mx/vehiculousado",this.xmlnskey="vehiculousado",this.schemaLocation=["http://www.sat.gob.mx/vehiculousado","http://www.sat.gob.mx/sitio_internet/cfd/vehiculousado/vehiculousado.xsd"],this.vehiculo._attributes=t}var e=t.prototype;return e.informacionAduanera=function(t){this.vehiculo["vehiculousado:InformacionAduanera"]={_attributes:t}},e.getComplement=function(){return{complement:this.vehiculo,key:"vehiculousado:VehiculoUsado",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),tt=function(){this.name=""},et=function(){function t(t){this.pago={},this.pago={},t&&(this.pago._attributes=t)}t.getInstance=function(e){return t.instance||(t.instance=new t(e)),t.instance};var e=t.prototype;return e.setAttribute=function(t){this.pago._attributes=t},e.doctoRelacionado=function(t){this.pago["pago20:DoctoRelacionado"]||(this.pago["pago20:DoctoRelacionado"]=[]),this.pago["pago20:DoctoRelacionado"].push(t.getRelation())},e.setImpuestosP=function(t){this.pago["pago20:ImpuestosP"]&&!this.pago["pago20:ImpuestosP"]||(this.pago["pago20:ImpuestosP"]=[]),this.pago["pago20:ImpuestosP"].push(t.getImpuestosP())},e.getPago=function(){return this.pago},t}(),it=function(){function t(){this.impuesto={}}var e=t.prototype;return e.setRetencionesP=function(t){this.impuesto["pago20:RetencionesP"]||(this.impuesto["pago20:RetencionesP"]={"pago20:RetencionP":[]}),this.impuesto["pago20:RetencionesP"]["pago20:RetencionP"].push({_attributes:t})},e.setTrasladosP=function(t){this.impuesto["pago20:TrasladosP"]||(this.impuesto["pago20:TrasladosP"]={"pago20:TrasladoP":[]}),this.impuesto["pago20:TrasladosP"]["pago20:TrasladoP"].push({_attributes:t})},e.getImpuestosP=function(){return this.impuesto},t}(),ot=function(){function t(){this.doctoRelacionado={}}t.getInstance=function(){return t.instance||(t.instance=new t),t.instance};var i=t.prototype;return i.setRelacion=function(t){var i=t.retencionDR,o=t.trasladoDR,s={_attributes:t.doc};(i||o)&&(s["pago20:ImpuestosDR"]={});var n=s["pago20:ImpuestosDR"];if(n){if(i){n["pago20:RetencionesDR"]||(n["pago20:RetencionesDR"]={"pago20:RetencionDR":[]});for(var a,r=e(i);!(a=r()).done;)n["pago20:RetencionesDR"]["pago20:RetencionDR"].push({_attributes:a.value})}if(o){n["pago20:TrasladosDR"]||(n["pago20:TrasladosDR"]={"pago20:TrasladoDR":[]});for(var c,u=e(o);!(c=u()).done;)n["pago20:TrasladosDR"]["pago20:TrasladoDR"].push({_attributes:c.value})}}this.doctoRelacionado=s},i.getRelation=function(){return this.doctoRelacionado},t}(),st=function(t){function e(e){var i;return void 0===e&&(e={Version:"2.0"}),(i=t.call(this,{key:"pago20:Pagos",xmlns:"http://www.sat.gob.mx/Pagos20",xsd:"http://www.sat.gob.mx/sitio_internet/cfd/Pagos/Pagos20.xsd"})||this).complemento={},i.complemento={},i.complemento._attributes=e,i}i(e,t);var o=e.prototype;return o.setTotales=function(t){this.complemento["pago20:Totales"]||(this.complemento["pago20:Totales"]=[]),this.complemento["pago20:Totales"].push({_attributes:t})},o.setPago=function(t){this.complemento["pago20:Pago"]||(this.complemento["pago20:Pago"]=[]),this.complemento["pago20:Pago"].push(t.getPago())},e}(C),nt=function(t){function e(e){var i;return(i=t.call(this,{key:"cartaporte20:CartaPorte",xmlns:"http://www.sat.gob.mx/CartaPorte20",xsd:"http://www.sat.gob.mx/sitio_internet/cfd/CartaPorte/CartaPorte20.xsd"})||this).complemento={},e&&(i.complemento={_attributes:e}),i}i(e,t);var o=e.prototype;return o.setAttributes=function(t){this.complemento={_attributes:t}},o.setUbicacion=function(t){this.complemento["cartaporte20:Ubicaciones"]||(this.complemento["cartaporte20:Ubicaciones"]={"cartaporte20:Ubicacion":[]}),this.complemento["cartaporte20:Ubicaciones"]["cartaporte20:Ubicacion"].push(t.getUbicacion())},o.setMercancias=function(t){this.complemento["cartaporte20:Mercancias"]=t.getMercancias()},o.setFiguraTransporte=function(t){this.complemento["cartaporte20:FiguraTransporte"]||(this.complemento["cartaporte20:FiguraTransporte"]={"cartaporte20:TiposFigura":[]}),this.complemento["cartaporte20:FiguraTransporte"]["cartaporte20:TiposFigura"].push(t.getFiguraTransporte())},e}(C),at=function(){function t(t){this.fTransporte={},t&&(this.fTransporte={_attributes:t})}var e=t.prototype;return e.setAttributes=function(t){this.fTransporte={_attributes:t}},e.setPartesTransporte=function(t){this.fTransporte["cartaporte20:PartesTransporte"]||(this.fTransporte["cartaporte20:PartesTransporte"]=[]),this.fTransporte["cartaporte20:PartesTransporte"].push({_attributes:t})},e.setDomicilio=function(t){this.fTransporte["cartaporte20:Domicilio"]||(this.fTransporte["cartaporte20:Domicilio"]=[]),this.fTransporte["cartaporte20:Domicilio"].push({_attributes:t})},e.getFiguraTransporte=function(){return this.fTransporte},t}(),rt=function(){function t(t){this.mercancia={},t&&(this.mercancia._attributes=t)}var e=t.prototype;return e.reset=function(){this.mercancia={}},e.setAttributes=function(t){t&&(this.mercancia._attributes=t)},t.getInstance=function(e){return t.instance||(t.instance=new t(e)),this.instance.reset(),this.instance.setAttributes(e),t.instance},e.setPedimentos=function(t){this.mercancia["cartaporte20:Pedimentos"]||(this.mercancia["cartaporte20:Pedimentos"]=[]),this.mercancia["cartaporte20:Pedimentos"].push({_attributes:t})},e.setGuiaIdentificacion=function(t){this.mercancia["cartaporte20:GuiasIdentificacion"]||(this.mercancia["cartaporte20:GuiasIdentificacion"]=[]),this.mercancia["cartaporte20:GuiasIdentificacion"].push({_attributes:t})},e.setCantidadTransporta=function(t){this.mercancia["cartaporte20:CantidadTransporta"]||(this.mercancia["cartaporte20:CantidadTransporta"]=[]),this.mercancia["cartaporte20:CantidadTransporta"].push({_attributes:t})},e.setDetalleMercancia=function(t){this.mercancia["cartaporte20:DetalleMercancia"]||(this.mercancia["cartaporte20:DetalleMercancia"]=[]),this.mercancia["cartaporte20:DetalleMercancia"].push({_attributes:t})},e.getMercancia=function(){return this.mercancia},t}(),ct=function(){function t(t){this.transporte={},t&&(this.transporte._attributes=t)}var e=t.prototype;return e.reset=function(){this.transporte={}},e.setAttributes=function(t){t&&(this.transporte._attributes=t)},t.getInstance=function(e){return t.instance||(t.instance=new t(e)),this.instance.reset(),this.instance.setAttributes(e),t.instance},e.setIdentificacionVehicular=function(t){this.transporte["cartaporte20:IdentificacionVehicular"]||(this.transporte["cartaporte20:IdentificacionVehicular"]=[]),this.transporte["cartaporte20:IdentificacionVehicular"].push({_attributes:t})},e.setSeguro=function(t){this.transporte["cartaporte20:Seguros"]||(this.transporte["cartaporte20:Seguros"]=[]),this.transporte["cartaporte20:Seguros"].push({_attributes:t})},e.setRemolque=function(t){this.transporte["cartaporte20:Remolques"]||(this.transporte["cartaporte20:Remolques"]={"cartaporte20:Remolque":[]}),this.transporte["cartaporte20:Remolques"]["cartaporte20:Remolque"].push({_attributes:t})},e.getTransporte=function(){return this.transporte},t}(),ut=function(){function t(t){this.tMaritimo={},t&&(this.tMaritimo._attributes=t)}var e=t.prototype;return e.reset=function(){this.tMaritimo={}},e.setAttributes=function(t){t&&(this.tMaritimo._attributes=t)},t.getInstance=function(e){return t.instance||(t.instance=new t(e)),this.instance.reset(),this.instance.setAttributes(e),t.instance},e.setContenedor=function(t){this.tMaritimo["cartaporte20:Contenedor"]||(this.tMaritimo["cartaporte20:Contenedor"]=[]),this.tMaritimo["cartaporte20:Contenedor"].push({_attributes:t})},e.getTMaritimo=function(){return this.tMaritimo},t}(),ht=function(){function t(t){this.tFerroviario={},t&&(this.tFerroviario._attributes=t)}var e=t.prototype;return e.reset=function(){this.tFerroviario={}},e.setAttributes=function(t){t&&(this.tFerroviario._attributes=t)},t.getInstance=function(e){return t.instance||(t.instance=new t(e)),this.instance.reset(),this.instance.setAttributes(e),t.instance},e.setDerechosDePaso=function(t){this.tFerroviario["cartaporte20:DerechosDePaso"]||(this.tFerroviario["cartaporte20:DerechosDePaso"]=[]),this.tFerroviario["cartaporte20:DerechosDePaso"].push({_attributes:t})},e.setCarro=function(t){this.tFerroviario["cartaporte20:Carro"]||(this.tFerroviario["cartaporte20:Carro"]=[]);var e={_attributes:t.carro};t.contenedores&&t.contenedores.length&&(e["cartaporte20:Contenedor"]||(e["cartaporte20:Contenedor"]=[]),t.contenedores.map((function(t){return e["cartaporte20:Contenedor"].push({_attributes:t})}))),this.tFerroviario["cartaporte20:Carro"].push(e)},e.getTransporteFerroviario=function(){return this.tFerroviario},t}(),mt=function(){function t(t){this.mercancias={},t&&(this.mercancias={_attributes:t})}var e=t.prototype;return e.setAttributes=function(t){this.mercancias={_attributes:t}},e.setMercancia=function(t){this.mercancias["cartaporte20:Mercancia"]||(this.mercancias["cartaporte20:Mercancia"]=[]);var e=rt.getInstance(t);return this.mercancias["cartaporte20:Mercancia"].push(e.getMercancia()),e},e.setAutotransporte=function(t){this.mercancias["cartaporte20:Autotransporte"]||(this.mercancias["cartaporte20:Autotransporte"]=[]);var e=ct.getInstance(t);return this.mercancias["cartaporte20:Autotransporte"].push(e.getTransporte()),e},e.setTransporteMaritimo=function(t){this.mercancias["cartaporte20:TransporteMaritimo"]||(this.mercancias["cartaporte20:TransporteMaritimo"]=[]);var e=ut.getInstance(t);return this.mercancias["cartaporte20:TransporteMaritimo"].push(e.getTMaritimo()),e},e.setTransporteAereo=function(t){this.mercancias["cartaporte20:TransporteAereo"]||(this.mercancias["cartaporte20:TransporteAereo"]=[]),this.mercancias["cartaporte20:TransporteAereo"].push({_attributes:t})},e.setTransporteFerroviario=function(t){this.mercancias["cartaporte20:TransporteFerroviario"]||(this.mercancias["cartaporte20:TransporteFerroviario"]=[]);var e=ht.getInstance(t);return this.mercancias["cartaporte20:TransporteFerroviario"].push(e.getTransporteFerroviario()),e},e.getMercancias=function(){return this.mercancias},t}(),pt=function(){function t(t){this.ubicacion={},t&&(this.ubicacion={_attributes:t})}var e=t.prototype;return e.setAttributes=function(t){this.ubicacion={_attributes:t}},e.setDomicilio=function(t){this.ubicacion["cartaporte20:Domicilio"]||(this.ubicacion["cartaporte20:Domicilio"]=[]),this.ubicacion["cartaporte20:Domicilio"].push({_attributes:t})},e.getUbicacion=function(){return this.ubicacion},t}(),lt=function(t){function e(e){var i;return(i=t.call(this,{key:"iedu:instEducativas",xmlns:"http://www.sat.gob.mx/iedu",xsd:"http://www.sat.gob.mx/sitio_internet/cfd/iedu/iedu.xsd"})||this).complemento={},i.complemento={_attributes:e},i}return i(e,t),e}(C);!function(t){t.ALLOWANCE_GLOBAL="ALLOWANCE_GLOBAL",t.CHARGE_GLOBAL="CHARGE_GLOBAL"}(o||(o={})),function(t){t.BILL_BACK="BILL_BACK",t.OFF_INVOICE="OFF_INVOICE"}(s||(s={})),function(t){t.INVOICE_VALUE="INVOICE_VALUE"}(n||(n={})),function(t){t.BILLING_CURRENCY="BILLING_CURRENCY",t.PRICE_CURRENCY="PRICE_CURRENCY",t.PAYMENT_CURRENCY="PAYMENT_CURRENCY"}(a||(a={})),function(t){t.MXN="MXN",t.XEU="XEU",t.USD="USD"}(r||(r={})),function(t){t.AA="AA",t.AJ="AJ",t.ADO="ADO",t.ADT="ADT",t.ADS="ADS",t.ABZ="ABZ",t.DA="DA",t.EAA="EAA",t.PI="PI",t.TAE="TAE",t.SAB="SAB",t.RAA="RAA",t.PAD="PAD",t.FG="FG",t.FA="FA",t.TD="TD",t.TS="TS",t.TX="TX",t.TZ="TZ",t.ZZZ="ZZZ",t.VAB="VAB",t.UM="UM",t.DI="DI",t.CAC="CAC",t.COD="COD",t.EAB="EAB",t.FC="FC",t.FI="FI",t.HD="HD",t.QD="QD"}(c||(c={})),function(t){t.TN="TN",t.SELLER_ASSIGNED_IDENTIFIER_FOR_A_PARTY="SELLER_ASSIGNED_IDENTIFIER_FOR_A_PARTY",t.IEPS_REFERENCE="IEPS_REFERENCE",t.VA="VA",t.IA="IA"}(u||(u={})),function(t){t.AAE="AAE",t.CK="CK",t.ACE="ACE",t.ATZ="ATZ",t.DQ="DQ",t.IV="IV",t.ON="ON",t.AWR="AWR"}(h||(h={})),function(t){t.ALLOWANCE="ALLOWANCE",t.CHARGE="CHARGE"}(m||(m={})),function(t){t.AAB="AAB",t.DUT="DUT",t.PUR="PUR",t.ZZZ="ZZZ"}(p||(p={})),function(t){t.INVOICE="INVOICE",t.DEBIT_NOTE="DEBIT_NOTE",t.CREDIT_NOTE="CREDIT_NOTE",t.LEASE_RECEIPT="LEASE_RECEIPT",t.HONORARY_RECEIPT="HONORARY_RECEIPT",t.PARTIAL_INVOICE="PARTIAL_INVOICE",t.TRANSPORT_DOCUMENT="TRANSPORT_DOCUMENT",t.AUTO_INVOICE="AUTO_INVOICE"}(l||(l={})),function(t){t.TRANSFERIDO="TRANSFERIDO",t.RETENIDO="RETENIDO"}(d||(d={})),function(t){t.GST="GST",t.VAT="VAT",t.LAC="LAC",t.AAA="AAA",t.ADD="ADD",t.FRE="FRE",t.LOC="LOC",t.STT="STT",t.OTH="OTH"}(f||(f={})),function(t){t.EXCHANGE_PALLETS="EXCHANGE_PALLETS",t.RETURN_PALLETS="RETURN_PALLETS",t.PALLET_80x100="PALLET_80x100",t.CASE="CASE",t.BOX="BOX"}(f||(f={})),function(t){t.ES="ES",t.EN="EN"}(b||(b={})),function(t){t.NUM_CONSUMER_UNITS="NUM_CONSUMER_UNITS",t.FREE_GOODS="FREE_GOODS"}(g||(g={})),function(t){t.ALLOWANCE_BY_PAYMENT_ON_TIME="ALLOWANCE_BY_PAYMENT_ON_TIME",t.SANCTION="SANCTION"}(x||(x={})),function(t){t.DATE_OF_INVOICE="DATE_OF_INVOICE",t.EFFECTIVE_DATE="EFFECTIVE_DATE"}(w||(w={})),function(t){t.REFERENCE_AFTER="REFERENCE_AFTER"}(_||(_={})),function(t){t.BASIC_NET="BASIC_NET",t.END_OF_MONTH="END_OF_MONTH",t.BASIC_DISCOUNT_OFFERED="BASIC_DISCOUNT_OFFERED"}(E||(E={})),function(t){t.DAYS="DAYS"}(A||(A={}));export{y as Aerolineas,o as AllowanceChargeType,m as AllowanceOrChargeType,u as AlterPartyId,n as Base,nt as CartaPorte20,T as Cce11,p as Code,v as ConsumoDeCombustibles11,at as CtaPrt20FiguraTransporte,mt as CtaPrt20Mercancias,pt as CtaPrt20Ubicacion,a as CuFun,D as Decreto,I as Destruccion,P as Detallista,x as DiscountType,F as Divisas,k as Donat,O as Ecc11,l as EntityType,S as Gceh,r as ISOCode,lt as Iedu,N as Ieeh,V as Implocal,M as Ine,b as Lang,B as LeyendaFisc,E as NetPayTermsType,G as Nomina12,j as NotariosPublicos,H as ObrasArte,et as Pago20,it as Pago20ImpuestosP,ot as Pago20Relacionado,Y as PagoEnEspecie,st as Pagos20,w as PayTermsEvent,_ as PayTermsRelTime,Z as Pfic,g as QuantityType,X as RegistroFiscal,R as RenovVehicular,W as ServicioParcial,s as SettlementType,c as SpeSerType,K as Spei,q as SpeiTercero,L as SustitVehicular,Q as Terceros,U as Tfd,A as TimePeriod,J as Tpe,f as TypeDescription,d as TypeTaxCategory,$ as ValesDeDespensa,z as VehiculoUsado,tt as VentaVehiculos,h as XmlRefIdType};
//# sourceMappingURL=complementos.esm.production.min.js.map