Sales Module

Api\CreditmemoManagementInterface

Interface

This interface defines the contract for managing credit memos (refunds) in Magento 2. Developers use this service to perform operations like canceling...

Api\Data\CommentInterface

Interface

This interface defines the contract for comment data objects in the Magento Sales module. Developers use this interface when working with comments on...

Api\Data\CreditmemoCommentCreationInterface

Interface

This interface defines the contract for creating comments on credit memos in Magento 2. Developers use this when programmatically adding comments to c...

Api\Data\CreditmemoCommentInterface

Interface

This interface defines the contract for credit memo comment objects in Magento 2. Developers use it to work with comments attached to credit memos, in...

Api\Data\CreditmemoCommentSearchResultInterface

Interface

This interface defines the contract for search results when querying credit memo comments in Magento 2. Developers use this when working with reposito...

Api\Data\CreditmemoCreationArgumentsInterface

Interface

This interface defines the contract for managing additional arguments when creating a credit memo in Magento 2. Developers use it to specify shipping...

Api\Data\CreditmemoInterface

Interface

This interface defines the data structure for credit memos in Magento 2. Developers use it to retrieve and manipulate credit memo information when pro...

Api\Data\CreditmemoItemCreationInterface

Interface

This interface defines the contract for creating individual credit memo items when issuing refunds in Magento 2. Developers use this interface when pr...

Api\Data\CreditmemoItemInterface

Interface

This interface defines the contract for credit memo item data objects in Magento 2. Developers use this when working with refunds to access or modify...

Api\Data\CreditmemoItemSearchResultInterface

Interface

This interface defines the contract for search results when querying credit memo items through Magento's API. Developers use this when retrieving coll...

Api\Data\CreditmemoSearchResultInterface

Interface

This interface defines the contract for credit memo search result collections returned by repository search operations. Developers use this when retri...

Api\Data\EntityInterface

Interface

This interface defines the base contract for sales entities in Magento 2, providing standard methods to get and set the entity ID and creation timesta...

Api\Data\InvoiceCommentCreationInterface

Interface

This interface defines the contract for creating invoice comments in Magento 2. Developers use this when programmatically adding comments to invoices...

Api\Data\InvoiceCommentInterface

Interface

This interface defines the contract for invoice comment data objects in Magento 2. Developers use it to manage comments added to invoices, including t...

Api\Data\InvoiceCommentSearchResultInterface

Interface

This interface defines the contract for search results when querying invoice comments in Magento 2. Developers use this when implementing repositories...

Api\Data\InvoiceCreationArgumentsInterface

Interface

This interface defines the contract for passing additional arguments when creating an invoice in Magento 2. Developers use this to extend invoice crea...

Api\Data\InvoiceInterface

Interface

This interface defines the contract for invoice data objects in Magento 2. Developers use this when working with invoice records that represent paymen...

Api\Data\InvoiceItemCreationInterface

Interface

This interface defines the data structure for creating individual invoice items when generating invoices programmatically through Magento's API. Devel...

Api\Data\InvoiceItemInterface

Interface

This interface defines the contract for invoice item data objects in Magento 2's Sales module. Developers use it when working with invoice items progr...

Api\Data\InvoiceItemSearchResultInterface

Interface

This interface defines the contract for search results when querying invoice items through Magento's API. Developers use this when implementing reposi...

Api\Data\InvoiceSearchResultInterface

Interface

This interface defines the structure for invoice search results in Magento 2. Developers use it when retrieving collections of invoices through reposi...

Api\Data\LineItemInterface

Interface

This interface defines the contract for line items in Magento 2 sales entities like invoices, shipments, and credit memos. It provides methods to get...

Api\Data\OrderAddressInterface

Interface

This interface defines the contract for order address data in Magento 2, representing both billing and shipping addresses associated with sales orders...

Api\Data\OrderAddressSearchResultInterface

Interface

This interface defines the contract for search results containing order address collections in Magento 2. Developers use this when retrieving multiple...

Api\Data\OrderInterface

Interface

OrderInterface defines the data contract for orders in Magento 2. Developers use this interface to work with order data through the API, including ord...

Api\Data\OrderItemInterface

Interface

This interface defines the contract for order item data objects in Magento 2, representing individual products within a sales order. Developers use th...

Api\Data\OrderItemSearchResultInterface

Interface

This interface defines the contract for search results when querying order items in Magento 2. Developers use this when implementing repositories or s...

Api\Data\OrderPaymentInterface

Interface

This interface defines the data structure and methods for managing payment information associated with sales orders in Magento 2. Developers use it to...

Api\Data\OrderPaymentSearchResultInterface

Interface

