@Service(value="blDefaultCurrentPaymentRequestService") public class DefaultCurrentOrderPaymentRequestService extends Object implements org.broadleafcommerce.common.payment.service.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) |
org.broadleafcommerce.common.payment.dto.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 org.broadleafcommerce.common.payment.dto.PaymentRequestDTO getPaymentRequestFromCurrentOrder()
getPaymentRequestFromCurrentOrder in interface org.broadleafcommerce.common.payment.service.CurrentOrderPaymentRequestServicepublic void addOrderAttributeToCurrentOrder(String orderAttributeKey, String orderAttributeValue) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
addOrderAttributeToCurrentOrder in interface org.broadleafcommerce.common.payment.service.CurrentOrderPaymentRequestServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic void addOrderAttributeToOrder(Long orderId, String orderAttributeKey, String orderAttributeValue) throws org.broadleafcommerce.common.vendor.service.exception.PaymentException
addOrderAttributeToOrder in interface org.broadleafcommerce.common.payment.service.CurrentOrderPaymentRequestServiceorg.broadleafcommerce.common.vendor.service.exception.PaymentExceptionpublic String retrieveOrderAttributeFromCurrentOrder(String orderAttributeKey)
retrieveOrderAttributeFromCurrentOrder in interface org.broadleafcommerce.common.payment.service.CurrentOrderPaymentRequestServiceCopyright © 2022. All rights reserved.