Subversion Repositories SmartDukaan

Rev

Rev 37409 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
37388 vikas 1
package com.spice.profitmandi.service.whatsapp;
2
 
3
/**
4
 * The business event behind a WhatsApp send, named by the caller so each provider can decide how to
5
 * render it.
6
 *
7
 * <p>Gupshup and cpass ignore this — they send free-form text either way. BotPenguin uses it to pick a
8
 * Meta-approved template, because a template-first gateway cannot send the raw string the legacy
9
 * providers accept. Without this argument the provider would have no way to tell an invoice from a
10
 * payment link, and every call site would have to change when the provider switched.</p>
11
 */
12
public enum WhatsappFlow {
13
    INVOICE,
14
    PAYMENT_LINK,
15
    ADLD,
16
    GENERIC
17
}