| Line 15... |
Line 15... |
| 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 |
}
|
18 |
}
|
| 19 |
|
19 |
|
| - |
|
20 |
enum WarehouseLocation{
|
| - |
|
21 |
Delhi = 0,
|
| - |
|
22 |
Mumbai = 1,
|
| - |
|
23 |
Bangalore = 2,
|
| - |
|
24 |
Kolkata = 3
|
| - |
|
25 |
}
|
| - |
|
26 |
|
| 20 |
/*
|
27 |
/*
|
| 21 |
Warehouse fields details
|
28 |
Warehouse fields details
|
| 22 |
location: it is full address
|
29 |
location: it is full address
|
| 23 |
vendorString: some key for the warehouse
|
30 |
vendorString: some key for the warehouse
|
| 24 |
*/
|
31 |
*/
|
| Line 28... |
Line 35... |
| 28 |
3:status warehouseStatus,
|
35 |
3:status warehouseStatus,
|
| 29 |
4:i64 addedOn,
|
36 |
4:i64 addedOn,
|
| 30 |
5:i64 lastCheckedOn,
|
37 |
5:i64 lastCheckedOn,
|
| 31 |
6:string tinNumber,
|
38 |
6:string tinNumber,
|
| 32 |
7:string pincode,
|
39 |
7:string pincode,
|
| 33 |
8:string vendorString
|
40 |
8:string vendorString,
|
| - |
|
41 |
9:WarehouseLocation logisticsLocation
|
| 34 |
}
|
42 |
}
|
| 35 |
/* */
|
43 |
/* */
|
| 36 |
struct ItemInventory{
|
44 |
struct ItemInventory{
|
| 37 |
1:i64 id,
|
45 |
1:i64 id,
|
| 38 |
2:map<i64,i64> availability
|
46 |
2:map<i64,i64> availability
|
| Line 105... |
Line 113... |
| 105 |
list<Item> getAllItemsByStatus(1:status itemStatus) throws (1:InventoryServiceException cex),
|
113 |
list<Item> getAllItemsByStatus(1:status itemStatus) throws (1:InventoryServiceException cex),
|
| 106 |
ItemInventory getItemInventory(1:i64 item_id) throws (1:InventoryServiceException cex),
|
114 |
ItemInventory getItemInventory(1:i64 item_id) throws (1:InventoryServiceException cex),
|
| 107 |
ItemInventory getItemInventoryByItemId(1:i64 item_id) throws (1:InventoryServiceException cex),
|
115 |
ItemInventory getItemInventoryByItemId(1:i64 item_id) throws (1:InventoryServiceException cex),
|
| 108 |
//ItemInventory getItemInventoryByCatalogId(1:i64 item_id) throws (1:InventoryServiceException cex),
|
116 |
//ItemInventory getItemInventoryByCatalogId(1:i64 item_id) throws (1:InventoryServiceException cex),
|
| 109 |
i64 getItemAvailibilityAtWarehouse(1:i64 warehouse_id, 2:i64 item_id) throws (1:InventoryServiceException cex),
|
117 |
i64 getItemAvailibilityAtWarehouse(1:i64 warehouse_id, 2:i64 item_id) throws (1:InventoryServiceException cex),
|
| - |
|
118 |
|
| - |
|
119 |
/**
|
| - |
|
120 |
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.
|
| - |
|
122 |
*/
|
| - |
|
123 |
list<i64> getItemAvailabilityAtLocation(1:i64 warehouse_loc, 2:i64 item_id) throws (1:InventoryServiceException isex),
|
| 110 |
list<Warehouse> getAllWarehouses(1:bool isActive) throws (1:InventoryServiceException cex),
|
124 |
list<Warehouse> getAllWarehouses(1:bool isActive) throws (1:InventoryServiceException cex),
|
| 111 |
Warehouse getWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
|
125 |
Warehouse getWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
|
| 112 |
list<Warehouse> getAllWarehousesForItem(1:i64 item_id) throws (1:InventoryServiceException cex),
|
126 |
list<Warehouse> getAllWarehousesForItem(1:i64 item_id) throws (1:InventoryServiceException cex),
|
| 113 |
list<Item> getAllItemsForWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
|
127 |
list<Item> getAllItemsForWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
|
| 114 |
|
128 |
|