Subversion Repositories SmartDukaan

Rev

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

Rev 10547 Rev 11173
Line 1... Line 1...
1
namespace java in.shop2020.model.v1.inventory
1
namespace java in.shop2020.model.v1.inventory
2
namespace py shop2020.thriftpy.model.v1.inventory
2
namespace py shop2020.thriftpy.model.v1.inventory
3
 
3
 
4
include "GenericService.thrift"
4
include "GenericService.thrift"
5
 
5
 
-
 
6
enum AmazonFCWarehouseLocation {
-
 
7
	Mumbai = 0,
-
 
8
	Bangalore = 1
-
 
9
}
-
 
10
 
6
enum WarehouseLocation {
11
enum WarehouseLocation {
7
	Delhi = 0,
12
	Delhi = 0,
8
	Mumbai = 1,
13
	Mumbai = 1,
9
	Bangalore = 2,
14
	Bangalore = 2,
10
	Kolkata = 3
15
	Kolkata = 3
Line 135... Line 140...
135
} 
140
} 
136
 
141
 
137
struct AmazonFbaInventorySnapshot {
142
struct AmazonFbaInventorySnapshot {
138
    1:i64 item_id
143
    1:i64 item_id
139
    2:i64 availability
144
    2:i64 availability
-
 
145
    3:AmazonFCWarehouseLocation location
-
 
146
    4:i64 unfulfillable
-
 
147
    5:i64 reserved
140
    3:bool is_oos
148
    6:i64 inbound
141
}
149
}
142
 
150
 
143
struct HoldInventoryDetail {
151
struct HoldInventoryDetail {
144
	1:i64 item_id
152
	1:i64 item_id
145
	2:i64 warehouse_id
153
	2:i64 warehouse_id
Line 408... Line 416...
408
	
416
	
409
	void addOrUpdateAmazonFbaInventory(1:AmazonFbaInventorySnapshot amazonfbainventorysnapshot);
417
	void addOrUpdateAmazonFbaInventory(1:AmazonFbaInventorySnapshot amazonfbainventorysnapshot);
410
	
418
	
411
	void addUpdateHoldInventory(1:i64 itemId, 2:i64 warehouseId, 3:i64 holdQuantity, 4:i64 source)  throws (1:InventoryServiceException cex);
419
	void addUpdateHoldInventory(1:i64 itemId, 2:i64 warehouseId, 3:i64 holdQuantity, 4:i64 source)  throws (1:InventoryServiceException cex);
412
	
420
	
413
	i64 getAmazonFbaItemInventory(1:i64 itemId);
421
	list<AmazonFbaInventorySnapshot> getAmazonFbaItemInventory(1:i64 itemId);
414
	
422
	
415
	list<AmazonFbaInventorySnapshot> getAllAmazonFbaItemInventory();
423
	list<AmazonFbaInventorySnapshot> getAllAmazonFbaItemInventory();
416
	
424
	
417
	list<i64> getOursGoodWarehouseIdsForLocation(1:i64 state_id);
425
	list<i64> getOursGoodWarehouseIdsForLocation(1:i64 state_id);
418
	
426