Subversion Repositories SmartDukaan

Rev

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

Rev 442 Rev 472
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
struct ItemLogistics{
-
 
11
	1:i64 warehouseId,
-
 
12
	2:i64 availability,
-
 
13
	3:i64 shippingTime
-
 
14
}
-
 
15
 
10
 
16
 
11
struct ShipmentUpdate{
17
struct ShipmentUpdate{
12
	1:string pin,
18
	1:string pin,
13
	2:i64 timestamp,
19
	2:i64 timestamp,
14
	3:string description
20
	3:string description
Line 38... Line 44...
38
	9:string recepient_phone,
44
	9:string recepient_phone,
39
	10:string shipment_weight,
45
	10:string shipment_weight,
40
	11:string shipment_contents
46
	11:string shipment_contents
41
}
47
}
42
 
48
 
-
 
49
exception LogisticsServiceException{
-
 
50
	1:i64 id,
-
 
51
	2:string message
-
 
52
}
-
 
53
 
43
service LogisticsService{
54
service LogisticsService{
-
 
55
 
-
 
56
	//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),
-
 
58
	void addDeliveryEstimate(1:i64 warahouse_id, 2:string destination_pin, 3:i64 provider_id, 4:i64 delivery_time),
44
	//APIs to be used by shop2020 components
59
	//APIs to be used by shop2020 components
45
	void addEmptyAWBs(1:list<string> numbers, 2:i64 provider_id),
60
	void addEmptyAWBs(1:list<string> numbers, 2:i64 provider_id),
46
	string getEmptyAWB(1:i64 provider_id),
61
	string getEmptyAWB(1:i64 provider_id),
47
	list<Provider> getProviders(),
62
	list<Provider> getProviders(),
48
	Provider getProvider(1:i64 provider_id),
63
	Provider getProvider(1:i64 provider_id),
49
	void createShipment(1:Shipment shipment),
64
	void createShipment(1:Shipment shipment),
50
	void updateShipmentStatus(1:string awb, 2:ShipmentUpdate shipment_update),
65
	void updateShipmentStatus(1:string awb, 2:ShipmentUpdate shipment_update),
51
	ShipmentStatusInfo getShipmentInfo(1:string awb),
66
	ShipmentStatusInfo getShipmentInfo(1:string awb),
-
 
67
 
52
	//APIs to be used by logistic provider
68
	//APIs to be used by logistic provider
53
	list<Shipment> getShipments(1:i64 warehouse_id, 2:i64 from_date, 3:i64 to_date, 4:i64 provider_id),
69
	list<Shipment> getShipments(1:i64 warehouse_id, 2:i64 from_date, 3:i64 to_date, 4:i64 provider_id),
54
	list<Shipment> getTodaysShipments(1:i64 warehouse_id,2:i64 provider_id)
70
	list<Shipment> getTodaysShipments(1:i64 warehouse_id,2:i64 provider_id)
55
	 	
71
	 	
56
}
72
}