Interface OneOrderMessageProcessingStrategy
- All Known Implementing Classes:
DefaultOneOrderAccountingProcessingStrategy,DefaultOneOrderDeliveryProviderProcessingStrategy
public interface OneOrderMessageProcessingStrategy
The One Order Processing Strategy interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidqueueOneOrderMessage(OneOrderMessageModel oneOrderMessage) This method stores a one order message in a structure, depending on the type of the message.voidsendOneOrderMessage(OneOrderMessageModel oneOrderMessage) This method sends a one order message either to a Delivery Provider system or to an Accounting system, depending on the type of the message.
-
Method Details
-
queueOneOrderMessage
This method stores a one order message in a structure, depending on the type of the message.- Parameters:
oneOrderMessage- the one order message to queue
-
sendOneOrderMessage
This method sends a one order message either to a Delivery Provider system or to an Accounting system, depending on the type of the message. More specifically, if the message is a SDN, it will be sent to a Delivery provider, if the message is an OSIN/SSCN it will be sent to an accounting system.- Parameters:
oneOrderMessage- the oneOrderMessage- Throws:
OneOrderException
-