CheckXmlDocumentSentStatusJob
extends AbstractJob
in package
implements
JobInterface
Clase para realizar las consultas de validación de documentos al SII.
Attributes
- #[Job]
- $name: 'check_xml_document_sent_status'
- $worker: 'sii_dte'
- $component: 'integration'
- $package: 'billing'
Table of Contents
Interfaces
- JobInterface
Properties
- $siiLazyWorker : SiiLazyWorkerInterface
- $xmlService : XmlServiceInterface
Methods
- __construct() : mixed
- checkSentStatus() : CheckXmlDocumentSentStatusResponse
- Obtiene el estado actualizado del envío de un documento XML al SII.
Properties
$siiLazyWorker
private
SiiLazyWorkerInterface
$siiLazyWorker
$xmlService
private
XmlServiceInterface
$xmlService
Methods
__construct()
public
__construct(SiiLazyWorkerInterface $siiLazyWorker, XmlServiceInterface $xmlService) : mixed
Parameters
- $siiLazyWorker : SiiLazyWorkerInterface
- $xmlService : XmlServiceInterface
checkSentStatus()
Obtiene el estado actualizado del envío de un documento XML al SII.
public
checkSentStatus(SiiRequestInterface $request, int $trackId, string $company) : CheckXmlDocumentSentStatusResponse
Este estado podría no ser el final, si no es un estado final se debe reintentar la consulta posteriormente al SII.
Referencia: https://www.sii.cl/factura_electronica/factura_mercado/estado_envio.pdf
Parameters
- $request : SiiRequestInterface
-
Datos de la solicitud al SII.
- $trackId : int
-
Número de seguimiento asignado al envío del XML.
- $company : string
-
RUT de la empresa emisora del XML que se envió.