LibreDTE

DocumentComponentInterface extends ComponentInterface

Interfaz para `DocumentComponent`.

Table of Contents

Methods

bill()  : DocumentBagInterface
Ejecuta el proceso de facturación sobre los datos.
getBatchProcessorWorker()  : BatchProcessorWorkerInterface
Entrega el worker "billing.document.batch_processor".
getBuilderWorker()  : BuilderWorkerInterface
Entrega el worker "billing.document.builder".
getDispatcherWorker()  : DispatcherWorkerInterface
Entrega el worker "billing.document.dispatcher".
getDocumentBagManagerWorker()  : DocumentBagManagerWorkerInterface
Entrega el worker "billing.document.document_bag_manager".
getLoaderWorker()  : LoaderWorkerInterface
Entrega el worker "billing.document.loader".
getNormalizerWorker()  : NormalizerWorkerInterface
Entrega el worker "billing.document.normalizer".
getParserWorker()  : ParserWorkerInterface
Entrega el worker "billing.document.parser".
getRendererWorker()  : RendererWorkerInterface
Entrega el worker "billing.document.renderer".
getSanitizerWorker()  : SanitizerWorkerInterface
Entrega el worker "billing.document.sanitizer".
getValidatorWorker()  : ValidatorWorkerInterface
Entrega el worker "billing.document.validator".
loadXml()  : array<string|int, DocumentBagInterface>
Carga un XML de documento tributario o sobre de documentos tributarios.

Methods

bill()

Ejecuta el proceso de facturación sobre los datos.

public bill(string|array<string|int, mixed>|stdClass $data[, string|CafInterface|null $caf = null ][, string|array<string|int, mixed>|CertificateInterface|null $certificate = null ][, array<string|int, mixed>|OptionsInterface $options = [] ]) : DocumentBagInterface

Si se pasa un CAF el documento será timbrado.

Si se pasa un CAF el documento será firmado.

Parameters
$data : string|array<string|int, mixed>|stdClass
$caf : string|CafInterface|null = null
$certificate : string|array<string|int, mixed>|CertificateInterface|null = null
$options : array<string|int, mixed>|OptionsInterface = []
Return values
DocumentBagInterface

loadXml()

Carga un XML de documento tributario o sobre de documentos tributarios.

public loadXml(string $xml) : array<string|int, DocumentBagInterface>
Parameters
$xml : string

XML de un documento o sobre con uno o más documentos.

Return values
array<string|int, DocumentBagInterface>

Bolsas con los documentos cargados.


        
On this page

Search results