InvoiceRepositoryInterface

Extends

Interface InvoiceRepositoryInterface

category

System

package

Invoice

subpackage

Interfaces

Methods

Adds a new invoice in the database.

add(\InvoiceInformation $invoiceInfo) : integer

Arguments

$invoiceInfo

\InvoiceInformation

Entity with invoice information.

Response

integer

The invoice_id of the new database entry.

Removes an invoice entry from the database.

deleteByInvoiceId(\IdType $invoiceId) : $this|\InvoiceRepositoryInterface

Arguments

$invoiceId

\IdType

invoice_id of entry to be removed.

Response

$this|\InvoiceRepositoryInterface

Same instance for chained method calls.

Updates the invoice file column for an invoice entry in the database.

updateInvoiceFilename(\IdType $invoiceId, \FilenameStringType $invoiceFilename) : $this|\InvoiceRepositoryInterface

Arguments

$invoiceId

\IdType

$invoiceFilename

\FilenameStringType

Response

$this|\InvoiceRepositoryInterface

Same instance for chained method calls.