Log in
Interface

CreditmemoResourceInterface

Magento\Sales\Model\Spi\CreditmemoResourceInterface

What it does

This interface defines the contract for credit memo resource operations in Magento 2, providing methods to save, load, and delete credit memo data from the database.

Developers would use implementations of this interface when they need to perform CRUD operations on credit memos, such as when creating refunds for orders or retrieving existing credit memo records.

It serves as a Service Provider Interface (SPI) that ensures consistent data persistence operations across different credit memo resource implementations.

Public Methods

  • save()
  • load()
  • delete()