Created
October 9, 2020 15:22
-
-
Save Burgestrand/f58fea89128728c00c39764445c5a9f3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Decides how to further process an external notification once we become aware of it. | |
# | |
# Translates a notification to a type, decides what to do, and dispatches further down the chain. | |
# | |
# @see ExternalNotification | |
# @see OrderProcessor | |
class ExternalNotificationProcessor | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Decides how to further process an order once we become aware of it. | |
# | |
# Translates order details into our domain and dispatches to a more specialised processor. | |
# | |
# @see OrderInitializer | |
class NewOrderProcessor | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Deals with external order notifications and delegates processing to the appropriate dispatcher. | |
# | |
# @see NewOrderProcessor | |
class OrderProcessor | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment