Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
InvoiceRepositoryInterface Interface Reference
Inheritance diagram for InvoiceRepositoryInterface:
InvoiceRepository

Public Member Functions

 getList (\Magento\Framework\Api\SearchCriteriaInterface $searchCriteria)
 
 create ()
 
 get ($id)
 
 delete (\Magento\Sales\Api\Data\InvoiceInterface $entity)
 
 save (\Magento\Sales\Api\Data\InvoiceInterface $entity)
 

Detailed Description

Invoice repository interface.

An invoice is a record of the receipt of payment for an order. @api

Since
100.0.2

Definition at line 15 of file InvoiceRepositoryInterface.php.

Member Function Documentation

◆ create()

create ( )

Return Invoice object

Returns
\Magento\Sales\Api\Data\InvoiceInterface

Implemented in InvoiceRepository.

◆ delete()

Deletes a specified invoice.

Parameters
\Magento\Sales\Api\Data\InvoiceInterface$entityThe invoice.
Returns
bool

◆ get()

get (   $id)

Loads a specified invoice.

Parameters
int$idThe invoice ID.
Returns
\Magento\Sales\Api\Data\InvoiceInterface Invoice interface.

◆ getList()

getList ( \Magento\Framework\Api\SearchCriteriaInterface  $searchCriteria)

Lists invoices that match specified search criteria.

This call returns an array of objects, but detailed information about each object’s attributes might not be included. See http://devdocs.magento.com/codelinks/attributes.html#InvoiceRepositoryInterface to determine which call to use to get detailed information about all attributes for an object.

Parameters
\Magento\Framework\Api\SearchCriteriaInterface$searchCriteriaThe search criteria.
Returns
\Magento\Sales\Api\Data\InvoiceSearchResultInterface Invoice search result interface.

◆ save()

Performs persist operations for a specified invoice.

Parameters
\Magento\Sales\Api\Data\InvoiceInterface$entityThe invoice.
Returns
\Magento\Sales\Api\Data\InvoiceInterface Invoice interface.

The documentation for this interface was generated from the following file: