Subversion Repositories SmartDukaan

Rev

Rev 442 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
412 ashish 1
namespace java in.shop2020.logistics
2
namespace py shop2020.thriftpy.logistics
3
 
4
struct ShipmentUpdate{
5
	1:string pin,
6
	2:i64 timestamp,
7
	3:string description
8
}
9
 
10
struct ShipmentStatusInfo{
11
	1:string awb,
12
	3:i64 provider_id,
13
	4:list<ShipmentUpdate> updates,
14
	5:ShipmentUpdate currentUpdate
15
}
16
 
17
struct Provider{
18
	1:i64 id,
19
	2:string name
20
}
21
 
22
struct Shipment{
23
	1:string warehouse_name,
24
	2:string awb,
25
	3:string origin,
26
	4:string destination,
27
	5:i64 timestamp,
28
	6:string recepient_name,
29
	7:string recepient_address,
30
	8:string recepient_pincode,
31
	9:string recepient_phone,
32
	10:string shipment_weight,
33
	11:string shipment_contents
34
}
35
 
36
service LogisticsService{
37
	//APIs to be used by shop2020 components
38
	void addEmptyAWBs(1:list<string> numbers, 2:i64 provider_id),
39
	string getEmptyAWB(1:i64 provider_id),
40
	list<Provider> getProviders(),
41
	Provider getProvider(1:i64 provider_id),
42
	ShipmentStatusInfo getShipmentInfo(1:string awb),
43
	//APIs to be used by logistic provider
44
	list<Shipment> getShipments(1:i64 warehouse_id, 2:i64 from_date, 3:i64 to_date, 4:i64 provider_id),
45
	list<Shipment> getTodaysShipments(1:i64 warehouse_id,2:i64 provider_id)
46
 
47
}
48