Class DefaultCurrentOrderPaymentRequestService
java.lang.Object
org.broadleafcommerce.core.web.payment.service.DefaultCurrentOrderPaymentRequestService
- All Implemented Interfaces:
CurrentOrderPaymentRequestService
@Service("blDefaultCurrentPaymentRequestService")
public class DefaultCurrentOrderPaymentRequestService
extends Object
implements CurrentOrderPaymentRequestService
- Author:
- Phillip Verheyden (phillipuniverse)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected OrderServiceprotected OrderToPaymentRequestDTOService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrderAttributeToCurrentOrder(String orderAttributeKey, String orderAttributeValue) voidaddOrderAttributeToOrder(Long orderId, String orderAttributeKey, String orderAttributeValue) protected voidlogWarningIfCartMismatch(Long currentCartId, Long orderId) retrieveOrderAttributeFromCurrentOrder(String orderAttributeKey) retrieveOrderAttributeFromOrder(Long orderId, String orderAttributeKey)
-
Field Details
-
paymentRequestDTOService
-
orderService
-
-
Constructor Details
-
DefaultCurrentOrderPaymentRequestService
public DefaultCurrentOrderPaymentRequestService()
-
-
Method Details
-
getPaymentRequestFromCurrentOrder
- Specified by:
getPaymentRequestFromCurrentOrderin interfaceCurrentOrderPaymentRequestService
-
addOrderAttributeToCurrentOrder
public void addOrderAttributeToCurrentOrder(String orderAttributeKey, String orderAttributeValue) throws PaymentException - Specified by:
addOrderAttributeToCurrentOrderin interfaceCurrentOrderPaymentRequestService- Throws:
PaymentException
-
addOrderAttributeToOrder
public void addOrderAttributeToOrder(Long orderId, String orderAttributeKey, String orderAttributeValue) throws PaymentException - Specified by:
addOrderAttributeToOrderin interfaceCurrentOrderPaymentRequestService- Throws:
PaymentException
-
logWarningIfCartMismatch
-
retrieveOrderAttributeFromCurrentOrder
- Specified by:
retrieveOrderAttributeFromCurrentOrderin interfaceCurrentOrderPaymentRequestService
-
retrieveOrderAttributeFromOrder
- Specified by:
retrieveOrderAttributeFromOrderin interfaceCurrentOrderPaymentRequestService
-