Documentation
¶
Index ¶
Constants ¶
View Source
const ValidationURL = "https://consultaqr.facturaelectronica.sat.gob.mx/ConsultaCFDIService.svc?wsdl"
ValidationURL for the SOAP service to validate CFDI documents
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentHeaders ¶
type DocumentHeaders struct {
IssuerRFC, AddresseeRFC, TotalAmount, InvoiceUUID string
Client *gosoap.Client
}
DocumentHeaders values used to uniquely identify CFDI documents
func (*DocumentHeaders) Validate ¶
func (d *DocumentHeaders) Validate() (ValidationResult, error)
Validate checks if the document with the given parameters exists in SAT's system and is valid. BUG(inkatze): The namespace is not being parsed correctly in gosoap, so we have to make two calls to fix the element's namespace
type ValidationResult ¶
type ValidationResult struct {
RawResponse string
}
ValidationResult contains the processed results from the validation response
Notes ¶
Bugs ¶
The namespace is not being parsed correctly in gosoap, so we have to make two calls to fix the element's namespace
Click to show internal directories.
Click to hide internal directories.
