Subversion Repositories SmartDukaan

Rev

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

Rev 667 Rev 680
Line 1... Line 1...
1
namespace java in.shop2020.model.v1.order
1
namespace java in.shop2020.model.v1.order
2
namespace py shop2020.thriftpy.model.v1.order
2
namespace py shop2020.thriftpy.model.v1.order
3
/***
3
/***
4
	Order objects.
4
	Order objects.
5
*/
5
*/
6
 
-
 
7
enum PaymentStatus{
-
 
8
	FAILURE,
-
 
9
	SUCCESS
-
 
10
}
-
 
11
 
-
 
12
enum OrderStatus{
6
enum OrderStatus{
13
	INIT,
7
	INIT,
14
	SUBMITTED_FOR_PROCESSING,
8
	SUBMITTED_FOR_PROCESSING,
15
	ACCEPTED,
9
	ACCEPTED,
16
	INVENTORY_LOW,
10
	INVENTORY_LOW,
Line 36... Line 30...
36
	COMPLETED,
30
	COMPLETED,
37
	FAILED
31
	FAILED
38
}
32
}
39
 
33
 
40
 
34
 
41
struct Payment{
-
 
42
	1:i64 id,
-
 
43
	2:string merchant_tx_id,
-
 
44
	3:string bank_tx_id,
-
 
45
	4:string mode,
-
 
46
	5:double amount,
-
 
47
	6:PaymentStatus status,
-
 
48
	7:string description,
-
 
49
	9:i64 submissionTimestamp,
-
 
50
	10:i64 completionTimestamp
-
 
51
}
-
 
52
 
-
 
53
struct PaymentInfo{
-
 
54
	1:i64 id,
-
 
55
	2:map<i64,Payment> payments
-
 
56
}
-
 
57
 
-
 
58
struct LineItem{
35
struct LineItem{
59
	1:i64 id,
36
	1:i64 id,
60
	2:string sku_id,
37
	2:string sku_id,
61
	3:string brand,
38
	3:string brand,
62
	4:string model_number,
39
	4:string model_number,
Line 122... Line 99...
122
}
99
}
123
 
100
 
124
struct Transaction{
101
struct Transaction{
125
	1:i64 id,
102
	1:i64 id,
126
	2:list<Order> orders,
103
	2:list<Order> orders,
127
	3:PaymentInfo paymentInfo,
-
 
128
	4:i64 createdOn,
104
	3:i64 createdOn,
129
	5:TransactionStatus transactionStatus,
105
	4:TransactionStatus transactionStatus,
130
	6:string statusDescription,
106
	5:string statusDescription,
131
	7:i64 shoppingCartid,
107
	6:i64 shoppingCartid,
132
	8:i64 customer_id
108
	7:i64 customer_id
133
}
109
}
134
 
110
 
135
struct Alert{
111
struct Alert{
136
	1:i64 id,
112
	1:i64 id,
137
	2:i64 order_id,
113
	2:i64 order_id,