Subversion Repositories SmartDukaan

Rev

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

Rev 477 Rev 483
Line 5... Line 5...
5
//    1:string awb_number,
5
//    1:string awb_number,
6
//    2:bool is_available,
6
//    2:bool is_available,
7
//    3:i64 provider_id
7
//    3:i64 provider_id
8
//}
8
//}
9
 
9
 
-
 
10
 
10
struct ItemLogistics{
11
struct ItemLogistics{
11
	1:i64 warehouseId,
12
	1:i64 warehouseId,
12
	2:i64 availability,
13
	2:i64 availability,
13
	3:i64 shippingTime
14
	3:i64 shippingTime
14
}
15
}
Line 44... Line 45...
44
	9:string recepient_phone,
45
	9:string recepient_phone,
45
	10:string shipment_weight,
46
	10:string shipment_weight,
46
	11:string shipment_contents
47
	11:string shipment_contents
47
}
48
}
48
 
49
 
-
 
50
struct LogisticsInfo{
-
 
51
	1:i64 warehouse_id,
-
 
52
	2:i64 provider_id,
-
 
53
	3:i64 airway_billno,
-
 
54
	4:i64 delivery_estimate
-
 
55
}
-
 
56
 
49
exception LogisticsServiceException{
57
exception LogisticsServiceException{
50
	1:i64 id,
58
	1:i64 id,
51
	2:string message
59
	2:string message
52
}
60
}
53
 
61
 
54
service LogisticsService{
62
service LogisticsService{
55
 
63
 
-
 
64
	//API for order service
-
 
65
	LogisticsInfo getLogisticsInfo(1:string destination_pincode, 2:string sku_id) throws (1:LogisticsServiceException se),
-
 
66
	
56
	//This call would return the logistic estimate 
67
	//This call would return the logistic estimate 
57
	ItemLogistics getLogisticsEstimation(1:i64 itemId, 2:string destination_pin, 3:i64 provider_id ) throws (1:LogisticsServiceException se),
68
	ItemLogistics getLogisticsEstimation(1:i64 itemId, 2:string destination_pin, 3:i64 provider_id ) throws (1:LogisticsServiceException se),
58
	void addDeliveryEstimate(1:i64 warahouse_id, 2:string destination_pin, 3:i64 provider_id, 4:i64 delivery_time, 5:i64 reliability),
69
	void addDeliveryEstimate(1:i64 warahouse_id, 2:string destination_pin, 3:i64 provider_id, 4:i64 delivery_time, 5:i64 reliability),
59
	void addPincodeWarehouseMapping(1:string pin_code, 2:i64 warehouse_id, 3:string warehouse_pin),
70
	void addPincodeWarehouseMapping(1:string pin_code, 2:i64 warehouse_id, 3:string warehouse_pin),
60
	
71