Log in
Model

CreationArguments

Magento\Sales\Model\Order\Creditmemo\CreationArguments

What it does

This class serves as a data container for optional arguments when creating a credit memo in Magento 2.

Developers use it to specify additional refund parameters like custom shipping amounts, positive adjustments (increases to refund amount), and negative adjustments (decreases to refund amount) when programmatically creating credit memos through the API or service layer.

Public Methods

  • getShippingAmount()
  • getAdjustmentPositive()
  • getAdjustmentNegative()
  • setShippingAmount()
  • setAdjustmentPositive()
  • setAdjustmentNegative()
  • getExtensionAttributes()
  • setExtensionAttributes()