InvoiceArchiveWriteServiceInterface

Extends

Interface InvoiceArchiveWriteServiceInterface

category

System

package

Invoice

subpackage

Interfaces

Methods

Removes an invoice from the database by the given invoice id.

deleteInvoiceById(\IdType $invoiceId) : $this|\InvoiceArchiveWriteServiceInterface

Arguments

$invoiceId

\IdType

Id of invoice entry to be removed.

Response

$this|\InvoiceArchiveWriteServiceInterface

Imports the given invoice file and store their information in the database.

importInvoiceFile(\ExistingFile $invoiceFile, \InvoiceInformation $invoiceInfo) : integer

Arguments

$invoiceFile

\ExistingFile

Name of pdf invoice file.

$invoiceInfo

\InvoiceInformation

Value objects which holds the invoice information

Response

integer

Invoice id.