Log in
Interface

CreditmemoCommentCreationInterface

Magento\Sales\Api\Data\CreditmemoCommentCreationInterface

What it does

This interface defines the contract for creating comments when generating credit memos in Magento 2.

Developers use this interface when they need to programmatically add comments to credit memos through the API, such as explaining reasons for refunds or providing additional context.

It extends both ExtensibleDataInterface for custom attributes and CommentInterface for standard comment properties like text and visibility.

Public Methods

  • getExtensionAttributes()
  • setExtensionAttributes()