Subversion Repositories SmartDukaan

Rev

Rev 3390 | Rev 4027 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
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 {
18
    public static final String CRM_EMAIL_SENDOR = "help@saholic.com";
19
    public static final String CRM_EMAIL_TYPE   = "CRMInfo";
20
    public static final String CRM_SUBJECT_PREFIX_FOR_TICKET_ID = "Saholic#";
3339 mandeep.dh 21
    public static final long   ADMIN_AGENT_ID   = 1;
22
 
3269 mandeep.dh 23
    public static final List<OrderStatus> failedStatusList = Arrays.asList(new OrderStatus[] {
24
            OrderStatus.SALES_RET_RESHIPPED,
25
            OrderStatus.PAYMENT_FAILED,
26
            OrderStatus.SALES_RET_REFUNDED,
27
            OrderStatus.DOA_INVALID_REFUNDED,
28
            OrderStatus.DOA_INVALID_RESHIPPED,
29
            OrderStatus.DOA_VALID_REFUNDED,
30
            OrderStatus.DOA_RESHIPPED,
31
            OrderStatus.REFUNDED,
32
            OrderStatus.REJECTED,
33
            OrderStatus.FAILED});
4020 mandeep.dh 34
 
35
    public static enum EscalationMatrix {
36
        ORDER_AND_PAYMENT_STATUS("Shipping, delivery, return, refund, payment status etc. issues", Collections.singletonList(2)),
37
        CONTENT("Any questions or errors on the content about the product on our site", Collections.singletonList(10)),
38
        PRICE_AND_BULK_DEAL("Any product, price, bulk deals etc enquiries", Collections.singletonList(13)),
39
        TECHNICAL("Any technical errors on the site (or site not working properly)", Collections.singletonList(11)),
40
        COD_VERIFICATION("Any COD verification related tickets", Collections.singletonList(12)),
41
        PROMOTION_AND_MARKETING("Any promotion related queries, or marketing partnership proposals", Collections.singletonList(14)),
42
        OTHER("Any other issues", Arrays.asList(2, 15));
43
 
44
        private String description;
45
        private List<Integer> agentIds;
46
 
47
        EscalationMatrix(String description, List<Integer> agentIds) {
48
            this.description = description;
49
            this.agentIds    = agentIds;
50
        }
51
 
52
        public String getDescription() {
53
            return description;
54
        }
55
 
56
        public List<Integer> getAgentIds() {
57
            return agentIds;
58
        }
59
    };
3206 mandeep.dh 60
}