Subversion Repositories SmartDukaan

Rev

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

Rev 1157 Rev 1330
Line 4... Line 4...
4
/**
4
/**
5
	Objects
5
	Objects
6
*/
6
*/
7
 
7
 
8
/**
8
/**
9
Caution :- Never ever change the numbers in it. Please confirm from @ashish before any changes in enum and other entries in file.
9
Caution :- Never ever change the numbers in it. Please confirm from @Chandranshu or @Rajveer before any changes in enum and other entries in file.
10
**/
10
**/
11
 
-
 
12
enum status{
11
enum status{
13
	PHASED_OUT = 0,		//Item is no longer selling
12
	PHASED_OUT = 0,		//Item is no longer selling
14
	DELETED = 1,		//Item has been deliberately deleted 
13
	DELETED = 1,		//Item has been deliberately deleted 
15
	PAUSED = 2,			//Item's sale is currently paused
14
	PAUSED = 2,			//Item's sale is currently paused
16
	ACTIVE = 3,			//Item is available for sale as of now
15
	ACTIVE = 3,			//Item is available for sale as of now
17
	IN_PROCESS = 4		//Item has been added, but content is not available for the same
16
	IN_PROCESS = 4		//Item has been added, but content is not available for the same
18
	CONTENT_COMPLETE = 5  //The content for this item has been completed. We can start selling the item now.
17
	CONTENT_COMPLETE = 5  //The content for this item has been completed. We can start selling the item now.
19
}
18
}
20
 
19
 
21
enum WarehouseLocation{
20
enum WarehouseLocation{
22
	Delhi = 0,
21
	Mumbai = 0,
23
	Mumbai = 1,
22
	Delhi = 1,
24
	Bangalore = 2,
23
	Bangalore = 2,
25
	Kolkata = 3
24
	Kolkata = 3
26
}
25
}
27
 
26
 
-
 
27
struct Vendor{
-
 
28
	1:i64 id,
-
 
29
	2:string name
-
 
30
}
-
 
31
 
28
/* 
32
/* 
29
Warehouse fields details
33
Warehouse fields details
30
location: it is full address
34
location: it is full address
31
vendorString: some key for the warehouse
35
vendorString: some key for the warehouse
32
*/
36
*/
Line 39... Line 43...
39
	6:i64 lastCheckedOn,
43
	6:i64 lastCheckedOn,
40
	7:string tinNumber,
44
	7:string tinNumber,
41
	8:string pincode,
45
	8:string pincode,
42
	9:string vendorString,
46
	9:string vendorString,
43
	10:WarehouseLocation logisticsLocation
47
	10:WarehouseLocation logisticsLocation
-
 
48
	11:string vendor
44
}
49
}
45
/* */
50
/* */
46
struct ItemInventory{
51
struct ItemInventory{
47
	1:i64 id,
52
	1:i64 id,
48
	2:map<i64,i64> availability
53
	2:map<i64,i64> availability
Line 60... Line 65...
60
	1:i64 id,
65
	1:i64 id,
61
	2:string productGroup
66
	2:string productGroup
62
	3:string brand,
67
	3:string brand,
63
	4:string modelNumber,
68
	4:string modelNumber,
64
	5:string modelName,
69
	5:string modelName,
-
 
70
	6:string color,
65
	6:i64 category,
71
	7:i64 category,
66
	7:string comments,
72
	8:string comments,
67
	8:i64 catalogItemId,
73
	9:i64 catalogItemId,
68
	9:string vendorItemId
-
 
69
	10:i64 featureId,
74
	10:i64 featureId,
70
	11:string featureDescription,
75
	11:string featureDescription,
71
	12:ItemInventory itemInventory,
76
	12:ItemInventory itemInventory,
72
	13:double mrp, //maxmimum retail price
77
	13:double mrp, //maxmimum retail price
73
	14:double mop, //market operative price
78
	14:double mop, //market operative price
Line 80... Line 85...
80
	21:status itemStatus,
85
	21:status itemStatus,
81
	22:map<string,string> otherInfo,
86
	22:map<string,string> otherInfo,
82
	23:string bestDealText,
87
	23:string bestDealText,
83
	24:double bestDealValue,
88
	24:double bestDealValue,
84
	25:double dealerPrice,
89
	25:double dealerPrice,
85
	26:i64 updatedOn,
90
	26:i64 updatedOn
86
	27:string color
-
 
87
}
91
}
88
 
92
 
89
exception InventoryServiceException{
93
exception InventoryServiceException{
90
	1:i64 id,
94
	1:i64 id,
91
	2:string message
95
	2:string message