| Line 13... |
Line 13... |
| 13 |
PHASED_OUT = 0, //Item is no longer selling
|
13 |
PHASED_OUT = 0, //Item is no longer selling
|
| 14 |
DELETED = 1, //Item has been deliberately deleted
|
14 |
DELETED = 1, //Item has been deliberately deleted
|
| 15 |
PAUSED = 2, //Item's sale is currently paused
|
15 |
PAUSED = 2, //Item's sale is currently paused
|
| 16 |
ACTIVE = 3, //Item is available for sale as of now
|
16 |
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
|
17 |
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.
|
| 18 |
}
|
19 |
}
|
| 19 |
|
20 |
|
| 20 |
enum WarehouseLocation{
|
21 |
enum WarehouseLocation{
|
| 21 |
Delhi = 0,
|
22 |
Delhi = 0,
|
| 22 |
Mumbai = 1,
|
23 |
Mumbai = 1,
|
| Line 67... |
Line 68... |
| 67 |
11:string featureDescription,
|
68 |
11:string featureDescription,
|
| 68 |
12:ItemInventory itemInventory,
|
69 |
12:ItemInventory itemInventory,
|
| 69 |
13:double mrp, //maxmimum retail price
|
70 |
13:double mrp, //maxmimum retail price
|
| 70 |
14:double mop, //market operative price
|
71 |
14:double mop, //market operative price
|
| 71 |
15:double sellingPrice, //Selling price
|
72 |
15:double sellingPrice, //Selling price
|
| - |
|
73 |
16:double transferPrice
|
| 72 |
16:double weight,
|
74 |
17:double weight,
|
| 73 |
17:i64 addedOn,
|
75 |
18:i64 addedOn,
|
| 74 |
18:i64 startDate,
|
76 |
19:i64 startDate,
|
| 75 |
19:i64 retireDate,
|
77 |
20:i64 retireDate,
|
| 76 |
20:status itemStatus,
|
78 |
21:status itemStatus,
|
| 77 |
21:map<string,string> otherInfo,
|
79 |
22:map<string,string> otherInfo,
|
| 78 |
22:string bestDealText,
|
80 |
23:string bestDealText,
|
| 79 |
23:double bestDealValue,
|
81 |
24:double bestDealValue,
|
| 80 |
24:double dealerPrice,
|
82 |
25:double dealerPrice,
|
| 81 |
25:i64 updatedOn,
|
83 |
26:i64 updatedOn,
|
| 82 |
26:string color
|
84 |
27:string color
|
| 83 |
}
|
85 |
}
|
| 84 |
|
86 |
|
| 85 |
exception InventoryServiceException{
|
87 |
exception InventoryServiceException{
|
| 86 |
1:i64 id,
|
88 |
1:i64 id,
|
| 87 |
2:string message
|
89 |
2:string message
|
| Line 113... |
Line 115... |
| 113 |
list<Item> getAllItemsByStatus(1:status itemStatus) throws (1:InventoryServiceException cex),
|
115 |
list<Item> getAllItemsByStatus(1:status itemStatus) throws (1:InventoryServiceException cex),
|
| 114 |
ItemInventory getItemInventory(1:i64 item_id) throws (1:InventoryServiceException cex),
|
116 |
ItemInventory getItemInventory(1:i64 item_id) throws (1:InventoryServiceException cex),
|
| 115 |
ItemInventory getItemInventoryByItemId(1:i64 item_id) throws (1:InventoryServiceException cex),
|
117 |
ItemInventory getItemInventoryByItemId(1:i64 item_id) throws (1:InventoryServiceException cex),
|
| 116 |
//ItemInventory getItemInventoryByCatalogId(1:i64 item_id) throws (1:InventoryServiceException cex),
|
118 |
//ItemInventory getItemInventoryByCatalogId(1:i64 item_id) throws (1:InventoryServiceException cex),
|
| 117 |
i64 getItemAvailibilityAtWarehouse(1:i64 warehouse_id, 2:i64 item_id) throws (1:InventoryServiceException cex),
|
119 |
i64 getItemAvailibilityAtWarehouse(1:i64 warehouse_id, 2:i64 item_id) throws (1:InventoryServiceException cex),
|
| - |
|
120 |
bool markItemAsContentComplete(1:i64 entityId) throws (1:InventoryServiceException cex),
|
| 118 |
|
121 |
|
| 119 |
/**
|
122 |
/**
|
| 120 |
Returns the id of the warehouse with the largest inventory of the item and the inventory size in the given locations.
|
123 |
Returns the id of the warehouse with the largest inventory of the item and the inventory size in the given locations.
|
| 121 |
The size of list will always be 2.
|
124 |
The size of list will always be 2.
|
| 122 |
*/
|
125 |
*/
|