@@ -27,9 +27,9 @@ interface Customer extends Wallet
2727 * @throws TransactionFailedException
2828 * @throws ExceptionInterface
2929 */
30- public function payFree (Product $ product ): Transfer ;
30+ public function payFree (ProductInterface $ product ): Transfer ;
3131
32- public function safePay (Product $ product , bool $ force = false ): ?Transfer ;
32+ public function safePay (ProductInterface $ product , bool $ force = false ): ?Transfer ;
3333
3434 /**
3535 * @throws ProductEnded
@@ -41,7 +41,7 @@ public function safePay(Product $product, bool $force = false): ?Transfer;
4141 * @throws TransactionFailedException
4242 * @throws ExceptionInterface
4343 */
44- public function pay (Product $ product , bool $ force = false ): Transfer ;
44+ public function pay (ProductInterface $ product , bool $ force = false ): Transfer ;
4545
4646 /**
4747 * @throws ProductEnded
@@ -51,9 +51,9 @@ public function pay(Product $product, bool $force = false): Transfer;
5151 * @throws TransactionFailedException
5252 * @throws ExceptionInterface
5353 */
54- public function forcePay (Product $ product ): Transfer ;
54+ public function forcePay (ProductInterface $ product ): Transfer ;
5555
56- public function safeRefund (Product $ product , bool $ force = false , bool $ gifts = false ): bool ;
56+ public function safeRefund (ProductInterface $ product , bool $ force = false , bool $ gifts = false ): bool ;
5757
5858 /**
5959 * @throws BalanceIsEmpty
@@ -65,7 +65,7 @@ public function safeRefund(Product $product, bool $force = false, bool $gifts =
6565 * @throws ModelNotFoundException
6666 * @throws ExceptionInterface
6767 */
68- public function refund (Product $ product , bool $ force = false , bool $ gifts = false ): bool ;
68+ public function refund (ProductInterface $ product , bool $ force = false , bool $ gifts = false ): bool ;
6969
7070 /**
7171 * @throws LockProviderNotFoundException
@@ -75,9 +75,9 @@ public function refund(Product $product, bool $force = false, bool $gifts = fals
7575 * @throws ModelNotFoundException
7676 * @throws ExceptionInterface
7777 */
78- public function forceRefund (Product $ product , bool $ gifts = false ): bool ;
78+ public function forceRefund (ProductInterface $ product , bool $ gifts = false ): bool ;
7979
80- public function safeRefundGift (Product $ product , bool $ force = false ): bool ;
80+ public function safeRefundGift (ProductInterface $ product , bool $ force = false ): bool ;
8181
8282 /**
8383 * @throws BalanceIsEmpty
@@ -89,7 +89,7 @@ public function safeRefundGift(Product $product, bool $force = false): bool;
8989 * @throws ModelNotFoundException
9090 * @throws ExceptionInterface
9191 */
92- public function refundGift (Product $ product , bool $ force = false ): bool ;
92+ public function refundGift (ProductInterface $ product , bool $ force = false ): bool ;
9393
9494 /**
9595 * @throws LockProviderNotFoundException
@@ -99,7 +99,7 @@ public function refundGift(Product $product, bool $force = false): bool;
9999 * @throws ModelNotFoundException
100100 * @throws ExceptionInterface
101101 */
102- public function forceRefundGift (Product $ product ): bool ;
102+ public function forceRefundGift (ProductInterface $ product ): bool ;
103103
104104 /**
105105 * @throws ProductEnded
@@ -199,5 +199,5 @@ public function forceRefundGiftCart(CartInterface $cart): bool;
199199 *
200200 * @deprecated The method is slow and will be removed in the future
201201 */
202- public function paid (Product $ product , bool $ gifts = false ): ?Transfer ;
202+ public function paid (ProductInterface $ product , bool $ gifts = false ): ?Transfer ;
203203}
0 commit comments