Skip to content

Instantly share code, notes, and snippets.

@Burgestrand
Created October 9, 2020 15:22
Show Gist options
  • Save Burgestrand/f58fea89128728c00c39764445c5a9f3 to your computer and use it in GitHub Desktop.
Save Burgestrand/f58fea89128728c00c39764445c5a9f3 to your computer and use it in GitHub Desktop.
# 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
# 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
# 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