Subversion Repositories SmartDukaan

Rev

Rev 5735 | Rev 6543 | 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 {
5546 anupam.sin 38
        SHIPPING_AND_DELIVERY("Product shipping and delivery related issues", Arrays.asList(17, 18, 19)),
4215 mandeep.dh 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)),
6304 amar.kumar 46
        COD_VERIFICATION("Any COD verification related tickets", Arrays.asList(17, 29)),
4215 mandeep.dh 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 {
4793 amar.kumar 67
    	INVALID_ADDRESS_PIN_CODE_PHONE("Address/PinCode/Phone number provided by customer"),
68
    	NOT_PICKING("Customer is not picking the call"),
69
    	NOT_REACHABLE_SWITCHED_OFF("Customer number is not reachable or switched off"),
4241 anupam.sin 70
        LOWER_PRICE_AVAILABLE_ELSEWHERE("Customer getting better price elsewhere"),
71
        CUSTOMER_TESTING_WEBSITE("Customer is testing the site"),
72
        DUPLICATE_BOOKING("Customer booked an order twice by mistake"),
73
        DEALER_ORDER("Order was place by a dealer"),
74
        OUT_OF_STOCK("Ordered item is out of stock"),
4681 amar.kumar 75
        CUSTOMER_WANTS_EARLY_DELIVERY("Customer wants order to be delivered before promised and expected date"),
76
        NOT_INTERESTED_THIS_TIME("Customer decided against buying the product"),
77
        WANT_SOME_OTHER_PRODUCT("Customer wants to buy different product"),
78
        PLACED_ANOTHER_ORDER("Customer has placed another order buying different product"),
79
        USER_WANTS_DELAYED_DELIVERY("Customer wants order to be delivered after promised and expected date"),
80
        COLOR_OUT_OF_STOCK("Order Item(s) not present in the requested color"),
4689 anupam.sin 81
        CUSTOMER_WANTS_OPEN_DELIVERY("Customer wants to pay money after seeing the product"),
4681 amar.kumar 82
        OTHER("Order cancelled because of some miscellaneous reason");
4241 anupam.sin 83
 
84
        private String description;
85
 
86
        CODCancelMatrix(String description) {
87
            this.description = description;
88
        }
89
 
90
        public String getDescription() {
91
            return description;
92
        }
93
    };
5203 amar.kumar 94
 
95
    public static enum ActivityCommonDescriptionMatrix{
96
    	BULK_INQUIRY("Customer wanted to know about bulk order"),
97
    	CALL_HUNGUP_DISCONNECTED("Call got disconnected or was hung up by customer"),
98
    	COD_VERIFICATION("Call to customer to verify COD"),
99
        COMPLAINT_OR_DELIVERY_ISSUE("Call for complaint or delivery issue from customer"),
100
        COURIER_PARTNER_DETAIL("Customer wanted to know about courier partner"),
101
        ORDER_CANCELLATION("Customer wanted to cancel order"),
102
        ORDER_STATUS("Customer wanted to know status of order"),
103
        PAYMENT_MODE_QUERY("Customer wantedinformation about payment mode"),
104
        PRODUCT_QUERY("Customer wanted to ask questions about product"),
105
        PROMOTION_CALL("Promotion call"),
106
        RETURN_OR_REFUND("Return or Refund"),
107
        TEST_CALL("test call"),
108
        VOICE_ISSUE_OR_TECHNICAL_ISSUE("voice issue or technical issue"),
109
        WRONG_CALL("wrong call");
110
 
111
        private String description;
112
 
113
        ActivityCommonDescriptionMatrix(String description) {
114
            this.description = description;
115
        }
116
 
117
        public String getDescription() {
118
            return description;
119
        }
120
 
121
    };
122
 
3206 mandeep.dh 123
}