Interface LogisticsProviderService
-
- All Known Implementing Classes:
LogisticsProviderServiceImpl
public interface LogisticsProviderService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.math.BigDecimal
calculateDeliveryPrice(Order order)
Maps an Order object to an OrderDTO object.boolean
isActive()
Checks if the logistics provider is active.boolean
ship(Order order)
-
-
-
Method Detail
-
isActive
boolean isActive()
Checks if the logistics provider is active.- Returns:
- true if the logistics provider is active, false otherwise.
-
calculateDeliveryPrice
java.math.BigDecimal calculateDeliveryPrice(Order order)
Maps an Order object to an OrderDTO object.- Parameters:
order
- the Order object to be mapped- Returns:
- price amount for delivery service
-
ship
boolean ship(Order order)
-
-