Package de.hybris.platform.order
Interface DeliveryModeService
- All Known Subinterfaces:
ZoneDeliveryModeService
- All Known Implementing Classes:
DefaultDeliveryModeService,DefaultZoneDeliveryModeService
public interface DeliveryModeService
Service around the
DeliveryModeModel. Delivery mode is a summary data about a logistic company. You may find
more info about delivery modes here. The service
allows finding DeliveryModeModels by code. It also helps to find out delivery modes supported by payment
modes.- Spring Bean ID:
- deliveryModeService
-
Method Summary
Modifier and TypeMethodDescriptionGets allDeliveryModeModels.getDeliveryModeForCode(String code) Gets theDeliveryModeModelwith the specified code.getSupportedDeliveryModes(PaymentModeModel paymentMode) Gets allDeliveryModeModels which are supported for the givenPaymentModeModel.
-
Method Details
-
getDeliveryModeForCode
Gets theDeliveryModeModelwith the specified code.- Parameters:
code- the delivery mode code- Returns:
- the found
DeliveryModeModelwith the specified code - Throws:
UnknownIdentifierException- if no delivery mode was found for the given code.AmbiguousIdentifierException- if more than one delivery model was found for the given code.
-
getAllDeliveryModes
Collection<DeliveryModeModel> getAllDeliveryModes()Gets allDeliveryModeModels.- Returns:
- a
Collectionof allDeliveryModeModels
-
getSupportedDeliveryModes
Gets allDeliveryModeModels which are supported for the givenPaymentModeModel.- Parameters:
paymentMode- target paymentMode- Returns:
- a
Collectionof supportedDeliveryModeModels - Throws:
IllegalArgumentException- if paymentMode is null
-