Skip to content

Commit

Permalink
Added 4 existing methods to the ShippingMethod interface
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Apr 24, 2024
1 parent a3bb89c commit 767aec0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Shipment/Contracts/ShippingMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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;
}

0 comments on commit 767aec0

Please sign in to comment.