Skip to content

Instantly share code, notes, and snippets.

@GabeAtWork
Created January 17, 2018 12:13
Show Gist options
  • Save GabeAtWork/b363bf38cb5c5f02e52ab92479706225 to your computer and use it in GitHub Desktop.
Save GabeAtWork/b363bf38cb5c5f02e52ab92479706225 to your computer and use it in GitHub Desktop.
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