Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
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) | |
Invoice repository interface.
An invoice is a record of the receipt of payment for an order. @api
Definition at line 15 of file InvoiceRepositoryInterface.php.
create | ( | ) |
Return Invoice object
Implemented in InvoiceRepository.
delete | ( | \Magento\Sales\Api\Data\InvoiceInterface | $entity | ) |
Deletes a specified invoice.
\Magento\Sales\Api\Data\InvoiceInterface | $entity | The invoice. |
get | ( | $id | ) |
Loads a specified invoice.
int | $id | The invoice ID. |
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.
\Magento\Framework\Api\SearchCriteriaInterface | $searchCriteria | The search criteria. |
save | ( | \Magento\Sales\Api\Data\InvoiceInterface | $entity | ) |
Performs persist operations for a specified invoice.
\Magento\Sales\Api\Data\InvoiceInterface | $entity | The invoice. |