Skip to content

Commit

Permalink
SYL-216 - fix refund decorator for shipment
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGrimmChester committed Sep 29, 2023
1 parent b07f72d commit 215f60a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Creator/RefundUnitsCommandCreatorDecorator.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Sylius\RefundPlugin\Model\OrderItemUnitRefund;
use Sylius\RefundPlugin\Model\RefundType;
use Sylius\RefundPlugin\Model\ShipmentRefund;
use Sylius\RefundPlugin\Model\UnitRefundInterface;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Contracts\Translation\TranslatorInterface;
use Webmozart\Assert\Assert;
Expand Down Expand Up @@ -131,7 +132,7 @@ private function getTotalRefundAmount(array $units): int
return $total;
}

private function getAmount(OrderItemUnitRefund $unit): int
private function getAmount(UnitRefundInterface $unit): int
{
return $unit->total();
}
Expand Down

0 comments on commit 215f60a

Please sign in to comment.