| 1234567891011121314151617 |
- <?php
-
- namespace App\Commerce\Shipping;
-
- use App\Models\Store;
-
- /**
- * Works out the shipping fee for an order.
- * Flat rates are the first provider; EasyParcel live rates can be added behind the same interface later.
- */
- interface ShippingProvider
- {
- /**
- * The shipping fee in sen for an order of this subtotal (in sen) to this Malaysian state.
- */
- public function quote(Store $store, int $subtotal, string $state): int;
- }
|