Created
January 17, 2018 12:13
-
-
Save GabeAtWork/b363bf38cb5c5f02e52ab92479706225 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
function placeOrder(order) { | |
saveOrderToDatabase(order); | |
const invoiceFile = generateOrderInvoiceFile(order); | |
sendInvoiceEmail(order, invoiceFile); | |
} | |
function saveOrderToDatabase(order){ | |
// The implementation details of how to save an order to the database | |
} | |
function generateOrderInvoiceFile(order) { | |
// The implementation details of how to generate an invoice file from an order | |
} | |
function sendInvoiceEmail(order, invoiceFile) { | |
// The implementation details of how to send an invoice email | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment