Subversion Repositories SmartDukaan

Rev

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

Rev 412 Rev 442
Line 1... Line 1...
1
namespace java in.shop2020.logistics
1
namespace java in.shop2020.logistics
2
namespace py shop2020.thriftpy.logistics
2
namespace py shop2020.thriftpy.logistics
3
 
3
 
-
 
4
//struct AWB{
-
 
5
//    1:string awb_number,
-
 
6
//    2:bool is_available,
-
 
7
//    3:i64 provider_id
-
 
8
//}
-
 
9
 
-
 
10
 
4
struct ShipmentUpdate{
11
struct ShipmentUpdate{
5
	1:string pin,
12
	1:string pin,
6
	2:i64 timestamp,
13
	2:i64 timestamp,
7
	3:string description
14
	3:string description
8
}
15
}
9
 
16
 
10
struct ShipmentStatusInfo{
17
struct ShipmentStatusInfo{
11
	1:string awb,
18
	1:string awb,
12
	3:i64 provider_id,
19
	2:i64 provider_id,
13
	4:list<ShipmentUpdate> updates,
20
	3:list<ShipmentUpdate> updates,
14
	5:ShipmentUpdate currentUpdate
21
	4:ShipmentUpdate currentUpdate
15
}
22
}
16
 
23
 
17
struct Provider{
24
struct Provider{
18
	1:i64 id,
25
	1:i64 id,
19
	2:string name
26
	2:string name
Line 37... Line 44...
37
	//APIs to be used by shop2020 components
44
	//APIs to be used by shop2020 components
38
	void addEmptyAWBs(1:list<string> numbers, 2:i64 provider_id),
45
	void addEmptyAWBs(1:list<string> numbers, 2:i64 provider_id),
39
	string getEmptyAWB(1:i64 provider_id),
46
	string getEmptyAWB(1:i64 provider_id),
40
	list<Provider> getProviders(),
47
	list<Provider> getProviders(),
41
	Provider getProvider(1:i64 provider_id),
48
	Provider getProvider(1:i64 provider_id),
-
 
49
	void createShipment(1:Shipment shipment),
-
 
50
	void updateShipmentStatus(1:string awb, 2:ShipmentUpdate shipment_update),
42
	ShipmentStatusInfo getShipmentInfo(1:string awb),
51
	ShipmentStatusInfo getShipmentInfo(1:string awb),
43
	//APIs to be used by logistic provider
52
	//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),
53
	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)
54
	list<Shipment> getTodaysShipments(1:i64 warehouse_id,2:i64 provider_id)
46
	 	
55