Subversion Repositories SmartDukaan

Rev

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

Rev 95 Rev 121
Line 10... Line 10...
10
}
10
}
11
 
11
 
12
enum ShipmentStatus{
12
enum ShipmentStatus{
13
	SHIPPED,
13
	SHIPPED,
14
	IN_TRANSIT,
14
	IN_TRANSIT,
15
	DELIVERED
15
	DELIVERY_SUCCESS,
-
 
16
	DELIVERY_FAILED_FIRST_ATTEMPT,
-
 
17
	DELIVERY_FAILED_SECOND_ATTEMPT,
-
 
18
	DELIVERY_FAILED_THIRD_ATTEMPT,
-
 
19
	DELIVERY_FAILED_WORNG_ADDRESS
16
}
20
}
17
 
21
 
18
enum TransactionStatus{
22
enum TransactionStatus{
19
	INIT,
23
	INIT,
20
	SUBMITTED_FOR_PROCESSING,
24
	SUBMITTED_FOR_PROCESSING,
21
	ORDER_FULFILLMENT,
25
	ORDER_FULFILLMENT,
-
 
26
	READY_FOR_SHIPPING,
-
 
27
	SHIPPED,
22
	COMPLETED		
28
	COMPLETED,
-
 
29
	CANCELED,
-
 
30
	FAILED,		
23
}
31
}
24
 
32
 
25
struct Item{
33
struct Item{
26
	1:i64 id,
34
	1:i64 id,
27
	2:double price
35
	2:double price,
-
 
36
	3:double weight
28
}
37
}
29
 
38
 
30
struct LineItem{
39
struct LineItem{
31
	1:Item item,
40
	1:Item item,
32
	2:i64 id,
41
	2:i64 id,
Line 40... Line 49...
40
}
49
}
41
 
50
 
42
struct Billing{
51
struct Billing{
43
	1:i64 id,
52
	1:i64 id,
44
	2:string billNumber,
53
	2:string billNumber,
45
	3:LineItem lineItem,
54
	3:list<LineItem> lineItem,
46
	4:i64 generatedTimestamp,
55
	4:i64 generatedTimestamp,
47
	5:string generatedBy
56
	5:string generatedBy
48
}
57
}
49
 
58
 
50
struct BillingInfo{
59
struct BillingInfo{
Line 97... Line 106...
97
	5:PaymentInfo paymentInfo,
106
	5:PaymentInfo paymentInfo,
98
	6:i64 createdOn,
107
	6:i64 createdOn,
99
	7:i64 expectedDeliveryTime,
108
	7:i64 expectedDeliveryTime,
100
	8:TransactionStatus transactionStatus,
109
	8:TransactionStatus transactionStatus,
101
	9:string statusDescription,
110
	9:string statusDescription,
102
	10:i64 customer_id
111
	10:i64 customer_id,
-
 
112
	11:i64 shoppingCartid
103
}
113
}
104
 
114
 
105
exception TransactionServiceException{
115
exception TransactionServiceException{
106
	1:i32 errorCode,
116
	1:i32 errorCode,
107
	2:string message
117
	2:string message
Line 116... Line 126...
116
	Transaction getTransaction(1:i64 id) throws (1:TransactionServiceException ex),
126
	Transaction getTransaction(1:i64 id) throws (1:TransactionServiceException ex),
117
	list<Transaction> getAllTransactions(1:TransactionStatus status, 2:i64 from_date, 3:i64 to_date) throws (1:TransactionServiceException ex),
127
	list<Transaction> getAllTransactions(1:TransactionStatus status, 2:i64 from_date, 3:i64 to_date) throws (1:TransactionServiceException ex),
118
	list<Transaction> getTransactionsForShipmentStatus(1:ShipmentStatus status, 2:i64 from_date, 3:i64 to_date) throws (1:TransactionServiceException ex),
128
	list<Transaction> getTransactionsForShipmentStatus(1:ShipmentStatus status, 2:i64 from_date, 3:i64 to_date) throws (1:TransactionServiceException ex),
119
	list<Transaction> getTransactionsForCustomer(1:i64 customerId, 2:i64 from_date, 3:i64 to_date, 4:TransactionStatus status) throws (1:TransactionServiceException ex),
129
	list<Transaction> getTransactionsForCustomer(1:i64 customerId, 2:i64 from_date, 3:i64 to_date, 4:TransactionStatus status) throws (1:TransactionServiceException ex),
120
	list<Transaction> getTransactionsForCustomerAndShipmentStatus(1:i64 customerId, 2:i64 from_date, 3:i64 to_date, 4:ShipmentStatus status) throws (1:TransactionServiceException ex),
130
	list<Transaction> getTransactionsForCustomerAndShipmentStatus(1:i64 customerId, 2:i64 from_date, 3:i64 to_date, 4:ShipmentStatus status) throws (1:TransactionServiceException ex),
-
 
131
	list<Transaction> getTransactionsForShoppingCartId(1:i64 shoppingCartId) throws (1:TransactionServiceException ex),
121
	TransactionStatus getTransactionStatus(1:i64 transactionId) throws (1:TransactionServiceException ex),
132
	TransactionStatus getTransactionStatus(1:i64 transactionId) throws (1:TransactionServiceException ex),
122
	bool changeTransactionStatus(1:i64 transactionId, 2:TransactionStatus status, 3:string description) throws (1:TransactionServiceException ex),
133
	bool changeTransactionStatus(1:i64 transactionId, 2:TransactionStatus status, 3:string description) throws (1:TransactionServiceException ex),
123
	/**
134
	/**
124
		Get and set individual objects in it
135
		Get and set individual objects in it
125
	**/
136
	**/