You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return"Let me help you build your perfect pizza! What size would you like? We have Small, Medium, Large and Extra Large. Then I can help you choose your crust type and toppings.";
265
+
return"Let me help you build your perfect pizza! What size would you like?";
276
266
}
277
267
278
268
if(!customer.name){
@@ -284,29 +274,22 @@ export class PizzaOrderManager implements OrderManager {
284
274
}
285
275
286
276
if(!customer.address){
287
-
return"Where would you like your pizza delivered? Please provide your complete delivery address.";
277
+
return"Where would you like your pizza delivered?";
288
278
}
289
279
290
280
if(!customer.email){
291
281
return"What email address should we send your order confirmation to?";
return"Great! To process your order, I'll need your credit card information. Could you please provide your card number?";
284
+
if(!customer.paymentMethod){
285
+
return"To complete your order, I'll need your credit card information. Could you please provide your card number, expiration date (MM/YY), CVV, and billing zip code?";
296
286
}
297
287
298
-
if(order.paymentStatus===PaymentStatus.INVALID){
299
-
return"I apologize, but there seems to be an issue with that payment method. Could you please provide a different credit card?";
288
+
if(!order.progress.isConfirmed){
289
+
return"Great! I have all your information. Would you like me to review everything before placing your order?";
300
290
}
301
291
302
-
if(
303
-
!order.progress.isConfirmed&&
304
-
order.paymentStatus===PaymentStatus.VALID
305
-
){
306
-
return"Perfect! I have all your order details. Would you like me to review everything with you before finalizing your order?";
307
-
}
308
-
309
-
return"Great news! Your order is confirmed. Let me get your confirmation number and estimated delivery time for you.";
292
+
return"Your order is confirmed! Let me get your confirmation number and estimated delivery time.";
310
293
}
311
294
312
295
// Get topping category and price
@@ -628,13 +611,17 @@ export class PizzaOrderManager implements OrderManager {
0 commit comments