AbstractAbstractcalculateCalculates the shipping cost based on the order total.
The total price of the order.
The shipping cost and total including shipping.
AbstractcreateCreates a fake delivery for the given user and sends a track & trace email.
The ID of the user.
The total price of the order.
A DeliveryResult with track & trace code and cost details.
AbstractgetRetrieves all deliveries for a given user, ordered by creation date descending.
The ID of the user.
An array of UserDelivery objects.
AbstractsendSends a fake track & trace email to the given email address.
The email address of the customer.
The track & trace code.
The estimated delivery date.
Interface for the ShippingService.
File
apps/api/src/interfaces/IShippingService.ts