This interface defines the contract for search results when querying order payment records in Magento 2. Developers use this when working with reposit...

Api\Data\OrderSearchResultInterface

Interface

This interface defines the contract for order search result collections in Magento 2. Developers use this when retrieving multiple orders through repo...

Api\Data\OrderStatusHistoryInterface

Interface

This interface defines the contract for order status history records in Magento 2. Developers use it to track and manage changes to an order's status...

Api\Data\OrderStatusHistorySearchResultInterface

Interface

This interface defines a contract for search results when querying order status history records in Magento 2. Developers use this interface when retri...

Api\Data\ShipmentCommentCreationInterface

Interface

This interface defines the contract for creating shipment comments in Magento 2. Developers use this when programmatically adding comments to shipment...

Api\Data\ShipmentCommentInterface

Interface

This interface defines the contract for shipment comment data objects in Magento 2. Developers use it when working with comments attached to shipment...

Api\Data\ShipmentCommentSearchResultInterface

Interface

This interface defines the contract for search results when querying shipment comments in Magento 2. Developers use this interface when retrieving fil...

Api\Data\ShipmentCreationArgumentsInterface

Interface

This interface defines the contract for passing additional arguments when creating shipments in Magento 2. Developers use this interface to extend shi...

Api\Data\ShipmentInterface

Interface

This interface defines the contract for shipment data objects in Magento 2. Developers use it to retrieve and manipulate shipment information includin...

Api\Data\ShipmentItemCreationInterface

Interface

This interface defines the structure for creating shipment items when processing orders in Magento 2. Developers use this interface when building ship...

Api\Data\ShipmentItemInterface

Interface

This interface defines the contract for shipment items in Magento 2, representing individual products included in a delivery package. Developers use t...

Api\Data\ShipmentItemSearchResultInterface

Interface

This interface defines the contract for search results when querying shipment items in Magento 2. Developers use this when implementing repository met...

Api\Data\ShipmentPackageCreationInterface

Interface

This interface defines the contract for creating shipment packages in Magento 2. Developers use this when programmatically creating delivery packages...

Api\Data\ShipmentPackageInterface

Interface

This interface defines the contract for shipment package data objects in Magento 2. Developers use this when working with order shipments to represent...

Api\Data\ShipmentSearchResultInterface

Interface

This interface defines the contract for search results when querying shipments in Magento 2. Developers use this when retrieving multiple shipment rec...

Api\Data\ShipmentTrackCreationInterface

Interface

This interface defines the contract for creating shipment tracking information in Magento 2. Developers use this when programmatically adding tracking...

Api\Data\ShipmentTrackInterface

Interface

This interface defines the contract for shipment tracking information in Magento 2. Developers use it when working with shipment tracking data, such a...

Api\Data\ShipmentTrackSearchResultInterface

Interface

This interface defines the contract for search results when querying shipment tracking records in Magento 2. Developers use this when implementing rep...

Api\Data\ShippingAssignmentInterface

Interface

This interface defines the structure for shipping assignments in Magento 2, which group order items together with their shipping information and assoc...

Api\Data\ShippingInterface

Interface

This interface defines the contract for shipping information objects in Magento 2 orders. Developers use this to retrieve or set shipping details incl...

Api\Data\TotalInterface

Interface

This interface defines the contract for managing shipping-related totals in Magento 2 sales orders, including amounts, taxes, discounts, invoices, ref...

Api\Data\TrackInterface

Interface

This interface defines the contract for shipment tracking information in Magento 2. Developers use this when creating or managing tracking numbers for...

Api\Data\TransactionInterface

Interface

This interface defines the contract for payment transaction data objects in Magento 2. Developers use it to interact with transaction records that rep...

Api\Data\TransactionSearchResultInterface

Interface

This interface defines the contract for returning collections of transaction search results in Magento 2. Developers use this when implementing or wor...

Api\Exception\CouldNotInvoiceExceptionInterface

Interface

This is a marker interface used to identify exceptions that occur when an invoice cannot be created for an order in Magento 2. Developers should throw...

Api\Exception\CouldNotRefundExceptionInterface

Interface

This interface marks exceptions that occur when a refund operation cannot be completed in Magento's sales system. Developers should implement this int...

Api\Exception\CouldNotShipExceptionInterface

Interface

This interface serves as a marker for exceptions that occur when a shipment cannot be created for an order in Magento 2. Developers should throw excep...

Api\Exception\DocumentValidationExceptionInterface

Interface

This is a marker interface used to identify exceptions that occur during sales document validation in Magento 2. Developers should implement this inte...

Api\InvoiceManagementInterface

Interface

