| 37651 |
vikas |
1 |
package com.spice.profitmandi.dao.enumuration.dtr;
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* What happened to one row of a Meta lead-ads import.
|
|
|
5 |
*
|
|
|
6 |
* <p>Every row lands on exactly one of these, and every row is recorded — a file of 60 must always
|
|
|
7 |
* account for 60. Silently dropping a row is the failure mode this enum exists to prevent: these
|
|
|
8 |
* are paid-for leads, and "it didn't import" needs a reason attached to it.
|
|
|
9 |
*/
|
|
|
10 |
public enum MetaLeadOutcome {
|
|
|
11 |
|
|
|
12 |
/** A new lead was created. */
|
|
|
13 |
CREATED,
|
|
|
14 |
|
|
|
15 |
/**
|
|
|
16 |
* The retailer is already a lead, so no second record was made. The existing lead gets a trail
|
|
|
17 |
* entry noting they responded to an ad again — that re-engagement is useful context for whoever
|
|
|
18 |
* works the lead, and is lost if the row is merely skipped.
|
|
|
19 |
*/
|
|
|
20 |
DUPLICATE,
|
|
|
21 |
|
|
|
22 |
/**
|
|
|
23 |
* The number is on the do-not-call register. No lead, deliberately: importing it would put a
|
|
|
24 |
* retailer who asked not to be contacted back in front of an agent with a working dialer.
|
|
|
25 |
*/
|
|
|
26 |
BLOCKED_DND,
|
|
|
27 |
|
|
|
28 |
/** The row could not be used — unusable phone, missing name, unparseable. {@code reason} says why. */
|
|
|
29 |
REJECTED;
|
|
|
30 |
|
|
|
31 |
/** Did this row put a lead into the system? */
|
|
|
32 |
public boolean createdLead() {
|
|
|
33 |
return this == CREATED;
|
|
|
34 |
}
|
|
|
35 |
}
|