@Service(value="blDefaultCurrentPaymentRequestService") public class DefaultCurrentOrderPaymentRequestService extends Object implements CurrentOrderPaymentRequestService
| Modifier and Type | Field and Description |
|---|---|
protected OrderService |
orderService |
protected OrderToPaymentRequestDTOService |
paymentRequestDTOService |
| Constructor and Description |
|---|
DefaultCurrentOrderPaymentRequestService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrderAttributeToCurrentOrder(String orderAttributeKey,
String orderAttributeValue) |
void |
addOrderAttributeToOrder(Long orderId,
String orderAttributeKey,
String orderAttributeValue) |
PaymentRequestDTO |
getPaymentRequestFromCurrentOrder() |
protected void |
logWarningIfCartMismatch(Long currentCartId,
Long orderId) |
String |
retrieveOrderAttributeFromCurrentOrder(String orderAttributeKey) |
String |
retrieveOrderAttributeFromOrder(Long orderId,
String orderAttributeKey) |
protected OrderToPaymentRequestDTOService paymentRequestDTOService
protected OrderService orderService
public DefaultCurrentOrderPaymentRequestService()
public PaymentRequestDTO getPaymentRequestFromCurrentOrder()
getPaymentRequestFromCurrentOrder in interface CurrentOrderPaymentRequestServicepublic void addOrderAttributeToCurrentOrder(String orderAttributeKey, String orderAttributeValue) throws PaymentException
addOrderAttributeToCurrentOrder in interface CurrentOrderPaymentRequestServicePaymentExceptionpublic void addOrderAttributeToOrder(Long orderId, String orderAttributeKey, String orderAttributeValue) throws PaymentException
addOrderAttributeToOrder in interface CurrentOrderPaymentRequestServicePaymentExceptionpublic String retrieveOrderAttributeFromCurrentOrder(String orderAttributeKey)
retrieveOrderAttributeFromCurrentOrder in interface CurrentOrderPaymentRequestServicepublic String retrieveOrderAttributeFromOrder(Long orderId, String orderAttributeKey)
retrieveOrderAttributeFromOrder in interface CurrentOrderPaymentRequestServiceCopyright © 2020. All rights reserved.