Skip to content

Commit 207e16b

Browse files
Merge pull request #247 from synolia/qa
SYL-216 - fix refund decorator for shipment
2 parents b07f72d + 215f60a commit 207e16b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Creator/RefundUnitsCommandCreatorDecorator.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use Sylius\RefundPlugin\Model\OrderItemUnitRefund;
2222
use Sylius\RefundPlugin\Model\RefundType;
2323
use Sylius\RefundPlugin\Model\ShipmentRefund;
24+
use Sylius\RefundPlugin\Model\UnitRefundInterface;
2425
use Symfony\Component\HttpFoundation\Request;
2526
use Symfony\Contracts\Translation\TranslatorInterface;
2627
use Webmozart\Assert\Assert;
@@ -131,7 +132,7 @@ private function getTotalRefundAmount(array $units): int
131132
return $total;
132133
}
133134

134-
private function getAmount(OrderItemUnitRefund $unit): int
135+
private function getAmount(UnitRefundInterface $unit): int
135136
{
136137
return $unit->total();
137138
}

0 commit comments

Comments
 (0)