generated from baraja-core/template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
00338b7
commit f6b0d54
Showing
3 changed files
with
42 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Baraja\EcommerceStandard\Service; | ||
|
||
|
||
interface CartRuntimeContextInterface | ||
{ | ||
public function getFreeDeliveryResolver(): FreeDeliveryResolverInterface; | ||
|
||
public function getFreeDeliveryLimit(): int; | ||
|
||
public function setFreeDeliveryLimit(int $freeDeliveryLimit): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Baraja\EcommerceStandard\Service; | ||
|
||
|
||
use Baraja\EcommerceStandard\DTO\CartInterface; | ||
use Baraja\EcommerceStandard\DTO\CustomerInterface; | ||
use Baraja\EcommerceStandard\DTO\PriceInterface; | ||
|
||
interface FreeDeliveryResolverInterface | ||
{ | ||
public function isFreeDelivery(CartInterface $cart, ?CustomerInterface $customer = null): bool; | ||
|
||
public function getMinimalPrice(?CartInterface $cart = null, ?CustomerInterface $customer = null): PriceInterface; | ||
|
||
public function getDefaultMinimalPrice(): PriceInterface; | ||
} |