Subversion Repositories SmartDukaan

Rev

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

Rev 2514 Rev 3044
Line 11... Line 11...
11
	Mumbai = 1,
11
	Mumbai = 1,
12
	Bangalore = 2,
12
	Bangalore = 2,
13
	Kolkata = 3
13
	Kolkata = 3
14
}
14
}
15
 
15
 
-
 
16
enum DeliveryType {
-
 
17
	PREPAID = 0,
-
 
18
	COD = 1
-
 
19
}
-
 
20
 
-
 
21
struct ProviderDetails{
-
 
22
	1:string accountNo,
-
 
23
	2:string email
-
 
24
}
-
 
25
 
16
struct Provider{
26
struct Provider{
17
	1:i64 id,
27
	1:i64 id,
18
	2:string name,
28
	2:string name,
19
	3:string accountNo,
29
	3:map<DeliveryType, ProviderDetails> details
20
	4:string email
-
 
21
}
30
}
22
 
31
 
23
struct AwbUpdate{
32
struct AwbUpdate{
24
    1:string awbNumber,
33
    1:string awbNumber,
25
    2:string providerName,
34
    2:string providerName,
Line 64... Line 73...
64
	LogisticsInfo getLogisticsEstimation(1:i64 itemId, 2:string destination_pin) throws (1:LogisticsServiceException se),
73
	LogisticsInfo getLogisticsEstimation(1:i64 itemId, 2:string destination_pin) throws (1:LogisticsServiceException se),
65
	
74
	
66
	/**
75
	/**
67
	 Same as above excpet that an airway bill number is also allocated and returned.
76
	 Same as above excpet that an airway bill number is also allocated and returned.
68
	*/
77
	*/
69
	LogisticsInfo getLogisticsInfo(1:string destination_pincode, 2:i64 item_id) throws (1:LogisticsServiceException se),
78
	LogisticsInfo getLogisticsInfo(1:string destination_pincode, 2:i64 item_id, 3:DeliveryType type) throws (1:LogisticsServiceException se),
70
	
79
	
71
	/**
80
	/**
72
	 Returns an unused AWB number for the given provider.
81
	 Returns an unused AWB number for the given provider.
73
	*/
82
	*/
74
	string getEmptyAWB(1:i64 providerId) throws (1:LogisticsServiceException se),
83
	string getEmptyAWB(1:i64 providerId) throws (1:LogisticsServiceException se),