Subversion Repositories SmartDukaan

Rev

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

Rev 10126 Rev 10450
Line 129... Line 129...
129
 
129
 
130
struct AmazonInventorySnapshot {
130
struct AmazonInventorySnapshot {
131
    1:i64 item_id
131
    1:i64 item_id
132
    2:i64 availability
132
    2:i64 availability
133
    3:i64 reserved
133
    3:i64 reserved
-
 
134
    4:bool is_oos
134
} 
135
} 
135
 
136
 
136
struct AmazonFbaInventorySnapshot {
137
struct AmazonFbaInventorySnapshot {
137
    1:i64 item_id
138
    1:i64 item_id
138
    2:i64 availability
139
    2:i64 availability
-
 
140
    3:bool is_oos
139
}
141
}
140
 
142
 
141
struct HoldInventoryDetail {
143
struct HoldInventoryDetail {
142
	1:i64 item_id
144
	1:i64 item_id
143
	2:i64 warehouse_id
145
	2:i64 warehouse_id
Line 148... Line 150...
148
struct SnapdealInventoryItem{
150
struct SnapdealInventoryItem{
149
	1:i64 item_id
151
	1:i64 item_id
150
	2:i64 availability
152
	2:i64 availability
151
	3:i64 lastUpdatedOnSnapdeal
153
	3:i64 lastUpdatedOnSnapdeal
152
	4:i64 pendingOrders
154
	4:i64 pendingOrders
-
 
155
	5:bool is_oos
153
}
156
}
154
 
157
 
155
struct FlipkartInventorySnapshot{
158
struct FlipkartInventorySnapshot{
156
	1:i64 item_id
159
	1:i64 item_id
157
	2:i64 availability
160
	2:i64 availability
158
	3:i64 createdOrders
161
	3:i64 createdOrders
159
	4:i64 heldOrders
162
	4:i64 heldOrders
-
 
163
	5:bool is_oos
160
}
164
}
161
 
165
 
162
 
166
 
163
service InventoryService extends GenericService.GenericService{
167
service InventoryService extends GenericService.GenericService{
164
 
168
 
Line 383... Line 387...
383
	
387
	
384
	AmazonInventorySnapshot getAmazonInventoryForItem(1:i64 item_id);
388
	AmazonInventorySnapshot getAmazonInventoryForItem(1:i64 item_id);
385
	
389
	
386
	list<AmazonInventorySnapshot> getAllAmazonInventory();
390
	list<AmazonInventorySnapshot> getAllAmazonInventory();
387
	
391
	
388
	void addOrUpdateAmazonInventoryForItem(1:AmazonInventorySnapshot amazonInventorySnapshot);
392
	void addOrUpdateAmazonInventoryForItem(1:AmazonInventorySnapshot amazonInventorySnapshot,2:i64 time);
389
	
393
	
390
	string getLastNdaySaleForItem(1:i64 itemId, 2:i64 numberOfDays);
394
	string getLastNdaySaleForItem(1:i64 itemId, 2:i64 numberOfDays);
391
	
395
	
392
	void addOrUpdateAmazonFbaInventory(1:AmazonFbaInventorySnapshot amazonfbainventorysnapshot);
396
	void addOrUpdateAmazonFbaInventory(1:AmazonFbaInventorySnapshot amazonfbainventorysnapshot);
393
	
397
	
Line 415... Line 419...
415
	
419
	
416
	list<SnapdealInventoryItem> getSnapdealInventorySnapshot()
420
	list<SnapdealInventoryItem> getSnapdealInventorySnapshot()
417
	
421
	
418
	list<HoldInventoryDetail> getHoldInventoryDetails(1:i64 itemId, 2:i64 warehouseId, 3:i64 source)
422
	list<HoldInventoryDetail> getHoldInventoryDetails(1:i64 itemId, 2:i64 warehouseId, 3:i64 source)
419
	
423
	
420
	void addOrUpdateFlipkartInventorySnapshot(list<FlipkartInventorySnapshot> flipkartInventorySnapshot)
424
	void addOrUpdateFlipkartInventorySnapshot(1:list<FlipkartInventorySnapshot> flipkartInventorySnapshot,2:i64 time)
421
	
425
	
422
	list<FlipkartInventorySnapshot> getFlipkartInventorySnapshot()
426
	list<FlipkartInventorySnapshot> getFlipkartInventorySnapshot()
423
	
427
	
424
	FlipkartInventorySnapshot getFlipkartlInventoryForItem(1:i64 item_id)
428
	FlipkartInventorySnapshot getFlipkartlInventoryForItem(1:i64 item_id)
425
	
429