Subversion Repositories SmartDukaan

Rev

Rev 37409 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.service.whatsapp;

/**
 * The business event behind a WhatsApp send, named by the caller so each provider can decide how to
 * render it.
 *
 * <p>Gupshup and cpass ignore this — they send free-form text either way. BotPenguin uses it to pick a
 * Meta-approved template, because a template-first gateway cannot send the raw string the legacy
 * providers accept. Without this argument the provider would have no way to tell an invoice from a
 * payment link, and every call site would have to change when the provider switched.</p>
 */
public enum WhatsappFlow {
    INVOICE,
    PAYMENT_LINK,
    ADLD,
    GENERIC
}