You are here

public function Payment::setRefundedAmount in Commerce Core 8.2

Sets the refunded payment amount.

Parameters

\Drupal\commerce_price\Price $refunded_amount: The refunded payment amount.

Return value

$this

Overrides PaymentInterface::setRefundedAmount

1 call to Payment::setRefundedAmount()
Payment::preSave in modules/payment/src/Entity/Payment.php
Acts on an entity before the presave hook is invoked.

File

modules/payment/src/Entity/Payment.php, line 237

Class

Payment
Defines the payment entity class.

Namespace

Drupal\commerce_payment\Entity

Code

public function setRefundedAmount(Price $refunded_amount) {
  $this
    ->set('refunded_amount', $refunded_amount);
  return $this;
}