-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCodeDump
More file actions
28 lines (28 loc) · 1.42 KB
/
Copy pathCodeDump
File metadata and controls
28 lines (28 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// User user = purchase.getUser();
// List<Product> products = purchase.getProducts();
// ArrayList<String> finalProducts = new ArrayList<>();
// products.forEach(product -> {
// finalProducts.add(product.getName() + "\n");
// finalProducts.add((product.getPrice()) + "€\n");
// });
// senderService.sendSimpleEmail(user.getEmail(),
// "TWM Electronics receipt no.:" + purchase.getTime(),
//// "Hi " + user.getUsername() +"." +
//// "\n" +
//// "\n" +
//// "Thank you for your purchase!" +
//// "\nHere is your purchase summary:" +
//// "\n"
//// + finalProducts
//// .toString()
//// .replace("[","")
//// .replace("]", "")
//// .replace(",","") +
//// "\n" +
//// "Total price: " + purchase.getFinalPrice()+ "€" +
//// "\nTime of purchase: " + purchase.getTime() + "" +
//// "\n We send your purchase to: " + user.getAddress() + ", in: " + user.getCity() + "." +
//// "\nTWM Electronics thank you for your purchase and hope that you will come again!"
//
// //TODO Email/ThymeLeaf System
// );