Subversion Repositories SmartDukaan

Rev

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