Subversion Repositories SmartDukaan

Rev

Rev 3206 | Rev 3271 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3206 Rev 3269
Line 23... Line 23...
23
    PRODUCT_QUESTION = 7,
23
    PRODUCT_QUESTION = 7,
24
    OTHER = 8
24
    OTHER = 8
25
}
25
}
26
 
26
 
27
enum ActivityType {
27
enum ActivityType {
28
    EMAIL_CUSTOMER = 1,
28
    SEND_EMAIL_TO_CUSTOMER = 1,
-
 
29
    RECIEVED_EMAIL_FROM_CUSTOMER = 2,
29
    CALL_CUSTOMER = 2,
30
    CALLED_CUSTOMER = 3,
-
 
31
    RECIEVED_CALL_FROM_CUSTOMER = 4,
30
    OTHER = 3
32
    OTHER = 5
31
}
33
}
32
 
34
 
33
struct Ticket {
35
struct Ticket {
34
    1:i64 id,
36
    1:i64 id,
35
    2:i64 customerId,
37
    2:optional i64 customerId, // used for registered users
-
 
38
    3:optional string customerEmailId, // used for un-registered users
36
    3:i64 openDate,
39
    4:i64 openDate,
37
    4:optional i64 closeDate,
40
    5:optional i64 closeDate,
38
    5:string description,
41
    6:optional string description,
39
    6:TicketPriority priority,
42
    7:TicketPriority priority,
40
    7:TicketCategory category,
43
    8:TicketCategory category,
41
    8:TicketStatus status,
44
    9:TicketStatus status,
42
    9:optional i64 assigneeId
45
   10:optional i64 assigneeId,
43
    10:i64 creatorId,
46
   11:i64 creatorId,
44
    11:optional i64 orderId,
47
   12:optional i64 orderId,
45
    12:optional string airwayBillNo,
48
   13:optional string airwayBillNo,
46
    13:optional string productName
49
   14:optional string productName
47
}
50
}
48
 
51
 
49
struct Activity {
52
struct Activity {
50
    1:i64 id,
53
    1:i64 id,
51
    2:optional string description,
54
    2:optional string description,
52
    3:i64 creationTimestamp, // represents time at which this activity occurred
55
    3:i64 creationTimestamp, // represents time at which this activity occurred
53
    4:ActivityType type,
56
    4:ActivityType type,
54
    5:i64 customerId,
57
    5:optional i64 customerId, // used for registered users
-
 
58
    6:optional string customerMobileNumber, // used for unregistered users
55
    6:i64 creatorId,
59
    7:i64 creatorId,
-
 
60
 
-
 
61
    // represents the numeric identifier for the emails sent to customers
-
 
62
    // These are archived in helper..useremailarchive or helper..useremail
56
    7:optional i64 emailId,
63
    8:optional i64 emailId,
57
 
64
 
58
    // ticket related fields to track changes on ticket fields
65
    // ticket related fields to track changes on ticket fields
59
    8:optional i64 ticketId,
66
    9:optional i64 ticketId,
60
    9:optional TicketPriority ticketPriority,
67
   10:optional TicketPriority ticketPriority,
61
   10:optional i64 ticketAssigneeId,
68
   11:optional i64 ticketAssigneeId,
62
   11:optional TicketStatus ticketStatus,
69
   12:optional TicketStatus ticketStatus,
63
   12:optional TicketCategory ticketCategory,
70
   13:optional TicketCategory ticketCategory,
64
   13:optional string ticketDescription
71
   14:optional string ticketDescription
65
}
72
}
66
 
73
 
67
struct Agent {
74
struct Agent {
68
    1:i64 id,
75
    1:i64 id,
69
    2:string name,
76
    2:string name,