Created
April 21, 2019 17:39
-
-
Save iskenxan/fbe955e34a783bb2a5fe0b77f6b99112 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class ReceiptManager { | |
_generateReceiptHtml(orderId, userEmail) { | |
// generates and returns HTML of the receipt | |
} | |
sendReceipt(orderId, userEmail, sendStrategy) { | |
const receiptHTML = this._generateReceiptHtml(orderId, userEmail); | |
sendStrategy.send(receiptHTML, userEmail); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment