InvoiceArchiveWriteServiceInterface
in
Interface InvoiceArchiveWriteServiceInterface
Tags
Table of Contents
- deleteInvoiceById() : $this|InvoiceArchiveWriteServiceInterface
- Removes an invoice from the database by the given invoice id.
- importInvoiceFile() : int
- Imports the given invoice file and store their information in the database.
Methods
deleteInvoiceById()
Removes an invoice from the database by the given invoice id.
public
deleteInvoiceById(IdType $invoiceId) : $this|InvoiceArchiveWriteServiceInterface
Parameters
- $invoiceId : IdType
-
Id of invoice entry to be removed.
Return values
$this|InvoiceArchiveWriteServiceInterface —importInvoiceFile()
Imports the given invoice file and store their information in the database.
public
importInvoiceFile(ExistingFile $invoiceFile, InvoiceInformation $invoiceInfo) : int
Parameters
- $invoiceFile : ExistingFile
-
Name of pdf invoice file.
- $invoiceInfo : InvoiceInformation
-
Value objects which holds the invoice information
Return values
int —Invoice id.