diff --git a/src/Shipment/Contracts/ShippingMethod.php b/src/Shipment/Contracts/ShippingMethod.php index 9bc651b0..4115e795 100644 --- a/src/Shipment/Contracts/ShippingMethod.php +++ b/src/Shipment/Contracts/ShippingMethod.php @@ -14,6 +14,8 @@ namespace Vanilo\Shipment\Contracts; +use Illuminate\Support\Collection; +use Konekt\Address\Contracts\Zone; use Vanilo\Contracts\Configurable; use Vanilo\Shipment\Models\ShippingFee; @@ -24,4 +26,12 @@ public function getCarrier(): ?Carrier; public function getCalculator(): ShippingFeeCalculator; public function estimate(?object $subject = null): ShippingFee; + + public function isZoneRestricted(): bool; + + public function isNotZoneRestricted(): bool; + + public static function availableOnesForZone(Zone|int $zone): Collection; + + public static function availableOnesForZones(Zone|int ...$zones): Collection; }