AI store generator for ecommerce, Malaysia first. Laravel 13 + React + TypeScript.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

ShippingProvider.php 440B

1234567891011121314151617
  1. <?php
  2. namespace App\Commerce\Shipping;
  3. use App\Models\Store;
  4. /**
  5. * Works out the shipping fee for an order.
  6. * Flat rates are the first provider; EasyParcel live rates can be added behind the same interface later.
  7. */
  8. interface ShippingProvider
  9. {
  10. /**
  11. * The shipping fee in sen for an order of this subtotal (in sen) to this Malaysian state.
  12. */
  13. public function quote(Store $store, int $subtotal, string $state): int;
  14. }