| 37388 |
vikas |
1 |
package com.spice.profitmandi.service.whatsapp;
|
|
|
2 |
|
|
|
3 |
/**
|
| 37409 |
vikas |
4 |
* The business event behind a WhatsApp send.
|
| 37388 |
vikas |
5 |
*
|
| 37409 |
vikas |
6 |
* <p>Every send goes out as a Meta-approved template, and each flow names exactly one template via
|
|
|
7 |
* {@code BotPenguinWhatsappService.FLOW_TEMPLATES}. The indirection is kept rather than having call
|
|
|
8 |
* sites name a template directly so that swapping the template behind a business event — a new
|
|
|
9 |
* approved version, a language variant — is a one-line change in the map instead of an edit at every
|
|
|
10 |
* call site.</p>
|
|
|
11 |
*
|
|
|
12 |
* <p>{@link #GENERIC} is the ad-hoc single-variable fallback. Nothing routine should use it: a message
|
|
|
13 |
* worth sending regularly is worth its own template, because a template's variable layout is what
|
|
|
14 |
* makes the parameter count checkable before dispatch.</p>
|
| 37388 |
vikas |
15 |
*/
|
|
|
16 |
public enum WhatsappFlow {
|
|
|
17 |
INVOICE,
|
|
|
18 |
PAYMENT_LINK,
|
|
|
19 |
ADLD,
|
| 37409 |
vikas |
20 |
OFFER,
|
|
|
21 |
BIDDING_LIVE,
|
|
|
22 |
LOAN_ALERT,
|
|
|
23 |
ORDER_DELIVERED,
|
| 37794 |
ranu |
24 |
/**
|
|
|
25 |
* Digest of newly-added / revised offers and schemes, published by ops from
|
|
|
26 |
* the finance dashboards. Sent to every HO (internal) user so RBMs and sales
|
|
|
27 |
* are alerted at once. See NotificationService#sendOfferRadar.
|
|
|
28 |
*/
|
|
|
29 |
OFFER_RADAR,
|
| 37388 |
vikas |
30 |
GENERIC
|
|
|
31 |
}
|