Documentation ¶
Index ¶
- func ReadXML(options map[string]interface{}) <-chan XmlRecord
- func ReadXMLMissingCfd(options map[string]interface{}) <-chan XmlRecord
- func SatValidation(in <-chan XmlRecord) <-chan CfdiRecord
- type AddendaBuzonFiscalNode
- type CFDIAddenda
- type CFDIComplemento
- type CFDIConcepto
- type CFDIEmisor
- type CFDIImpuestos
- type CFDIReceptor
- type CFDITraslado
- type CFDITraslados
- type CFDNode
- type CfdiRecord
- type CfdiType
- type EmisorDomicilioFiscalNode
- type NominaNomina
- type TFDTimbreFiscalDigital
- type XmlRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadXMLMissingCfd ¶
func SatValidation ¶
func SatValidation(in <-chan XmlRecord) <-chan CfdiRecord
Types ¶
type AddendaBuzonFiscalNode ¶
type CFDIAddenda ¶
type CFDIAddenda struct { XMLName xml.Name `xml:"Addenda"` AddendaBuzonFiscal AddendaBuzonFiscalNode `xml:"AddendaBuzonFiscal"` }
type CFDIComplemento ¶
type CFDIComplemento struct { XMLName xml.Name `xml:"Complemento"` TimbreFiscalDigital TFDTimbreFiscalDigital `xml:"TimbreFiscalDigital"` Nomina NominaNomina `xml:"Nomina"` }
type CFDIConcepto ¶
type CFDIConcepto struct { XMLName xml.Name `xml:"Concepto"` Descripcion string `xml:"descripcion,attr"` NoIdentificacion string `xml:"noIdentificacion,attr"` Cantidad string `xml:"cantidad,attr"` Unidad string `xml:"unidad,attr"` ValorUnitario string `xml:"valorUnitario,attr"` Importe string `xml:"importe,attr"` }
type CFDIEmisor ¶
type CFDIEmisor struct { XMLName xml.Name `xml:"Emisor"` RFC string `xml:"rfc,attr"` Nombre string `xml:"nombre,attr"` DomicilioFiscal EmisorDomicilioFiscalNode `xml:"DomicilioFiscal"` }
type CFDIImpuestos ¶
type CFDIImpuestos struct { XMLName xml.Name `xml:"Impuestos"` Total string `xml:"totalImpuestosTrasladados,attr"` Traslados CFDITraslados `xml:"Traslados"` }
func (CFDIImpuestos) TotalTrasladados ¶
func (imp CFDIImpuestos) TotalTrasladados() string
type CFDIReceptor ¶
type CFDITraslado ¶
type CFDITraslados ¶
type CFDITraslados struct { XMLName xml.Name `xml:"Traslados"` Traslado CFDITraslado `xml:"Traslado"` }
type CfdiRecord ¶
type CfdiType ¶
type CfdiType struct { XMLName xml.Name `xml:"Comprobante"` Tipo string `xml:"tipoDeComprobante,attr"` Version string `xml:"version,attr"` Serie string `xml:"serie,attr"` Folio string `xml:"folio,attr"` Fecha string `xml:"fecha,attr"` Moneda string `xml:"Moneda,attr"` TipoCambio string `xml:"TipoCambio,attr"` Total string `xml:"total,attr"` SubTotal string `xml:"subTotal,attr"` MetodoDePago string `xml:"metodoDePago,attr"` LugarExpedicion string `xml:"LugarExpedicion,attr"` NoCertificado string `xml:"noCertificado,attr"` Emisor CFDIEmisor `xml:"Emisor"` Receptor CFDIReceptor `xml:"Receptor"` Conceptos []CFDIConcepto `xml:"Conceptos>Concepto"` Impuestos CFDIImpuestos `xml:"Impuestos"` Complemento CFDIComplemento `xml:"Complemento"` Addenda CFDIAddenda `xml:"Addenda"` }
func (CfdiType) NumeroDeFactura ¶
type NominaNomina ¶
type TFDTimbreFiscalDigital ¶
type TFDTimbreFiscalDigital struct { XMLName xml.Name `xml:"TimbreFiscalDigital"` NumeroCertificado string `xml:"noCertificadoSAT,attr"` FechaTimbrado string `xml:"FechaTimbrado,attr"` UUID string `xml:"UUID,attr"` }
func (TFDTimbreFiscalDigital) FechaTimbre ¶
func (tfd TFDTimbreFiscalDigital) FechaTimbre() string
Click to show internal directories.
Click to hide internal directories.