This interface defines the contract for managing invoice operations in Magento 2. Developers use this to capture payment on invoices, retrieve invoice...

Api\InvoiceOrderInterface

Interface

This interface defines the contract for creating invoices from orders in Magento 2. Developers use this to programmatically invoice an order, with opt...

Api\OrderCustomerDelegateInterface

Interface

This interface defines a contract for delegating order-related customer operations to the Customer module. Developers would implement this interface t...

Api\OrderCustomerManagementInterface

Interface

This interface defines the contract for creating a customer account from an existing order. Developers use this when they need to convert a guest chec...

Api\OrderManagementInterface

Interface

This interface defines the contract for managing order operations in Magento 2. Developers use this to perform actions like canceling orders, adding c...

Api\PaymentFailuresInterface

Interface

This interface defines a contract for handling payment gateway failures in Magento 2. Developers would implement or use this interface to process and...

Api\RefundInvoiceInterface

Interface

This interface defines the contract for creating credit memos (refunds) for invoices in Magento 2. Developers use this when implementing refund functi...

Api\RefundOrderInterface

Interface

This interface defines the contract for creating offline refunds (credit memos) for orders in Magento 2. Developers use this when they need to program...

Api\ShipOrderInterface

Interface

This interface defines the contract for creating shipments for orders in Magento 2. Developers use this when they need to programmatically ship orders...

Api\ShipmentManagementInterface

Interface

This interface defines the contract for managing shipment operations in Magento 2. Developers use this interface to retrieve shipment labels, fetch sh...

Model\ConfigInterface

Interface

This interface defines the contract for accessing sales-related configuration in Magento 2. Developers use it to retrieve total renderers for displayi...

Model\EntityInterface

Interface

This interface defines a contract for sales entities (orders, invoices, shipments, credit memos) that have increment IDs - the human-readable identifi...

Model\OrderMutexInterface

Interface

This interface defines a locking mechanism to prevent race conditions when multiple processes try to update the same order simultaneously. Developers...

Model\Order\Creditmemo\CreditmemoValidatorInterface

Interface

This interface defines a contract for validating credit memos in Magento 2 before they are saved or processed. Developers use this when implementing c...

Model\Order\Creditmemo\ItemCreationValidatorInterface

Interface

This interface defines the contract for validating credit memo items during creation. Developers implement this interface to create custom validators...

Model\Order\Creditmemo\NotifierInterface

Interface

This interface defines the contract for sending credit memo notifications to customers. Developers would implement or use this interface when they nee...

Model\Order\Creditmemo\SenderInterface

Interface

This interface defines the contract for sending credit memo notification emails to customers in Magento 2. Developers implement this interface when cr...

Model\Order\InvoiceStatisticInterface

Interface

This interface defines a contract for classes that handle invoice statistics registration. Developers implement this interface to update order statist...

Model\Order\Invoice\InvoiceValidatorInterface

Interface

This interface defines the contract for validating invoices in Magento 2. Developers implement this interface to create validators that check if an in...

Model\Order\Invoice\NotifierInterface

Interface

This interface defines the contract for notifying customers when an invoice is created in Magento 2. Developers use this to send invoice notification...

Model\Order\Invoice\SenderInterface

Interface

This interface defines the contract for sending invoice notification emails to customers in Magento 2. Developers use this when implementing custom in...

Model\Order\OrderStateResolverInterface

Interface

This interface defines a contract for resolving the appropriate state of an order based on its current properties and additional arguments. Developers...

Model\Order\OrderValidatorInterface

Interface

This interface defines a contract for validating Magento order entities. Developers implement this interface to create custom order validators that ru...

Model\Order\PaymentAdapterInterface

Interface

This interface defines a contract for processing payment operations on orders during invoice creation. Developers use this to implement custom payment...

Model\Order\RefundAdapterInterface

Interface

This interface defines a contract for processing refund operations in Magento 2. Developers implement this interface to create custom refund adapters...

Model\Order\Reorder\OrderedProductAvailabilityCheckerInterface

Interface

This interface defines a contract for checking if a previously ordered product with its selected options is still available in the catalog for reorder...

Model\Order\Shipment\NotifierInterface

Interface

This interface defines a contract for notifying customers about shipment updates in Magento 2. Developers implement this interface to create custom sh...

Model\Order\Shipment\OrderRegistrarInterface

Interface

This interface defines a contract for updating order data when a shipment is created. Developers implement this interface to calculate and register sh...

Model\Order\Shipment\SenderInterface

Interface

This interface defines the contract for sending shipment notification emails to customers in Magento 2. Developers implement this interface to customi...

Model\Order\Shipment\ShipmentItemsValidatorInterface

