Subversion Repositories SmartDukaan

Rev

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

Rev 646 Rev 667
Line 13... Line 13...
13
	Kolkata = 3
13
	Kolkata = 3
14
}
14
}
15
 
15
 
16
struct Provider{
16
struct Provider{
17
	1:i64 id,
17
	1:i64 id,
18
	2:string name
18
	2:string name,
-
 
19
	3:string accountNo
19
}
20
}
20
 
21
 
21
struct AwbUpdate{
22
struct AwbUpdate{
22
    1:string awbNumber,
23
    1:string awbNumber,
23
    2:string providerName,
24
    2:string providerName,
Line 36... Line 37...
36
exception LogisticsServiceException{
37
exception LogisticsServiceException{
37
	1:i64 id,
38
	1:i64 id,
38
	2:string message
39
	2:string message
39
}
40
}
40
 
41
 
41
service LogisticsService{	
42
service LogisticsService{
-
 
43
	/**
-
 
44
	 Returns a provider for a given provider ID. Throws an exception if none found.
-
 
45
	*/
-
 
46
	Provider getProvider(1:i64 providerId) throws (1:LogisticsServiceException lse),
-
 
47
	
42
	/**
48
	/**
43
	 Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
49
	 Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
44
	 Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
50
	 Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
45
	 is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised. 
51
	 is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised. 
46
	 */
52
	 */