Class DefaultNDCOrderService
java.lang.Object
de.hybris.platform.ndc182shoppingservices.services.impl.DefaultNDCOrderService
- All Implemented Interfaces:
NDCOrderService
The ndc 18.2 implementation of
NDCOrderService interface.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetOriginalOrderCode(AbstractOrderModel orderModel) Gets original order code.protected TravelCartServiceGets travel cart service.booleanisAmendedOrderEntry(AbstractOrderEntryModel orderEntry) Checks if the order entry has amend status equal to NEW or CHANGED.isAmendmentOrder(AbstractOrderModel orderModel) Is amendment order boolean.voidsetTravelCartService(TravelCartService travelCartService) Sets travel cart service.voidvalidatePaymentAgainstOrderEntries(CartModel cartModel, BigDecimal paymentAmount) Validates the amount of the payment info against the total amount of the order entries associated to it.voidvalidatePaymentInfoAgainstOrderEntries(AbstractOrderModel order, List<AbstractOrderEntryModel> orderEntries, BigDecimal paymentInfoAmount) Validates the amount of the payment info against the total amount of the order entries associated to it.
-
Constructor Details
-
DefaultNDCOrderService
public DefaultNDCOrderService()
-
-
Method Details
-
validatePaymentInfoAgainstOrderEntries
public void validatePaymentInfoAgainstOrderEntries(AbstractOrderModel order, List<AbstractOrderEntryModel> orderEntries, BigDecimal paymentInfoAmount) throws NDCException Validates the amount of the payment info against the total amount of the order entries associated to it.- Specified by:
validatePaymentInfoAgainstOrderEntriesin interfaceNDCOrderService- Parameters:
order- the orderorderEntries- the order entriespaymentInfoAmount- the payment info amount- Throws:
NDCException- the ndc exception
-
validatePaymentAgainstOrderEntries
public void validatePaymentAgainstOrderEntries(CartModel cartModel, BigDecimal paymentAmount) throws NDCException Description copied from interface:NDCOrderServiceValidates the amount of the payment info against the total amount of the order entries associated to it.- Specified by:
validatePaymentAgainstOrderEntriesin interfaceNDCOrderService- Parameters:
cartModel- the cart modelpaymentAmount- the payment amount- Throws:
NDCException- the ndc exception
-
isAmendedOrderEntry
Checks if the order entry has amend status equal to NEW or CHANGED.- Specified by:
isAmendedOrderEntryin interfaceNDCOrderService- Parameters:
orderEntry- the order entry- Returns:
- the boolean
-
isAmendmentOrder
Description copied from interface:NDCOrderServiceIs amendment order boolean.- Specified by:
isAmendmentOrderin interfaceNDCOrderService- Parameters:
orderModel- the order model- Returns:
- the boolean
-
getOriginalOrderCode
Description copied from interface:NDCOrderServiceGets original order code.- Specified by:
getOriginalOrderCodein interfaceNDCOrderService- Parameters:
orderModel- the order model- Returns:
- the original order code
-
getTravelCartService
Gets travel cart service.- Returns:
- the travel cart service
-
setTravelCartService
Sets travel cart service.- Parameters:
travelCartService- the travel cart service
-