@@ -54,7 +54,7 @@ public function payFreeCart(CartInterface $cart): array
5454            $ basketDto  = $ cart ->getBasketDto ();
5555            $ basketService  = app (BasketServiceInterface::class);
5656            $ availabilityAssembler  = app (AvailabilityDtoAssemblerInterface::class);
57-             app (EagerLoaderServiceInterface::class)->loadWalletsByBasket ($ basketDto );
57+             app (EagerLoaderServiceInterface::class)->loadWalletsByBasket ($ this ,  $ basketDto );
5858            if  (! $ basketService ->availability ($ availabilityAssembler ->create ($ this  , $ basketDto , false ))) {
5959                throw  new  ProductEnded (
6060                    app (TranslatorServiceInterface::class)->get ('wallet::errors.product_stock ' ),
@@ -112,7 +112,7 @@ public function payCart(CartInterface $cart, bool $force = false): array
112112            $ basketDto  = $ cart ->getBasketDto ();
113113            $ basketService  = app (BasketServiceInterface::class);
114114            $ availabilityAssembler  = app (AvailabilityDtoAssemblerInterface::class);
115-             app (EagerLoaderServiceInterface::class)->loadWalletsByBasket ($ basketDto );
115+             app (EagerLoaderServiceInterface::class)->loadWalletsByBasket ($ this ,  $ basketDto );
116116            if  (! $ basketService ->availability ($ availabilityAssembler ->create ($ this  , $ basketDto , $ force ))) {
117117                throw  new  ProductEnded (
118118                    app (TranslatorServiceInterface::class)->get ('wallet::errors.product_stock ' ),
@@ -190,7 +190,7 @@ public function refundCart(CartInterface $cart, bool $force = false, bool $gifts
190190    {
191191        return  app (AtomicServiceInterface::class)->block ($ this  , function  () use  ($ cart , $ force , $ gifts ) {
192192            $ basketDto  = $ cart ->getBasketDto ();
193-             app (EagerLoaderServiceInterface::class)->loadWalletsByBasket ($ basketDto );
193+             app (EagerLoaderServiceInterface::class)->loadWalletsByBasket ($ this ,  $ basketDto );
194194            $ transfers  = app (PurchaseServiceInterface::class)->already ($ this  , $ basketDto , $ gifts );
195195            if  (count ($ transfers ) !== $ basketDto ->total ()) {
196196                throw  new  ModelNotFoundException (
0 commit comments