InvoiceArchiveReadService

Implements \InvoiceArchiveReadServiceInterface

Class InvoiceListArchiveReadService

category

System

package

Invoice

Methods

InvoiceListArchiveReadService constructor.

__construct(\InvoiceListGeneratorInterface $listGenerator, \InvoiceFileFinderInterface $fileFinder) 

Arguments

Returns the invoice file download information.

getInvoiceFileDownloadInfoByInvoiceId(\IdType $invoiceId) : \FileDownloadInformation

Arguments

$invoiceId

\IdType

invoice_id of expected entry.

Response

\FileDownloadInformation

Returns an invoice list item collection by the given conditions.

getInvoiceListByConditions(array $conditions = array(), \IntType|null $startIndex = null, \IntType|null $maxCount = null, \StringType|null $orderBy = null) : \InvoiceListItemCollection

The other arguments helps to control fetched data.

Arguments

$conditions

array

(Optional) Conditions for tht where clause.

$startIndex

\IntType|null

(Optional) Start index for the limit clause.

$maxCount

\IntType|null

(Optional) Max count for the limit clause.

$orderBy

\StringType|null

(Optional) Sort order of fetched data.

Response

\InvoiceListItemCollection

Properties

listGenerator

listGenerator : \InvoiceListGeneratorInterface

fileFinder

fileFinder : \InvoiceFileFinderInterface