| 3206 |
mandeep.dh |
1 |
/**
|
|
|
2 |
*
|
|
|
3 |
*/
|
|
|
4 |
package in.shop2020.util;
|
|
|
5 |
|
| 3269 |
mandeep.dh |
6 |
import in.shop2020.model.v1.order.OrderStatus;
|
|
|
7 |
|
|
|
8 |
import java.util.Arrays;
|
| 4020 |
mandeep.dh |
9 |
import java.util.Collections;
|
| 3269 |
mandeep.dh |
10 |
import java.util.List;
|
|
|
11 |
|
| 3206 |
mandeep.dh |
12 |
/**
|
|
|
13 |
* @author mandeep
|
|
|
14 |
*
|
|
|
15 |
* Class containing constants used across CRM
|
|
|
16 |
*/
|
|
|
17 |
public class CRMConstants {
|
| 4241 |
anupam.sin |
18 |
public static final String ATTACHMENTS_ARCHIVE_DIR = "/var/crm/archive/";
|
| 3206 |
mandeep.dh |
19 |
public static final String CRM_EMAIL_SENDOR = "help@saholic.com";
|
|
|
20 |
public static final String CRM_EMAIL_TYPE = "CRMInfo";
|
|
|
21 |
public static final String CRM_SUBJECT_PREFIX_FOR_TICKET_ID = "Saholic#";
|
| 3339 |
mandeep.dh |
22 |
public static final long ADMIN_AGENT_ID = 1;
|
| 4605 |
anupam.sin |
23 |
public static final int DESCRIPTION_MAX_WIDTH = 8000;
|
| 3339 |
mandeep.dh |
24 |
|
| 3269 |
mandeep.dh |
25 |
public static final List<OrderStatus> failedStatusList = Arrays.asList(new OrderStatus[] {
|
| 4484 |
rajveer |
26 |
OrderStatus.RTO_RESHIPPED,
|
| 3269 |
mandeep.dh |
27 |
OrderStatus.PAYMENT_FAILED,
|
| 4484 |
rajveer |
28 |
OrderStatus.RTO_REFUNDED,
|
| 3269 |
mandeep.dh |
29 |
OrderStatus.DOA_INVALID_REFUNDED,
|
|
|
30 |
OrderStatus.DOA_INVALID_RESHIPPED,
|
|
|
31 |
OrderStatus.DOA_VALID_REFUNDED,
|
| 4452 |
rajveer |
32 |
OrderStatus.DOA_VALID_RESHIPPED,
|
| 3269 |
mandeep.dh |
33 |
OrderStatus.REFUNDED,
|
|
|
34 |
OrderStatus.REJECTED,
|
|
|
35 |
OrderStatus.FAILED});
|
| 4020 |
mandeep.dh |
36 |
|
|
|
37 |
public static enum EscalationMatrix {
|
| 4215 |
mandeep.dh |
38 |
SHIPPING_AND_DELIVERY("Product shipping and delivery related issues", Arrays.asList(17, 18)),
|
|
|
39 |
RETURN_AND_REFUND("Product return, order refund, Payment status related issues", Collections.singletonList(17)),
|
|
|
40 |
CONTENT("Any questions or errors on the content about the product on our site", Arrays.asList(17, 10)),
|
|
|
41 |
PRODUCT_AND_PRICE("Product availability and its price related enquiries", Arrays.asList(17, 13)),
|
|
|
42 |
TECHNICAL("Any technical errors on the site (or site not working properly)", Arrays.asList(17, 11)),
|
|
|
43 |
ORDER_CANCELLATION("Cancelling an order", Collections.singletonList(17)),
|
|
|
44 |
BULK_DEAL("Any bulk deals related enquiries", Arrays.asList(17, 13)),
|
| 4216 |
mandeep.dh |
45 |
PROMOTION_MARKETING_PARTNERSHIP("Any promotion, marketing or partnership proposals' related queries", Arrays.asList(17, 14)),
|
| 4215 |
mandeep.dh |
46 |
COD_VERIFICATION("Any COD verification related tickets", Arrays.asList(17, 12)),
|
|
|
47 |
OTHER("Any other issues", Arrays.asList(15, 17));
|
| 4020 |
mandeep.dh |
48 |
|
|
|
49 |
private String description;
|
|
|
50 |
private List<Integer> agentIds;
|
|
|
51 |
|
|
|
52 |
EscalationMatrix(String description, List<Integer> agentIds) {
|
|
|
53 |
this.description = description;
|
|
|
54 |
this.agentIds = agentIds;
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
public String getDescription() {
|
|
|
58 |
return description;
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
public List<Integer> getAgentIds() {
|
|
|
62 |
return agentIds;
|
|
|
63 |
}
|
|
|
64 |
};
|
| 4241 |
anupam.sin |
65 |
|
|
|
66 |
public static enum CODCancelMatrix {
|
|
|
67 |
INVALID_CONTACT_DETAILS("Contact details provided are false or unreachable"),
|
| 4250 |
anupam.sin |
68 |
CUSTOMER_NOT_RESPONDING("Customer is not responding to mails and calls"),
|
| 4241 |
anupam.sin |
69 |
LOWER_PRICE_AVAILABLE_ELSEWHERE("Customer getting better price elsewhere"),
|
|
|
70 |
CUSTOMER_TESTING_WEBSITE("Customer is testing the site"),
|
|
|
71 |
DUPLICATE_BOOKING("Customer booked an order twice by mistake"),
|
|
|
72 |
DEALER_ORDER("Order was place by a dealer"),
|
|
|
73 |
OUT_OF_STOCK("Ordered item is out of stock"),
|
| 4681 |
amar.kumar |
74 |
CUSTOMER_WANTS_EARLY_DELIVERY("Customer wants order to be delivered before promised and expected date"),
|
|
|
75 |
NOT_INTERESTED_THIS_TIME("Customer decided against buying the product"),
|
|
|
76 |
WANT_SOME_OTHER_PRODUCT("Customer wants to buy different product"),
|
|
|
77 |
PLACED_ANOTHER_ORDER("Customer has placed another order buying different product"),
|
|
|
78 |
USER_WANTS_DELAYED_DELIVERY("Customer wants order to be delivered after promised and expected date"),
|
|
|
79 |
COLOR_OUT_OF_STOCK("Order Item(s) not present in the requested color"),
|
|
|
80 |
CUSTOMER_WANTS_OPEN_DELIVERY("Customer wants to pay money after seeing the product "),
|
|
|
81 |
OTHER("Order cancelled because of some miscellaneous reason");
|
| 4241 |
anupam.sin |
82 |
|
|
|
83 |
private String description;
|
|
|
84 |
|
|
|
85 |
CODCancelMatrix(String description) {
|
|
|
86 |
this.description = description;
|
|
|
87 |
}
|
|
|
88 |
|
|
|
89 |
public String getDescription() {
|
|
|
90 |
return description;
|
|
|
91 |
}
|
|
|
92 |
};
|
| 3206 |
mandeep.dh |
93 |
}
|