Subversion Repositories SmartDukaan

Rev

Rev 6667 | Rev 6960 | 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 {
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,
4682 rajveer 33
            OrderStatus.CANCELLED_DUE_TO_LOW_INVENTORY,
3269 mandeep.dh 34
            OrderStatus.REJECTED,
35
            OrderStatus.FAILED});
4020 mandeep.dh 36
 
37
    public static enum EscalationMatrix {
6647 anupam.sin 38
        SHIPPING_AND_DELIVERY("Product shipping and delivery related issues", Arrays.asList(34, 18, 19)),
39
        RETURN_AND_REFUND("Product return, order refund, Payment status related issues", Collections.singletonList(34)),
40
        CONTENT("Any questions or errors on the content about the product on our site", Arrays.asList(34, 10)),
41
        PRODUCT_AND_PRICE("Product availability and its price related enquiries", Arrays.asList(34, 13)),
6667 amar.kumar 42
        TECHNICAL("Any technical errors on the site (or site not working properly)", Arrays.asList(34, 35)),
6647 anupam.sin 43
        ORDER_CANCELLATION("Cancelling an order", Collections.singletonList(34)),
44
        BULK_DEAL("Any bulk deals related enquiries", Arrays.asList(34, 13)),
45
        PROMOTION_MARKETING_PARTNERSHIP("Any promotion, marketing or partnership proposals' related queries", Arrays.asList(34, 14)),
46
        COD_VERIFICATION("Any COD verification related tickets", Arrays.asList(34, 29)),
6677 amar.kumar 47
        ON_TIME_GUARANTEE("On Time Guarantee related enquiries",Arrays.asList(34, 18, 19)),
6667 amar.kumar 48
        OTHER("Any other issues", Arrays.asList(35, 34));
4020 mandeep.dh 49
 
50
        private String description;
51
        private List<Integer> agentIds;
52
 
53
        EscalationMatrix(String description, List<Integer> agentIds) {
54
            this.description = description;
55
            this.agentIds    = agentIds;
56
        }
57
 
58
        public String getDescription() {
59
            return description;
60
        }
61
 
62
        public List<Integer> getAgentIds() {
63
            return agentIds;
64
        }
65
    };
4241 anupam.sin 66
 
67
    public static enum CODCancelMatrix {
4793 amar.kumar 68
    	INVALID_ADDRESS_PIN_CODE_PHONE("Address/PinCode/Phone number provided by customer"),
69
    	NOT_PICKING("Customer is not picking the call"),
70
    	NOT_REACHABLE_SWITCHED_OFF("Customer number is not reachable or switched off"),
4241 anupam.sin 71
        LOWER_PRICE_AVAILABLE_ELSEWHERE("Customer getting better price elsewhere"),
72
        CUSTOMER_TESTING_WEBSITE("Customer is testing the site"),
73
        DUPLICATE_BOOKING("Customer booked an order twice by mistake"),
74
        DEALER_ORDER("Order was place by a dealer"),
75
        OUT_OF_STOCK("Ordered item is out of stock"),
4681 amar.kumar 76
        CUSTOMER_WANTS_EARLY_DELIVERY("Customer wants order to be delivered before promised and expected date"),
77
        NOT_INTERESTED_THIS_TIME("Customer decided against buying the product"),
78
        WANT_SOME_OTHER_PRODUCT("Customer wants to buy different product"),
79
        PLACED_ANOTHER_ORDER("Customer has placed another order buying different product"),
80
        USER_WANTS_DELAYED_DELIVERY("Customer wants order to be delivered after promised and expected date"),
81
        COLOR_OUT_OF_STOCK("Order Item(s) not present in the requested color"),
4689 anupam.sin 82
        CUSTOMER_WANTS_OPEN_DELIVERY("Customer wants to pay money after seeing the product"),
6543 anupam.sin 83
        CUSTOMER_DENIED_PLACING_ORDER("Customer denied placing any order on our site"),
4681 amar.kumar 84
        OTHER("Order cancelled because of some miscellaneous reason");
4241 anupam.sin 85
 
86
        private String description;
87
 
88
        CODCancelMatrix(String description) {
89
            this.description = description;
90
        }
91
 
92
        public String getDescription() {
93
            return description;
94
        }
95
    };
5203 amar.kumar 96
 
97
    public static enum ActivityCommonDescriptionMatrix{
98
    	BULK_INQUIRY("Customer wanted to know about bulk order"),
99
    	CALL_HUNGUP_DISCONNECTED("Call got disconnected or was hung up by customer"),
100
    	COD_VERIFICATION("Call to customer to verify COD"),
101
        COMPLAINT_OR_DELIVERY_ISSUE("Call for complaint or delivery issue from customer"),
102
        COURIER_PARTNER_DETAIL("Customer wanted to know about courier partner"),
103
        ORDER_CANCELLATION("Customer wanted to cancel order"),
104
        ORDER_STATUS("Customer wanted to know status of order"),
105
        PAYMENT_MODE_QUERY("Customer wantedinformation about payment mode"),
106
        PRODUCT_QUERY("Customer wanted to ask questions about product"),
107
        PROMOTION_CALL("Promotion call"),
108
        RETURN_OR_REFUND("Return or Refund"),
109
        TEST_CALL("test call"),
110
        VOICE_ISSUE_OR_TECHNICAL_ISSUE("voice issue or technical issue"),
111
        WRONG_CALL("wrong call");
112
 
113
        private String description;
114
 
115
        ActivityCommonDescriptionMatrix(String description) {
116
            this.description = description;
117
        }
118
 
119
        public String getDescription() {
120
            return description;
121
        }
122
 
123
    };
124
 
3206 mandeep.dh 125
}