UNPKG

@cfdi/complementos

Version:

Libreria para generar complementos del cfdi V4.0

3 lines (2 loc) 32.2 kB
"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,s=Array(e);o<e;o++)s[o]=t[o];return s}function e(e,o){var s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return(s=s.call(e)).next.bind(s);if(Array.isArray(e)||(s=function(e,o){if(e){if("string"==typeof e)return t(e,o);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?t(e,o):void 0}}(e))||o&&e&&"number"==typeof e.length){s&&(e=s);var i=0;return function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}}}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 o(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)}Object.defineProperty(exports,"__esModule",{value:!0});var s,i,n,a,r,c,u,p,h,m,l,d,x,f,b,g,w,y=function(){function t(t){this.complemento={},this.schemaLocation=[];var e=t.key,o=t.xmlns,s=t.xsd;this.xmlns=o,this.key=e,this.xmlnskey=this.key.split(":")[0],this.schemaLocation.push(o),this.schemaLocation.push(s)}return t.prototype.getComplement=function(){return{complement:this.complemento,key:this.key,schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),_=function(t){function e(e){var o;return(o=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={},o.complemento._attributes=e,o}o(e,t);var s=e.prototype;return s.OtrosCargos=function(t){this.complemento["aerolineas:OtrosCargos"]||(this.complemento["aerolineas:OtrosCargos"]={}),this.complemento["aerolineas:OtrosCargos"]._attributes=t},s.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}(y),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 o={_attributes:t};e&&(o["cce11:Domicilio"]={_attributes:e}),this.cce11["cce11:Destinatario"].push(o)},e.Mercancias=function(t,e){this.cce11["cce11:Mercancias"]||(this.cce11["cce11:Mercancias"]={"cce11:Mercancia":[]});var o={_attributes:t};e&&e.length>0&&(o["cce11:DescripcionesEspecificas"]||(o["cce11:DescripcionesEspecificas"]=[]),e.forEach((function(t){var e;null==(e=o["cce11:DescripcionesEspecificas"])||e.push({_attributes:t})}))),this.cce11["cce11:Mercancias"]["cce11:Mercancia"].push(o)},e.getComplement=function(){return{complement:this.cce11,key:"cce11:ComercioExterior",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),E=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 o={_attributes:t};e&&e.length>0&&(o["consumodecombustibles11:Determinados"]||(o["consumodecombustibles11:Determinados"]={"consumodecombustibles11:Determinado":[]}),e.forEach((function(t){o["consumodecombustibles11:Determinados"]&&o["consumodecombustibles11:Determinados"]["consumodecombustibles11:Determinado"].push({_attributes:t})}))),this.CondCom["consumodecombustibles11:Conceptos"]["consumodecombustibles11:ConceptoConsumoDeCombustibles"].push(o)},e.getComplement=function(){return{complement:this.CondCom,key:"consumodecombustibles11:ConsumoDeCombustibles",schemaLocation:this.schemaLocation,xmlns:this.xmlns,xmlnskey:this.xmlnskey}},t}(),C=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}(),A=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}(),v=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}(),D=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}(),R=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}(),I=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}(),L=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}(),P=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}(),F=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}(),O=function(t){function e(e){var o;return(o=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={},o.complemento._attributes=e,o}o(e,t);var s=e.prototype;return s.Entidad=function(t){this.complemento["ine:Entidad"]||(this.complemento["ine:Entidad"]={}),this.complemento["ine:Entidad"]._attributes=t},s.Contabilidad=function(t){if(!this.complemento["ine:Entidad"])throw new Error("agrega entidad primero");this.complemento["ine:Entidad"]["ine:Contabilidad"]={_attributes:t}},e}(y),N=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}(),k=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}(),S=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}(),V=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}(),M=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}(),U=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}(),B=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}(),G=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}(),j=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}(),H=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}(),Y=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}(),X=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}(),W=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}(),q=function(){function t(){this.doctoRelacionado={}}t.getInstance=function(){return t.instance||(t.instance=new t),t.instance};var o=t.prototype;return o.setRelacion=function(t){var o=t.retencionDR,s=t.trasladoDR,i={_attributes:t.doc};(o||s)&&(i["pago20:ImpuestosDR"]={});var n=i["pago20:ImpuestosDR"];if(n){if(o){n["pago20:RetencionesDR"]||(n["pago20:RetencionesDR"]={"pago20:RetencionDR":[]});for(var a,r=e(o);!(a=r()).done;)n["pago20:RetencionesDR"]["pago20:RetencionDR"].push({_attributes:a.value})}if(s){n["pago20:TrasladosDR"]||(n["pago20:TrasladosDR"]={"pago20:TrasladoDR":[]});for(var c,u=e(s);!(c=u()).done;)n["pago20:TrasladosDR"]["pago20:TrasladoDR"].push({_attributes:c.value})}}this.doctoRelacionado=i},o.getRelation=function(){return this.doctoRelacionado},t}(),Q=function(t){function e(e){var o;return void 0===e&&(e={Version:"2.0"}),(o=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={},o.complemento={},o.complemento._attributes=e,o}o(e,t);var s=e.prototype;return s.setTotales=function(t){this.complemento["pago20:Totales"]||(this.complemento["pago20:Totales"]=[]),this.complemento["pago20:Totales"].push({_attributes:t})},s.setPago=function(t){this.complemento["pago20:Pago"]||(this.complemento["pago20:Pago"]=[]),this.complemento["pago20:Pago"].push(t.getPago())},e}(y),K=function(t){function e(e){var o;return(o=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&&(o.complemento={_attributes:e}),o}o(e,t);var s=e.prototype;return s.setAttributes=function(t){this.complemento={_attributes:t}},s.setUbicacion=function(t){this.complemento["cartaporte20:Ubicaciones"]||(this.complemento["cartaporte20:Ubicaciones"]={"cartaporte20:Ubicacion":[]}),this.complemento["cartaporte20:Ubicaciones"]["cartaporte20:Ubicacion"].push(t.getUbicacion())},s.setMercancias=function(t){this.complemento["cartaporte20:Mercancias"]=t.getMercancias()},s.setFiguraTransporte=function(t){this.complemento["cartaporte20:FiguraTransporte"]||(this.complemento["cartaporte20:FiguraTransporte"]={"cartaporte20:TiposFigura":[]}),this.complemento["cartaporte20:FiguraTransporte"]["cartaporte20:TiposFigura"].push(t.getFiguraTransporte())},e}(y),J=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}(),$=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}(),z=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}(),tt=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}(),et=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}(),ot=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=$.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=z.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=tt.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=et.getInstance(t);return this.mercancias["cartaporte20:TransporteFerroviario"].push(e.getTransporteFerroviario()),e},e.getMercancias=function(){return this.mercancias},t}(),st=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}(),it=function(t){function e(e){var o;return(o=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={},o.complemento={_attributes:e},o}return o(e,t),e}(y);(s=exports.AllowanceChargeType||(exports.AllowanceChargeType={})).ALLOWANCE_GLOBAL="ALLOWANCE_GLOBAL",s.CHARGE_GLOBAL="CHARGE_GLOBAL",(i=exports.SettlementType||(exports.SettlementType={})).BILL_BACK="BILL_BACK",i.OFF_INVOICE="OFF_INVOICE",(exports.Base||(exports.Base={})).INVOICE_VALUE="INVOICE_VALUE",(n=exports.CuFun||(exports.CuFun={})).BILLING_CURRENCY="BILLING_CURRENCY",n.PRICE_CURRENCY="PRICE_CURRENCY",n.PAYMENT_CURRENCY="PAYMENT_CURRENCY",(a=exports.ISOCode||(exports.ISOCode={})).MXN="MXN",a.XEU="XEU",a.USD="USD",(r=exports.SpeSerType||(exports.SpeSerType={})).AA="AA",r.AJ="AJ",r.ADO="ADO",r.ADT="ADT",r.ADS="ADS",r.ABZ="ABZ",r.DA="DA",r.EAA="EAA",r.PI="PI",r.TAE="TAE",r.SAB="SAB",r.RAA="RAA",r.PAD="PAD",r.FG="FG",r.FA="FA",r.TD="TD",r.TS="TS",r.TX="TX",r.TZ="TZ",r.ZZZ="ZZZ",r.VAB="VAB",r.UM="UM",r.DI="DI",r.CAC="CAC",r.COD="COD",r.EAB="EAB",r.FC="FC",r.FI="FI",r.HD="HD",r.QD="QD",(c=exports.AlterPartyId||(exports.AlterPartyId={})).TN="TN",c.SELLER_ASSIGNED_IDENTIFIER_FOR_A_PARTY="SELLER_ASSIGNED_IDENTIFIER_FOR_A_PARTY",c.IEPS_REFERENCE="IEPS_REFERENCE",c.VA="VA",c.IA="IA",(u=exports.XmlRefIdType||(exports.XmlRefIdType={})).AAE="AAE",u.CK="CK",u.ACE="ACE",u.ATZ="ATZ",u.DQ="DQ",u.IV="IV",u.ON="ON",u.AWR="AWR",(p=exports.AllowanceOrChargeType||(exports.AllowanceOrChargeType={})).ALLOWANCE="ALLOWANCE",p.CHARGE="CHARGE",(h=exports.Code||(exports.Code={})).AAB="AAB",h.DUT="DUT",h.PUR="PUR",h.ZZZ="ZZZ",(m=exports.EntityType||(exports.EntityType={})).INVOICE="INVOICE",m.DEBIT_NOTE="DEBIT_NOTE",m.CREDIT_NOTE="CREDIT_NOTE",m.LEASE_RECEIPT="LEASE_RECEIPT",m.HONORARY_RECEIPT="HONORARY_RECEIPT",m.PARTIAL_INVOICE="PARTIAL_INVOICE",m.TRANSPORT_DOCUMENT="TRANSPORT_DOCUMENT",m.AUTO_INVOICE="AUTO_INVOICE",(l=exports.TypeTaxCategory||(exports.TypeTaxCategory={})).TRANSFERIDO="TRANSFERIDO",l.RETENIDO="RETENIDO",(d=exports.TypeDescription||(exports.TypeDescription={})).GST="GST",d.VAT="VAT",d.LAC="LAC",d.AAA="AAA",d.ADD="ADD",d.FRE="FRE",d.LOC="LOC",d.STT="STT",d.OTH="OTH",function(t){t.EXCHANGE_PALLETS="EXCHANGE_PALLETS",t.RETURN_PALLETS="RETURN_PALLETS",t.PALLET_80x100="PALLET_80x100",t.CASE="CASE",t.BOX="BOX"}(exports.TypeDescription||(exports.TypeDescription={})),(x=exports.Lang||(exports.Lang={})).ES="ES",x.EN="EN",(f=exports.QuantityType||(exports.QuantityType={})).NUM_CONSUMER_UNITS="NUM_CONSUMER_UNITS",f.FREE_GOODS="FREE_GOODS",(b=exports.DiscountType||(exports.DiscountType={})).ALLOWANCE_BY_PAYMENT_ON_TIME="ALLOWANCE_BY_PAYMENT_ON_TIME",b.SANCTION="SANCTION",(g=exports.PayTermsEvent||(exports.PayTermsEvent={})).DATE_OF_INVOICE="DATE_OF_INVOICE",g.EFFECTIVE_DATE="EFFECTIVE_DATE",(exports.PayTermsRelTime||(exports.PayTermsRelTime={})).REFERENCE_AFTER="REFERENCE_AFTER",(w=exports.NetPayTermsType||(exports.NetPayTermsType={})).BASIC_NET="BASIC_NET",w.END_OF_MONTH="END_OF_MONTH",w.BASIC_DISCOUNT_OFFERED="BASIC_DISCOUNT_OFFERED",(exports.TimePeriod||(exports.TimePeriod={})).DAYS="DAYS",exports.Aerolineas=_,exports.CartaPorte20=K,exports.Cce11=T,exports.ConsumoDeCombustibles11=E,exports.CtaPrt20FiguraTransporte=J,exports.CtaPrt20Mercancias=ot,exports.CtaPrt20Ubicacion=st,exports.Decreto=C,exports.Destruccion=D,exports.Detallista=function(t){this.detallista={},this.detallista._attributes=t},exports.Divisas=R,exports.Donat=I,exports.Ecc11=function(){this.name="",this.name=""},exports.Gceh=P,exports.Iedu=it,exports.Ieeh=L,exports.Implocal=F,exports.Ine=O,exports.LeyendaFisc=k,exports.Nomina12=function(){},exports.NotariosPublicos=function(){this.name="",this.name=""},exports.ObrasArte=S,exports.Pago20=X,exports.Pago20ImpuestosP=W,exports.Pago20Relacionado=q,exports.PagoEnEspecie=V,exports.Pagos20=Q,exports.Pfic=M,exports.RegistroFiscal=U,exports.RenovVehicular=A,exports.ServicioParcial=B,exports.Spei=j,exports.SpeiTercero=G,exports.SustitVehicular=v,exports.Terceros=function(){this.name=""},exports.Tfd=N,exports.Tpe=H,exports.ValesDeDespensa=Y,exports.VehiculoUsado=Z,exports.VentaVehiculos=function(){this.name=""}; //# sourceMappingURL=complementos.cjs.production.min.js.map