Interface CurrentOrderPaymentRequestService
- All Known Implementing Classes:
DefaultCurrentOrderPaymentRequestService
public interface CurrentOrderPaymentRequestService
Simple interface for returning a
PaymentRequestDTO
based on the current order in the system (like something on
threadlocal).- Author:
- Phillip Verheyden (phillipuniverse)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addOrderAttributeToCurrentOrder
(String orderAttributeKey, String orderAttributeValue) adds a concept of an "order attribute" to the current order in the systemvoid
addOrderAttributeToOrder
(Long orderId, String orderAttributeKey, String orderAttributeValue) adds a concept of an "order attribute" to an order in the system based on ID.Returns aPaymentRequestDTO
based on all the information from the current order in the system, like one on threadlocalretrieveOrderAttributeFromCurrentOrder
(String orderAttributeKey) retrieve an "order attribute" value on the current order in the systemretrieveOrderAttributeFromOrder
(Long orderId, String orderAttributeKey) retrieve an "order attribute" value based on the order id in the system
-
Method Details
-
getPaymentRequestFromCurrentOrder
PaymentRequestDTO getPaymentRequestFromCurrentOrder()Returns aPaymentRequestDTO
based on all the information from the current order in the system, like one on threadlocal -
addOrderAttributeToCurrentOrder
void addOrderAttributeToCurrentOrder(String orderAttributeKey, String orderAttributeValue) throws PaymentException adds a concept of an "order attribute" to the current order in the system- Parameters:
orderAttributeKey
-orderAttributeValue
-- Throws:
PaymentException
-
addOrderAttributeToOrder
void addOrderAttributeToOrder(Long orderId, String orderAttributeKey, String orderAttributeValue) throws PaymentException adds a concept of an "order attribute" to an order in the system based on ID.- Parameters:
orderAttributeKey
-orderAttributeValue
-- Throws:
PaymentException
-
retrieveOrderAttributeFromCurrentOrder
retrieve an "order attribute" value on the current order in the system- Parameters:
orderAttributeKey
-- Returns:
-
retrieveOrderAttributeFromOrder
retrieve an "order attribute" value based on the order id in the system- Parameters:
orderId
-orderAttributeKey
-- Returns:
-