Interface

This interface defines a contract for validators that check if order items can be shipped before creating a shipment. Developers implement this interf...

Model\Order\Shipment\ShipmentValidatorInterface

Interface

This interface defines a contract for validating shipment entities in Magento 2. Developers implement this interface to create validators that check i...

Model\Order\Validation\InvoiceOrderInterface

Interface

This interface defines a contract for validating invoice creation in Magento 2. Developers implement this interface to add custom validation logic tha...

Model\Order\Validation\RefundInvoiceInterface

Interface

This interface defines the contract for validating refund operations on invoices in Magento 2. Developers implement this interface to create validatio...

Model\Order\Validation\RefundOrderInterface

Interface

This interface defines the contract for validating refund operations (credit memos) in Magento 2. Developers use this to ensure that an order meets al...

Model\Order\Validation\ShipOrderInterface

Interface

This interface defines the contract for validating shipment creation in Magento 2. Developers implement this interface to add custom validation logic...

Model\ResourceModel\GridInterface

Interface

This interface defines the contract for managing Magento sales grid tables (orders, invoices, shipments, credit memos). Developers implement this inte...

Model\ResourceModel\HelperInterface

Interface

This interface defines a contract for sales resource helper classes that support database operations related to sales reports. Developers use implemen...

Model\ResourceModel\Order\CollectionFactoryInterface

Interface

This factory interface defines a contract for creating Order Collection instances in Magento 2. Developers use this to generate collections of orders,...

Model\ResourceModel\Provider\NotSyncedDataProviderInterface

Interface

This interface defines a contract for providers that identify sales entities (orders, invoices, shipments, etc.) that are out of sync between main tab...

Model\Spi\CreditmemoCommentResourceInterface

Interface

This interface defines the contract for resource models that handle database operations for credit memo comments in Magento 2. Developers use this whe...

Model\Spi\CreditmemoItemResourceInterface

Interface

This interface defines the contract for resource models that handle database operations for credit memo items in Magento 2. Developers implement this...

Model\Spi\CreditmemoResourceInterface

Interface

This interface defines the contract for credit memo resource operations in Magento 2, specifically handling database persistence operations. Developer...

Model\Spi\InvoiceCommentResourceInterface

Interface

This interface defines the contract for database operations (save, load, delete) on invoice comment entities in Magento 2. Developers use this when im...

Model\Spi\InvoiceItemResourceInterface

Interface

This interface defines the contract for persisting invoice item data to the database in Magento 2. Developers use this when implementing custom resour...

Model\Spi\InvoiceResourceInterface

Interface

This interface defines the contract for invoice resource operations in Magento 2's Service Provider Interface (SPI) layer. Developers implement this i...

Model\Spi\OrderAddressResourceInterface

Interface

This interface defines the contract for persisting order address data in Magento 2. Developers would implement this interface when creating custom res...

Model\Spi\OrderItemResourceInterface

Interface

This interface defines the contract for order item resource operations in Magento 2. Developers use this when implementing custom persistence logic fo...

Model\Spi\OrderPaymentResourceInterface

Interface

This interface defines the contract for managing persistence operations (save, load, delete) of order payment data in Magento 2. Developers would impl...

Model\Spi\OrderResourceInterface

Interface

This interface defines the contract for Order resource models that handle database operations for order entities in Magento 2. Developers implement th...

Model\Spi\OrderStatusHistoryResourceInterface

Interface

This interface defines the contract for persisting order status history records in Magento 2. Developers use this when implementing custom resource mo...

Model\Spi\ShipmentCommentResourceInterface

Interface

This interface defines the contract for persisting shipment comment data to the database in Magento 2. It provides standard CRUD operations (save, loa...

Model\Spi\ShipmentItemResourceInterface

Interface

This interface defines the contract for resource models that handle database operations for shipment items in Magento 2. Developers use this when impl...

Model\Spi\ShipmentResourceInterface

Interface

This interface defines the contract for shipment resource operations in Magento 2, specifying standard CRUD methods (save, load, delete) for managing...

Model\Spi\ShipmentTrackResourceInterface

Interface

This interface defines the contract for resource models that handle database operations for shipment tracking records in Magento 2. Developers use thi...

Model\Spi\TransactionResourceInterface

Interface

This interface defines the contract for resource models that handle database operations for sales transactions in Magento 2. Developers implement this...

Model\ValidatorInterface

Interface

This interface defines a contract for validators in Magento 2's Sales module. Developers implement this interface to create custom validation logic fo...

Model\ValidatorResultInterface

Interface

This interface defines a contract for validator result objects in Magento's Sales module. Developers use this to collect and retrieve validation error...