| 94 |
ashish |
1 |
#
|
| 3431 |
rajveer |
2 |
# Autogenerated by Thrift Compiler (0.7.0)
|
| 94 |
ashish |
3 |
#
|
|
|
4 |
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
#
|
|
|
6 |
|
|
|
7 |
from thrift.Thrift import *
|
| 3376 |
rajveer |
8 |
import shop2020.thriftpy.generic.ttypes
|
| 94 |
ashish |
9 |
|
| 3376 |
rajveer |
10 |
|
| 94 |
ashish |
11 |
from thrift.transport import TTransport
|
| 3431 |
rajveer |
12 |
from thrift.protocol import TBinaryProtocol, TProtocol
|
| 94 |
ashish |
13 |
try:
|
|
|
14 |
from thrift.protocol import fastbinary
|
|
|
15 |
except:
|
|
|
16 |
fastbinary = None
|
|
|
17 |
|
|
|
18 |
|
| 11173 |
vikram.rag |
19 |
class AmazonFCWarehouseLocation:
|
| 94 |
ashish |
20 |
"""
|
|
|
21 |
*
|
|
|
22 |
Order objects.
|
|
|
23 |
"""
|
| 11173 |
vikram.rag |
24 |
Mumbai = 0
|
|
|
25 |
Bangalore = 1
|
| 12980 |
kshitij.so |
26 |
Gurgaon = 2
|
| 11173 |
vikram.rag |
27 |
|
|
|
28 |
_VALUES_TO_NAMES = {
|
|
|
29 |
0: "Mumbai",
|
|
|
30 |
1: "Bangalore",
|
| 12980 |
kshitij.so |
31 |
2: "Gurgaon",
|
| 11173 |
vikram.rag |
32 |
}
|
|
|
33 |
|
|
|
34 |
_NAMES_TO_VALUES = {
|
|
|
35 |
"Mumbai": 0,
|
|
|
36 |
"Bangalore": 1,
|
| 12980 |
kshitij.so |
37 |
"Gurgaon": 2,
|
| 11173 |
vikram.rag |
38 |
}
|
|
|
39 |
|
| 13584 |
manish.sha |
40 |
class FlipkartFCWarehouseLocation:
|
|
|
41 |
Delhi = 0
|
|
|
42 |
|
|
|
43 |
_VALUES_TO_NAMES = {
|
|
|
44 |
0: "Delhi",
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
_NAMES_TO_VALUES = {
|
|
|
48 |
"Delhi": 0,
|
|
|
49 |
}
|
|
|
50 |
|
| 11173 |
vikram.rag |
51 |
class OrderStatus:
|
| 844 |
chandransh |
52 |
PAYMENT_PENDING = 0
|
|
|
53 |
PAYMENT_FAILED = 1
|
| 4662 |
rajveer |
54 |
COD_VERIFICATION_PENDING = 2
|
| 844 |
chandransh |
55 |
SUBMITTED_FOR_PROCESSING = 3
|
|
|
56 |
ACCEPTED = 4
|
|
|
57 |
INVENTORY_LOW = 5
|
|
|
58 |
REJECTED = 6
|
|
|
59 |
BILLED = 7
|
| 4247 |
rajveer |
60 |
PAYMENT_FLAGGED = 8
|
| 844 |
chandransh |
61 |
SHIPPED_FROM_WH = 9
|
|
|
62 |
SHIPPED_TO_LOGST = 10
|
| 4247 |
rajveer |
63 |
PAYMENT_FLAGGED_DENIED = 11
|
| 844 |
chandransh |
64 |
DELIVERY_SUCCESS = 12
|
| 4247 |
rajveer |
65 |
CANCEL_REQUEST_RECEIVED = 13
|
|
|
66 |
CANCEL_REQUEST_CONFIRMED = 14
|
|
|
67 |
CANCELLED_ON_CUSTOMER_REQUEST = 15
|
| 4910 |
phani.kuma |
68 |
SHIPPED_TO_DESTINATION_CITY = 16
|
|
|
69 |
REACHED_DESTINATION_CITY = 17
|
| 4682 |
rajveer |
70 |
COD_VERIFICATION_FAILED = 18
|
| 844 |
chandransh |
71 |
FAILED = 19
|
| 4484 |
rajveer |
72 |
RTO_IN_TRANSIT = 20
|
|
|
73 |
RTO_RECEIVED_PRESTINE = 21
|
| 4452 |
rajveer |
74 |
DOA_PICKUP_REQUEST_RAISED = 22
|
|
|
75 |
DOA_PICKUP_CONFIRMED = 23
|
| 2616 |
chandransh |
76 |
DOA_RETURN_IN_TRANSIT = 24
|
| 4452 |
rajveer |
77 |
DOA_RECEIVED_PRESTINE = 25
|
| 2616 |
chandransh |
78 |
DOA_CERT_INVALID = 26
|
|
|
79 |
DOA_CERT_VALID = 27
|
| 4484 |
rajveer |
80 |
RTO_RESHIPPED = 28
|
| 2616 |
chandransh |
81 |
DOA_INVALID_RESHIPPED = 29
|
| 4452 |
rajveer |
82 |
DOA_VALID_RESHIPPED = 30
|
| 4484 |
rajveer |
83 |
RTO_REFUNDED = 31
|
| 2616 |
chandransh |
84 |
DOA_VALID_REFUNDED = 32
|
|
|
85 |
DOA_INVALID_REFUNDED = 33
|
| 4682 |
rajveer |
86 |
CANCELLED_DUE_TO_LOW_INVENTORY = 34
|
| 4303 |
rajveer |
87 |
LOW_INV_PO_RAISED = 35
|
|
|
88 |
LOW_INV_REVERSAL_IN_PROCESS = 36
|
|
|
89 |
LOW_INV_NOT_AVAILABLE_AT_HOTSPOT = 37
|
| 4369 |
rajveer |
90 |
LOW_INV_PO_RAISED_TIMEOUT = 38
|
|
|
91 |
LOW_INV_REVERSAL_TIMEOUT = 39
|
| 4910 |
phani.kuma |
92 |
FIRST_DELIVERY_ATTEMPT_MADE = 40
|
| 4421 |
mandeep.dh |
93 |
CAPTURE_IN_PROCESS = 41
|
| 4452 |
rajveer |
94 |
DOA_REQUEST_RECEIVED = 42
|
|
|
95 |
DOA_REQUEST_AUTHORIZED = 43
|
|
|
96 |
DOA_PICKUP_DENIED = 44
|
|
|
97 |
DOA_RECEIVED_DAMAGED = 45
|
|
|
98 |
DOA_LOST_IN_TRANSIT = 46
|
| 4459 |
rajveer |
99 |
DOA_RESHIPPED_RCVD_DAMAGED = 47
|
|
|
100 |
DOA_REFUNDED_RCVD_DAMAGED = 48
|
|
|
101 |
DOA_RESHIPPED_LOST_IN_TRANSIT = 49
|
|
|
102 |
DOA_REFUNDED_LOST_IN_TRANSIT = 50
|
| 4486 |
rajveer |
103 |
RTO_RECEIVED_DAMAGED = 51
|
|
|
104 |
RTO_LOST_IN_TRANSIT = 52
|
|
|
105 |
RTO_DAMAGED_RESHIPPED = 53
|
|
|
106 |
RTO_DAMAGED_REFUNDED = 54
|
|
|
107 |
RTO_LOST_IN_TRANSIT_RESHIPPED = 55
|
|
|
108 |
RTO_LOST_IN_TRANSIT_REFUNDED = 56
|
|
|
109 |
RTO_INVENTORY_REVERSED = 57
|
| 4488 |
rajveer |
110 |
RET_REQUEST_RECEIVED = 58
|
|
|
111 |
RET_REQUEST_AUTHORIZED = 59
|
|
|
112 |
RET_PICKUP_REQUEST_RAISED = 60
|
|
|
113 |
RET_PICKUP_DENIED = 61
|
|
|
114 |
RET_PICKUP_CONFIRMED = 62
|
|
|
115 |
RET_RETURN_IN_TRANSIT = 63
|
|
|
116 |
RET_RECEIVED_PRESTINE = 64
|
|
|
117 |
RET_RECEIVED_DAMAGED = 65
|
|
|
118 |
RET_LOST_IN_TRANSIT = 66
|
|
|
119 |
RET_PRODUCT_USABLE = 67
|
|
|
120 |
RET_PRODUCT_UNUSABLE = 68
|
|
|
121 |
RET_PRODUCT_USABLE_RESHIPPED = 69
|
|
|
122 |
RET_PRODUCT_USABLE_REFUNDED = 70
|
|
|
123 |
RET_PRODUCT_UNUSABLE_RESHIPPED = 71
|
|
|
124 |
RET_PRODUCT_UNUSABLE_REFUNDED = 72
|
|
|
125 |
RET_RESHIPPED_RCVD_DAMAGED = 73
|
|
|
126 |
RET_REFUNDED_RCVD_DAMAGED = 74
|
|
|
127 |
RET_RESHIPPED_LOST_IN_TRANSIT = 75
|
|
|
128 |
RET_REFUNDED_LOST_IN_TRANSIT = 76
|
| 4662 |
rajveer |
129 |
LOST_IN_TRANSIT = 77
|
|
|
130 |
LOST_IN_TRANSIT_RESHIPPED = 78
|
|
|
131 |
LOST_IN_TRANSIT_REFUNDED = 79
|
| 5553 |
rajveer |
132 |
DELIVERED_AT_STORE = 80
|
|
|
133 |
RECEIVED_AT_STORE = 81
|
| 18578 |
manish.sha |
134 |
APPROVAL_PENDING = 82
|
| 19691 |
manish.sha |
135 |
PARTIAL_RETURN_IN_PROCESS = 83
|
|
|
136 |
PARTIAL_RETURN = 84
|
|
|
137 |
COMPLETE_RETURN_IN_PROCESS = 85
|
|
|
138 |
COMPLETE_RETURN = 86
|
| 20028 |
kshitij.so |
139 |
REFUNDED_WITHOUT_PICKUP = 87
|
|
|
140 |
REPLACED_WITHOUT_PICKUP = 88
|
| 94 |
ashish |
141 |
|
|
|
142 |
_VALUES_TO_NAMES = {
|
| 844 |
chandransh |
143 |
0: "PAYMENT_PENDING",
|
|
|
144 |
1: "PAYMENT_FAILED",
|
| 4662 |
rajveer |
145 |
2: "COD_VERIFICATION_PENDING",
|
| 844 |
chandransh |
146 |
3: "SUBMITTED_FOR_PROCESSING",
|
|
|
147 |
4: "ACCEPTED",
|
|
|
148 |
5: "INVENTORY_LOW",
|
|
|
149 |
6: "REJECTED",
|
|
|
150 |
7: "BILLED",
|
| 4247 |
rajveer |
151 |
8: "PAYMENT_FLAGGED",
|
| 844 |
chandransh |
152 |
9: "SHIPPED_FROM_WH",
|
|
|
153 |
10: "SHIPPED_TO_LOGST",
|
| 4247 |
rajveer |
154 |
11: "PAYMENT_FLAGGED_DENIED",
|
| 844 |
chandransh |
155 |
12: "DELIVERY_SUCCESS",
|
| 4247 |
rajveer |
156 |
13: "CANCEL_REQUEST_RECEIVED",
|
|
|
157 |
14: "CANCEL_REQUEST_CONFIRMED",
|
|
|
158 |
15: "CANCELLED_ON_CUSTOMER_REQUEST",
|
| 4910 |
phani.kuma |
159 |
16: "SHIPPED_TO_DESTINATION_CITY",
|
|
|
160 |
17: "REACHED_DESTINATION_CITY",
|
| 4682 |
rajveer |
161 |
18: "COD_VERIFICATION_FAILED",
|
| 844 |
chandransh |
162 |
19: "FAILED",
|
| 4484 |
rajveer |
163 |
20: "RTO_IN_TRANSIT",
|
|
|
164 |
21: "RTO_RECEIVED_PRESTINE",
|
| 4452 |
rajveer |
165 |
22: "DOA_PICKUP_REQUEST_RAISED",
|
|
|
166 |
23: "DOA_PICKUP_CONFIRMED",
|
| 2616 |
chandransh |
167 |
24: "DOA_RETURN_IN_TRANSIT",
|
| 4452 |
rajveer |
168 |
25: "DOA_RECEIVED_PRESTINE",
|
| 2616 |
chandransh |
169 |
26: "DOA_CERT_INVALID",
|
|
|
170 |
27: "DOA_CERT_VALID",
|
| 4484 |
rajveer |
171 |
28: "RTO_RESHIPPED",
|
| 2616 |
chandransh |
172 |
29: "DOA_INVALID_RESHIPPED",
|
| 4452 |
rajveer |
173 |
30: "DOA_VALID_RESHIPPED",
|
| 4484 |
rajveer |
174 |
31: "RTO_REFUNDED",
|
| 2616 |
chandransh |
175 |
32: "DOA_VALID_REFUNDED",
|
|
|
176 |
33: "DOA_INVALID_REFUNDED",
|
| 4682 |
rajveer |
177 |
34: "CANCELLED_DUE_TO_LOW_INVENTORY",
|
| 4303 |
rajveer |
178 |
35: "LOW_INV_PO_RAISED",
|
|
|
179 |
36: "LOW_INV_REVERSAL_IN_PROCESS",
|
|
|
180 |
37: "LOW_INV_NOT_AVAILABLE_AT_HOTSPOT",
|
| 4369 |
rajveer |
181 |
38: "LOW_INV_PO_RAISED_TIMEOUT",
|
|
|
182 |
39: "LOW_INV_REVERSAL_TIMEOUT",
|
| 4910 |
phani.kuma |
183 |
40: "FIRST_DELIVERY_ATTEMPT_MADE",
|
| 4421 |
mandeep.dh |
184 |
41: "CAPTURE_IN_PROCESS",
|
| 4452 |
rajveer |
185 |
42: "DOA_REQUEST_RECEIVED",
|
|
|
186 |
43: "DOA_REQUEST_AUTHORIZED",
|
|
|
187 |
44: "DOA_PICKUP_DENIED",
|
|
|
188 |
45: "DOA_RECEIVED_DAMAGED",
|
|
|
189 |
46: "DOA_LOST_IN_TRANSIT",
|
| 4459 |
rajveer |
190 |
47: "DOA_RESHIPPED_RCVD_DAMAGED",
|
|
|
191 |
48: "DOA_REFUNDED_RCVD_DAMAGED",
|
|
|
192 |
49: "DOA_RESHIPPED_LOST_IN_TRANSIT",
|
|
|
193 |
50: "DOA_REFUNDED_LOST_IN_TRANSIT",
|
| 4486 |
rajveer |
194 |
51: "RTO_RECEIVED_DAMAGED",
|
|
|
195 |
52: "RTO_LOST_IN_TRANSIT",
|
|
|
196 |
53: "RTO_DAMAGED_RESHIPPED",
|
|
|
197 |
54: "RTO_DAMAGED_REFUNDED",
|
|
|
198 |
55: "RTO_LOST_IN_TRANSIT_RESHIPPED",
|
|
|
199 |
56: "RTO_LOST_IN_TRANSIT_REFUNDED",
|
|
|
200 |
57: "RTO_INVENTORY_REVERSED",
|
| 4488 |
rajveer |
201 |
58: "RET_REQUEST_RECEIVED",
|
|
|
202 |
59: "RET_REQUEST_AUTHORIZED",
|
|
|
203 |
60: "RET_PICKUP_REQUEST_RAISED",
|
|
|
204 |
61: "RET_PICKUP_DENIED",
|
|
|
205 |
62: "RET_PICKUP_CONFIRMED",
|
|
|
206 |
63: "RET_RETURN_IN_TRANSIT",
|
|
|
207 |
64: "RET_RECEIVED_PRESTINE",
|
|
|
208 |
65: "RET_RECEIVED_DAMAGED",
|
|
|
209 |
66: "RET_LOST_IN_TRANSIT",
|
|
|
210 |
67: "RET_PRODUCT_USABLE",
|
|
|
211 |
68: "RET_PRODUCT_UNUSABLE",
|
|
|
212 |
69: "RET_PRODUCT_USABLE_RESHIPPED",
|
|
|
213 |
70: "RET_PRODUCT_USABLE_REFUNDED",
|
|
|
214 |
71: "RET_PRODUCT_UNUSABLE_RESHIPPED",
|
|
|
215 |
72: "RET_PRODUCT_UNUSABLE_REFUNDED",
|
|
|
216 |
73: "RET_RESHIPPED_RCVD_DAMAGED",
|
|
|
217 |
74: "RET_REFUNDED_RCVD_DAMAGED",
|
|
|
218 |
75: "RET_RESHIPPED_LOST_IN_TRANSIT",
|
|
|
219 |
76: "RET_REFUNDED_LOST_IN_TRANSIT",
|
| 4662 |
rajveer |
220 |
77: "LOST_IN_TRANSIT",
|
|
|
221 |
78: "LOST_IN_TRANSIT_RESHIPPED",
|
|
|
222 |
79: "LOST_IN_TRANSIT_REFUNDED",
|
| 5553 |
rajveer |
223 |
80: "DELIVERED_AT_STORE",
|
|
|
224 |
81: "RECEIVED_AT_STORE",
|
| 18578 |
manish.sha |
225 |
82: "APPROVAL_PENDING",
|
| 19691 |
manish.sha |
226 |
83: "PARTIAL_RETURN_IN_PROCESS",
|
|
|
227 |
84: "PARTIAL_RETURN",
|
|
|
228 |
85: "COMPLETE_RETURN_IN_PROCESS",
|
|
|
229 |
86: "COMPLETE_RETURN",
|
| 20028 |
kshitij.so |
230 |
87: "REFUNDED_WITHOUT_PICKUP",
|
|
|
231 |
88: "REPLACED_WITHOUT_PICKUP",
|
| 94 |
ashish |
232 |
}
|
|
|
233 |
|
|
|
234 |
_NAMES_TO_VALUES = {
|
| 844 |
chandransh |
235 |
"PAYMENT_PENDING": 0,
|
|
|
236 |
"PAYMENT_FAILED": 1,
|
| 4662 |
rajveer |
237 |
"COD_VERIFICATION_PENDING": 2,
|
| 844 |
chandransh |
238 |
"SUBMITTED_FOR_PROCESSING": 3,
|
|
|
239 |
"ACCEPTED": 4,
|
|
|
240 |
"INVENTORY_LOW": 5,
|
|
|
241 |
"REJECTED": 6,
|
|
|
242 |
"BILLED": 7,
|
| 4247 |
rajveer |
243 |
"PAYMENT_FLAGGED": 8,
|
| 844 |
chandransh |
244 |
"SHIPPED_FROM_WH": 9,
|
|
|
245 |
"SHIPPED_TO_LOGST": 10,
|
| 4247 |
rajveer |
246 |
"PAYMENT_FLAGGED_DENIED": 11,
|
| 844 |
chandransh |
247 |
"DELIVERY_SUCCESS": 12,
|
| 4247 |
rajveer |
248 |
"CANCEL_REQUEST_RECEIVED": 13,
|
|
|
249 |
"CANCEL_REQUEST_CONFIRMED": 14,
|
|
|
250 |
"CANCELLED_ON_CUSTOMER_REQUEST": 15,
|
| 4910 |
phani.kuma |
251 |
"SHIPPED_TO_DESTINATION_CITY": 16,
|
|
|
252 |
"REACHED_DESTINATION_CITY": 17,
|
| 4682 |
rajveer |
253 |
"COD_VERIFICATION_FAILED": 18,
|
| 844 |
chandransh |
254 |
"FAILED": 19,
|
| 4484 |
rajveer |
255 |
"RTO_IN_TRANSIT": 20,
|
|
|
256 |
"RTO_RECEIVED_PRESTINE": 21,
|
| 4452 |
rajveer |
257 |
"DOA_PICKUP_REQUEST_RAISED": 22,
|
|
|
258 |
"DOA_PICKUP_CONFIRMED": 23,
|
| 2616 |
chandransh |
259 |
"DOA_RETURN_IN_TRANSIT": 24,
|
| 4452 |
rajveer |
260 |
"DOA_RECEIVED_PRESTINE": 25,
|
| 2616 |
chandransh |
261 |
"DOA_CERT_INVALID": 26,
|
|
|
262 |
"DOA_CERT_VALID": 27,
|
| 4484 |
rajveer |
263 |
"RTO_RESHIPPED": 28,
|
| 2616 |
chandransh |
264 |
"DOA_INVALID_RESHIPPED": 29,
|
| 4452 |
rajveer |
265 |
"DOA_VALID_RESHIPPED": 30,
|
| 4484 |
rajveer |
266 |
"RTO_REFUNDED": 31,
|
| 2616 |
chandransh |
267 |
"DOA_VALID_REFUNDED": 32,
|
|
|
268 |
"DOA_INVALID_REFUNDED": 33,
|
| 4682 |
rajveer |
269 |
"CANCELLED_DUE_TO_LOW_INVENTORY": 34,
|
| 4303 |
rajveer |
270 |
"LOW_INV_PO_RAISED": 35,
|
|
|
271 |
"LOW_INV_REVERSAL_IN_PROCESS": 36,
|
|
|
272 |
"LOW_INV_NOT_AVAILABLE_AT_HOTSPOT": 37,
|
| 4369 |
rajveer |
273 |
"LOW_INV_PO_RAISED_TIMEOUT": 38,
|
|
|
274 |
"LOW_INV_REVERSAL_TIMEOUT": 39,
|
| 4910 |
phani.kuma |
275 |
"FIRST_DELIVERY_ATTEMPT_MADE": 40,
|
| 4421 |
mandeep.dh |
276 |
"CAPTURE_IN_PROCESS": 41,
|
| 4452 |
rajveer |
277 |
"DOA_REQUEST_RECEIVED": 42,
|
|
|
278 |
"DOA_REQUEST_AUTHORIZED": 43,
|
|
|
279 |
"DOA_PICKUP_DENIED": 44,
|
|
|
280 |
"DOA_RECEIVED_DAMAGED": 45,
|
|
|
281 |
"DOA_LOST_IN_TRANSIT": 46,
|
| 4459 |
rajveer |
282 |
"DOA_RESHIPPED_RCVD_DAMAGED": 47,
|
|
|
283 |
"DOA_REFUNDED_RCVD_DAMAGED": 48,
|
|
|
284 |
"DOA_RESHIPPED_LOST_IN_TRANSIT": 49,
|
|
|
285 |
"DOA_REFUNDED_LOST_IN_TRANSIT": 50,
|
| 4486 |
rajveer |
286 |
"RTO_RECEIVED_DAMAGED": 51,
|
|
|
287 |
"RTO_LOST_IN_TRANSIT": 52,
|
|
|
288 |
"RTO_DAMAGED_RESHIPPED": 53,
|
|
|
289 |
"RTO_DAMAGED_REFUNDED": 54,
|
|
|
290 |
"RTO_LOST_IN_TRANSIT_RESHIPPED": 55,
|
|
|
291 |
"RTO_LOST_IN_TRANSIT_REFUNDED": 56,
|
|
|
292 |
"RTO_INVENTORY_REVERSED": 57,
|
| 4488 |
rajveer |
293 |
"RET_REQUEST_RECEIVED": 58,
|
|
|
294 |
"RET_REQUEST_AUTHORIZED": 59,
|
|
|
295 |
"RET_PICKUP_REQUEST_RAISED": 60,
|
|
|
296 |
"RET_PICKUP_DENIED": 61,
|
|
|
297 |
"RET_PICKUP_CONFIRMED": 62,
|
|
|
298 |
"RET_RETURN_IN_TRANSIT": 63,
|
|
|
299 |
"RET_RECEIVED_PRESTINE": 64,
|
|
|
300 |
"RET_RECEIVED_DAMAGED": 65,
|
|
|
301 |
"RET_LOST_IN_TRANSIT": 66,
|
|
|
302 |
"RET_PRODUCT_USABLE": 67,
|
|
|
303 |
"RET_PRODUCT_UNUSABLE": 68,
|
|
|
304 |
"RET_PRODUCT_USABLE_RESHIPPED": 69,
|
|
|
305 |
"RET_PRODUCT_USABLE_REFUNDED": 70,
|
|
|
306 |
"RET_PRODUCT_UNUSABLE_RESHIPPED": 71,
|
|
|
307 |
"RET_PRODUCT_UNUSABLE_REFUNDED": 72,
|
|
|
308 |
"RET_RESHIPPED_RCVD_DAMAGED": 73,
|
|
|
309 |
"RET_REFUNDED_RCVD_DAMAGED": 74,
|
|
|
310 |
"RET_RESHIPPED_LOST_IN_TRANSIT": 75,
|
|
|
311 |
"RET_REFUNDED_LOST_IN_TRANSIT": 76,
|
| 4662 |
rajveer |
312 |
"LOST_IN_TRANSIT": 77,
|
|
|
313 |
"LOST_IN_TRANSIT_RESHIPPED": 78,
|
|
|
314 |
"LOST_IN_TRANSIT_REFUNDED": 79,
|
| 5553 |
rajveer |
315 |
"DELIVERED_AT_STORE": 80,
|
|
|
316 |
"RECEIVED_AT_STORE": 81,
|
| 18578 |
manish.sha |
317 |
"APPROVAL_PENDING": 82,
|
| 19691 |
manish.sha |
318 |
"PARTIAL_RETURN_IN_PROCESS": 83,
|
|
|
319 |
"PARTIAL_RETURN": 84,
|
|
|
320 |
"COMPLETE_RETURN_IN_PROCESS": 85,
|
|
|
321 |
"COMPLETE_RETURN": 86,
|
| 20028 |
kshitij.so |
322 |
"REFUNDED_WITHOUT_PICKUP": 87,
|
|
|
323 |
"REPLACED_WITHOUT_PICKUP": 88,
|
| 94 |
ashish |
324 |
}
|
|
|
325 |
|
|
|
326 |
class TransactionStatus:
|
| 483 |
rajveer |
327 |
INIT = 0
|
|
|
328 |
IN_PROCESS = 1
|
|
|
329 |
COMPLETED = 2
|
|
|
330 |
FAILED = 3
|
| 2964 |
chandransh |
331 |
AUTHORIZED = 4
|
| 3064 |
chandransh |
332 |
COD_IN_PROCESS = 5
|
| 4247 |
rajveer |
333 |
FLAGGED = 6
|
| 94 |
ashish |
334 |
|
|
|
335 |
_VALUES_TO_NAMES = {
|
| 483 |
rajveer |
336 |
0: "INIT",
|
|
|
337 |
1: "IN_PROCESS",
|
|
|
338 |
2: "COMPLETED",
|
|
|
339 |
3: "FAILED",
|
| 2964 |
chandransh |
340 |
4: "AUTHORIZED",
|
| 3064 |
chandransh |
341 |
5: "COD_IN_PROCESS",
|
| 4247 |
rajveer |
342 |
6: "FLAGGED",
|
| 94 |
ashish |
343 |
}
|
|
|
344 |
|
|
|
345 |
_NAMES_TO_VALUES = {
|
| 483 |
rajveer |
346 |
"INIT": 0,
|
|
|
347 |
"IN_PROCESS": 1,
|
|
|
348 |
"COMPLETED": 2,
|
|
|
349 |
"FAILED": 3,
|
| 2964 |
chandransh |
350 |
"AUTHORIZED": 4,
|
| 3064 |
chandransh |
351 |
"COD_IN_PROCESS": 5,
|
| 4247 |
rajveer |
352 |
"FLAGGED": 6,
|
| 94 |
ashish |
353 |
}
|
|
|
354 |
|
| 5527 |
anupam.sin |
355 |
class OrderType:
|
|
|
356 |
B2C = 0
|
|
|
357 |
B2Cbulk = 1
|
|
|
358 |
B2B = 2
|
| 6055 |
rajveer |
359 |
RECHARGE = 3
|
| 7096 |
anupam.sin |
360 |
RCH4HOTSPOT = 4
|
|
|
361 |
WALLETCREDIT = 5
|
| 5527 |
anupam.sin |
362 |
|
|
|
363 |
_VALUES_TO_NAMES = {
|
|
|
364 |
0: "B2C",
|
|
|
365 |
1: "B2Cbulk",
|
|
|
366 |
2: "B2B",
|
| 6055 |
rajveer |
367 |
3: "RECHARGE",
|
| 7096 |
anupam.sin |
368 |
4: "RCH4HOTSPOT",
|
|
|
369 |
5: "WALLETCREDIT",
|
| 5527 |
anupam.sin |
370 |
}
|
|
|
371 |
|
|
|
372 |
_NAMES_TO_VALUES = {
|
|
|
373 |
"B2C": 0,
|
|
|
374 |
"B2Cbulk": 1,
|
|
|
375 |
"B2B": 2,
|
| 6055 |
rajveer |
376 |
"RECHARGE": 3,
|
| 7096 |
anupam.sin |
377 |
"RCH4HOTSPOT": 4,
|
|
|
378 |
"WALLETCREDIT": 5,
|
| 5527 |
anupam.sin |
379 |
}
|
|
|
380 |
|
| 4008 |
mandeep.dh |
381 |
class ExtraTransactionProcessingType:
|
|
|
382 |
COD_VERIFICATION = 0
|
|
|
383 |
DELAYED_DELIVERY = 1
|
| 4247 |
rajveer |
384 |
PAYMENT_FLAGGED = 2
|
| 6104 |
rajveer |
385 |
RECHARGE_UNKNOWN = 3
|
| 4008 |
mandeep.dh |
386 |
|
|
|
387 |
_VALUES_TO_NAMES = {
|
|
|
388 |
0: "COD_VERIFICATION",
|
|
|
389 |
1: "DELAYED_DELIVERY",
|
| 4247 |
rajveer |
390 |
2: "PAYMENT_FLAGGED",
|
| 6104 |
rajveer |
391 |
3: "RECHARGE_UNKNOWN",
|
| 4008 |
mandeep.dh |
392 |
}
|
|
|
393 |
|
|
|
394 |
_NAMES_TO_VALUES = {
|
|
|
395 |
"COD_VERIFICATION": 0,
|
|
|
396 |
"DELAYED_DELIVERY": 1,
|
| 4247 |
rajveer |
397 |
"PAYMENT_FLAGGED": 2,
|
| 6104 |
rajveer |
398 |
"RECHARGE_UNKNOWN": 3,
|
| 4008 |
mandeep.dh |
399 |
}
|
|
|
400 |
|
| 6289 |
anupam.sin |
401 |
class DenominationType:
|
|
|
402 |
TOPUP = 1
|
|
|
403 |
SPECIAL = 2
|
|
|
404 |
DATA = 3
|
|
|
405 |
|
|
|
406 |
_VALUES_TO_NAMES = {
|
|
|
407 |
1: "TOPUP",
|
|
|
408 |
2: "SPECIAL",
|
|
|
409 |
3: "DATA",
|
|
|
410 |
}
|
|
|
411 |
|
|
|
412 |
_NAMES_TO_VALUES = {
|
|
|
413 |
"TOPUP": 1,
|
|
|
414 |
"SPECIAL": 2,
|
|
|
415 |
"DATA": 3,
|
|
|
416 |
}
|
|
|
417 |
|
| 9159 |
amar.kumar |
418 |
class TaxType:
|
|
|
419 |
VAT = 0
|
|
|
420 |
CST = 1
|
|
|
421 |
CFORM = 2
|
| 21844 |
amit.gupta |
422 |
IGST = 3
|
|
|
423 |
SGST = 4
|
| 9159 |
amar.kumar |
424 |
|
|
|
425 |
_VALUES_TO_NAMES = {
|
|
|
426 |
0: "VAT",
|
|
|
427 |
1: "CST",
|
|
|
428 |
2: "CFORM",
|
| 21844 |
amit.gupta |
429 |
3: "IGST",
|
|
|
430 |
4: "SGST",
|
| 9159 |
amar.kumar |
431 |
}
|
|
|
432 |
|
|
|
433 |
_NAMES_TO_VALUES = {
|
|
|
434 |
"VAT": 0,
|
|
|
435 |
"CST": 1,
|
|
|
436 |
"CFORM": 2,
|
| 21844 |
amit.gupta |
437 |
"IGST": 3,
|
|
|
438 |
"SGST": 4,
|
| 9159 |
amar.kumar |
439 |
}
|
|
|
440 |
|
| 22043 |
amit.gupta |
441 |
class WalletReferenceType:
|
|
|
442 |
RECHARGE = 0
|
|
|
443 |
PURCHASE = 1
|
|
|
444 |
CASHBACK = 2
|
|
|
445 |
REVERSAL = 3
|
|
|
446 |
REFUND = 4
|
|
|
447 |
FAILURE = 5
|
|
|
448 |
ADVANCE_AMOUNT = 6
|
|
|
449 |
SHIPPING_REFUND = 7
|
|
|
450 |
ADVANCE_REVERSAL = 8
|
|
|
451 |
OPENING_BALANCE = 9
|
| 23081 |
amit.gupta |
452 |
SCHEME_IN = 10
|
|
|
453 |
SCHEME_OUT = 11
|
|
|
454 |
DAMAGE_PROTECTION = 12
|
| 23120 |
amit.gupta |
455 |
PRICE_DROP = 13
|
|
|
456 |
RECHARGE_COMMISSIONS = 14
|
| 23435 |
ashik.ali |
457 |
PREBOOKING_ORDER = 15
|
| 22043 |
amit.gupta |
458 |
|
|
|
459 |
_VALUES_TO_NAMES = {
|
|
|
460 |
0: "RECHARGE",
|
|
|
461 |
1: "PURCHASE",
|
|
|
462 |
2: "CASHBACK",
|
|
|
463 |
3: "REVERSAL",
|
|
|
464 |
4: "REFUND",
|
|
|
465 |
5: "FAILURE",
|
|
|
466 |
6: "ADVANCE_AMOUNT",
|
|
|
467 |
7: "SHIPPING_REFUND",
|
|
|
468 |
8: "ADVANCE_REVERSAL",
|
|
|
469 |
9: "OPENING_BALANCE",
|
| 23081 |
amit.gupta |
470 |
10: "SCHEME_IN",
|
|
|
471 |
11: "SCHEME_OUT",
|
|
|
472 |
12: "DAMAGE_PROTECTION",
|
| 23120 |
amit.gupta |
473 |
13: "PRICE_DROP",
|
|
|
474 |
14: "RECHARGE_COMMISSIONS",
|
| 23435 |
ashik.ali |
475 |
15: "PREBOOKING_ORDER",
|
| 22043 |
amit.gupta |
476 |
}
|
|
|
477 |
|
|
|
478 |
_NAMES_TO_VALUES = {
|
|
|
479 |
"RECHARGE": 0,
|
|
|
480 |
"PURCHASE": 1,
|
|
|
481 |
"CASHBACK": 2,
|
|
|
482 |
"REVERSAL": 3,
|
|
|
483 |
"REFUND": 4,
|
|
|
484 |
"FAILURE": 5,
|
|
|
485 |
"ADVANCE_AMOUNT": 6,
|
|
|
486 |
"SHIPPING_REFUND": 7,
|
|
|
487 |
"ADVANCE_REVERSAL": 8,
|
|
|
488 |
"OPENING_BALANCE": 9,
|
| 23081 |
amit.gupta |
489 |
"SCHEME_IN": 10,
|
|
|
490 |
"SCHEME_OUT": 11,
|
|
|
491 |
"DAMAGE_PROTECTION": 12,
|
| 23120 |
amit.gupta |
492 |
"PRICE_DROP": 13,
|
|
|
493 |
"RECHARGE_COMMISSIONS": 14,
|
| 23435 |
ashik.ali |
494 |
"PREBOOKING_ORDER": 15,
|
| 22043 |
amit.gupta |
495 |
}
|
|
|
496 |
|
| 3553 |
chandransh |
497 |
class DelayReason:
|
|
|
498 |
INVENTORY_LOW_PHASED_OUT = 0
|
|
|
499 |
INVENTORY_LOW_COLOR_NOT_AVAILABLE = 1
|
|
|
500 |
INVENTORY_LOW_REVERSAL_NOT_ON_TIME = 2
|
|
|
501 |
INVENTORY_LOW_PRODUCT_NOT_SEALED = 3
|
|
|
502 |
COURIER_DELAY_NOT_DELIVERED_TO_COURIER_ON_TIME = 4
|
|
|
503 |
COURIER_DELAY_DID_NOT_CONNECT = 5
|
|
|
504 |
COURIER_DELAY_CUSTOMER_NOT_AVAILABLE = 6
|
|
|
505 |
COURIER_DELAY_INCORRECT_ADDRESS = 7
|
|
|
506 |
COURIER_DELAY_OCTROI_DELAY = 8
|
|
|
507 |
COURIER_DELAY_FORCES_OF_NATURE = 9
|
|
|
508 |
COD_VERIFICATION_DELAY = 10
|
|
|
509 |
PAYMENT_FLAGGED = 11
|
|
|
510 |
OTHERS = 12
|
| 3431 |
rajveer |
511 |
|
| 3553 |
chandransh |
512 |
_VALUES_TO_NAMES = {
|
|
|
513 |
0: "INVENTORY_LOW_PHASED_OUT",
|
|
|
514 |
1: "INVENTORY_LOW_COLOR_NOT_AVAILABLE",
|
|
|
515 |
2: "INVENTORY_LOW_REVERSAL_NOT_ON_TIME",
|
|
|
516 |
3: "INVENTORY_LOW_PRODUCT_NOT_SEALED",
|
|
|
517 |
4: "COURIER_DELAY_NOT_DELIVERED_TO_COURIER_ON_TIME",
|
|
|
518 |
5: "COURIER_DELAY_DID_NOT_CONNECT",
|
|
|
519 |
6: "COURIER_DELAY_CUSTOMER_NOT_AVAILABLE",
|
|
|
520 |
7: "COURIER_DELAY_INCORRECT_ADDRESS",
|
|
|
521 |
8: "COURIER_DELAY_OCTROI_DELAY",
|
|
|
522 |
9: "COURIER_DELAY_FORCES_OF_NATURE",
|
|
|
523 |
10: "COD_VERIFICATION_DELAY",
|
|
|
524 |
11: "PAYMENT_FLAGGED",
|
|
|
525 |
12: "OTHERS",
|
|
|
526 |
}
|
|
|
527 |
|
|
|
528 |
_NAMES_TO_VALUES = {
|
|
|
529 |
"INVENTORY_LOW_PHASED_OUT": 0,
|
|
|
530 |
"INVENTORY_LOW_COLOR_NOT_AVAILABLE": 1,
|
|
|
531 |
"INVENTORY_LOW_REVERSAL_NOT_ON_TIME": 2,
|
|
|
532 |
"INVENTORY_LOW_PRODUCT_NOT_SEALED": 3,
|
|
|
533 |
"COURIER_DELAY_NOT_DELIVERED_TO_COURIER_ON_TIME": 4,
|
|
|
534 |
"COURIER_DELAY_DID_NOT_CONNECT": 5,
|
|
|
535 |
"COURIER_DELAY_CUSTOMER_NOT_AVAILABLE": 6,
|
|
|
536 |
"COURIER_DELAY_INCORRECT_ADDRESS": 7,
|
|
|
537 |
"COURIER_DELAY_OCTROI_DELAY": 8,
|
|
|
538 |
"COURIER_DELAY_FORCES_OF_NATURE": 9,
|
|
|
539 |
"COD_VERIFICATION_DELAY": 10,
|
|
|
540 |
"PAYMENT_FLAGGED": 11,
|
|
|
541 |
"OTHERS": 12,
|
|
|
542 |
}
|
|
|
543 |
|
| 8717 |
amar.kumar |
544 |
class ProductCondition:
|
|
|
545 |
GOOD = 0
|
|
|
546 |
BAD = 1
|
|
|
547 |
|
|
|
548 |
_VALUES_TO_NAMES = {
|
|
|
549 |
0: "GOOD",
|
|
|
550 |
1: "BAD",
|
|
|
551 |
}
|
|
|
552 |
|
|
|
553 |
_NAMES_TO_VALUES = {
|
|
|
554 |
"GOOD": 0,
|
|
|
555 |
"BAD": 1,
|
|
|
556 |
}
|
|
|
557 |
|
| 4394 |
rajveer |
558 |
class AlertType:
|
|
|
559 |
NEW_INVENTORY_ALERT = 0
|
|
|
560 |
ORDER_READY_TO_ACCEPT = 1
|
|
|
561 |
|
|
|
562 |
_VALUES_TO_NAMES = {
|
|
|
563 |
0: "NEW_INVENTORY_ALERT",
|
|
|
564 |
1: "ORDER_READY_TO_ACCEPT",
|
|
|
565 |
}
|
|
|
566 |
|
|
|
567 |
_NAMES_TO_VALUES = {
|
|
|
568 |
"NEW_INVENTORY_ALERT": 0,
|
|
|
569 |
"ORDER_READY_TO_ACCEPT": 1,
|
|
|
570 |
}
|
|
|
571 |
|
| 4303 |
rajveer |
572 |
class HotspotAction:
|
|
|
573 |
PO_RAISED = 0
|
|
|
574 |
REVERSAL_INITIATED = 1
|
|
|
575 |
NOT_AVAILABLE = 2
|
| 3553 |
chandransh |
576 |
|
| 4303 |
rajveer |
577 |
_VALUES_TO_NAMES = {
|
|
|
578 |
0: "PO_RAISED",
|
|
|
579 |
1: "REVERSAL_INITIATED",
|
|
|
580 |
2: "NOT_AVAILABLE",
|
|
|
581 |
}
|
|
|
582 |
|
|
|
583 |
_NAMES_TO_VALUES = {
|
|
|
584 |
"PO_RAISED": 0,
|
|
|
585 |
"REVERSAL_INITIATED": 1,
|
|
|
586 |
"NOT_AVAILABLE": 2,
|
|
|
587 |
}
|
|
|
588 |
|
| 6000 |
mandeep.dh |
589 |
class RechargeType:
|
|
|
590 |
MOBILE = 1
|
|
|
591 |
DTH = 2
|
| 4303 |
rajveer |
592 |
|
| 6000 |
mandeep.dh |
593 |
_VALUES_TO_NAMES = {
|
|
|
594 |
1: "MOBILE",
|
|
|
595 |
2: "DTH",
|
|
|
596 |
}
|
|
|
597 |
|
|
|
598 |
_NAMES_TO_VALUES = {
|
|
|
599 |
"MOBILE": 1,
|
|
|
600 |
"DTH": 2,
|
|
|
601 |
}
|
|
|
602 |
|
|
|
603 |
class RechargeOrderStatus:
|
|
|
604 |
PAYMENT_PENDING = 1
|
| 6031 |
rajveer |
605 |
PAYMENT_FAILED = 2
|
|
|
606 |
PAYMENT_SUCCESSFUL = 3
|
| 6000 |
mandeep.dh |
607 |
RECHARGE_FAILED = 4
|
| 6031 |
rajveer |
608 |
RECHARGE_SUCCESSFUL = 5
|
| 6235 |
rajveer |
609 |
RECHARGE_FAILED_REFUNDED = 6
|
| 6507 |
anupam.sin |
610 |
REFUNDED = 7
|
|
|
611 |
PARTIALLY_REFUNDED = 8
|
| 7073 |
anupam.sin |
612 |
INIT = 9
|
|
|
613 |
RECHARGE_UNKNOWN = 10
|
| 12979 |
kshitij.so |
614 |
RECHARGE_IN_PROCESS = 11
|
| 6000 |
mandeep.dh |
615 |
|
|
|
616 |
_VALUES_TO_NAMES = {
|
|
|
617 |
1: "PAYMENT_PENDING",
|
| 6031 |
rajveer |
618 |
2: "PAYMENT_FAILED",
|
|
|
619 |
3: "PAYMENT_SUCCESSFUL",
|
| 6000 |
mandeep.dh |
620 |
4: "RECHARGE_FAILED",
|
| 6031 |
rajveer |
621 |
5: "RECHARGE_SUCCESSFUL",
|
| 6235 |
rajveer |
622 |
6: "RECHARGE_FAILED_REFUNDED",
|
| 6507 |
anupam.sin |
623 |
7: "REFUNDED",
|
|
|
624 |
8: "PARTIALLY_REFUNDED",
|
| 7073 |
anupam.sin |
625 |
9: "INIT",
|
|
|
626 |
10: "RECHARGE_UNKNOWN",
|
| 12979 |
kshitij.so |
627 |
11: "RECHARGE_IN_PROCESS",
|
| 6000 |
mandeep.dh |
628 |
}
|
|
|
629 |
|
|
|
630 |
_NAMES_TO_VALUES = {
|
|
|
631 |
"PAYMENT_PENDING": 1,
|
| 6031 |
rajveer |
632 |
"PAYMENT_FAILED": 2,
|
|
|
633 |
"PAYMENT_SUCCESSFUL": 3,
|
| 6000 |
mandeep.dh |
634 |
"RECHARGE_FAILED": 4,
|
| 6031 |
rajveer |
635 |
"RECHARGE_SUCCESSFUL": 5,
|
| 6235 |
rajveer |
636 |
"RECHARGE_FAILED_REFUNDED": 6,
|
| 6507 |
anupam.sin |
637 |
"REFUNDED": 7,
|
|
|
638 |
"PARTIALLY_REFUNDED": 8,
|
| 7073 |
anupam.sin |
639 |
"INIT": 9,
|
|
|
640 |
"RECHARGE_UNKNOWN": 10,
|
| 12979 |
kshitij.so |
641 |
"RECHARGE_IN_PROCESS": 11,
|
| 6000 |
mandeep.dh |
642 |
}
|
|
|
643 |
|
| 7293 |
anupam.sin |
644 |
class OrderSource:
|
|
|
645 |
WEBSITE = 1
|
|
|
646 |
STORE = 2
|
| 7354 |
vikram.rag |
647 |
AMAZON = 3
|
| 7410 |
amar.kumar |
648 |
HOMESHOP18 = 4
|
|
|
649 |
NAAPTOL = 5
|
|
|
650 |
EBAY = 6
|
| 8488 |
amar.kumar |
651 |
SNAPDEAL = 7
|
| 8982 |
vikram.rag |
652 |
FLIPKART = 8
|
| 11526 |
amit.gupta |
653 |
MOBILESITE = 9
|
| 12580 |
amit.gupta |
654 |
JUNGLEE = 10
|
| 7293 |
anupam.sin |
655 |
|
|
|
656 |
_VALUES_TO_NAMES = {
|
|
|
657 |
1: "WEBSITE",
|
|
|
658 |
2: "STORE",
|
| 7354 |
vikram.rag |
659 |
3: "AMAZON",
|
| 7410 |
amar.kumar |
660 |
4: "HOMESHOP18",
|
|
|
661 |
5: "NAAPTOL",
|
|
|
662 |
6: "EBAY",
|
| 8488 |
amar.kumar |
663 |
7: "SNAPDEAL",
|
| 8982 |
vikram.rag |
664 |
8: "FLIPKART",
|
| 11526 |
amit.gupta |
665 |
9: "MOBILESITE",
|
| 12580 |
amit.gupta |
666 |
10: "JUNGLEE",
|
| 7293 |
anupam.sin |
667 |
}
|
|
|
668 |
|
|
|
669 |
_NAMES_TO_VALUES = {
|
|
|
670 |
"WEBSITE": 1,
|
|
|
671 |
"STORE": 2,
|
| 7354 |
vikram.rag |
672 |
"AMAZON": 3,
|
| 7410 |
amar.kumar |
673 |
"HOMESHOP18": 4,
|
|
|
674 |
"NAAPTOL": 5,
|
|
|
675 |
"EBAY": 6,
|
| 8488 |
amar.kumar |
676 |
"SNAPDEAL": 7,
|
| 8982 |
vikram.rag |
677 |
"FLIPKART": 8,
|
| 11526 |
amit.gupta |
678 |
"MOBILESITE": 9,
|
| 12580 |
amit.gupta |
679 |
"JUNGLEE": 10,
|
| 7293 |
anupam.sin |
680 |
}
|
|
|
681 |
|
| 12979 |
kshitij.so |
682 |
class RechargeMode:
|
|
|
683 |
SYNC = 1
|
|
|
684 |
ASYNC = 2
|
|
|
685 |
|
|
|
686 |
_VALUES_TO_NAMES = {
|
|
|
687 |
1: "SYNC",
|
|
|
688 |
2: "ASYNC",
|
|
|
689 |
}
|
|
|
690 |
|
|
|
691 |
_NAMES_TO_VALUES = {
|
|
|
692 |
"SYNC": 1,
|
|
|
693 |
"ASYNC": 2,
|
|
|
694 |
}
|
|
|
695 |
|
| 13941 |
amit.gupta |
696 |
class WalletSource:
|
|
|
697 |
RECHARGE = 1
|
|
|
698 |
PHYSICAL = 2
|
|
|
699 |
DTR = 3
|
|
|
700 |
|
|
|
701 |
_VALUES_TO_NAMES = {
|
|
|
702 |
1: "RECHARGE",
|
|
|
703 |
2: "PHYSICAL",
|
|
|
704 |
3: "DTR",
|
|
|
705 |
}
|
|
|
706 |
|
|
|
707 |
_NAMES_TO_VALUES = {
|
|
|
708 |
"RECHARGE": 1,
|
|
|
709 |
"PHYSICAL": 2,
|
|
|
710 |
"DTR": 3,
|
|
|
711 |
}
|
|
|
712 |
|
| 6389 |
rajveer |
713 |
class EmiChargeType:
|
|
|
714 |
FIXED = 1
|
|
|
715 |
PERCENTAGE = 2
|
| 6000 |
mandeep.dh |
716 |
|
|
|
717 |
_VALUES_TO_NAMES = {
|
| 6389 |
rajveer |
718 |
1: "FIXED",
|
|
|
719 |
2: "PERCENTAGE",
|
| 6000 |
mandeep.dh |
720 |
}
|
|
|
721 |
|
|
|
722 |
_NAMES_TO_VALUES = {
|
| 6389 |
rajveer |
723 |
"FIXED": 1,
|
|
|
724 |
"PERCENTAGE": 2,
|
| 6000 |
mandeep.dh |
725 |
}
|
|
|
726 |
|
| 7073 |
anupam.sin |
727 |
class PayMethod:
|
|
|
728 |
CASH = 1
|
|
|
729 |
CARD = 2
|
| 8008 |
anupam.sin |
730 |
CHEQUE = 3
|
| 6000 |
mandeep.dh |
731 |
|
| 7073 |
anupam.sin |
732 |
_VALUES_TO_NAMES = {
|
|
|
733 |
1: "CASH",
|
|
|
734 |
2: "CARD",
|
| 8008 |
anupam.sin |
735 |
3: "CHEQUE",
|
| 7073 |
anupam.sin |
736 |
}
|
|
|
737 |
|
|
|
738 |
_NAMES_TO_VALUES = {
|
|
|
739 |
"CASH": 1,
|
|
|
740 |
"CARD": 2,
|
| 8008 |
anupam.sin |
741 |
"CHEQUE": 3,
|
| 7073 |
anupam.sin |
742 |
}
|
|
|
743 |
|
| 7386 |
anupam.sin |
744 |
class StorePaymentStatus:
|
|
|
745 |
ADV_RECEIVED = 1
|
|
|
746 |
ADV_REFUNDED = 2
|
|
|
747 |
FULL_PAY_RECEIVED = 3
|
|
|
748 |
REFUNDED = 4
|
| 7423 |
anupam.sin |
749 |
REFUND_REQUESTED = 5
|
|
|
750 |
REFUND_INITIATED = 6
|
| 7073 |
anupam.sin |
751 |
|
| 7386 |
anupam.sin |
752 |
_VALUES_TO_NAMES = {
|
|
|
753 |
1: "ADV_RECEIVED",
|
|
|
754 |
2: "ADV_REFUNDED",
|
|
|
755 |
3: "FULL_PAY_RECEIVED",
|
|
|
756 |
4: "REFUNDED",
|
| 7423 |
anupam.sin |
757 |
5: "REFUND_REQUESTED",
|
|
|
758 |
6: "REFUND_INITIATED",
|
| 7386 |
anupam.sin |
759 |
}
|
|
|
760 |
|
|
|
761 |
_NAMES_TO_VALUES = {
|
|
|
762 |
"ADV_RECEIVED": 1,
|
|
|
763 |
"ADV_REFUNDED": 2,
|
|
|
764 |
"FULL_PAY_RECEIVED": 3,
|
|
|
765 |
"REFUNDED": 4,
|
| 7423 |
anupam.sin |
766 |
"REFUND_REQUESTED": 5,
|
|
|
767 |
"REFUND_INITIATED": 6,
|
| 7386 |
anupam.sin |
768 |
}
|
|
|
769 |
|
| 18578 |
manish.sha |
770 |
class CreditTxnType:
|
|
|
771 |
BLOCKED = 0
|
| 18769 |
manish.sha |
772 |
BLOCKED_REVERSED = 1
|
| 18578 |
manish.sha |
773 |
LOAN = 2
|
| 18634 |
manish.sha |
774 |
LOAN_CANCELLED = 3
|
|
|
775 |
PAID = 4
|
|
|
776 |
DEFAULTED = 5
|
|
|
777 |
CORRECTION = 6
|
| 7386 |
anupam.sin |
778 |
|
| 18578 |
manish.sha |
779 |
_VALUES_TO_NAMES = {
|
|
|
780 |
0: "BLOCKED",
|
| 18769 |
manish.sha |
781 |
1: "BLOCKED_REVERSED",
|
| 18578 |
manish.sha |
782 |
2: "LOAN",
|
| 18634 |
manish.sha |
783 |
3: "LOAN_CANCELLED",
|
|
|
784 |
4: "PAID",
|
|
|
785 |
5: "DEFAULTED",
|
|
|
786 |
6: "CORRECTION",
|
| 18578 |
manish.sha |
787 |
}
|
|
|
788 |
|
|
|
789 |
_NAMES_TO_VALUES = {
|
|
|
790 |
"BLOCKED": 0,
|
| 18769 |
manish.sha |
791 |
"BLOCKED_REVERSED": 1,
|
| 18578 |
manish.sha |
792 |
"LOAN": 2,
|
| 18634 |
manish.sha |
793 |
"LOAN_CANCELLED": 3,
|
|
|
794 |
"PAID": 4,
|
|
|
795 |
"DEFAULTED": 5,
|
|
|
796 |
"CORRECTION": 6,
|
| 18578 |
manish.sha |
797 |
}
|
|
|
798 |
|
|
|
799 |
class ReturnAction:
|
|
|
800 |
REPLACEMENT = 0
|
|
|
801 |
REFUND = 1
|
|
|
802 |
|
|
|
803 |
_VALUES_TO_NAMES = {
|
|
|
804 |
0: "REPLACEMENT",
|
|
|
805 |
1: "REFUND",
|
|
|
806 |
}
|
|
|
807 |
|
|
|
808 |
_NAMES_TO_VALUES = {
|
|
|
809 |
"REPLACEMENT": 0,
|
|
|
810 |
"REFUND": 1,
|
|
|
811 |
}
|
|
|
812 |
|
|
|
813 |
class ReturnPickupType:
|
|
|
814 |
NOW = 0
|
|
|
815 |
LATER = 1
|
|
|
816 |
NOT_REQUIRED = 2
|
|
|
817 |
|
|
|
818 |
_VALUES_TO_NAMES = {
|
|
|
819 |
0: "NOW",
|
|
|
820 |
1: "LATER",
|
|
|
821 |
2: "NOT_REQUIRED",
|
|
|
822 |
}
|
|
|
823 |
|
|
|
824 |
_NAMES_TO_VALUES = {
|
|
|
825 |
"NOW": 0,
|
|
|
826 |
"LATER": 1,
|
|
|
827 |
"NOT_REQUIRED": 2,
|
|
|
828 |
}
|
|
|
829 |
|
|
|
830 |
class RefundType:
|
|
|
831 |
INIT = 0
|
|
|
832 |
CHEQUE = 1
|
|
|
833 |
WALLET = 2
|
|
|
834 |
COUPON = 3
|
|
|
835 |
GATEWAY = 4
|
|
|
836 |
REPLACEMENT = 5
|
|
|
837 |
|
|
|
838 |
_VALUES_TO_NAMES = {
|
|
|
839 |
0: "INIT",
|
|
|
840 |
1: "CHEQUE",
|
|
|
841 |
2: "WALLET",
|
|
|
842 |
3: "COUPON",
|
|
|
843 |
4: "GATEWAY",
|
|
|
844 |
5: "REPLACEMENT",
|
|
|
845 |
}
|
|
|
846 |
|
|
|
847 |
_NAMES_TO_VALUES = {
|
|
|
848 |
"INIT": 0,
|
|
|
849 |
"CHEQUE": 1,
|
|
|
850 |
"WALLET": 2,
|
|
|
851 |
"COUPON": 3,
|
|
|
852 |
"GATEWAY": 4,
|
|
|
853 |
"REPLACEMENT": 5,
|
|
|
854 |
}
|
|
|
855 |
|
|
|
856 |
class ReplacementShippingType:
|
|
|
857 |
IMMEDIATE = 0
|
|
|
858 |
LATER = 1
|
|
|
859 |
|
|
|
860 |
_VALUES_TO_NAMES = {
|
|
|
861 |
0: "IMMEDIATE",
|
|
|
862 |
1: "LATER",
|
|
|
863 |
}
|
|
|
864 |
|
|
|
865 |
_NAMES_TO_VALUES = {
|
|
|
866 |
"IMMEDIATE": 0,
|
|
|
867 |
"LATER": 1,
|
|
|
868 |
}
|
|
|
869 |
|
|
|
870 |
class ReturnTxnPickupStatus:
|
|
|
871 |
PENDING = 0
|
|
|
872 |
PICKUP_REQUESTED = 1
|
|
|
873 |
PICKUP_CONFIRMED = 2
|
|
|
874 |
PICKUP_SCHEDULED = 3
|
|
|
875 |
PICKUP_IN_TRANSIT = 4
|
|
|
876 |
PICKUP_RECEIVED = 5
|
|
|
877 |
|
|
|
878 |
_VALUES_TO_NAMES = {
|
|
|
879 |
0: "PENDING",
|
|
|
880 |
1: "PICKUP_REQUESTED",
|
|
|
881 |
2: "PICKUP_CONFIRMED",
|
|
|
882 |
3: "PICKUP_SCHEDULED",
|
|
|
883 |
4: "PICKUP_IN_TRANSIT",
|
|
|
884 |
5: "PICKUP_RECEIVED",
|
|
|
885 |
}
|
|
|
886 |
|
|
|
887 |
_NAMES_TO_VALUES = {
|
|
|
888 |
"PENDING": 0,
|
|
|
889 |
"PICKUP_REQUESTED": 1,
|
|
|
890 |
"PICKUP_CONFIRMED": 2,
|
|
|
891 |
"PICKUP_SCHEDULED": 3,
|
|
|
892 |
"PICKUP_IN_TRANSIT": 4,
|
|
|
893 |
"PICKUP_RECEIVED": 5,
|
|
|
894 |
}
|
|
|
895 |
|
|
|
896 |
class ReceivedReturnType:
|
|
|
897 |
PRESTINE = 0
|
|
|
898 |
DAMAGED = 1
|
|
|
899 |
LOST_IN_TRANSIT = 2
|
|
|
900 |
|
|
|
901 |
_VALUES_TO_NAMES = {
|
|
|
902 |
0: "PRESTINE",
|
|
|
903 |
1: "DAMAGED",
|
|
|
904 |
2: "LOST_IN_TRANSIT",
|
|
|
905 |
}
|
|
|
906 |
|
|
|
907 |
_NAMES_TO_VALUES = {
|
|
|
908 |
"PRESTINE": 0,
|
|
|
909 |
"DAMAGED": 1,
|
|
|
910 |
"LOST_IN_TRANSIT": 2,
|
|
|
911 |
}
|
|
|
912 |
|
|
|
913 |
class ReturnTxnResolutionStatus:
|
|
|
914 |
PENDING = 0
|
|
|
915 |
AWAITING_PICKUP = 1
|
|
|
916 |
QUALITY_CHECK = 2
|
|
|
917 |
REPLACEMENT_ORDER_CREATED = 3
|
|
|
918 |
REPLACEMENT_DONE = 4
|
|
|
919 |
REFUND_IN_PROCESS = 5
|
|
|
920 |
REFUND_DONE = 6
|
|
|
921 |
CLOSED = 7
|
|
|
922 |
|
|
|
923 |
_VALUES_TO_NAMES = {
|
|
|
924 |
0: "PENDING",
|
|
|
925 |
1: "AWAITING_PICKUP",
|
|
|
926 |
2: "QUALITY_CHECK",
|
|
|
927 |
3: "REPLACEMENT_ORDER_CREATED",
|
|
|
928 |
4: "REPLACEMENT_DONE",
|
|
|
929 |
5: "REFUND_IN_PROCESS",
|
|
|
930 |
6: "REFUND_DONE",
|
|
|
931 |
7: "CLOSED",
|
|
|
932 |
}
|
|
|
933 |
|
|
|
934 |
_NAMES_TO_VALUES = {
|
|
|
935 |
"PENDING": 0,
|
|
|
936 |
"AWAITING_PICKUP": 1,
|
|
|
937 |
"QUALITY_CHECK": 2,
|
|
|
938 |
"REPLACEMENT_ORDER_CREATED": 3,
|
|
|
939 |
"REPLACEMENT_DONE": 4,
|
|
|
940 |
"REFUND_IN_PROCESS": 5,
|
|
|
941 |
"REFUND_DONE": 6,
|
|
|
942 |
"CLOSED": 7,
|
|
|
943 |
}
|
|
|
944 |
|
|
|
945 |
class ReturnTransactionStatus:
|
|
|
946 |
INITIATED = 0
|
|
|
947 |
AUTHORIZED = 1
|
|
|
948 |
INPROCESS = 2
|
|
|
949 |
REJECTED = 3
|
|
|
950 |
PROCESSED = 4
|
|
|
951 |
COMPLETED = 5
|
|
|
952 |
CLOSED = 6
|
|
|
953 |
|
|
|
954 |
_VALUES_TO_NAMES = {
|
|
|
955 |
0: "INITIATED",
|
|
|
956 |
1: "AUTHORIZED",
|
|
|
957 |
2: "INPROCESS",
|
|
|
958 |
3: "REJECTED",
|
|
|
959 |
4: "PROCESSED",
|
|
|
960 |
5: "COMPLETED",
|
|
|
961 |
6: "CLOSED",
|
|
|
962 |
}
|
|
|
963 |
|
|
|
964 |
_NAMES_TO_VALUES = {
|
|
|
965 |
"INITIATED": 0,
|
|
|
966 |
"AUTHORIZED": 1,
|
|
|
967 |
"INPROCESS": 2,
|
|
|
968 |
"REJECTED": 3,
|
|
|
969 |
"PROCESSED": 4,
|
|
|
970 |
"COMPLETED": 5,
|
|
|
971 |
"CLOSED": 6,
|
|
|
972 |
}
|
|
|
973 |
|
|
|
974 |
|
| 483 |
rajveer |
975 |
class LineItem:
|
| 94 |
ashish |
976 |
"""
|
|
|
977 |
Attributes:
|
|
|
978 |
- id
|
| 700 |
chandransh |
979 |
- item_id
|
| 963 |
chandransh |
980 |
- productGroup
|
| 483 |
rajveer |
981 |
- brand
|
|
|
982 |
- model_number
|
| 963 |
chandransh |
983 |
- color
|
| 483 |
rajveer |
984 |
- model_name
|
|
|
985 |
- extra_info
|
|
|
986 |
- quantity
|
| 12280 |
amit.gupta |
987 |
- mrp
|
| 483 |
rajveer |
988 |
- unit_price
|
|
|
989 |
- unit_weight
|
|
|
990 |
- total_price
|
| 998 |
varun.gupt |
991 |
- transfer_price
|
| 483 |
rajveer |
992 |
- total_weight
|
| 4658 |
mandeep.dh |
993 |
- serial_number
|
| 2783 |
chandransh |
994 |
- item_number
|
| 4172 |
rajveer |
995 |
- dealText
|
| 4295 |
varun.gupt |
996 |
- warrantry_expiry_timestamp
|
| 6039 |
amit.gupta |
997 |
- vatRate
|
| 7741 |
kshitij.so |
998 |
- nlc
|
| 19421 |
manish.sha |
999 |
- logisticsCost
|
|
|
1000 |
- codCollectionCharges
|
| 19691 |
manish.sha |
1001 |
- returnQty
|
| 19714 |
manish.sha |
1002 |
- damaged_expiry_timestamp
|
| 21844 |
amit.gupta |
1003 |
- igstRate
|
|
|
1004 |
- cgstRate
|
|
|
1005 |
- sgstRate
|
|
|
1006 |
- hsnCode
|
| 94 |
ashish |
1007 |
"""
|
|
|
1008 |
|
|
|
1009 |
thrift_spec = (
|
|
|
1010 |
None, # 0
|
|
|
1011 |
(1, TType.I64, 'id', None, None, ), # 1
|
| 700 |
chandransh |
1012 |
(2, TType.I64, 'item_id', None, None, ), # 2
|
| 963 |
chandransh |
1013 |
(3, TType.STRING, 'productGroup', None, None, ), # 3
|
|
|
1014 |
(4, TType.STRING, 'brand', None, None, ), # 4
|
|
|
1015 |
(5, TType.STRING, 'model_number', None, None, ), # 5
|
|
|
1016 |
(6, TType.STRING, 'color', None, None, ), # 6
|
|
|
1017 |
(7, TType.STRING, 'model_name', None, None, ), # 7
|
|
|
1018 |
(8, TType.STRING, 'extra_info', None, None, ), # 8
|
|
|
1019 |
(9, TType.DOUBLE, 'quantity', None, None, ), # 9
|
| 12280 |
amit.gupta |
1020 |
(10, TType.DOUBLE, 'mrp', None, None, ), # 10
|
|
|
1021 |
(11, TType.DOUBLE, 'unit_price', None, None, ), # 11
|
|
|
1022 |
(12, TType.DOUBLE, 'unit_weight', None, None, ), # 12
|
|
|
1023 |
(13, TType.DOUBLE, 'total_price', None, None, ), # 13
|
|
|
1024 |
(14, TType.DOUBLE, 'transfer_price', None, None, ), # 14
|
|
|
1025 |
(15, TType.DOUBLE, 'total_weight', None, None, ), # 15
|
|
|
1026 |
(16, TType.STRING, 'serial_number', None, None, ), # 16
|
|
|
1027 |
(17, TType.STRING, 'item_number', None, None, ), # 17
|
|
|
1028 |
(18, TType.STRING, 'dealText', None, None, ), # 18
|
|
|
1029 |
(19, TType.I64, 'warrantry_expiry_timestamp', None, None, ), # 19
|
|
|
1030 |
(20, TType.DOUBLE, 'vatRate', None, None, ), # 20
|
|
|
1031 |
(21, TType.DOUBLE, 'nlc', None, None, ), # 21
|
| 19421 |
manish.sha |
1032 |
(22, TType.DOUBLE, 'logisticsCost', None, None, ), # 22
|
|
|
1033 |
(23, TType.DOUBLE, 'codCollectionCharges', None, None, ), # 23
|
| 19691 |
manish.sha |
1034 |
(24, TType.DOUBLE, 'returnQty', None, None, ), # 24
|
| 19714 |
manish.sha |
1035 |
(25, TType.I64, 'damaged_expiry_timestamp', None, None, ), # 25
|
| 21844 |
amit.gupta |
1036 |
(26, TType.DOUBLE, 'igstRate', None, None, ), # 26
|
|
|
1037 |
(27, TType.DOUBLE, 'cgstRate', None, None, ), # 27
|
|
|
1038 |
(28, TType.DOUBLE, 'sgstRate', None, None, ), # 28
|
|
|
1039 |
(29, TType.STRING, 'hsnCode', None, None, ), # 29
|
| 94 |
ashish |
1040 |
)
|
|
|
1041 |
|
| 21844 |
amit.gupta |
1042 |
def __init__(self, id=None, item_id=None, productGroup=None, brand=None, model_number=None, color=None, model_name=None, extra_info=None, quantity=None, mrp=None, unit_price=None, unit_weight=None, total_price=None, transfer_price=None, total_weight=None, serial_number=None, item_number=None, dealText=None, warrantry_expiry_timestamp=None, vatRate=None, nlc=None, logisticsCost=None, codCollectionCharges=None, returnQty=None, damaged_expiry_timestamp=None, igstRate=None, cgstRate=None, sgstRate=None, hsnCode=None,):
|
| 94 |
ashish |
1043 |
self.id = id
|
| 700 |
chandransh |
1044 |
self.item_id = item_id
|
| 963 |
chandransh |
1045 |
self.productGroup = productGroup
|
| 483 |
rajveer |
1046 |
self.brand = brand
|
|
|
1047 |
self.model_number = model_number
|
| 963 |
chandransh |
1048 |
self.color = color
|
| 483 |
rajveer |
1049 |
self.model_name = model_name
|
|
|
1050 |
self.extra_info = extra_info
|
|
|
1051 |
self.quantity = quantity
|
| 12280 |
amit.gupta |
1052 |
self.mrp = mrp
|
| 483 |
rajveer |
1053 |
self.unit_price = unit_price
|
|
|
1054 |
self.unit_weight = unit_weight
|
|
|
1055 |
self.total_price = total_price
|
| 998 |
varun.gupt |
1056 |
self.transfer_price = transfer_price
|
| 483 |
rajveer |
1057 |
self.total_weight = total_weight
|
| 4658 |
mandeep.dh |
1058 |
self.serial_number = serial_number
|
| 2783 |
chandransh |
1059 |
self.item_number = item_number
|
| 4172 |
rajveer |
1060 |
self.dealText = dealText
|
| 4295 |
varun.gupt |
1061 |
self.warrantry_expiry_timestamp = warrantry_expiry_timestamp
|
| 6039 |
amit.gupta |
1062 |
self.vatRate = vatRate
|
| 7741 |
kshitij.so |
1063 |
self.nlc = nlc
|
| 19421 |
manish.sha |
1064 |
self.logisticsCost = logisticsCost
|
|
|
1065 |
self.codCollectionCharges = codCollectionCharges
|
| 19691 |
manish.sha |
1066 |
self.returnQty = returnQty
|
| 19714 |
manish.sha |
1067 |
self.damaged_expiry_timestamp = damaged_expiry_timestamp
|
| 21844 |
amit.gupta |
1068 |
self.igstRate = igstRate
|
|
|
1069 |
self.cgstRate = cgstRate
|
|
|
1070 |
self.sgstRate = sgstRate
|
|
|
1071 |
self.hsnCode = hsnCode
|
| 94 |
ashish |
1072 |
|
|
|
1073 |
def read(self, iprot):
|
|
|
1074 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1075 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1076 |
return
|
|
|
1077 |
iprot.readStructBegin()
|
|
|
1078 |
while True:
|
|
|
1079 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1080 |
if ftype == TType.STOP:
|
|
|
1081 |
break
|
|
|
1082 |
if fid == 1:
|
|
|
1083 |
if ftype == TType.I64:
|
|
|
1084 |
self.id = iprot.readI64();
|
|
|
1085 |
else:
|
|
|
1086 |
iprot.skip(ftype)
|
|
|
1087 |
elif fid == 2:
|
| 700 |
chandransh |
1088 |
if ftype == TType.I64:
|
|
|
1089 |
self.item_id = iprot.readI64();
|
| 94 |
ashish |
1090 |
else:
|
|
|
1091 |
iprot.skip(ftype)
|
|
|
1092 |
elif fid == 3:
|
| 483 |
rajveer |
1093 |
if ftype == TType.STRING:
|
| 963 |
chandransh |
1094 |
self.productGroup = iprot.readString();
|
| 94 |
ashish |
1095 |
else:
|
|
|
1096 |
iprot.skip(ftype)
|
|
|
1097 |
elif fid == 4:
|
| 483 |
rajveer |
1098 |
if ftype == TType.STRING:
|
| 963 |
chandransh |
1099 |
self.brand = iprot.readString();
|
| 94 |
ashish |
1100 |
else:
|
|
|
1101 |
iprot.skip(ftype)
|
|
|
1102 |
elif fid == 5:
|
|
|
1103 |
if ftype == TType.STRING:
|
| 963 |
chandransh |
1104 |
self.model_number = iprot.readString();
|
| 94 |
ashish |
1105 |
else:
|
|
|
1106 |
iprot.skip(ftype)
|
| 483 |
rajveer |
1107 |
elif fid == 6:
|
|
|
1108 |
if ftype == TType.STRING:
|
| 963 |
chandransh |
1109 |
self.color = iprot.readString();
|
|
|
1110 |
else:
|
|
|
1111 |
iprot.skip(ftype)
|
|
|
1112 |
elif fid == 7:
|
|
|
1113 |
if ftype == TType.STRING:
|
|
|
1114 |
self.model_name = iprot.readString();
|
|
|
1115 |
else:
|
|
|
1116 |
iprot.skip(ftype)
|
|
|
1117 |
elif fid == 8:
|
|
|
1118 |
if ftype == TType.STRING:
|
| 483 |
rajveer |
1119 |
self.extra_info = iprot.readString();
|
|
|
1120 |
else:
|
|
|
1121 |
iprot.skip(ftype)
|
| 963 |
chandransh |
1122 |
elif fid == 9:
|
| 483 |
rajveer |
1123 |
if ftype == TType.DOUBLE:
|
|
|
1124 |
self.quantity = iprot.readDouble();
|
|
|
1125 |
else:
|
|
|
1126 |
iprot.skip(ftype)
|
| 963 |
chandransh |
1127 |
elif fid == 10:
|
| 483 |
rajveer |
1128 |
if ftype == TType.DOUBLE:
|
| 12280 |
amit.gupta |
1129 |
self.mrp = iprot.readDouble();
|
| 483 |
rajveer |
1130 |
else:
|
|
|
1131 |
iprot.skip(ftype)
|
| 963 |
chandransh |
1132 |
elif fid == 11:
|
| 483 |
rajveer |
1133 |
if ftype == TType.DOUBLE:
|
| 12280 |
amit.gupta |
1134 |
self.unit_price = iprot.readDouble();
|
| 483 |
rajveer |
1135 |
else:
|
|
|
1136 |
iprot.skip(ftype)
|
| 963 |
chandransh |
1137 |
elif fid == 12:
|
| 483 |
rajveer |
1138 |
if ftype == TType.DOUBLE:
|
| 12280 |
amit.gupta |
1139 |
self.unit_weight = iprot.readDouble();
|
| 483 |
rajveer |
1140 |
else:
|
|
|
1141 |
iprot.skip(ftype)
|
| 963 |
chandransh |
1142 |
elif fid == 13:
|
| 483 |
rajveer |
1143 |
if ftype == TType.DOUBLE:
|
| 12280 |
amit.gupta |
1144 |
self.total_price = iprot.readDouble();
|
| 998 |
varun.gupt |
1145 |
else:
|
|
|
1146 |
iprot.skip(ftype)
|
|
|
1147 |
elif fid == 14:
|
|
|
1148 |
if ftype == TType.DOUBLE:
|
| 12280 |
amit.gupta |
1149 |
self.transfer_price = iprot.readDouble();
|
|
|
1150 |
else:
|
|
|
1151 |
iprot.skip(ftype)
|
|
|
1152 |
elif fid == 15:
|
|
|
1153 |
if ftype == TType.DOUBLE:
|
| 483 |
rajveer |
1154 |
self.total_weight = iprot.readDouble();
|
|
|
1155 |
else:
|
|
|
1156 |
iprot.skip(ftype)
|
| 12280 |
amit.gupta |
1157 |
elif fid == 16:
|
| 4658 |
mandeep.dh |
1158 |
if ftype == TType.STRING:
|
|
|
1159 |
self.serial_number = iprot.readString();
|
| 2783 |
chandransh |
1160 |
else:
|
|
|
1161 |
iprot.skip(ftype)
|
| 12280 |
amit.gupta |
1162 |
elif fid == 17:
|
| 2783 |
chandransh |
1163 |
if ftype == TType.STRING:
|
|
|
1164 |
self.item_number = iprot.readString();
|
|
|
1165 |
else:
|
|
|
1166 |
iprot.skip(ftype)
|
| 12280 |
amit.gupta |
1167 |
elif fid == 18:
|
| 4172 |
rajveer |
1168 |
if ftype == TType.STRING:
|
|
|
1169 |
self.dealText = iprot.readString();
|
|
|
1170 |
else:
|
|
|
1171 |
iprot.skip(ftype)
|
| 12280 |
amit.gupta |
1172 |
elif fid == 19:
|
| 4295 |
varun.gupt |
1173 |
if ftype == TType.I64:
|
|
|
1174 |
self.warrantry_expiry_timestamp = iprot.readI64();
|
|
|
1175 |
else:
|
|
|
1176 |
iprot.skip(ftype)
|
| 12280 |
amit.gupta |
1177 |
elif fid == 20:
|
| 6039 |
amit.gupta |
1178 |
if ftype == TType.DOUBLE:
|
|
|
1179 |
self.vatRate = iprot.readDouble();
|
|
|
1180 |
else:
|
|
|
1181 |
iprot.skip(ftype)
|
| 12280 |
amit.gupta |
1182 |
elif fid == 21:
|
| 7741 |
kshitij.so |
1183 |
if ftype == TType.DOUBLE:
|
|
|
1184 |
self.nlc = iprot.readDouble();
|
|
|
1185 |
else:
|
|
|
1186 |
iprot.skip(ftype)
|
| 19421 |
manish.sha |
1187 |
elif fid == 22:
|
|
|
1188 |
if ftype == TType.DOUBLE:
|
|
|
1189 |
self.logisticsCost = iprot.readDouble();
|
|
|
1190 |
else:
|
|
|
1191 |
iprot.skip(ftype)
|
|
|
1192 |
elif fid == 23:
|
|
|
1193 |
if ftype == TType.DOUBLE:
|
|
|
1194 |
self.codCollectionCharges = iprot.readDouble();
|
|
|
1195 |
else:
|
|
|
1196 |
iprot.skip(ftype)
|
| 19691 |
manish.sha |
1197 |
elif fid == 24:
|
|
|
1198 |
if ftype == TType.DOUBLE:
|
|
|
1199 |
self.returnQty = iprot.readDouble();
|
|
|
1200 |
else:
|
|
|
1201 |
iprot.skip(ftype)
|
| 19714 |
manish.sha |
1202 |
elif fid == 25:
|
|
|
1203 |
if ftype == TType.I64:
|
|
|
1204 |
self.damaged_expiry_timestamp = iprot.readI64();
|
|
|
1205 |
else:
|
|
|
1206 |
iprot.skip(ftype)
|
| 21844 |
amit.gupta |
1207 |
elif fid == 26:
|
|
|
1208 |
if ftype == TType.DOUBLE:
|
|
|
1209 |
self.igstRate = iprot.readDouble();
|
|
|
1210 |
else:
|
|
|
1211 |
iprot.skip(ftype)
|
|
|
1212 |
elif fid == 27:
|
|
|
1213 |
if ftype == TType.DOUBLE:
|
|
|
1214 |
self.cgstRate = iprot.readDouble();
|
|
|
1215 |
else:
|
|
|
1216 |
iprot.skip(ftype)
|
|
|
1217 |
elif fid == 28:
|
|
|
1218 |
if ftype == TType.DOUBLE:
|
|
|
1219 |
self.sgstRate = iprot.readDouble();
|
|
|
1220 |
else:
|
|
|
1221 |
iprot.skip(ftype)
|
|
|
1222 |
elif fid == 29:
|
|
|
1223 |
if ftype == TType.STRING:
|
|
|
1224 |
self.hsnCode = iprot.readString();
|
|
|
1225 |
else:
|
|
|
1226 |
iprot.skip(ftype)
|
| 94 |
ashish |
1227 |
else:
|
|
|
1228 |
iprot.skip(ftype)
|
|
|
1229 |
iprot.readFieldEnd()
|
|
|
1230 |
iprot.readStructEnd()
|
|
|
1231 |
|
|
|
1232 |
def write(self, oprot):
|
|
|
1233 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1234 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
1235 |
return
|
| 483 |
rajveer |
1236 |
oprot.writeStructBegin('LineItem')
|
| 3431 |
rajveer |
1237 |
if self.id is not None:
|
| 94 |
ashish |
1238 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
1239 |
oprot.writeI64(self.id)
|
|
|
1240 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1241 |
if self.item_id is not None:
|
| 700 |
chandransh |
1242 |
oprot.writeFieldBegin('item_id', TType.I64, 2)
|
|
|
1243 |
oprot.writeI64(self.item_id)
|
| 94 |
ashish |
1244 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1245 |
if self.productGroup is not None:
|
| 963 |
chandransh |
1246 |
oprot.writeFieldBegin('productGroup', TType.STRING, 3)
|
|
|
1247 |
oprot.writeString(self.productGroup)
|
|
|
1248 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1249 |
if self.brand is not None:
|
| 963 |
chandransh |
1250 |
oprot.writeFieldBegin('brand', TType.STRING, 4)
|
| 483 |
rajveer |
1251 |
oprot.writeString(self.brand)
|
| 94 |
ashish |
1252 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1253 |
if self.model_number is not None:
|
| 963 |
chandransh |
1254 |
oprot.writeFieldBegin('model_number', TType.STRING, 5)
|
| 483 |
rajveer |
1255 |
oprot.writeString(self.model_number)
|
| 94 |
ashish |
1256 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1257 |
if self.color is not None:
|
| 963 |
chandransh |
1258 |
oprot.writeFieldBegin('color', TType.STRING, 6)
|
|
|
1259 |
oprot.writeString(self.color)
|
|
|
1260 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1261 |
if self.model_name is not None:
|
| 963 |
chandransh |
1262 |
oprot.writeFieldBegin('model_name', TType.STRING, 7)
|
| 483 |
rajveer |
1263 |
oprot.writeString(self.model_name)
|
| 94 |
ashish |
1264 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1265 |
if self.extra_info is not None:
|
| 963 |
chandransh |
1266 |
oprot.writeFieldBegin('extra_info', TType.STRING, 8)
|
| 483 |
rajveer |
1267 |
oprot.writeString(self.extra_info)
|
| 94 |
ashish |
1268 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1269 |
if self.quantity is not None:
|
| 963 |
chandransh |
1270 |
oprot.writeFieldBegin('quantity', TType.DOUBLE, 9)
|
| 483 |
rajveer |
1271 |
oprot.writeDouble(self.quantity)
|
| 94 |
ashish |
1272 |
oprot.writeFieldEnd()
|
| 12280 |
amit.gupta |
1273 |
if self.mrp is not None:
|
|
|
1274 |
oprot.writeFieldBegin('mrp', TType.DOUBLE, 10)
|
|
|
1275 |
oprot.writeDouble(self.mrp)
|
|
|
1276 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1277 |
if self.unit_price is not None:
|
| 12280 |
amit.gupta |
1278 |
oprot.writeFieldBegin('unit_price', TType.DOUBLE, 11)
|
| 483 |
rajveer |
1279 |
oprot.writeDouble(self.unit_price)
|
|
|
1280 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1281 |
if self.unit_weight is not None:
|
| 12280 |
amit.gupta |
1282 |
oprot.writeFieldBegin('unit_weight', TType.DOUBLE, 12)
|
| 483 |
rajveer |
1283 |
oprot.writeDouble(self.unit_weight)
|
|
|
1284 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1285 |
if self.total_price is not None:
|
| 12280 |
amit.gupta |
1286 |
oprot.writeFieldBegin('total_price', TType.DOUBLE, 13)
|
| 483 |
rajveer |
1287 |
oprot.writeDouble(self.total_price)
|
|
|
1288 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1289 |
if self.transfer_price is not None:
|
| 12280 |
amit.gupta |
1290 |
oprot.writeFieldBegin('transfer_price', TType.DOUBLE, 14)
|
| 998 |
varun.gupt |
1291 |
oprot.writeDouble(self.transfer_price)
|
|
|
1292 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1293 |
if self.total_weight is not None:
|
| 12280 |
amit.gupta |
1294 |
oprot.writeFieldBegin('total_weight', TType.DOUBLE, 15)
|
| 483 |
rajveer |
1295 |
oprot.writeDouble(self.total_weight)
|
|
|
1296 |
oprot.writeFieldEnd()
|
| 4658 |
mandeep.dh |
1297 |
if self.serial_number is not None:
|
| 12280 |
amit.gupta |
1298 |
oprot.writeFieldBegin('serial_number', TType.STRING, 16)
|
| 4658 |
mandeep.dh |
1299 |
oprot.writeString(self.serial_number)
|
| 2783 |
chandransh |
1300 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
1301 |
if self.item_number is not None:
|
| 12280 |
amit.gupta |
1302 |
oprot.writeFieldBegin('item_number', TType.STRING, 17)
|
| 2783 |
chandransh |
1303 |
oprot.writeString(self.item_number)
|
|
|
1304 |
oprot.writeFieldEnd()
|
| 4172 |
rajveer |
1305 |
if self.dealText is not None:
|
| 12280 |
amit.gupta |
1306 |
oprot.writeFieldBegin('dealText', TType.STRING, 18)
|
| 4172 |
rajveer |
1307 |
oprot.writeString(self.dealText)
|
|
|
1308 |
oprot.writeFieldEnd()
|
| 4295 |
varun.gupt |
1309 |
if self.warrantry_expiry_timestamp is not None:
|
| 12280 |
amit.gupta |
1310 |
oprot.writeFieldBegin('warrantry_expiry_timestamp', TType.I64, 19)
|
| 4295 |
varun.gupt |
1311 |
oprot.writeI64(self.warrantry_expiry_timestamp)
|
|
|
1312 |
oprot.writeFieldEnd()
|
| 6039 |
amit.gupta |
1313 |
if self.vatRate is not None:
|
| 12280 |
amit.gupta |
1314 |
oprot.writeFieldBegin('vatRate', TType.DOUBLE, 20)
|
| 6039 |
amit.gupta |
1315 |
oprot.writeDouble(self.vatRate)
|
|
|
1316 |
oprot.writeFieldEnd()
|
| 7741 |
kshitij.so |
1317 |
if self.nlc is not None:
|
| 12280 |
amit.gupta |
1318 |
oprot.writeFieldBegin('nlc', TType.DOUBLE, 21)
|
| 7741 |
kshitij.so |
1319 |
oprot.writeDouble(self.nlc)
|
|
|
1320 |
oprot.writeFieldEnd()
|
| 19421 |
manish.sha |
1321 |
if self.logisticsCost is not None:
|
|
|
1322 |
oprot.writeFieldBegin('logisticsCost', TType.DOUBLE, 22)
|
|
|
1323 |
oprot.writeDouble(self.logisticsCost)
|
|
|
1324 |
oprot.writeFieldEnd()
|
|
|
1325 |
if self.codCollectionCharges is not None:
|
|
|
1326 |
oprot.writeFieldBegin('codCollectionCharges', TType.DOUBLE, 23)
|
|
|
1327 |
oprot.writeDouble(self.codCollectionCharges)
|
|
|
1328 |
oprot.writeFieldEnd()
|
| 19691 |
manish.sha |
1329 |
if self.returnQty is not None:
|
|
|
1330 |
oprot.writeFieldBegin('returnQty', TType.DOUBLE, 24)
|
|
|
1331 |
oprot.writeDouble(self.returnQty)
|
|
|
1332 |
oprot.writeFieldEnd()
|
| 19714 |
manish.sha |
1333 |
if self.damaged_expiry_timestamp is not None:
|
|
|
1334 |
oprot.writeFieldBegin('damaged_expiry_timestamp', TType.I64, 25)
|
|
|
1335 |
oprot.writeI64(self.damaged_expiry_timestamp)
|
|
|
1336 |
oprot.writeFieldEnd()
|
| 21844 |
amit.gupta |
1337 |
if self.igstRate is not None:
|
|
|
1338 |
oprot.writeFieldBegin('igstRate', TType.DOUBLE, 26)
|
|
|
1339 |
oprot.writeDouble(self.igstRate)
|
|
|
1340 |
oprot.writeFieldEnd()
|
|
|
1341 |
if self.cgstRate is not None:
|
|
|
1342 |
oprot.writeFieldBegin('cgstRate', TType.DOUBLE, 27)
|
|
|
1343 |
oprot.writeDouble(self.cgstRate)
|
|
|
1344 |
oprot.writeFieldEnd()
|
|
|
1345 |
if self.sgstRate is not None:
|
|
|
1346 |
oprot.writeFieldBegin('sgstRate', TType.DOUBLE, 28)
|
|
|
1347 |
oprot.writeDouble(self.sgstRate)
|
|
|
1348 |
oprot.writeFieldEnd()
|
|
|
1349 |
if self.hsnCode is not None:
|
|
|
1350 |
oprot.writeFieldBegin('hsnCode', TType.STRING, 29)
|
|
|
1351 |
oprot.writeString(self.hsnCode)
|
|
|
1352 |
oprot.writeFieldEnd()
|
| 94 |
ashish |
1353 |
oprot.writeFieldStop()
|
|
|
1354 |
oprot.writeStructEnd()
|
|
|
1355 |
|
| 3431 |
rajveer |
1356 |
def validate(self):
|
|
|
1357 |
return
|
|
|
1358 |
|
|
|
1359 |
|
| 94 |
ashish |
1360 |
def __repr__(self):
|
|
|
1361 |
L = ['%s=%r' % (key, value)
|
|
|
1362 |
for key, value in self.__dict__.iteritems()]
|
|
|
1363 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
1364 |
|
|
|
1365 |
def __eq__(self, other):
|
|
|
1366 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
1367 |
|
|
|
1368 |
def __ne__(self, other):
|
|
|
1369 |
return not (self == other)
|
|
|
1370 |
|
| 483 |
rajveer |
1371 |
class Order:
|
| 94 |
ashish |
1372 |
"""
|
|
|
1373 |
Attributes:
|
|
|
1374 |
- id
|
| 483 |
rajveer |
1375 |
- warehouse_id
|
|
|
1376 |
- lineitems: item info
|
|
|
1377 |
*
|
|
|
1378 |
- logistics_provider_id: logistics info
|
|
|
1379 |
*
|
|
|
1380 |
- airwaybill_no
|
|
|
1381 |
- tracking_id
|
|
|
1382 |
- expected_delivery_time
|
|
|
1383 |
- customer_id: customer info
|
|
|
1384 |
*
|
|
|
1385 |
- customer_name
|
|
|
1386 |
- customer_mobilenumber
|
|
|
1387 |
- customer_pincode
|
| 738 |
chandransh |
1388 |
- customer_address1
|
|
|
1389 |
- customer_address2
|
| 483 |
rajveer |
1390 |
- customer_email
|
| 738 |
chandransh |
1391 |
- customer_city
|
|
|
1392 |
- customer_state
|
| 483 |
rajveer |
1393 |
- status: status and misc info
|
|
|
1394 |
*
|
|
|
1395 |
- statusDescription
|
|
|
1396 |
- total_amount
|
|
|
1397 |
- total_weight
|
|
|
1398 |
- invoice_number: billing info
|
|
|
1399 |
*
|
|
|
1400 |
- billed_by
|
|
|
1401 |
- created_timestamp: timestamps
|
|
|
1402 |
*
|
|
|
1403 |
- accepted_timestamp
|
|
|
1404 |
- billing_timestamp
|
|
|
1405 |
- shipping_timestamp
|
| 1113 |
chandransh |
1406 |
- pickup_timestamp
|
| 483 |
rajveer |
1407 |
- delivery_timestamp
|
| 1208 |
chandransh |
1408 |
- outofstock_timestamp
|
| 642 |
chandransh |
1409 |
- jacket_number
|
| 1132 |
chandransh |
1410 |
- receiver
|
| 1220 |
chandransh |
1411 |
- batchNo
|
|
|
1412 |
- serialNo
|
| 2536 |
chandransh |
1413 |
- doaFlag
|
|
|
1414 |
- pickupRequestNo
|
| 2676 |
vikas |
1415 |
- transactionId
|
| 2819 |
chandransh |
1416 |
- purchaseOrderNo
|
| 3064 |
chandransh |
1417 |
- cod
|
| 3553 |
chandransh |
1418 |
- delayReason
|
| 3986 |
chandransh |
1419 |
- promised_delivery_time
|
| 4004 |
chandransh |
1420 |
- expected_shipping_time
|
|
|
1421 |
- verification_timestamp
|
| 4102 |
chandransh |
1422 |
- promised_shipping_time
|
| 4192 |
anupam.sin |
1423 |
- reship_timestamp
|
|
|
1424 |
- refund_timestamp
|
|
|
1425 |
- new_order_id
|
| 4247 |
rajveer |
1426 |
- previousStatus
|
| 4269 |
anupam.sin |
1427 |
- vendorId
|
| 4506 |
phani.kuma |
1428 |
- doa_auth_timestamp
|
| 4647 |
rajveer |
1429 |
- delayReasonText
|
| 4709 |
rajveer |
1430 |
- refundReason
|
| 4758 |
mandeep.dh |
1431 |
- purchaseOrderId
|
| 4815 |
phani.kuma |
1432 |
- doa_logistics_provider_id
|
| 5062 |
varun.gupt |
1433 |
- originalOrderId
|
| 5110 |
mandeep.dh |
1434 |
- fulfilmentWarehouseId
|
| 5189 |
varun.gupt |
1435 |
- vendorPaid
|
| 5354 |
anupam.sin |
1436 |
- received_return_timestamp
|
|
|
1437 |
- first_attempt_timestamp
|
| 5527 |
anupam.sin |
1438 |
- orderType
|
| 5553 |
rajveer |
1439 |
- pickupStoreId
|
|
|
1440 |
- logisticsCod
|
| 6318 |
rajveer |
1441 |
- gvAmount
|
| 6525 |
rajveer |
1442 |
- otg
|
| 6726 |
rajveer |
1443 |
- courier_delivery_time
|
| 6903 |
anupam.sin |
1444 |
- insurer
|
|
|
1445 |
- insuranceAmount
|
|
|
1446 |
- dob
|
|
|
1447 |
- guardianName
|
| 7190 |
amar.kumar |
1448 |
- freebieItemId
|
| 7293 |
anupam.sin |
1449 |
- source
|
|
|
1450 |
- advanceAmount
|
|
|
1451 |
- storeId
|
| 8717 |
amar.kumar |
1452 |
- productCondition
|
| 9299 |
kshitij.so |
1453 |
- dataProtectionInsurer
|
|
|
1454 |
- dataProtectionAmount
|
| 9416 |
amar.kumar |
1455 |
- taxType
|
| 13147 |
manish.sha |
1456 |
- logisticsTransactionId
|
| 17470 |
manish.sha |
1457 |
- shippingCost
|
|
|
1458 |
- codCharges
|
| 19973 |
amit.gupta |
1459 |
- seller_id
|
| 19980 |
amit.gupta |
1460 |
- warehouse_address_id
|
| 20873 |
kshitij.so |
1461 |
- wallet_amount
|
|
|
1462 |
- net_payable_amount
|
| 21134 |
amit.gupta |
1463 |
- shippingRefund
|
| 94 |
ashish |
1464 |
"""
|
|
|
1465 |
|
|
|
1466 |
thrift_spec = (
|
|
|
1467 |
None, # 0
|
|
|
1468 |
(1, TType.I64, 'id', None, None, ), # 1
|
| 483 |
rajveer |
1469 |
(2, TType.I64, 'warehouse_id', None, None, ), # 2
|
|
|
1470 |
(3, TType.LIST, 'lineitems', (TType.STRUCT,(LineItem, LineItem.thrift_spec)), None, ), # 3
|
|
|
1471 |
(4, TType.I64, 'logistics_provider_id', None, None, ), # 4
|
|
|
1472 |
(5, TType.STRING, 'airwaybill_no', None, None, ), # 5
|
|
|
1473 |
(6, TType.STRING, 'tracking_id', None, None, ), # 6
|
|
|
1474 |
(7, TType.I64, 'expected_delivery_time', None, None, ), # 7
|
|
|
1475 |
(8, TType.I64, 'customer_id', None, None, ), # 8
|
|
|
1476 |
(9, TType.STRING, 'customer_name', None, None, ), # 9
|
|
|
1477 |
(10, TType.STRING, 'customer_mobilenumber', None, None, ), # 10
|
|
|
1478 |
(11, TType.STRING, 'customer_pincode', None, None, ), # 11
|
| 738 |
chandransh |
1479 |
(12, TType.STRING, 'customer_address1', None, None, ), # 12
|
|
|
1480 |
(13, TType.STRING, 'customer_address2', None, None, ), # 13
|
|
|
1481 |
(14, TType.STRING, 'customer_email', None, None, ), # 14
|
|
|
1482 |
(15, TType.STRING, 'customer_city', None, None, ), # 15
|
|
|
1483 |
(16, TType.STRING, 'customer_state', None, None, ), # 16
|
|
|
1484 |
(17, TType.I32, 'status', None, None, ), # 17
|
|
|
1485 |
(18, TType.STRING, 'statusDescription', None, None, ), # 18
|
|
|
1486 |
(19, TType.DOUBLE, 'total_amount', None, None, ), # 19
|
|
|
1487 |
(20, TType.DOUBLE, 'total_weight', None, None, ), # 20
|
|
|
1488 |
(21, TType.STRING, 'invoice_number', None, None, ), # 21
|
|
|
1489 |
(22, TType.STRING, 'billed_by', None, None, ), # 22
|
|
|
1490 |
(23, TType.I64, 'created_timestamp', None, None, ), # 23
|
|
|
1491 |
(24, TType.I64, 'accepted_timestamp', None, None, ), # 24
|
|
|
1492 |
(25, TType.I64, 'billing_timestamp', None, None, ), # 25
|
|
|
1493 |
(26, TType.I64, 'shipping_timestamp', None, None, ), # 26
|
| 1113 |
chandransh |
1494 |
(27, TType.I64, 'pickup_timestamp', None, None, ), # 27
|
|
|
1495 |
(28, TType.I64, 'delivery_timestamp', None, None, ), # 28
|
| 1208 |
chandransh |
1496 |
(29, TType.I64, 'outofstock_timestamp', None, None, ), # 29
|
|
|
1497 |
(30, TType.I64, 'jacket_number', None, None, ), # 30
|
|
|
1498 |
(31, TType.STRING, 'receiver', None, None, ), # 31
|
| 1220 |
chandransh |
1499 |
(32, TType.I64, 'batchNo', None, None, ), # 32
|
|
|
1500 |
(33, TType.I64, 'serialNo', None, None, ), # 33
|
| 2536 |
chandransh |
1501 |
(34, TType.BOOL, 'doaFlag', None, None, ), # 34
|
|
|
1502 |
(35, TType.STRING, 'pickupRequestNo', None, None, ), # 35
|
| 2676 |
vikas |
1503 |
(36, TType.I64, 'transactionId', None, None, ), # 36
|
| 2819 |
chandransh |
1504 |
(37, TType.STRING, 'purchaseOrderNo', None, None, ), # 37
|
| 3064 |
chandransh |
1505 |
(38, TType.BOOL, 'cod', None, None, ), # 38
|
| 3553 |
chandransh |
1506 |
(39, TType.I32, 'delayReason', None, None, ), # 39
|
| 3986 |
chandransh |
1507 |
(40, TType.I64, 'promised_delivery_time', None, None, ), # 40
|
| 4004 |
chandransh |
1508 |
(41, TType.I64, 'expected_shipping_time', None, None, ), # 41
|
|
|
1509 |
(42, TType.I64, 'verification_timestamp', None, None, ), # 42
|
| 4102 |
chandransh |
1510 |
(43, TType.I64, 'promised_shipping_time', None, None, ), # 43
|
| 4192 |
anupam.sin |
1511 |
(44, TType.I64, 'reship_timestamp', None, None, ), # 44
|
|
|
1512 |
(45, TType.I64, 'refund_timestamp', None, None, ), # 45
|
|
|
1513 |
(46, TType.I64, 'new_order_id', None, None, ), # 46
|
| 4247 |
rajveer |
1514 |
(47, TType.I32, 'previousStatus', None, None, ), # 47
|
| 4269 |
anupam.sin |
1515 |
(48, TType.I64, 'vendorId', None, None, ), # 48
|
| 4506 |
phani.kuma |
1516 |
(49, TType.I64, 'doa_auth_timestamp', None, None, ), # 49
|
| 4647 |
rajveer |
1517 |
(50, TType.STRING, 'delayReasonText', None, None, ), # 50
|
| 4709 |
rajveer |
1518 |
(51, TType.STRING, 'refundReason', None, None, ), # 51
|
| 4758 |
mandeep.dh |
1519 |
(52, TType.I64, 'purchaseOrderId', None, None, ), # 52
|
| 4815 |
phani.kuma |
1520 |
(53, TType.I64, 'doa_logistics_provider_id', None, None, ), # 53
|
| 5062 |
varun.gupt |
1521 |
(54, TType.I64, 'originalOrderId', None, None, ), # 54
|
| 5110 |
mandeep.dh |
1522 |
(55, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 55
|
| 5189 |
varun.gupt |
1523 |
(56, TType.BOOL, 'vendorPaid', None, None, ), # 56
|
| 5354 |
anupam.sin |
1524 |
(57, TType.I64, 'received_return_timestamp', None, None, ), # 57
|
|
|
1525 |
(58, TType.I64, 'first_attempt_timestamp', None, None, ), # 58
|
| 5527 |
anupam.sin |
1526 |
(59, TType.I32, 'orderType', None, None, ), # 59
|
| 5553 |
rajveer |
1527 |
(60, TType.I64, 'pickupStoreId', None, None, ), # 60
|
|
|
1528 |
(61, TType.BOOL, 'logisticsCod', None, None, ), # 61
|
| 6318 |
rajveer |
1529 |
(62, TType.I64, 'gvAmount', None, None, ), # 62
|
| 6525 |
rajveer |
1530 |
(63, TType.BOOL, 'otg', None, None, ), # 63
|
| 6726 |
rajveer |
1531 |
(64, TType.I64, 'courier_delivery_time', None, None, ), # 64
|
| 6903 |
anupam.sin |
1532 |
(65, TType.I64, 'insurer', None, None, ), # 65
|
|
|
1533 |
(66, TType.DOUBLE, 'insuranceAmount', None, None, ), # 66
|
|
|
1534 |
(67, TType.STRING, 'dob', None, None, ), # 67
|
|
|
1535 |
(68, TType.STRING, 'guardianName', None, None, ), # 68
|
| 7190 |
amar.kumar |
1536 |
(69, TType.I64, 'freebieItemId', None, None, ), # 69
|
| 7293 |
anupam.sin |
1537 |
(70, TType.I64, 'source', None, None, ), # 70
|
|
|
1538 |
(71, TType.DOUBLE, 'advanceAmount', None, None, ), # 71
|
|
|
1539 |
(72, TType.I64, 'storeId', None, None, ), # 72
|
| 8717 |
amar.kumar |
1540 |
(73, TType.I32, 'productCondition', None, None, ), # 73
|
| 9299 |
kshitij.so |
1541 |
(74, TType.I64, 'dataProtectionInsurer', None, None, ), # 74
|
|
|
1542 |
(75, TType.DOUBLE, 'dataProtectionAmount', None, None, ), # 75
|
| 9416 |
amar.kumar |
1543 |
(76, TType.I32, 'taxType', None, None, ), # 76
|
| 13147 |
manish.sha |
1544 |
(77, TType.STRING, 'logisticsTransactionId', None, None, ), # 77
|
| 17470 |
manish.sha |
1545 |
(78, TType.DOUBLE, 'shippingCost', None, None, ), # 78
|
|
|
1546 |
(79, TType.DOUBLE, 'codCharges', None, None, ), # 79
|
| 19973 |
amit.gupta |
1547 |
(80, TType.I64, 'seller_id', None, None, ), # 80
|
| 19980 |
amit.gupta |
1548 |
(81, TType.I64, 'warehouse_address_id', None, None, ), # 81
|
| 20873 |
kshitij.so |
1549 |
(82, TType.DOUBLE, 'wallet_amount', None, None, ), # 82
|
|
|
1550 |
(83, TType.DOUBLE, 'net_payable_amount', None, None, ), # 83
|
| 21134 |
amit.gupta |
1551 |
(84, TType.DOUBLE, 'shippingRefund', None, None, ), # 84
|
| 94 |
ashish |
1552 |
)
|
|
|
1553 |
|
| 21134 |
amit.gupta |
1554 |
def __init__(self, id=None, warehouse_id=None, lineitems=None, logistics_provider_id=None, airwaybill_no=None, tracking_id=None, expected_delivery_time=None, customer_id=None, customer_name=None, customer_mobilenumber=None, customer_pincode=None, customer_address1=None, customer_address2=None, customer_email=None, customer_city=None, customer_state=None, status=None, statusDescription=None, total_amount=None, total_weight=None, invoice_number=None, billed_by=None, created_timestamp=None, accepted_timestamp=None, billing_timestamp=None, shipping_timestamp=None, pickup_timestamp=None, delivery_timestamp=None, outofstock_timestamp=None, jacket_number=None, receiver=None, batchNo=None, serialNo=None, doaFlag=None, pickupRequestNo=None, transactionId=None, purchaseOrderNo=None, cod=None, delayReason=None, promised_delivery_time=None, expected_shipping_time=None, verification_timestamp=None, promised_shipping_time=None, reship_timestamp=None, refund_timestamp=None, new_order_id=None, previousStatus=None, vendorId=None, doa_auth_timestamp=None, delayReasonText=None, refundReason=None, purchaseOrderId=None, doa_logistics_provider_id=None, originalOrderId=None, fulfilmentWarehouseId=None, vendorPaid=None, received_return_timestamp=None, first_attempt_timestamp=None, orderType=None, pickupStoreId=None, logisticsCod=None, gvAmount=None, otg=None, courier_delivery_time=None, insurer=None, insuranceAmount=None, dob=None, guardianName=None, freebieItemId=None, source=None, advanceAmount=None, storeId=None, productCondition=None, dataProtectionInsurer=None, dataProtectionAmount=None, taxType=None, logisticsTransactionId=None, shippingCost=None, codCharges=None, seller_id=None, warehouse_address_id=None, wallet_amount=None, net_payable_amount=None, shippingRefund=None,):
|
| 94 |
ashish |
1555 |
self.id = id
|
| 483 |
rajveer |
1556 |
self.warehouse_id = warehouse_id
|
|
|
1557 |
self.lineitems = lineitems
|
|
|
1558 |
self.logistics_provider_id = logistics_provider_id
|
|
|
1559 |
self.airwaybill_no = airwaybill_no
|
|
|
1560 |
self.tracking_id = tracking_id
|
|
|
1561 |
self.expected_delivery_time = expected_delivery_time
|
|
|
1562 |
self.customer_id = customer_id
|
|
|
1563 |
self.customer_name = customer_name
|
|
|
1564 |
self.customer_mobilenumber = customer_mobilenumber
|
|
|
1565 |
self.customer_pincode = customer_pincode
|
| 738 |
chandransh |
1566 |
self.customer_address1 = customer_address1
|
|
|
1567 |
self.customer_address2 = customer_address2
|
| 483 |
rajveer |
1568 |
self.customer_email = customer_email
|
| 738 |
chandransh |
1569 |
self.customer_city = customer_city
|
|
|
1570 |
self.customer_state = customer_state
|
| 94 |
ashish |
1571 |
self.status = status
|
| 483 |
rajveer |
1572 |
self.statusDescription = statusDescription
|
|
|
1573 |
self.total_amount = total_amount
|
|
|
1574 |
self.total_weight = total_weight
|
|
|
1575 |
self.invoice_number = invoice_number
|
|
|
1576 |
self.billed_by = billed_by
|
|
|
1577 |
self.created_timestamp = created_timestamp
|
|
|
1578 |
self.accepted_timestamp = accepted_timestamp
|
|
|
1579 |
self.billing_timestamp = billing_timestamp
|
|
|
1580 |
self.shipping_timestamp = shipping_timestamp
|
| 1113 |
chandransh |
1581 |
self.pickup_timestamp = pickup_timestamp
|
| 483 |
rajveer |
1582 |
self.delivery_timestamp = delivery_timestamp
|
| 1208 |
chandransh |
1583 |
self.outofstock_timestamp = outofstock_timestamp
|
| 642 |
chandransh |
1584 |
self.jacket_number = jacket_number
|
| 1132 |
chandransh |
1585 |
self.receiver = receiver
|
| 1220 |
chandransh |
1586 |
self.batchNo = batchNo
|
|
|
1587 |
self.serialNo = serialNo
|
| 2536 |
chandransh |
1588 |
self.doaFlag = doaFlag
|
|
|
1589 |
self.pickupRequestNo = pickupRequestNo
|
| 2676 |
vikas |
1590 |
self.transactionId = transactionId
|
| 2819 |
chandransh |
1591 |
self.purchaseOrderNo = purchaseOrderNo
|
| 3064 |
chandransh |
1592 |
self.cod = cod
|
| 3553 |
chandransh |
1593 |
self.delayReason = delayReason
|
| 3986 |
chandransh |
1594 |
self.promised_delivery_time = promised_delivery_time
|
| 4004 |
chandransh |
1595 |
self.expected_shipping_time = expected_shipping_time
|
|
|
1596 |
self.verification_timestamp = verification_timestamp
|
| 4102 |
chandransh |
1597 |
self.promised_shipping_time = promised_shipping_time
|
| 4192 |
anupam.sin |
1598 |
self.reship_timestamp = reship_timestamp
|
|
|
1599 |
self.refund_timestamp = refund_timestamp
|
|
|
1600 |
self.new_order_id = new_order_id
|
| 4247 |
rajveer |
1601 |
self.previousStatus = previousStatus
|
| 4269 |
anupam.sin |
1602 |
self.vendorId = vendorId
|
| 4506 |
phani.kuma |
1603 |
self.doa_auth_timestamp = doa_auth_timestamp
|
| 4647 |
rajveer |
1604 |
self.delayReasonText = delayReasonText
|
| 4709 |
rajveer |
1605 |
self.refundReason = refundReason
|
| 4758 |
mandeep.dh |
1606 |
self.purchaseOrderId = purchaseOrderId
|
| 4815 |
phani.kuma |
1607 |
self.doa_logistics_provider_id = doa_logistics_provider_id
|
| 5062 |
varun.gupt |
1608 |
self.originalOrderId = originalOrderId
|
| 5110 |
mandeep.dh |
1609 |
self.fulfilmentWarehouseId = fulfilmentWarehouseId
|
| 5189 |
varun.gupt |
1610 |
self.vendorPaid = vendorPaid
|
| 5354 |
anupam.sin |
1611 |
self.received_return_timestamp = received_return_timestamp
|
|
|
1612 |
self.first_attempt_timestamp = first_attempt_timestamp
|
| 5527 |
anupam.sin |
1613 |
self.orderType = orderType
|
| 5553 |
rajveer |
1614 |
self.pickupStoreId = pickupStoreId
|
|
|
1615 |
self.logisticsCod = logisticsCod
|
| 6318 |
rajveer |
1616 |
self.gvAmount = gvAmount
|
| 6525 |
rajveer |
1617 |
self.otg = otg
|
| 6726 |
rajveer |
1618 |
self.courier_delivery_time = courier_delivery_time
|
| 6903 |
anupam.sin |
1619 |
self.insurer = insurer
|
|
|
1620 |
self.insuranceAmount = insuranceAmount
|
|
|
1621 |
self.dob = dob
|
|
|
1622 |
self.guardianName = guardianName
|
| 7190 |
amar.kumar |
1623 |
self.freebieItemId = freebieItemId
|
| 7293 |
anupam.sin |
1624 |
self.source = source
|
|
|
1625 |
self.advanceAmount = advanceAmount
|
|
|
1626 |
self.storeId = storeId
|
| 8717 |
amar.kumar |
1627 |
self.productCondition = productCondition
|
| 9299 |
kshitij.so |
1628 |
self.dataProtectionInsurer = dataProtectionInsurer
|
|
|
1629 |
self.dataProtectionAmount = dataProtectionAmount
|
| 9416 |
amar.kumar |
1630 |
self.taxType = taxType
|
| 13147 |
manish.sha |
1631 |
self.logisticsTransactionId = logisticsTransactionId
|
| 17470 |
manish.sha |
1632 |
self.shippingCost = shippingCost
|
|
|
1633 |
self.codCharges = codCharges
|
| 19973 |
amit.gupta |
1634 |
self.seller_id = seller_id
|
| 19980 |
amit.gupta |
1635 |
self.warehouse_address_id = warehouse_address_id
|
| 20873 |
kshitij.so |
1636 |
self.wallet_amount = wallet_amount
|
|
|
1637 |
self.net_payable_amount = net_payable_amount
|
| 21134 |
amit.gupta |
1638 |
self.shippingRefund = shippingRefund
|
| 94 |
ashish |
1639 |
|
|
|
1640 |
def read(self, iprot):
|
|
|
1641 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
1642 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
1643 |
return
|
|
|
1644 |
iprot.readStructBegin()
|
|
|
1645 |
while True:
|
|
|
1646 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
1647 |
if ftype == TType.STOP:
|
|
|
1648 |
break
|
|
|
1649 |
if fid == 1:
|
|
|
1650 |
if ftype == TType.I64:
|
|
|
1651 |
self.id = iprot.readI64();
|
|
|
1652 |
else:
|
|
|
1653 |
iprot.skip(ftype)
|
|
|
1654 |
elif fid == 2:
|
| 483 |
rajveer |
1655 |
if ftype == TType.I64:
|
|
|
1656 |
self.warehouse_id = iprot.readI64();
|
| 94 |
ashish |
1657 |
else:
|
|
|
1658 |
iprot.skip(ftype)
|
|
|
1659 |
elif fid == 3:
|
| 483 |
rajveer |
1660 |
if ftype == TType.LIST:
|
|
|
1661 |
self.lineitems = []
|
| 685 |
chandransh |
1662 |
(_etype3, _size0) = iprot.readListBegin()
|
|
|
1663 |
for _i4 in xrange(_size0):
|
|
|
1664 |
_elem5 = LineItem()
|
|
|
1665 |
_elem5.read(iprot)
|
|
|
1666 |
self.lineitems.append(_elem5)
|
| 483 |
rajveer |
1667 |
iprot.readListEnd()
|
| 94 |
ashish |
1668 |
else:
|
|
|
1669 |
iprot.skip(ftype)
|
|
|
1670 |
elif fid == 4:
|
| 483 |
rajveer |
1671 |
if ftype == TType.I64:
|
|
|
1672 |
self.logistics_provider_id = iprot.readI64();
|
| 94 |
ashish |
1673 |
else:
|
|
|
1674 |
iprot.skip(ftype)
|
|
|
1675 |
elif fid == 5:
|
| 483 |
rajveer |
1676 |
if ftype == TType.STRING:
|
|
|
1677 |
self.airwaybill_no = iprot.readString();
|
| 94 |
ashish |
1678 |
else:
|
|
|
1679 |
iprot.skip(ftype)
|
|
|
1680 |
elif fid == 6:
|
| 483 |
rajveer |
1681 |
if ftype == TType.STRING:
|
|
|
1682 |
self.tracking_id = iprot.readString();
|
| 94 |
ashish |
1683 |
else:
|
|
|
1684 |
iprot.skip(ftype)
|
|
|
1685 |
elif fid == 7:
|
|
|
1686 |
if ftype == TType.I64:
|
| 483 |
rajveer |
1687 |
self.expected_delivery_time = iprot.readI64();
|
| 94 |
ashish |
1688 |
else:
|
|
|
1689 |
iprot.skip(ftype)
|
|
|
1690 |
elif fid == 8:
|
| 483 |
rajveer |
1691 |
if ftype == TType.I64:
|
|
|
1692 |
self.customer_id = iprot.readI64();
|
| 94 |
ashish |
1693 |
else:
|
|
|
1694 |
iprot.skip(ftype)
|
|
|
1695 |
elif fid == 9:
|
| 483 |
rajveer |
1696 |
if ftype == TType.STRING:
|
|
|
1697 |
self.customer_name = iprot.readString();
|
| 94 |
ashish |
1698 |
else:
|
|
|
1699 |
iprot.skip(ftype)
|
|
|
1700 |
elif fid == 10:
|
| 483 |
rajveer |
1701 |
if ftype == TType.STRING:
|
|
|
1702 |
self.customer_mobilenumber = iprot.readString();
|
| 94 |
ashish |
1703 |
else:
|
|
|
1704 |
iprot.skip(ftype)
|
|
|
1705 |
elif fid == 11:
|
|
|
1706 |
if ftype == TType.STRING:
|
| 483 |
rajveer |
1707 |
self.customer_pincode = iprot.readString();
|
| 94 |
ashish |
1708 |
else:
|
|
|
1709 |
iprot.skip(ftype)
|
|
|
1710 |
elif fid == 12:
|
|
|
1711 |
if ftype == TType.STRING:
|
| 738 |
chandransh |
1712 |
self.customer_address1 = iprot.readString();
|
| 94 |
ashish |
1713 |
else:
|
|
|
1714 |
iprot.skip(ftype)
|
| 483 |
rajveer |
1715 |
elif fid == 13:
|
|
|
1716 |
if ftype == TType.STRING:
|
| 738 |
chandransh |
1717 |
self.customer_address2 = iprot.readString();
|
|
|
1718 |
else:
|
|
|
1719 |
iprot.skip(ftype)
|
|
|
1720 |
elif fid == 14:
|
|
|
1721 |
if ftype == TType.STRING:
|
| 483 |
rajveer |
1722 |
self.customer_email = iprot.readString();
|
| 94 |
ashish |
1723 |
else:
|
|
|
1724 |
iprot.skip(ftype)
|
| 738 |
chandransh |
1725 |
elif fid == 15:
|
|
|
1726 |
if ftype == TType.STRING:
|
|
|
1727 |
self.customer_city = iprot.readString();
|
|
|
1728 |
else:
|
|
|
1729 |
iprot.skip(ftype)
|
|
|
1730 |
elif fid == 16:
|
|
|
1731 |
if ftype == TType.STRING:
|
|
|
1732 |
self.customer_state = iprot.readString();
|
|
|
1733 |
else:
|
|
|
1734 |
iprot.skip(ftype)
|
|
|
1735 |
elif fid == 17:
|
| 483 |
rajveer |
1736 |
if ftype == TType.I32:
|
|
|
1737 |
self.status = iprot.readI32();
|
| 94 |
ashish |
1738 |
else:
|
|
|
1739 |
iprot.skip(ftype)
|
| 738 |
chandransh |
1740 |
elif fid == 18:
|
| 483 |
rajveer |
1741 |
if ftype == TType.STRING:
|
|
|
1742 |
self.statusDescription = iprot.readString();
|
| 94 |
ashish |
1743 |
else:
|
|
|
1744 |
iprot.skip(ftype)
|
| 738 |
chandransh |
1745 |
elif fid == 19:
|
| 483 |
rajveer |
1746 |
if ftype == TType.DOUBLE:
|
|
|
1747 |
self.total_amount = iprot.readDouble();
|
| 94 |
ashish |
1748 |
else:
|
|
|
1749 |
iprot.skip(ftype)
|
| 738 |
chandransh |
1750 |
elif fid == 20:
|
| 483 |
rajveer |
1751 |
if ftype == TType.DOUBLE:
|
|
|
1752 |
self.total_weight = iprot.readDouble();
|
|
|
1753 |
else:
|
|
|
1754 |
iprot.skip(ftype)
|
| 738 |
chandransh |
1755 |
elif fid == 21:
|
| 94 |
ashish |
1756 |
if ftype == TType.STRING:
|
| 483 |
rajveer |
1757 |
self.invoice_number = iprot.readString();
|
| 94 |
ashish |
1758 |
else:
|
|
|
1759 |
iprot.skip(ftype)
|
| 738 |
chandransh |
1760 |
elif fid == 22:
|
| 94 |
ashish |
1761 |
if ftype == TType.STRING:
|
| 483 |
rajveer |
1762 |
self.billed_by = iprot.readString();
|
| 94 |
ashish |
1763 |
else:
|
|
|
1764 |
iprot.skip(ftype)
|
| 738 |
chandransh |
1765 |
elif fid == 23:
|
| 483 |
rajveer |
1766 |
if ftype == TType.I64:
|
|
|
1767 |
self.created_timestamp = iprot.readI64();
|
| 94 |
ashish |
1768 |
else:
|
|
|
1769 |
iprot.skip(ftype)
|
| 738 |
chandransh |
1770 |
elif fid == 24:
|
| 483 |
rajveer |
1771 |
if ftype == TType.I64:
|
|
|
1772 |
self.accepted_timestamp = iprot.readI64();
|
| 94 |
ashish |
1773 |
else:
|
|
|
1774 |
iprot.skip(ftype)
|
| 738 |
chandransh |
1775 |
elif fid == 25:
|
| 483 |
rajveer |
1776 |
if ftype == TType.I64:
|
|
|
1777 |
self.billing_timestamp = iprot.readI64();
|
| 94 |
ashish |
1778 |
else:
|
|
|
1779 |
iprot.skip(ftype)
|
| 738 |
chandransh |
1780 |
elif fid == 26:
|
| 94 |
ashish |
1781 |
if ftype == TType.I64:
|
| 483 |
rajveer |
1782 |
self.shipping_timestamp = iprot.readI64();
|
| 94 |
ashish |
1783 |
else:
|
|
|
1784 |
iprot.skip(ftype)
|
| 738 |
chandransh |
1785 |
elif fid == 27:
|
| 94 |
ashish |
1786 |
if ftype == TType.I64:
|
| 1113 |
chandransh |
1787 |
self.pickup_timestamp = iprot.readI64();
|
| 94 |
ashish |
1788 |
else:
|
|
|
1789 |
iprot.skip(ftype)
|
| 738 |
chandransh |
1790 |
elif fid == 28:
|
| 642 |
chandransh |
1791 |
if ftype == TType.I64:
|
| 1113 |
chandransh |
1792 |
self.delivery_timestamp = iprot.readI64();
|
|
|
1793 |
else:
|
|
|
1794 |
iprot.skip(ftype)
|
|
|
1795 |
elif fid == 29:
|
|
|
1796 |
if ftype == TType.I64:
|
| 1208 |
chandransh |
1797 |
self.outofstock_timestamp = iprot.readI64();
|
|
|
1798 |
else:
|
|
|
1799 |
iprot.skip(ftype)
|
|
|
1800 |
elif fid == 30:
|
|
|
1801 |
if ftype == TType.I64:
|
| 642 |
chandransh |
1802 |
self.jacket_number = iprot.readI64();
|
|
|
1803 |
else:
|
|
|
1804 |
iprot.skip(ftype)
|
| 1208 |
chandransh |
1805 |
elif fid == 31:
|
| 1132 |
chandransh |
1806 |
if ftype == TType.STRING:
|
|
|
1807 |
self.receiver = iprot.readString();
|
|
|
1808 |
else:
|
|
|
1809 |
iprot.skip(ftype)
|
| 1220 |
chandransh |
1810 |
elif fid == 32:
|
|
|
1811 |
if ftype == TType.I64:
|
|
|
1812 |
self.batchNo = iprot.readI64();
|
|
|
1813 |
else:
|
|
|
1814 |
iprot.skip(ftype)
|
|
|
1815 |
elif fid == 33:
|
|
|
1816 |
if ftype == TType.I64:
|
|
|
1817 |
self.serialNo = iprot.readI64();
|
|
|
1818 |
else:
|
|
|
1819 |
iprot.skip(ftype)
|
| 2536 |
chandransh |
1820 |
elif fid == 34:
|
|
|
1821 |
if ftype == TType.BOOL:
|
|
|
1822 |
self.doaFlag = iprot.readBool();
|
|
|
1823 |
else:
|
|
|
1824 |
iprot.skip(ftype)
|
|
|
1825 |
elif fid == 35:
|
|
|
1826 |
if ftype == TType.STRING:
|
|
|
1827 |
self.pickupRequestNo = iprot.readString();
|
|
|
1828 |
else:
|
|
|
1829 |
iprot.skip(ftype)
|
| 2676 |
vikas |
1830 |
elif fid == 36:
|
|
|
1831 |
if ftype == TType.I64:
|
|
|
1832 |
self.transactionId = iprot.readI64();
|
|
|
1833 |
else:
|
|
|
1834 |
iprot.skip(ftype)
|
| 2819 |
chandransh |
1835 |
elif fid == 37:
|
|
|
1836 |
if ftype == TType.STRING:
|
|
|
1837 |
self.purchaseOrderNo = iprot.readString();
|
|
|
1838 |
else:
|
|
|
1839 |
iprot.skip(ftype)
|
| 3064 |
chandransh |
1840 |
elif fid == 38:
|
|
|
1841 |
if ftype == TType.BOOL:
|
|
|
1842 |
self.cod = iprot.readBool();
|
|
|
1843 |
else:
|
|
|
1844 |
iprot.skip(ftype)
|
| 3553 |
chandransh |
1845 |
elif fid == 39:
|
|
|
1846 |
if ftype == TType.I32:
|
|
|
1847 |
self.delayReason = iprot.readI32();
|
|
|
1848 |
else:
|
|
|
1849 |
iprot.skip(ftype)
|
| 3986 |
chandransh |
1850 |
elif fid == 40:
|
|
|
1851 |
if ftype == TType.I64:
|
|
|
1852 |
self.promised_delivery_time = iprot.readI64();
|
|
|
1853 |
else:
|
|
|
1854 |
iprot.skip(ftype)
|
| 4004 |
chandransh |
1855 |
elif fid == 41:
|
|
|
1856 |
if ftype == TType.I64:
|
|
|
1857 |
self.expected_shipping_time = iprot.readI64();
|
|
|
1858 |
else:
|
|
|
1859 |
iprot.skip(ftype)
|
|
|
1860 |
elif fid == 42:
|
|
|
1861 |
if ftype == TType.I64:
|
|
|
1862 |
self.verification_timestamp = iprot.readI64();
|
|
|
1863 |
else:
|
|
|
1864 |
iprot.skip(ftype)
|
| 4102 |
chandransh |
1865 |
elif fid == 43:
|
|
|
1866 |
if ftype == TType.I64:
|
|
|
1867 |
self.promised_shipping_time = iprot.readI64();
|
|
|
1868 |
else:
|
|
|
1869 |
iprot.skip(ftype)
|
| 4192 |
anupam.sin |
1870 |
elif fid == 44:
|
|
|
1871 |
if ftype == TType.I64:
|
|
|
1872 |
self.reship_timestamp = iprot.readI64();
|
|
|
1873 |
else:
|
|
|
1874 |
iprot.skip(ftype)
|
|
|
1875 |
elif fid == 45:
|
|
|
1876 |
if ftype == TType.I64:
|
|
|
1877 |
self.refund_timestamp = iprot.readI64();
|
|
|
1878 |
else:
|
|
|
1879 |
iprot.skip(ftype)
|
|
|
1880 |
elif fid == 46:
|
|
|
1881 |
if ftype == TType.I64:
|
|
|
1882 |
self.new_order_id = iprot.readI64();
|
|
|
1883 |
else:
|
|
|
1884 |
iprot.skip(ftype)
|
| 4247 |
rajveer |
1885 |
elif fid == 47:
|
|
|
1886 |
if ftype == TType.I32:
|
|
|
1887 |
self.previousStatus = iprot.readI32();
|
|
|
1888 |
else:
|
|
|
1889 |
iprot.skip(ftype)
|
| 4269 |
anupam.sin |
1890 |
elif fid == 48:
|
|
|
1891 |
if ftype == TType.I64:
|
|
|
1892 |
self.vendorId = iprot.readI64();
|
|
|
1893 |
else:
|
|
|
1894 |
iprot.skip(ftype)
|
| 4506 |
phani.kuma |
1895 |
elif fid == 49:
|
|
|
1896 |
if ftype == TType.I64:
|
|
|
1897 |
self.doa_auth_timestamp = iprot.readI64();
|
|
|
1898 |
else:
|
|
|
1899 |
iprot.skip(ftype)
|
| 4647 |
rajveer |
1900 |
elif fid == 50:
|
|
|
1901 |
if ftype == TType.STRING:
|
|
|
1902 |
self.delayReasonText = iprot.readString();
|
|
|
1903 |
else:
|
|
|
1904 |
iprot.skip(ftype)
|
| 4709 |
rajveer |
1905 |
elif fid == 51:
|
|
|
1906 |
if ftype == TType.STRING:
|
|
|
1907 |
self.refundReason = iprot.readString();
|
|
|
1908 |
else:
|
|
|
1909 |
iprot.skip(ftype)
|
| 4758 |
mandeep.dh |
1910 |
elif fid == 52:
|
|
|
1911 |
if ftype == TType.I64:
|
|
|
1912 |
self.purchaseOrderId = iprot.readI64();
|
|
|
1913 |
else:
|
|
|
1914 |
iprot.skip(ftype)
|
| 4815 |
phani.kuma |
1915 |
elif fid == 53:
|
|
|
1916 |
if ftype == TType.I64:
|
|
|
1917 |
self.doa_logistics_provider_id = iprot.readI64();
|
|
|
1918 |
else:
|
|
|
1919 |
iprot.skip(ftype)
|
| 5062 |
varun.gupt |
1920 |
elif fid == 54:
|
|
|
1921 |
if ftype == TType.I64:
|
|
|
1922 |
self.originalOrderId = iprot.readI64();
|
|
|
1923 |
else:
|
|
|
1924 |
iprot.skip(ftype)
|
| 5110 |
mandeep.dh |
1925 |
elif fid == 55:
|
|
|
1926 |
if ftype == TType.I64:
|
|
|
1927 |
self.fulfilmentWarehouseId = iprot.readI64();
|
|
|
1928 |
else:
|
|
|
1929 |
iprot.skip(ftype)
|
| 5189 |
varun.gupt |
1930 |
elif fid == 56:
|
|
|
1931 |
if ftype == TType.BOOL:
|
|
|
1932 |
self.vendorPaid = iprot.readBool();
|
|
|
1933 |
else:
|
|
|
1934 |
iprot.skip(ftype)
|
| 5354 |
anupam.sin |
1935 |
elif fid == 57:
|
|
|
1936 |
if ftype == TType.I64:
|
|
|
1937 |
self.received_return_timestamp = iprot.readI64();
|
|
|
1938 |
else:
|
|
|
1939 |
iprot.skip(ftype)
|
|
|
1940 |
elif fid == 58:
|
|
|
1941 |
if ftype == TType.I64:
|
|
|
1942 |
self.first_attempt_timestamp = iprot.readI64();
|
|
|
1943 |
else:
|
|
|
1944 |
iprot.skip(ftype)
|
| 5527 |
anupam.sin |
1945 |
elif fid == 59:
|
|
|
1946 |
if ftype == TType.I32:
|
|
|
1947 |
self.orderType = iprot.readI32();
|
|
|
1948 |
else:
|
|
|
1949 |
iprot.skip(ftype)
|
| 5553 |
rajveer |
1950 |
elif fid == 60:
|
|
|
1951 |
if ftype == TType.I64:
|
|
|
1952 |
self.pickupStoreId = iprot.readI64();
|
|
|
1953 |
else:
|
|
|
1954 |
iprot.skip(ftype)
|
|
|
1955 |
elif fid == 61:
|
|
|
1956 |
if ftype == TType.BOOL:
|
|
|
1957 |
self.logisticsCod = iprot.readBool();
|
|
|
1958 |
else:
|
|
|
1959 |
iprot.skip(ftype)
|
| 6318 |
rajveer |
1960 |
elif fid == 62:
|
|
|
1961 |
if ftype == TType.I64:
|
|
|
1962 |
self.gvAmount = iprot.readI64();
|
|
|
1963 |
else:
|
|
|
1964 |
iprot.skip(ftype)
|
| 6525 |
rajveer |
1965 |
elif fid == 63:
|
|
|
1966 |
if ftype == TType.BOOL:
|
|
|
1967 |
self.otg = iprot.readBool();
|
|
|
1968 |
else:
|
|
|
1969 |
iprot.skip(ftype)
|
| 6726 |
rajveer |
1970 |
elif fid == 64:
|
|
|
1971 |
if ftype == TType.I64:
|
|
|
1972 |
self.courier_delivery_time = iprot.readI64();
|
|
|
1973 |
else:
|
|
|
1974 |
iprot.skip(ftype)
|
| 6903 |
anupam.sin |
1975 |
elif fid == 65:
|
|
|
1976 |
if ftype == TType.I64:
|
|
|
1977 |
self.insurer = iprot.readI64();
|
|
|
1978 |
else:
|
|
|
1979 |
iprot.skip(ftype)
|
|
|
1980 |
elif fid == 66:
|
|
|
1981 |
if ftype == TType.DOUBLE:
|
|
|
1982 |
self.insuranceAmount = iprot.readDouble();
|
|
|
1983 |
else:
|
|
|
1984 |
iprot.skip(ftype)
|
|
|
1985 |
elif fid == 67:
|
|
|
1986 |
if ftype == TType.STRING:
|
|
|
1987 |
self.dob = iprot.readString();
|
|
|
1988 |
else:
|
|
|
1989 |
iprot.skip(ftype)
|
|
|
1990 |
elif fid == 68:
|
|
|
1991 |
if ftype == TType.STRING:
|
|
|
1992 |
self.guardianName = iprot.readString();
|
|
|
1993 |
else:
|
|
|
1994 |
iprot.skip(ftype)
|
| 7190 |
amar.kumar |
1995 |
elif fid == 69:
|
|
|
1996 |
if ftype == TType.I64:
|
|
|
1997 |
self.freebieItemId = iprot.readI64();
|
|
|
1998 |
else:
|
|
|
1999 |
iprot.skip(ftype)
|
| 7293 |
anupam.sin |
2000 |
elif fid == 70:
|
|
|
2001 |
if ftype == TType.I64:
|
|
|
2002 |
self.source = iprot.readI64();
|
|
|
2003 |
else:
|
|
|
2004 |
iprot.skip(ftype)
|
|
|
2005 |
elif fid == 71:
|
|
|
2006 |
if ftype == TType.DOUBLE:
|
|
|
2007 |
self.advanceAmount = iprot.readDouble();
|
|
|
2008 |
else:
|
|
|
2009 |
iprot.skip(ftype)
|
|
|
2010 |
elif fid == 72:
|
|
|
2011 |
if ftype == TType.I64:
|
|
|
2012 |
self.storeId = iprot.readI64();
|
|
|
2013 |
else:
|
|
|
2014 |
iprot.skip(ftype)
|
| 8717 |
amar.kumar |
2015 |
elif fid == 73:
|
|
|
2016 |
if ftype == TType.I32:
|
|
|
2017 |
self.productCondition = iprot.readI32();
|
|
|
2018 |
else:
|
|
|
2019 |
iprot.skip(ftype)
|
| 9299 |
kshitij.so |
2020 |
elif fid == 74:
|
|
|
2021 |
if ftype == TType.I64:
|
|
|
2022 |
self.dataProtectionInsurer = iprot.readI64();
|
|
|
2023 |
else:
|
|
|
2024 |
iprot.skip(ftype)
|
|
|
2025 |
elif fid == 75:
|
|
|
2026 |
if ftype == TType.DOUBLE:
|
|
|
2027 |
self.dataProtectionAmount = iprot.readDouble();
|
|
|
2028 |
else:
|
|
|
2029 |
iprot.skip(ftype)
|
| 9416 |
amar.kumar |
2030 |
elif fid == 76:
|
|
|
2031 |
if ftype == TType.I32:
|
|
|
2032 |
self.taxType = iprot.readI32();
|
|
|
2033 |
else:
|
|
|
2034 |
iprot.skip(ftype)
|
| 13147 |
manish.sha |
2035 |
elif fid == 77:
|
|
|
2036 |
if ftype == TType.STRING:
|
|
|
2037 |
self.logisticsTransactionId = iprot.readString();
|
|
|
2038 |
else:
|
|
|
2039 |
iprot.skip(ftype)
|
| 17470 |
manish.sha |
2040 |
elif fid == 78:
|
|
|
2041 |
if ftype == TType.DOUBLE:
|
|
|
2042 |
self.shippingCost = iprot.readDouble();
|
|
|
2043 |
else:
|
|
|
2044 |
iprot.skip(ftype)
|
|
|
2045 |
elif fid == 79:
|
|
|
2046 |
if ftype == TType.DOUBLE:
|
|
|
2047 |
self.codCharges = iprot.readDouble();
|
|
|
2048 |
else:
|
|
|
2049 |
iprot.skip(ftype)
|
| 19973 |
amit.gupta |
2050 |
elif fid == 80:
|
|
|
2051 |
if ftype == TType.I64:
|
|
|
2052 |
self.seller_id = iprot.readI64();
|
|
|
2053 |
else:
|
|
|
2054 |
iprot.skip(ftype)
|
| 19980 |
amit.gupta |
2055 |
elif fid == 81:
|
|
|
2056 |
if ftype == TType.I64:
|
|
|
2057 |
self.warehouse_address_id = iprot.readI64();
|
|
|
2058 |
else:
|
|
|
2059 |
iprot.skip(ftype)
|
| 20873 |
kshitij.so |
2060 |
elif fid == 82:
|
|
|
2061 |
if ftype == TType.DOUBLE:
|
|
|
2062 |
self.wallet_amount = iprot.readDouble();
|
|
|
2063 |
else:
|
|
|
2064 |
iprot.skip(ftype)
|
|
|
2065 |
elif fid == 83:
|
|
|
2066 |
if ftype == TType.DOUBLE:
|
|
|
2067 |
self.net_payable_amount = iprot.readDouble();
|
|
|
2068 |
else:
|
|
|
2069 |
iprot.skip(ftype)
|
| 21134 |
amit.gupta |
2070 |
elif fid == 84:
|
|
|
2071 |
if ftype == TType.DOUBLE:
|
|
|
2072 |
self.shippingRefund = iprot.readDouble();
|
|
|
2073 |
else:
|
|
|
2074 |
iprot.skip(ftype)
|
| 94 |
ashish |
2075 |
else:
|
|
|
2076 |
iprot.skip(ftype)
|
|
|
2077 |
iprot.readFieldEnd()
|
|
|
2078 |
iprot.readStructEnd()
|
|
|
2079 |
|
|
|
2080 |
def write(self, oprot):
|
|
|
2081 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2082 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2083 |
return
|
| 483 |
rajveer |
2084 |
oprot.writeStructBegin('Order')
|
| 3431 |
rajveer |
2085 |
if self.id is not None:
|
| 94 |
ashish |
2086 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2087 |
oprot.writeI64(self.id)
|
|
|
2088 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2089 |
if self.warehouse_id is not None:
|
| 483 |
rajveer |
2090 |
oprot.writeFieldBegin('warehouse_id', TType.I64, 2)
|
|
|
2091 |
oprot.writeI64(self.warehouse_id)
|
| 94 |
ashish |
2092 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2093 |
if self.lineitems is not None:
|
| 483 |
rajveer |
2094 |
oprot.writeFieldBegin('lineitems', TType.LIST, 3)
|
|
|
2095 |
oprot.writeListBegin(TType.STRUCT, len(self.lineitems))
|
| 685 |
chandransh |
2096 |
for iter6 in self.lineitems:
|
|
|
2097 |
iter6.write(oprot)
|
| 483 |
rajveer |
2098 |
oprot.writeListEnd()
|
| 94 |
ashish |
2099 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2100 |
if self.logistics_provider_id is not None:
|
| 483 |
rajveer |
2101 |
oprot.writeFieldBegin('logistics_provider_id', TType.I64, 4)
|
|
|
2102 |
oprot.writeI64(self.logistics_provider_id)
|
| 94 |
ashish |
2103 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2104 |
if self.airwaybill_no is not None:
|
| 483 |
rajveer |
2105 |
oprot.writeFieldBegin('airwaybill_no', TType.STRING, 5)
|
|
|
2106 |
oprot.writeString(self.airwaybill_no)
|
| 94 |
ashish |
2107 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2108 |
if self.tracking_id is not None:
|
| 483 |
rajveer |
2109 |
oprot.writeFieldBegin('tracking_id', TType.STRING, 6)
|
|
|
2110 |
oprot.writeString(self.tracking_id)
|
|
|
2111 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2112 |
if self.expected_delivery_time is not None:
|
| 483 |
rajveer |
2113 |
oprot.writeFieldBegin('expected_delivery_time', TType.I64, 7)
|
|
|
2114 |
oprot.writeI64(self.expected_delivery_time)
|
|
|
2115 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2116 |
if self.customer_id is not None:
|
| 483 |
rajveer |
2117 |
oprot.writeFieldBegin('customer_id', TType.I64, 8)
|
|
|
2118 |
oprot.writeI64(self.customer_id)
|
|
|
2119 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2120 |
if self.customer_name is not None:
|
| 483 |
rajveer |
2121 |
oprot.writeFieldBegin('customer_name', TType.STRING, 9)
|
|
|
2122 |
oprot.writeString(self.customer_name)
|
|
|
2123 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2124 |
if self.customer_mobilenumber is not None:
|
| 483 |
rajveer |
2125 |
oprot.writeFieldBegin('customer_mobilenumber', TType.STRING, 10)
|
|
|
2126 |
oprot.writeString(self.customer_mobilenumber)
|
|
|
2127 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2128 |
if self.customer_pincode is not None:
|
| 483 |
rajveer |
2129 |
oprot.writeFieldBegin('customer_pincode', TType.STRING, 11)
|
|
|
2130 |
oprot.writeString(self.customer_pincode)
|
|
|
2131 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2132 |
if self.customer_address1 is not None:
|
| 738 |
chandransh |
2133 |
oprot.writeFieldBegin('customer_address1', TType.STRING, 12)
|
|
|
2134 |
oprot.writeString(self.customer_address1)
|
| 483 |
rajveer |
2135 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2136 |
if self.customer_address2 is not None:
|
| 738 |
chandransh |
2137 |
oprot.writeFieldBegin('customer_address2', TType.STRING, 13)
|
|
|
2138 |
oprot.writeString(self.customer_address2)
|
|
|
2139 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2140 |
if self.customer_email is not None:
|
| 738 |
chandransh |
2141 |
oprot.writeFieldBegin('customer_email', TType.STRING, 14)
|
| 483 |
rajveer |
2142 |
oprot.writeString(self.customer_email)
|
|
|
2143 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2144 |
if self.customer_city is not None:
|
| 738 |
chandransh |
2145 |
oprot.writeFieldBegin('customer_city', TType.STRING, 15)
|
|
|
2146 |
oprot.writeString(self.customer_city)
|
|
|
2147 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2148 |
if self.customer_state is not None:
|
| 738 |
chandransh |
2149 |
oprot.writeFieldBegin('customer_state', TType.STRING, 16)
|
|
|
2150 |
oprot.writeString(self.customer_state)
|
|
|
2151 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2152 |
if self.status is not None:
|
| 738 |
chandransh |
2153 |
oprot.writeFieldBegin('status', TType.I32, 17)
|
| 94 |
ashish |
2154 |
oprot.writeI32(self.status)
|
|
|
2155 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2156 |
if self.statusDescription is not None:
|
| 738 |
chandransh |
2157 |
oprot.writeFieldBegin('statusDescription', TType.STRING, 18)
|
| 483 |
rajveer |
2158 |
oprot.writeString(self.statusDescription)
|
| 94 |
ashish |
2159 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2160 |
if self.total_amount is not None:
|
| 738 |
chandransh |
2161 |
oprot.writeFieldBegin('total_amount', TType.DOUBLE, 19)
|
| 483 |
rajveer |
2162 |
oprot.writeDouble(self.total_amount)
|
| 94 |
ashish |
2163 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2164 |
if self.total_weight is not None:
|
| 738 |
chandransh |
2165 |
oprot.writeFieldBegin('total_weight', TType.DOUBLE, 20)
|
| 483 |
rajveer |
2166 |
oprot.writeDouble(self.total_weight)
|
| 94 |
ashish |
2167 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2168 |
if self.invoice_number is not None:
|
| 738 |
chandransh |
2169 |
oprot.writeFieldBegin('invoice_number', TType.STRING, 21)
|
| 483 |
rajveer |
2170 |
oprot.writeString(self.invoice_number)
|
| 94 |
ashish |
2171 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2172 |
if self.billed_by is not None:
|
| 738 |
chandransh |
2173 |
oprot.writeFieldBegin('billed_by', TType.STRING, 22)
|
| 483 |
rajveer |
2174 |
oprot.writeString(self.billed_by)
|
| 94 |
ashish |
2175 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2176 |
if self.created_timestamp is not None:
|
| 738 |
chandransh |
2177 |
oprot.writeFieldBegin('created_timestamp', TType.I64, 23)
|
| 483 |
rajveer |
2178 |
oprot.writeI64(self.created_timestamp)
|
|
|
2179 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2180 |
if self.accepted_timestamp is not None:
|
| 738 |
chandransh |
2181 |
oprot.writeFieldBegin('accepted_timestamp', TType.I64, 24)
|
| 483 |
rajveer |
2182 |
oprot.writeI64(self.accepted_timestamp)
|
|
|
2183 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2184 |
if self.billing_timestamp is not None:
|
| 738 |
chandransh |
2185 |
oprot.writeFieldBegin('billing_timestamp', TType.I64, 25)
|
| 483 |
rajveer |
2186 |
oprot.writeI64(self.billing_timestamp)
|
|
|
2187 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2188 |
if self.shipping_timestamp is not None:
|
| 738 |
chandransh |
2189 |
oprot.writeFieldBegin('shipping_timestamp', TType.I64, 26)
|
| 483 |
rajveer |
2190 |
oprot.writeI64(self.shipping_timestamp)
|
|
|
2191 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2192 |
if self.pickup_timestamp is not None:
|
| 1113 |
chandransh |
2193 |
oprot.writeFieldBegin('pickup_timestamp', TType.I64, 27)
|
|
|
2194 |
oprot.writeI64(self.pickup_timestamp)
|
|
|
2195 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2196 |
if self.delivery_timestamp is not None:
|
| 1113 |
chandransh |
2197 |
oprot.writeFieldBegin('delivery_timestamp', TType.I64, 28)
|
| 483 |
rajveer |
2198 |
oprot.writeI64(self.delivery_timestamp)
|
|
|
2199 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2200 |
if self.outofstock_timestamp is not None:
|
| 1208 |
chandransh |
2201 |
oprot.writeFieldBegin('outofstock_timestamp', TType.I64, 29)
|
|
|
2202 |
oprot.writeI64(self.outofstock_timestamp)
|
|
|
2203 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2204 |
if self.jacket_number is not None:
|
| 1208 |
chandransh |
2205 |
oprot.writeFieldBegin('jacket_number', TType.I64, 30)
|
| 642 |
chandransh |
2206 |
oprot.writeI64(self.jacket_number)
|
|
|
2207 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2208 |
if self.receiver is not None:
|
| 1208 |
chandransh |
2209 |
oprot.writeFieldBegin('receiver', TType.STRING, 31)
|
| 1132 |
chandransh |
2210 |
oprot.writeString(self.receiver)
|
|
|
2211 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2212 |
if self.batchNo is not None:
|
| 1220 |
chandransh |
2213 |
oprot.writeFieldBegin('batchNo', TType.I64, 32)
|
|
|
2214 |
oprot.writeI64(self.batchNo)
|
|
|
2215 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2216 |
if self.serialNo is not None:
|
| 1220 |
chandransh |
2217 |
oprot.writeFieldBegin('serialNo', TType.I64, 33)
|
|
|
2218 |
oprot.writeI64(self.serialNo)
|
|
|
2219 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2220 |
if self.doaFlag is not None:
|
| 2536 |
chandransh |
2221 |
oprot.writeFieldBegin('doaFlag', TType.BOOL, 34)
|
|
|
2222 |
oprot.writeBool(self.doaFlag)
|
|
|
2223 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2224 |
if self.pickupRequestNo is not None:
|
| 2536 |
chandransh |
2225 |
oprot.writeFieldBegin('pickupRequestNo', TType.STRING, 35)
|
|
|
2226 |
oprot.writeString(self.pickupRequestNo)
|
|
|
2227 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2228 |
if self.transactionId is not None:
|
| 2676 |
vikas |
2229 |
oprot.writeFieldBegin('transactionId', TType.I64, 36)
|
|
|
2230 |
oprot.writeI64(self.transactionId)
|
|
|
2231 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2232 |
if self.purchaseOrderNo is not None:
|
| 2819 |
chandransh |
2233 |
oprot.writeFieldBegin('purchaseOrderNo', TType.STRING, 37)
|
|
|
2234 |
oprot.writeString(self.purchaseOrderNo)
|
|
|
2235 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
2236 |
if self.cod is not None:
|
| 3064 |
chandransh |
2237 |
oprot.writeFieldBegin('cod', TType.BOOL, 38)
|
|
|
2238 |
oprot.writeBool(self.cod)
|
|
|
2239 |
oprot.writeFieldEnd()
|
| 3553 |
chandransh |
2240 |
if self.delayReason is not None:
|
|
|
2241 |
oprot.writeFieldBegin('delayReason', TType.I32, 39)
|
|
|
2242 |
oprot.writeI32(self.delayReason)
|
|
|
2243 |
oprot.writeFieldEnd()
|
| 3986 |
chandransh |
2244 |
if self.promised_delivery_time is not None:
|
|
|
2245 |
oprot.writeFieldBegin('promised_delivery_time', TType.I64, 40)
|
|
|
2246 |
oprot.writeI64(self.promised_delivery_time)
|
|
|
2247 |
oprot.writeFieldEnd()
|
| 4004 |
chandransh |
2248 |
if self.expected_shipping_time is not None:
|
|
|
2249 |
oprot.writeFieldBegin('expected_shipping_time', TType.I64, 41)
|
|
|
2250 |
oprot.writeI64(self.expected_shipping_time)
|
|
|
2251 |
oprot.writeFieldEnd()
|
|
|
2252 |
if self.verification_timestamp is not None:
|
|
|
2253 |
oprot.writeFieldBegin('verification_timestamp', TType.I64, 42)
|
|
|
2254 |
oprot.writeI64(self.verification_timestamp)
|
|
|
2255 |
oprot.writeFieldEnd()
|
| 4102 |
chandransh |
2256 |
if self.promised_shipping_time is not None:
|
|
|
2257 |
oprot.writeFieldBegin('promised_shipping_time', TType.I64, 43)
|
|
|
2258 |
oprot.writeI64(self.promised_shipping_time)
|
|
|
2259 |
oprot.writeFieldEnd()
|
| 4192 |
anupam.sin |
2260 |
if self.reship_timestamp is not None:
|
|
|
2261 |
oprot.writeFieldBegin('reship_timestamp', TType.I64, 44)
|
|
|
2262 |
oprot.writeI64(self.reship_timestamp)
|
|
|
2263 |
oprot.writeFieldEnd()
|
|
|
2264 |
if self.refund_timestamp is not None:
|
|
|
2265 |
oprot.writeFieldBegin('refund_timestamp', TType.I64, 45)
|
|
|
2266 |
oprot.writeI64(self.refund_timestamp)
|
|
|
2267 |
oprot.writeFieldEnd()
|
|
|
2268 |
if self.new_order_id is not None:
|
|
|
2269 |
oprot.writeFieldBegin('new_order_id', TType.I64, 46)
|
|
|
2270 |
oprot.writeI64(self.new_order_id)
|
|
|
2271 |
oprot.writeFieldEnd()
|
| 4247 |
rajveer |
2272 |
if self.previousStatus is not None:
|
|
|
2273 |
oprot.writeFieldBegin('previousStatus', TType.I32, 47)
|
|
|
2274 |
oprot.writeI32(self.previousStatus)
|
|
|
2275 |
oprot.writeFieldEnd()
|
| 4269 |
anupam.sin |
2276 |
if self.vendorId is not None:
|
|
|
2277 |
oprot.writeFieldBegin('vendorId', TType.I64, 48)
|
|
|
2278 |
oprot.writeI64(self.vendorId)
|
|
|
2279 |
oprot.writeFieldEnd()
|
| 4506 |
phani.kuma |
2280 |
if self.doa_auth_timestamp is not None:
|
|
|
2281 |
oprot.writeFieldBegin('doa_auth_timestamp', TType.I64, 49)
|
|
|
2282 |
oprot.writeI64(self.doa_auth_timestamp)
|
|
|
2283 |
oprot.writeFieldEnd()
|
| 4647 |
rajveer |
2284 |
if self.delayReasonText is not None:
|
|
|
2285 |
oprot.writeFieldBegin('delayReasonText', TType.STRING, 50)
|
|
|
2286 |
oprot.writeString(self.delayReasonText)
|
|
|
2287 |
oprot.writeFieldEnd()
|
| 4709 |
rajveer |
2288 |
if self.refundReason is not None:
|
|
|
2289 |
oprot.writeFieldBegin('refundReason', TType.STRING, 51)
|
|
|
2290 |
oprot.writeString(self.refundReason)
|
|
|
2291 |
oprot.writeFieldEnd()
|
| 4758 |
mandeep.dh |
2292 |
if self.purchaseOrderId is not None:
|
|
|
2293 |
oprot.writeFieldBegin('purchaseOrderId', TType.I64, 52)
|
|
|
2294 |
oprot.writeI64(self.purchaseOrderId)
|
|
|
2295 |
oprot.writeFieldEnd()
|
| 4815 |
phani.kuma |
2296 |
if self.doa_logistics_provider_id is not None:
|
|
|
2297 |
oprot.writeFieldBegin('doa_logistics_provider_id', TType.I64, 53)
|
|
|
2298 |
oprot.writeI64(self.doa_logistics_provider_id)
|
|
|
2299 |
oprot.writeFieldEnd()
|
| 5062 |
varun.gupt |
2300 |
if self.originalOrderId is not None:
|
|
|
2301 |
oprot.writeFieldBegin('originalOrderId', TType.I64, 54)
|
|
|
2302 |
oprot.writeI64(self.originalOrderId)
|
|
|
2303 |
oprot.writeFieldEnd()
|
| 5110 |
mandeep.dh |
2304 |
if self.fulfilmentWarehouseId is not None:
|
|
|
2305 |
oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 55)
|
|
|
2306 |
oprot.writeI64(self.fulfilmentWarehouseId)
|
|
|
2307 |
oprot.writeFieldEnd()
|
| 5189 |
varun.gupt |
2308 |
if self.vendorPaid is not None:
|
|
|
2309 |
oprot.writeFieldBegin('vendorPaid', TType.BOOL, 56)
|
|
|
2310 |
oprot.writeBool(self.vendorPaid)
|
|
|
2311 |
oprot.writeFieldEnd()
|
| 5354 |
anupam.sin |
2312 |
if self.received_return_timestamp is not None:
|
|
|
2313 |
oprot.writeFieldBegin('received_return_timestamp', TType.I64, 57)
|
|
|
2314 |
oprot.writeI64(self.received_return_timestamp)
|
|
|
2315 |
oprot.writeFieldEnd()
|
|
|
2316 |
if self.first_attempt_timestamp is not None:
|
|
|
2317 |
oprot.writeFieldBegin('first_attempt_timestamp', TType.I64, 58)
|
|
|
2318 |
oprot.writeI64(self.first_attempt_timestamp)
|
|
|
2319 |
oprot.writeFieldEnd()
|
| 5527 |
anupam.sin |
2320 |
if self.orderType is not None:
|
|
|
2321 |
oprot.writeFieldBegin('orderType', TType.I32, 59)
|
|
|
2322 |
oprot.writeI32(self.orderType)
|
|
|
2323 |
oprot.writeFieldEnd()
|
| 5553 |
rajveer |
2324 |
if self.pickupStoreId is not None:
|
|
|
2325 |
oprot.writeFieldBegin('pickupStoreId', TType.I64, 60)
|
|
|
2326 |
oprot.writeI64(self.pickupStoreId)
|
|
|
2327 |
oprot.writeFieldEnd()
|
|
|
2328 |
if self.logisticsCod is not None:
|
|
|
2329 |
oprot.writeFieldBegin('logisticsCod', TType.BOOL, 61)
|
|
|
2330 |
oprot.writeBool(self.logisticsCod)
|
|
|
2331 |
oprot.writeFieldEnd()
|
| 6318 |
rajveer |
2332 |
if self.gvAmount is not None:
|
|
|
2333 |
oprot.writeFieldBegin('gvAmount', TType.I64, 62)
|
|
|
2334 |
oprot.writeI64(self.gvAmount)
|
|
|
2335 |
oprot.writeFieldEnd()
|
| 6525 |
rajveer |
2336 |
if self.otg is not None:
|
|
|
2337 |
oprot.writeFieldBegin('otg', TType.BOOL, 63)
|
|
|
2338 |
oprot.writeBool(self.otg)
|
|
|
2339 |
oprot.writeFieldEnd()
|
| 6726 |
rajveer |
2340 |
if self.courier_delivery_time is not None:
|
|
|
2341 |
oprot.writeFieldBegin('courier_delivery_time', TType.I64, 64)
|
|
|
2342 |
oprot.writeI64(self.courier_delivery_time)
|
|
|
2343 |
oprot.writeFieldEnd()
|
| 6903 |
anupam.sin |
2344 |
if self.insurer is not None:
|
|
|
2345 |
oprot.writeFieldBegin('insurer', TType.I64, 65)
|
|
|
2346 |
oprot.writeI64(self.insurer)
|
|
|
2347 |
oprot.writeFieldEnd()
|
|
|
2348 |
if self.insuranceAmount is not None:
|
|
|
2349 |
oprot.writeFieldBegin('insuranceAmount', TType.DOUBLE, 66)
|
|
|
2350 |
oprot.writeDouble(self.insuranceAmount)
|
|
|
2351 |
oprot.writeFieldEnd()
|
|
|
2352 |
if self.dob is not None:
|
|
|
2353 |
oprot.writeFieldBegin('dob', TType.STRING, 67)
|
|
|
2354 |
oprot.writeString(self.dob)
|
|
|
2355 |
oprot.writeFieldEnd()
|
|
|
2356 |
if self.guardianName is not None:
|
|
|
2357 |
oprot.writeFieldBegin('guardianName', TType.STRING, 68)
|
|
|
2358 |
oprot.writeString(self.guardianName)
|
|
|
2359 |
oprot.writeFieldEnd()
|
| 7190 |
amar.kumar |
2360 |
if self.freebieItemId is not None:
|
|
|
2361 |
oprot.writeFieldBegin('freebieItemId', TType.I64, 69)
|
|
|
2362 |
oprot.writeI64(self.freebieItemId)
|
|
|
2363 |
oprot.writeFieldEnd()
|
| 7293 |
anupam.sin |
2364 |
if self.source is not None:
|
|
|
2365 |
oprot.writeFieldBegin('source', TType.I64, 70)
|
|
|
2366 |
oprot.writeI64(self.source)
|
|
|
2367 |
oprot.writeFieldEnd()
|
|
|
2368 |
if self.advanceAmount is not None:
|
|
|
2369 |
oprot.writeFieldBegin('advanceAmount', TType.DOUBLE, 71)
|
|
|
2370 |
oprot.writeDouble(self.advanceAmount)
|
|
|
2371 |
oprot.writeFieldEnd()
|
|
|
2372 |
if self.storeId is not None:
|
|
|
2373 |
oprot.writeFieldBegin('storeId', TType.I64, 72)
|
|
|
2374 |
oprot.writeI64(self.storeId)
|
|
|
2375 |
oprot.writeFieldEnd()
|
| 8717 |
amar.kumar |
2376 |
if self.productCondition is not None:
|
|
|
2377 |
oprot.writeFieldBegin('productCondition', TType.I32, 73)
|
|
|
2378 |
oprot.writeI32(self.productCondition)
|
|
|
2379 |
oprot.writeFieldEnd()
|
| 9299 |
kshitij.so |
2380 |
if self.dataProtectionInsurer is not None:
|
|
|
2381 |
oprot.writeFieldBegin('dataProtectionInsurer', TType.I64, 74)
|
|
|
2382 |
oprot.writeI64(self.dataProtectionInsurer)
|
|
|
2383 |
oprot.writeFieldEnd()
|
|
|
2384 |
if self.dataProtectionAmount is not None:
|
|
|
2385 |
oprot.writeFieldBegin('dataProtectionAmount', TType.DOUBLE, 75)
|
|
|
2386 |
oprot.writeDouble(self.dataProtectionAmount)
|
|
|
2387 |
oprot.writeFieldEnd()
|
| 9416 |
amar.kumar |
2388 |
if self.taxType is not None:
|
|
|
2389 |
oprot.writeFieldBegin('taxType', TType.I32, 76)
|
|
|
2390 |
oprot.writeI32(self.taxType)
|
|
|
2391 |
oprot.writeFieldEnd()
|
| 13147 |
manish.sha |
2392 |
if self.logisticsTransactionId is not None:
|
|
|
2393 |
oprot.writeFieldBegin('logisticsTransactionId', TType.STRING, 77)
|
|
|
2394 |
oprot.writeString(self.logisticsTransactionId)
|
|
|
2395 |
oprot.writeFieldEnd()
|
| 17470 |
manish.sha |
2396 |
if self.shippingCost is not None:
|
|
|
2397 |
oprot.writeFieldBegin('shippingCost', TType.DOUBLE, 78)
|
|
|
2398 |
oprot.writeDouble(self.shippingCost)
|
|
|
2399 |
oprot.writeFieldEnd()
|
|
|
2400 |
if self.codCharges is not None:
|
|
|
2401 |
oprot.writeFieldBegin('codCharges', TType.DOUBLE, 79)
|
|
|
2402 |
oprot.writeDouble(self.codCharges)
|
|
|
2403 |
oprot.writeFieldEnd()
|
| 19973 |
amit.gupta |
2404 |
if self.seller_id is not None:
|
|
|
2405 |
oprot.writeFieldBegin('seller_id', TType.I64, 80)
|
|
|
2406 |
oprot.writeI64(self.seller_id)
|
|
|
2407 |
oprot.writeFieldEnd()
|
| 19980 |
amit.gupta |
2408 |
if self.warehouse_address_id is not None:
|
|
|
2409 |
oprot.writeFieldBegin('warehouse_address_id', TType.I64, 81)
|
|
|
2410 |
oprot.writeI64(self.warehouse_address_id)
|
|
|
2411 |
oprot.writeFieldEnd()
|
| 20873 |
kshitij.so |
2412 |
if self.wallet_amount is not None:
|
|
|
2413 |
oprot.writeFieldBegin('wallet_amount', TType.DOUBLE, 82)
|
|
|
2414 |
oprot.writeDouble(self.wallet_amount)
|
|
|
2415 |
oprot.writeFieldEnd()
|
|
|
2416 |
if self.net_payable_amount is not None:
|
|
|
2417 |
oprot.writeFieldBegin('net_payable_amount', TType.DOUBLE, 83)
|
|
|
2418 |
oprot.writeDouble(self.net_payable_amount)
|
|
|
2419 |
oprot.writeFieldEnd()
|
| 21134 |
amit.gupta |
2420 |
if self.shippingRefund is not None:
|
|
|
2421 |
oprot.writeFieldBegin('shippingRefund', TType.DOUBLE, 84)
|
|
|
2422 |
oprot.writeDouble(self.shippingRefund)
|
|
|
2423 |
oprot.writeFieldEnd()
|
| 94 |
ashish |
2424 |
oprot.writeFieldStop()
|
|
|
2425 |
oprot.writeStructEnd()
|
|
|
2426 |
|
| 3431 |
rajveer |
2427 |
def validate(self):
|
|
|
2428 |
return
|
|
|
2429 |
|
|
|
2430 |
|
| 94 |
ashish |
2431 |
def __repr__(self):
|
|
|
2432 |
L = ['%s=%r' % (key, value)
|
|
|
2433 |
for key, value in self.__dict__.iteritems()]
|
|
|
2434 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2435 |
|
|
|
2436 |
def __eq__(self, other):
|
|
|
2437 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2438 |
|
|
|
2439 |
def __ne__(self, other):
|
|
|
2440 |
return not (self == other)
|
|
|
2441 |
|
| 5527 |
anupam.sin |
2442 |
class Attribute:
|
|
|
2443 |
"""
|
|
|
2444 |
Attributes:
|
|
|
2445 |
- name
|
|
|
2446 |
- value
|
|
|
2447 |
"""
|
|
|
2448 |
|
|
|
2449 |
thrift_spec = (
|
|
|
2450 |
None, # 0
|
|
|
2451 |
(1, TType.STRING, 'name', None, None, ), # 1
|
|
|
2452 |
(2, TType.STRING, 'value', None, None, ), # 2
|
|
|
2453 |
)
|
|
|
2454 |
|
|
|
2455 |
def __init__(self, name=None, value=None,):
|
|
|
2456 |
self.name = name
|
|
|
2457 |
self.value = value
|
|
|
2458 |
|
|
|
2459 |
def read(self, iprot):
|
|
|
2460 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2461 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2462 |
return
|
|
|
2463 |
iprot.readStructBegin()
|
|
|
2464 |
while True:
|
|
|
2465 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2466 |
if ftype == TType.STOP:
|
|
|
2467 |
break
|
|
|
2468 |
if fid == 1:
|
|
|
2469 |
if ftype == TType.STRING:
|
|
|
2470 |
self.name = iprot.readString();
|
|
|
2471 |
else:
|
|
|
2472 |
iprot.skip(ftype)
|
|
|
2473 |
elif fid == 2:
|
|
|
2474 |
if ftype == TType.STRING:
|
|
|
2475 |
self.value = iprot.readString();
|
|
|
2476 |
else:
|
|
|
2477 |
iprot.skip(ftype)
|
|
|
2478 |
else:
|
|
|
2479 |
iprot.skip(ftype)
|
|
|
2480 |
iprot.readFieldEnd()
|
|
|
2481 |
iprot.readStructEnd()
|
|
|
2482 |
|
|
|
2483 |
def write(self, oprot):
|
|
|
2484 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2485 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2486 |
return
|
|
|
2487 |
oprot.writeStructBegin('Attribute')
|
|
|
2488 |
if self.name is not None:
|
|
|
2489 |
oprot.writeFieldBegin('name', TType.STRING, 1)
|
|
|
2490 |
oprot.writeString(self.name)
|
|
|
2491 |
oprot.writeFieldEnd()
|
|
|
2492 |
if self.value is not None:
|
|
|
2493 |
oprot.writeFieldBegin('value', TType.STRING, 2)
|
|
|
2494 |
oprot.writeString(self.value)
|
|
|
2495 |
oprot.writeFieldEnd()
|
|
|
2496 |
oprot.writeFieldStop()
|
|
|
2497 |
oprot.writeStructEnd()
|
|
|
2498 |
|
|
|
2499 |
def validate(self):
|
|
|
2500 |
return
|
|
|
2501 |
|
|
|
2502 |
|
|
|
2503 |
def __repr__(self):
|
|
|
2504 |
L = ['%s=%r' % (key, value)
|
|
|
2505 |
for key, value in self.__dict__.iteritems()]
|
|
|
2506 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2507 |
|
|
|
2508 |
def __eq__(self, other):
|
|
|
2509 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2510 |
|
|
|
2511 |
def __ne__(self, other):
|
|
|
2512 |
return not (self == other)
|
|
|
2513 |
|
| 19832 |
amit.gupta |
2514 |
class PendingStoreOrder:
|
|
|
2515 |
"""
|
|
|
2516 |
Attributes:
|
|
|
2517 |
- id
|
|
|
2518 |
- storeId
|
|
|
2519 |
- productId
|
|
|
2520 |
- pincode
|
|
|
2521 |
- name
|
|
|
2522 |
- email
|
|
|
2523 |
- phone
|
|
|
2524 |
- line1
|
|
|
2525 |
- line2
|
|
|
2526 |
- city
|
|
|
2527 |
- state
|
|
|
2528 |
- createdOn
|
|
|
2529 |
"""
|
|
|
2530 |
|
|
|
2531 |
thrift_spec = (
|
|
|
2532 |
None, # 0
|
|
|
2533 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2534 |
(2, TType.I64, 'storeId', None, None, ), # 2
|
|
|
2535 |
(3, TType.I64, 'productId', None, None, ), # 3
|
|
|
2536 |
(4, TType.STRING, 'pincode', None, None, ), # 4
|
|
|
2537 |
(5, TType.STRING, 'name', None, None, ), # 5
|
|
|
2538 |
(6, TType.STRING, 'email', None, None, ), # 6
|
|
|
2539 |
(7, TType.STRING, 'phone', None, None, ), # 7
|
|
|
2540 |
(8, TType.STRING, 'line1', None, None, ), # 8
|
|
|
2541 |
(9, TType.STRING, 'line2', None, None, ), # 9
|
|
|
2542 |
(10, TType.STRING, 'city', None, None, ), # 10
|
|
|
2543 |
(11, TType.STRING, 'state', None, None, ), # 11
|
|
|
2544 |
(12, TType.I64, 'createdOn', None, None, ), # 12
|
|
|
2545 |
)
|
|
|
2546 |
|
|
|
2547 |
def __init__(self, id=None, storeId=None, productId=None, pincode=None, name=None, email=None, phone=None, line1=None, line2=None, city=None, state=None, createdOn=None,):
|
|
|
2548 |
self.id = id
|
|
|
2549 |
self.storeId = storeId
|
|
|
2550 |
self.productId = productId
|
|
|
2551 |
self.pincode = pincode
|
|
|
2552 |
self.name = name
|
|
|
2553 |
self.email = email
|
|
|
2554 |
self.phone = phone
|
|
|
2555 |
self.line1 = line1
|
|
|
2556 |
self.line2 = line2
|
|
|
2557 |
self.city = city
|
|
|
2558 |
self.state = state
|
|
|
2559 |
self.createdOn = createdOn
|
|
|
2560 |
|
|
|
2561 |
def read(self, iprot):
|
|
|
2562 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2563 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2564 |
return
|
|
|
2565 |
iprot.readStructBegin()
|
|
|
2566 |
while True:
|
|
|
2567 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2568 |
if ftype == TType.STOP:
|
|
|
2569 |
break
|
|
|
2570 |
if fid == 1:
|
|
|
2571 |
if ftype == TType.I64:
|
|
|
2572 |
self.id = iprot.readI64();
|
|
|
2573 |
else:
|
|
|
2574 |
iprot.skip(ftype)
|
|
|
2575 |
elif fid == 2:
|
|
|
2576 |
if ftype == TType.I64:
|
|
|
2577 |
self.storeId = iprot.readI64();
|
|
|
2578 |
else:
|
|
|
2579 |
iprot.skip(ftype)
|
|
|
2580 |
elif fid == 3:
|
|
|
2581 |
if ftype == TType.I64:
|
|
|
2582 |
self.productId = iprot.readI64();
|
|
|
2583 |
else:
|
|
|
2584 |
iprot.skip(ftype)
|
|
|
2585 |
elif fid == 4:
|
|
|
2586 |
if ftype == TType.STRING:
|
|
|
2587 |
self.pincode = iprot.readString();
|
|
|
2588 |
else:
|
|
|
2589 |
iprot.skip(ftype)
|
|
|
2590 |
elif fid == 5:
|
|
|
2591 |
if ftype == TType.STRING:
|
|
|
2592 |
self.name = iprot.readString();
|
|
|
2593 |
else:
|
|
|
2594 |
iprot.skip(ftype)
|
|
|
2595 |
elif fid == 6:
|
|
|
2596 |
if ftype == TType.STRING:
|
|
|
2597 |
self.email = iprot.readString();
|
|
|
2598 |
else:
|
|
|
2599 |
iprot.skip(ftype)
|
|
|
2600 |
elif fid == 7:
|
|
|
2601 |
if ftype == TType.STRING:
|
|
|
2602 |
self.phone = iprot.readString();
|
|
|
2603 |
else:
|
|
|
2604 |
iprot.skip(ftype)
|
|
|
2605 |
elif fid == 8:
|
|
|
2606 |
if ftype == TType.STRING:
|
|
|
2607 |
self.line1 = iprot.readString();
|
|
|
2608 |
else:
|
|
|
2609 |
iprot.skip(ftype)
|
|
|
2610 |
elif fid == 9:
|
|
|
2611 |
if ftype == TType.STRING:
|
|
|
2612 |
self.line2 = iprot.readString();
|
|
|
2613 |
else:
|
|
|
2614 |
iprot.skip(ftype)
|
|
|
2615 |
elif fid == 10:
|
|
|
2616 |
if ftype == TType.STRING:
|
|
|
2617 |
self.city = iprot.readString();
|
|
|
2618 |
else:
|
|
|
2619 |
iprot.skip(ftype)
|
|
|
2620 |
elif fid == 11:
|
|
|
2621 |
if ftype == TType.STRING:
|
|
|
2622 |
self.state = iprot.readString();
|
|
|
2623 |
else:
|
|
|
2624 |
iprot.skip(ftype)
|
|
|
2625 |
elif fid == 12:
|
|
|
2626 |
if ftype == TType.I64:
|
|
|
2627 |
self.createdOn = iprot.readI64();
|
|
|
2628 |
else:
|
|
|
2629 |
iprot.skip(ftype)
|
|
|
2630 |
else:
|
|
|
2631 |
iprot.skip(ftype)
|
|
|
2632 |
iprot.readFieldEnd()
|
|
|
2633 |
iprot.readStructEnd()
|
|
|
2634 |
|
|
|
2635 |
def write(self, oprot):
|
|
|
2636 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2637 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2638 |
return
|
|
|
2639 |
oprot.writeStructBegin('PendingStoreOrder')
|
|
|
2640 |
if self.id is not None:
|
|
|
2641 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2642 |
oprot.writeI64(self.id)
|
|
|
2643 |
oprot.writeFieldEnd()
|
|
|
2644 |
if self.storeId is not None:
|
|
|
2645 |
oprot.writeFieldBegin('storeId', TType.I64, 2)
|
|
|
2646 |
oprot.writeI64(self.storeId)
|
|
|
2647 |
oprot.writeFieldEnd()
|
|
|
2648 |
if self.productId is not None:
|
|
|
2649 |
oprot.writeFieldBegin('productId', TType.I64, 3)
|
|
|
2650 |
oprot.writeI64(self.productId)
|
|
|
2651 |
oprot.writeFieldEnd()
|
|
|
2652 |
if self.pincode is not None:
|
|
|
2653 |
oprot.writeFieldBegin('pincode', TType.STRING, 4)
|
|
|
2654 |
oprot.writeString(self.pincode)
|
|
|
2655 |
oprot.writeFieldEnd()
|
|
|
2656 |
if self.name is not None:
|
|
|
2657 |
oprot.writeFieldBegin('name', TType.STRING, 5)
|
|
|
2658 |
oprot.writeString(self.name)
|
|
|
2659 |
oprot.writeFieldEnd()
|
|
|
2660 |
if self.email is not None:
|
|
|
2661 |
oprot.writeFieldBegin('email', TType.STRING, 6)
|
|
|
2662 |
oprot.writeString(self.email)
|
|
|
2663 |
oprot.writeFieldEnd()
|
|
|
2664 |
if self.phone is not None:
|
|
|
2665 |
oprot.writeFieldBegin('phone', TType.STRING, 7)
|
|
|
2666 |
oprot.writeString(self.phone)
|
|
|
2667 |
oprot.writeFieldEnd()
|
|
|
2668 |
if self.line1 is not None:
|
|
|
2669 |
oprot.writeFieldBegin('line1', TType.STRING, 8)
|
|
|
2670 |
oprot.writeString(self.line1)
|
|
|
2671 |
oprot.writeFieldEnd()
|
|
|
2672 |
if self.line2 is not None:
|
|
|
2673 |
oprot.writeFieldBegin('line2', TType.STRING, 9)
|
|
|
2674 |
oprot.writeString(self.line2)
|
|
|
2675 |
oprot.writeFieldEnd()
|
|
|
2676 |
if self.city is not None:
|
|
|
2677 |
oprot.writeFieldBegin('city', TType.STRING, 10)
|
|
|
2678 |
oprot.writeString(self.city)
|
|
|
2679 |
oprot.writeFieldEnd()
|
|
|
2680 |
if self.state is not None:
|
|
|
2681 |
oprot.writeFieldBegin('state', TType.STRING, 11)
|
|
|
2682 |
oprot.writeString(self.state)
|
|
|
2683 |
oprot.writeFieldEnd()
|
|
|
2684 |
if self.createdOn is not None:
|
|
|
2685 |
oprot.writeFieldBegin('createdOn', TType.I64, 12)
|
|
|
2686 |
oprot.writeI64(self.createdOn)
|
|
|
2687 |
oprot.writeFieldEnd()
|
|
|
2688 |
oprot.writeFieldStop()
|
|
|
2689 |
oprot.writeStructEnd()
|
|
|
2690 |
|
|
|
2691 |
def validate(self):
|
|
|
2692 |
return
|
|
|
2693 |
|
|
|
2694 |
|
|
|
2695 |
def __repr__(self):
|
|
|
2696 |
L = ['%s=%r' % (key, value)
|
|
|
2697 |
for key, value in self.__dict__.iteritems()]
|
|
|
2698 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2699 |
|
|
|
2700 |
def __eq__(self, other):
|
|
|
2701 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2702 |
|
|
|
2703 |
def __ne__(self, other):
|
|
|
2704 |
return not (self == other)
|
|
|
2705 |
|
| 4247 |
rajveer |
2706 |
class OrderStatusAuditTrail:
|
|
|
2707 |
"""
|
|
|
2708 |
Attributes:
|
|
|
2709 |
- id
|
|
|
2710 |
- orderId
|
|
|
2711 |
- status
|
|
|
2712 |
- timestamp
|
|
|
2713 |
- description
|
|
|
2714 |
"""
|
|
|
2715 |
|
|
|
2716 |
thrift_spec = (
|
|
|
2717 |
None, # 0
|
|
|
2718 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
2719 |
(2, TType.I64, 'orderId', None, None, ), # 2
|
|
|
2720 |
(3, TType.I64, 'status', None, None, ), # 3
|
|
|
2721 |
(4, TType.I64, 'timestamp', None, None, ), # 4
|
|
|
2722 |
(5, TType.I64, 'description', None, None, ), # 5
|
|
|
2723 |
)
|
|
|
2724 |
|
|
|
2725 |
def __init__(self, id=None, orderId=None, status=None, timestamp=None, description=None,):
|
|
|
2726 |
self.id = id
|
|
|
2727 |
self.orderId = orderId
|
|
|
2728 |
self.status = status
|
|
|
2729 |
self.timestamp = timestamp
|
|
|
2730 |
self.description = description
|
|
|
2731 |
|
|
|
2732 |
def read(self, iprot):
|
|
|
2733 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2734 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2735 |
return
|
|
|
2736 |
iprot.readStructBegin()
|
|
|
2737 |
while True:
|
|
|
2738 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2739 |
if ftype == TType.STOP:
|
|
|
2740 |
break
|
|
|
2741 |
if fid == 1:
|
|
|
2742 |
if ftype == TType.I64:
|
|
|
2743 |
self.id = iprot.readI64();
|
|
|
2744 |
else:
|
|
|
2745 |
iprot.skip(ftype)
|
|
|
2746 |
elif fid == 2:
|
|
|
2747 |
if ftype == TType.I64:
|
|
|
2748 |
self.orderId = iprot.readI64();
|
|
|
2749 |
else:
|
|
|
2750 |
iprot.skip(ftype)
|
|
|
2751 |
elif fid == 3:
|
|
|
2752 |
if ftype == TType.I64:
|
|
|
2753 |
self.status = iprot.readI64();
|
|
|
2754 |
else:
|
|
|
2755 |
iprot.skip(ftype)
|
|
|
2756 |
elif fid == 4:
|
|
|
2757 |
if ftype == TType.I64:
|
|
|
2758 |
self.timestamp = iprot.readI64();
|
|
|
2759 |
else:
|
|
|
2760 |
iprot.skip(ftype)
|
|
|
2761 |
elif fid == 5:
|
|
|
2762 |
if ftype == TType.I64:
|
|
|
2763 |
self.description = iprot.readI64();
|
|
|
2764 |
else:
|
|
|
2765 |
iprot.skip(ftype)
|
|
|
2766 |
else:
|
|
|
2767 |
iprot.skip(ftype)
|
|
|
2768 |
iprot.readFieldEnd()
|
|
|
2769 |
iprot.readStructEnd()
|
|
|
2770 |
|
|
|
2771 |
def write(self, oprot):
|
|
|
2772 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2773 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2774 |
return
|
|
|
2775 |
oprot.writeStructBegin('OrderStatusAuditTrail')
|
|
|
2776 |
if self.id is not None:
|
|
|
2777 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
2778 |
oprot.writeI64(self.id)
|
|
|
2779 |
oprot.writeFieldEnd()
|
|
|
2780 |
if self.orderId is not None:
|
|
|
2781 |
oprot.writeFieldBegin('orderId', TType.I64, 2)
|
|
|
2782 |
oprot.writeI64(self.orderId)
|
|
|
2783 |
oprot.writeFieldEnd()
|
|
|
2784 |
if self.status is not None:
|
|
|
2785 |
oprot.writeFieldBegin('status', TType.I64, 3)
|
|
|
2786 |
oprot.writeI64(self.status)
|
|
|
2787 |
oprot.writeFieldEnd()
|
|
|
2788 |
if self.timestamp is not None:
|
|
|
2789 |
oprot.writeFieldBegin('timestamp', TType.I64, 4)
|
|
|
2790 |
oprot.writeI64(self.timestamp)
|
|
|
2791 |
oprot.writeFieldEnd()
|
|
|
2792 |
if self.description is not None:
|
|
|
2793 |
oprot.writeFieldBegin('description', TType.I64, 5)
|
|
|
2794 |
oprot.writeI64(self.description)
|
|
|
2795 |
oprot.writeFieldEnd()
|
|
|
2796 |
oprot.writeFieldStop()
|
|
|
2797 |
oprot.writeStructEnd()
|
|
|
2798 |
|
|
|
2799 |
def validate(self):
|
|
|
2800 |
return
|
|
|
2801 |
|
|
|
2802 |
|
|
|
2803 |
def __repr__(self):
|
|
|
2804 |
L = ['%s=%r' % (key, value)
|
|
|
2805 |
for key, value in self.__dict__.iteritems()]
|
|
|
2806 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2807 |
|
|
|
2808 |
def __eq__(self, other):
|
|
|
2809 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2810 |
|
|
|
2811 |
def __ne__(self, other):
|
|
|
2812 |
return not (self == other)
|
|
|
2813 |
|
| 7442 |
vikram.rag |
2814 |
class AmazonOrdersToAcknowledge:
|
|
|
2815 |
"""
|
|
|
2816 |
Attributes:
|
|
|
2817 |
- amazonOrderId
|
|
|
2818 |
- amazonOrderItemId
|
|
|
2819 |
- status
|
|
|
2820 |
- transaction_id
|
|
|
2821 |
- count
|
|
|
2822 |
"""
|
|
|
2823 |
|
|
|
2824 |
thrift_spec = (
|
|
|
2825 |
None, # 0
|
|
|
2826 |
(1, TType.STRING, 'amazonOrderId', None, None, ), # 1
|
|
|
2827 |
(2, TType.STRING, 'amazonOrderItemId', None, None, ), # 2
|
|
|
2828 |
(3, TType.STRING, 'status', None, None, ), # 3
|
|
|
2829 |
(4, TType.I64, 'transaction_id', None, None, ), # 4
|
|
|
2830 |
(5, TType.I32, 'count', None, None, ), # 5
|
|
|
2831 |
)
|
|
|
2832 |
|
|
|
2833 |
def __init__(self, amazonOrderId=None, amazonOrderItemId=None, status=None, transaction_id=None, count=None,):
|
|
|
2834 |
self.amazonOrderId = amazonOrderId
|
|
|
2835 |
self.amazonOrderItemId = amazonOrderItemId
|
|
|
2836 |
self.status = status
|
|
|
2837 |
self.transaction_id = transaction_id
|
|
|
2838 |
self.count = count
|
|
|
2839 |
|
|
|
2840 |
def read(self, iprot):
|
|
|
2841 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2842 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2843 |
return
|
|
|
2844 |
iprot.readStructBegin()
|
|
|
2845 |
while True:
|
|
|
2846 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2847 |
if ftype == TType.STOP:
|
|
|
2848 |
break
|
|
|
2849 |
if fid == 1:
|
|
|
2850 |
if ftype == TType.STRING:
|
|
|
2851 |
self.amazonOrderId = iprot.readString();
|
|
|
2852 |
else:
|
|
|
2853 |
iprot.skip(ftype)
|
|
|
2854 |
elif fid == 2:
|
|
|
2855 |
if ftype == TType.STRING:
|
|
|
2856 |
self.amazonOrderItemId = iprot.readString();
|
|
|
2857 |
else:
|
|
|
2858 |
iprot.skip(ftype)
|
|
|
2859 |
elif fid == 3:
|
|
|
2860 |
if ftype == TType.STRING:
|
|
|
2861 |
self.status = iprot.readString();
|
|
|
2862 |
else:
|
|
|
2863 |
iprot.skip(ftype)
|
|
|
2864 |
elif fid == 4:
|
|
|
2865 |
if ftype == TType.I64:
|
|
|
2866 |
self.transaction_id = iprot.readI64();
|
|
|
2867 |
else:
|
|
|
2868 |
iprot.skip(ftype)
|
|
|
2869 |
elif fid == 5:
|
|
|
2870 |
if ftype == TType.I32:
|
|
|
2871 |
self.count = iprot.readI32();
|
|
|
2872 |
else:
|
|
|
2873 |
iprot.skip(ftype)
|
|
|
2874 |
else:
|
|
|
2875 |
iprot.skip(ftype)
|
|
|
2876 |
iprot.readFieldEnd()
|
|
|
2877 |
iprot.readStructEnd()
|
|
|
2878 |
|
|
|
2879 |
def write(self, oprot):
|
|
|
2880 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2881 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
2882 |
return
|
|
|
2883 |
oprot.writeStructBegin('AmazonOrdersToAcknowledge')
|
|
|
2884 |
if self.amazonOrderId is not None:
|
|
|
2885 |
oprot.writeFieldBegin('amazonOrderId', TType.STRING, 1)
|
|
|
2886 |
oprot.writeString(self.amazonOrderId)
|
|
|
2887 |
oprot.writeFieldEnd()
|
|
|
2888 |
if self.amazonOrderItemId is not None:
|
|
|
2889 |
oprot.writeFieldBegin('amazonOrderItemId', TType.STRING, 2)
|
|
|
2890 |
oprot.writeString(self.amazonOrderItemId)
|
|
|
2891 |
oprot.writeFieldEnd()
|
|
|
2892 |
if self.status is not None:
|
|
|
2893 |
oprot.writeFieldBegin('status', TType.STRING, 3)
|
|
|
2894 |
oprot.writeString(self.status)
|
|
|
2895 |
oprot.writeFieldEnd()
|
|
|
2896 |
if self.transaction_id is not None:
|
|
|
2897 |
oprot.writeFieldBegin('transaction_id', TType.I64, 4)
|
|
|
2898 |
oprot.writeI64(self.transaction_id)
|
|
|
2899 |
oprot.writeFieldEnd()
|
|
|
2900 |
if self.count is not None:
|
|
|
2901 |
oprot.writeFieldBegin('count', TType.I32, 5)
|
|
|
2902 |
oprot.writeI32(self.count)
|
|
|
2903 |
oprot.writeFieldEnd()
|
|
|
2904 |
oprot.writeFieldStop()
|
|
|
2905 |
oprot.writeStructEnd()
|
|
|
2906 |
|
|
|
2907 |
def validate(self):
|
|
|
2908 |
return
|
|
|
2909 |
|
|
|
2910 |
|
|
|
2911 |
def __repr__(self):
|
|
|
2912 |
L = ['%s=%r' % (key, value)
|
|
|
2913 |
for key, value in self.__dict__.iteritems()]
|
|
|
2914 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
2915 |
|
|
|
2916 |
def __eq__(self, other):
|
|
|
2917 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
2918 |
|
|
|
2919 |
def __ne__(self, other):
|
|
|
2920 |
return not (self == other)
|
|
|
2921 |
|
| 19973 |
amit.gupta |
2922 |
class SellerInfo:
|
|
|
2923 |
"""
|
|
|
2924 |
Attributes:
|
|
|
2925 |
- sellerId
|
|
|
2926 |
- organisationName
|
|
|
2927 |
- registeredAddress
|
|
|
2928 |
- regId
|
|
|
2929 |
- cinNumber
|
|
|
2930 |
- tin
|
| 20025 |
amit.gupta |
2931 |
- stateId
|
| 21844 |
amit.gupta |
2932 |
- gstin
|
| 19973 |
amit.gupta |
2933 |
"""
|
|
|
2934 |
|
|
|
2935 |
thrift_spec = (
|
|
|
2936 |
None, # 0
|
|
|
2937 |
(1, TType.I64, 'sellerId', None, None, ), # 1
|
|
|
2938 |
(2, TType.STRING, 'organisationName', None, None, ), # 2
|
|
|
2939 |
(3, TType.STRING, 'registeredAddress', None, None, ), # 3
|
|
|
2940 |
(4, TType.STRING, 'regId', None, None, ), # 4
|
|
|
2941 |
(5, TType.STRING, 'cinNumber', None, None, ), # 5
|
|
|
2942 |
(6, TType.STRING, 'tin', None, None, ), # 6
|
| 20025 |
amit.gupta |
2943 |
(7, TType.I64, 'stateId', None, None, ), # 7
|
| 21844 |
amit.gupta |
2944 |
(8, TType.STRING, 'gstin', None, None, ), # 8
|
| 19973 |
amit.gupta |
2945 |
)
|
|
|
2946 |
|
| 21844 |
amit.gupta |
2947 |
def __init__(self, sellerId=None, organisationName=None, registeredAddress=None, regId=None, cinNumber=None, tin=None, stateId=None, gstin=None,):
|
| 19973 |
amit.gupta |
2948 |
self.sellerId = sellerId
|
|
|
2949 |
self.organisationName = organisationName
|
|
|
2950 |
self.registeredAddress = registeredAddress
|
|
|
2951 |
self.regId = regId
|
|
|
2952 |
self.cinNumber = cinNumber
|
|
|
2953 |
self.tin = tin
|
| 20025 |
amit.gupta |
2954 |
self.stateId = stateId
|
| 21844 |
amit.gupta |
2955 |
self.gstin = gstin
|
| 19973 |
amit.gupta |
2956 |
|
|
|
2957 |
def read(self, iprot):
|
|
|
2958 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
2959 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
2960 |
return
|
|
|
2961 |
iprot.readStructBegin()
|
|
|
2962 |
while True:
|
|
|
2963 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
2964 |
if ftype == TType.STOP:
|
|
|
2965 |
break
|
|
|
2966 |
if fid == 1:
|
|
|
2967 |
if ftype == TType.I64:
|
|
|
2968 |
self.sellerId = iprot.readI64();
|
|
|
2969 |
else:
|
|
|
2970 |
iprot.skip(ftype)
|
|
|
2971 |
elif fid == 2:
|
|
|
2972 |
if ftype == TType.STRING:
|
|
|
2973 |
self.organisationName = iprot.readString();
|
|
|
2974 |
else:
|
|
|
2975 |
iprot.skip(ftype)
|
|
|
2976 |
elif fid == 3:
|
|
|
2977 |
if ftype == TType.STRING:
|
|
|
2978 |
self.registeredAddress = iprot.readString();
|
|
|
2979 |
else:
|
|
|
2980 |
iprot.skip(ftype)
|
|
|
2981 |
elif fid == 4:
|
|
|
2982 |
if ftype == TType.STRING:
|
|
|
2983 |
self.regId = iprot.readString();
|
|
|
2984 |
else:
|
|
|
2985 |
iprot.skip(ftype)
|
|
|
2986 |
elif fid == 5:
|
|
|
2987 |
if ftype == TType.STRING:
|
|
|
2988 |
self.cinNumber = iprot.readString();
|
|
|
2989 |
else:
|
|
|
2990 |
iprot.skip(ftype)
|
|
|
2991 |
elif fid == 6:
|
|
|
2992 |
if ftype == TType.STRING:
|
|
|
2993 |
self.tin = iprot.readString();
|
|
|
2994 |
else:
|
|
|
2995 |
iprot.skip(ftype)
|
| 20025 |
amit.gupta |
2996 |
elif fid == 7:
|
|
|
2997 |
if ftype == TType.I64:
|
|
|
2998 |
self.stateId = iprot.readI64();
|
|
|
2999 |
else:
|
|
|
3000 |
iprot.skip(ftype)
|
| 21844 |
amit.gupta |
3001 |
elif fid == 8:
|
|
|
3002 |
if ftype == TType.STRING:
|
|
|
3003 |
self.gstin = iprot.readString();
|
|
|
3004 |
else:
|
|
|
3005 |
iprot.skip(ftype)
|
| 19973 |
amit.gupta |
3006 |
else:
|
|
|
3007 |
iprot.skip(ftype)
|
|
|
3008 |
iprot.readFieldEnd()
|
|
|
3009 |
iprot.readStructEnd()
|
|
|
3010 |
|
|
|
3011 |
def write(self, oprot):
|
|
|
3012 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3013 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3014 |
return
|
|
|
3015 |
oprot.writeStructBegin('SellerInfo')
|
|
|
3016 |
if self.sellerId is not None:
|
|
|
3017 |
oprot.writeFieldBegin('sellerId', TType.I64, 1)
|
|
|
3018 |
oprot.writeI64(self.sellerId)
|
|
|
3019 |
oprot.writeFieldEnd()
|
|
|
3020 |
if self.organisationName is not None:
|
|
|
3021 |
oprot.writeFieldBegin('organisationName', TType.STRING, 2)
|
|
|
3022 |
oprot.writeString(self.organisationName)
|
|
|
3023 |
oprot.writeFieldEnd()
|
|
|
3024 |
if self.registeredAddress is not None:
|
|
|
3025 |
oprot.writeFieldBegin('registeredAddress', TType.STRING, 3)
|
|
|
3026 |
oprot.writeString(self.registeredAddress)
|
|
|
3027 |
oprot.writeFieldEnd()
|
|
|
3028 |
if self.regId is not None:
|
|
|
3029 |
oprot.writeFieldBegin('regId', TType.STRING, 4)
|
|
|
3030 |
oprot.writeString(self.regId)
|
|
|
3031 |
oprot.writeFieldEnd()
|
|
|
3032 |
if self.cinNumber is not None:
|
|
|
3033 |
oprot.writeFieldBegin('cinNumber', TType.STRING, 5)
|
|
|
3034 |
oprot.writeString(self.cinNumber)
|
|
|
3035 |
oprot.writeFieldEnd()
|
|
|
3036 |
if self.tin is not None:
|
|
|
3037 |
oprot.writeFieldBegin('tin', TType.STRING, 6)
|
|
|
3038 |
oprot.writeString(self.tin)
|
|
|
3039 |
oprot.writeFieldEnd()
|
| 20025 |
amit.gupta |
3040 |
if self.stateId is not None:
|
|
|
3041 |
oprot.writeFieldBegin('stateId', TType.I64, 7)
|
|
|
3042 |
oprot.writeI64(self.stateId)
|
|
|
3043 |
oprot.writeFieldEnd()
|
| 21844 |
amit.gupta |
3044 |
if self.gstin is not None:
|
|
|
3045 |
oprot.writeFieldBegin('gstin', TType.STRING, 8)
|
|
|
3046 |
oprot.writeString(self.gstin)
|
|
|
3047 |
oprot.writeFieldEnd()
|
| 19973 |
amit.gupta |
3048 |
oprot.writeFieldStop()
|
|
|
3049 |
oprot.writeStructEnd()
|
|
|
3050 |
|
|
|
3051 |
def validate(self):
|
|
|
3052 |
return
|
|
|
3053 |
|
|
|
3054 |
|
|
|
3055 |
def __repr__(self):
|
|
|
3056 |
L = ['%s=%r' % (key, value)
|
|
|
3057 |
for key, value in self.__dict__.iteritems()]
|
|
|
3058 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3059 |
|
|
|
3060 |
def __eq__(self, other):
|
|
|
3061 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3062 |
|
|
|
3063 |
def __ne__(self, other):
|
|
|
3064 |
return not (self == other)
|
|
|
3065 |
|
| 20065 |
amit.gupta |
3066 |
class WarehouseAddress:
|
|
|
3067 |
"""
|
|
|
3068 |
Attributes:
|
|
|
3069 |
- id
|
|
|
3070 |
- address
|
|
|
3071 |
- pin
|
|
|
3072 |
- state_id
|
|
|
3073 |
- created
|
| 20818 |
kshitij.so |
3074 |
- contact_number
|
| 21844 |
amit.gupta |
3075 |
- contact_person
|
| 20065 |
amit.gupta |
3076 |
"""
|
|
|
3077 |
|
|
|
3078 |
thrift_spec = (
|
|
|
3079 |
None, # 0
|
|
|
3080 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
3081 |
(2, TType.STRING, 'address', None, None, ), # 2
|
|
|
3082 |
(3, TType.STRING, 'pin', None, None, ), # 3
|
|
|
3083 |
(4, TType.I64, 'state_id', None, None, ), # 4
|
|
|
3084 |
(5, TType.I64, 'created', None, None, ), # 5
|
| 20818 |
kshitij.so |
3085 |
(6, TType.STRING, 'contact_number', None, None, ), # 6
|
| 21844 |
amit.gupta |
3086 |
(7, TType.STRING, 'contact_person', None, None, ), # 7
|
| 20065 |
amit.gupta |
3087 |
)
|
|
|
3088 |
|
| 21844 |
amit.gupta |
3089 |
def __init__(self, id=None, address=None, pin=None, state_id=None, created=None, contact_number=None, contact_person=None,):
|
| 20065 |
amit.gupta |
3090 |
self.id = id
|
|
|
3091 |
self.address = address
|
|
|
3092 |
self.pin = pin
|
|
|
3093 |
self.state_id = state_id
|
|
|
3094 |
self.created = created
|
| 20818 |
kshitij.so |
3095 |
self.contact_number = contact_number
|
| 21844 |
amit.gupta |
3096 |
self.contact_person = contact_person
|
| 20065 |
amit.gupta |
3097 |
|
|
|
3098 |
def read(self, iprot):
|
|
|
3099 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3100 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3101 |
return
|
|
|
3102 |
iprot.readStructBegin()
|
|
|
3103 |
while True:
|
|
|
3104 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3105 |
if ftype == TType.STOP:
|
|
|
3106 |
break
|
|
|
3107 |
if fid == 1:
|
|
|
3108 |
if ftype == TType.I64:
|
|
|
3109 |
self.id = iprot.readI64();
|
|
|
3110 |
else:
|
|
|
3111 |
iprot.skip(ftype)
|
|
|
3112 |
elif fid == 2:
|
|
|
3113 |
if ftype == TType.STRING:
|
|
|
3114 |
self.address = iprot.readString();
|
|
|
3115 |
else:
|
|
|
3116 |
iprot.skip(ftype)
|
|
|
3117 |
elif fid == 3:
|
|
|
3118 |
if ftype == TType.STRING:
|
|
|
3119 |
self.pin = iprot.readString();
|
|
|
3120 |
else:
|
|
|
3121 |
iprot.skip(ftype)
|
|
|
3122 |
elif fid == 4:
|
|
|
3123 |
if ftype == TType.I64:
|
|
|
3124 |
self.state_id = iprot.readI64();
|
|
|
3125 |
else:
|
|
|
3126 |
iprot.skip(ftype)
|
|
|
3127 |
elif fid == 5:
|
|
|
3128 |
if ftype == TType.I64:
|
|
|
3129 |
self.created = iprot.readI64();
|
|
|
3130 |
else:
|
|
|
3131 |
iprot.skip(ftype)
|
| 20818 |
kshitij.so |
3132 |
elif fid == 6:
|
|
|
3133 |
if ftype == TType.STRING:
|
|
|
3134 |
self.contact_number = iprot.readString();
|
|
|
3135 |
else:
|
|
|
3136 |
iprot.skip(ftype)
|
| 21844 |
amit.gupta |
3137 |
elif fid == 7:
|
|
|
3138 |
if ftype == TType.STRING:
|
|
|
3139 |
self.contact_person = iprot.readString();
|
|
|
3140 |
else:
|
|
|
3141 |
iprot.skip(ftype)
|
| 20065 |
amit.gupta |
3142 |
else:
|
|
|
3143 |
iprot.skip(ftype)
|
|
|
3144 |
iprot.readFieldEnd()
|
|
|
3145 |
iprot.readStructEnd()
|
|
|
3146 |
|
|
|
3147 |
def write(self, oprot):
|
|
|
3148 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3149 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3150 |
return
|
|
|
3151 |
oprot.writeStructBegin('WarehouseAddress')
|
|
|
3152 |
if self.id is not None:
|
|
|
3153 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
3154 |
oprot.writeI64(self.id)
|
|
|
3155 |
oprot.writeFieldEnd()
|
|
|
3156 |
if self.address is not None:
|
|
|
3157 |
oprot.writeFieldBegin('address', TType.STRING, 2)
|
|
|
3158 |
oprot.writeString(self.address)
|
|
|
3159 |
oprot.writeFieldEnd()
|
|
|
3160 |
if self.pin is not None:
|
|
|
3161 |
oprot.writeFieldBegin('pin', TType.STRING, 3)
|
|
|
3162 |
oprot.writeString(self.pin)
|
|
|
3163 |
oprot.writeFieldEnd()
|
|
|
3164 |
if self.state_id is not None:
|
|
|
3165 |
oprot.writeFieldBegin('state_id', TType.I64, 4)
|
|
|
3166 |
oprot.writeI64(self.state_id)
|
|
|
3167 |
oprot.writeFieldEnd()
|
|
|
3168 |
if self.created is not None:
|
|
|
3169 |
oprot.writeFieldBegin('created', TType.I64, 5)
|
|
|
3170 |
oprot.writeI64(self.created)
|
|
|
3171 |
oprot.writeFieldEnd()
|
| 20818 |
kshitij.so |
3172 |
if self.contact_number is not None:
|
|
|
3173 |
oprot.writeFieldBegin('contact_number', TType.STRING, 6)
|
|
|
3174 |
oprot.writeString(self.contact_number)
|
|
|
3175 |
oprot.writeFieldEnd()
|
| 21844 |
amit.gupta |
3176 |
if self.contact_person is not None:
|
|
|
3177 |
oprot.writeFieldBegin('contact_person', TType.STRING, 7)
|
|
|
3178 |
oprot.writeString(self.contact_person)
|
|
|
3179 |
oprot.writeFieldEnd()
|
| 20065 |
amit.gupta |
3180 |
oprot.writeFieldStop()
|
|
|
3181 |
oprot.writeStructEnd()
|
|
|
3182 |
|
|
|
3183 |
def validate(self):
|
|
|
3184 |
return
|
|
|
3185 |
|
|
|
3186 |
|
|
|
3187 |
def __repr__(self):
|
|
|
3188 |
L = ['%s=%r' % (key, value)
|
|
|
3189 |
for key, value in self.__dict__.iteritems()]
|
|
|
3190 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3191 |
|
|
|
3192 |
def __eq__(self, other):
|
|
|
3193 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3194 |
|
|
|
3195 |
def __ne__(self, other):
|
|
|
3196 |
return not (self == other)
|
|
|
3197 |
|
| 20025 |
amit.gupta |
3198 |
class BuyerInfo:
|
|
|
3199 |
"""
|
|
|
3200 |
Attributes:
|
|
|
3201 |
- buyerId
|
|
|
3202 |
- organisationName
|
|
|
3203 |
- registeredAddress
|
|
|
3204 |
- regId
|
|
|
3205 |
- cinNumber
|
|
|
3206 |
- tin
|
|
|
3207 |
- addressId
|
| 20065 |
amit.gupta |
3208 |
- buyerAddress
|
| 20025 |
amit.gupta |
3209 |
- stateId
|
| 21844 |
amit.gupta |
3210 |
- gstin
|
| 20025 |
amit.gupta |
3211 |
"""
|
|
|
3212 |
|
|
|
3213 |
thrift_spec = (
|
|
|
3214 |
None, # 0
|
|
|
3215 |
(1, TType.I64, 'buyerId', None, None, ), # 1
|
|
|
3216 |
(2, TType.STRING, 'organisationName', None, None, ), # 2
|
|
|
3217 |
(3, TType.STRING, 'registeredAddress', None, None, ), # 3
|
|
|
3218 |
(4, TType.STRING, 'regId', None, None, ), # 4
|
|
|
3219 |
(5, TType.STRING, 'cinNumber', None, None, ), # 5
|
|
|
3220 |
(6, TType.STRING, 'tin', None, None, ), # 6
|
|
|
3221 |
(7, TType.I64, 'addressId', None, None, ), # 7
|
| 20065 |
amit.gupta |
3222 |
(8, TType.STRUCT, 'buyerAddress', (WarehouseAddress, WarehouseAddress.thrift_spec), None, ), # 8
|
| 20025 |
amit.gupta |
3223 |
(9, TType.I64, 'stateId', None, None, ), # 9
|
| 21844 |
amit.gupta |
3224 |
(10, TType.STRING, 'gstin', None, None, ), # 10
|
| 20025 |
amit.gupta |
3225 |
)
|
|
|
3226 |
|
| 21844 |
amit.gupta |
3227 |
def __init__(self, buyerId=None, organisationName=None, registeredAddress=None, regId=None, cinNumber=None, tin=None, addressId=None, buyerAddress=None, stateId=None, gstin=None,):
|
| 20025 |
amit.gupta |
3228 |
self.buyerId = buyerId
|
|
|
3229 |
self.organisationName = organisationName
|
|
|
3230 |
self.registeredAddress = registeredAddress
|
|
|
3231 |
self.regId = regId
|
|
|
3232 |
self.cinNumber = cinNumber
|
|
|
3233 |
self.tin = tin
|
|
|
3234 |
self.addressId = addressId
|
| 20065 |
amit.gupta |
3235 |
self.buyerAddress = buyerAddress
|
| 20025 |
amit.gupta |
3236 |
self.stateId = stateId
|
| 21844 |
amit.gupta |
3237 |
self.gstin = gstin
|
| 20025 |
amit.gupta |
3238 |
|
|
|
3239 |
def read(self, iprot):
|
|
|
3240 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3241 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3242 |
return
|
|
|
3243 |
iprot.readStructBegin()
|
|
|
3244 |
while True:
|
|
|
3245 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3246 |
if ftype == TType.STOP:
|
|
|
3247 |
break
|
|
|
3248 |
if fid == 1:
|
|
|
3249 |
if ftype == TType.I64:
|
|
|
3250 |
self.buyerId = iprot.readI64();
|
|
|
3251 |
else:
|
|
|
3252 |
iprot.skip(ftype)
|
|
|
3253 |
elif fid == 2:
|
|
|
3254 |
if ftype == TType.STRING:
|
|
|
3255 |
self.organisationName = iprot.readString();
|
|
|
3256 |
else:
|
|
|
3257 |
iprot.skip(ftype)
|
|
|
3258 |
elif fid == 3:
|
|
|
3259 |
if ftype == TType.STRING:
|
|
|
3260 |
self.registeredAddress = iprot.readString();
|
|
|
3261 |
else:
|
|
|
3262 |
iprot.skip(ftype)
|
|
|
3263 |
elif fid == 4:
|
|
|
3264 |
if ftype == TType.STRING:
|
|
|
3265 |
self.regId = iprot.readString();
|
|
|
3266 |
else:
|
|
|
3267 |
iprot.skip(ftype)
|
|
|
3268 |
elif fid == 5:
|
|
|
3269 |
if ftype == TType.STRING:
|
|
|
3270 |
self.cinNumber = iprot.readString();
|
|
|
3271 |
else:
|
|
|
3272 |
iprot.skip(ftype)
|
|
|
3273 |
elif fid == 6:
|
|
|
3274 |
if ftype == TType.STRING:
|
|
|
3275 |
self.tin = iprot.readString();
|
|
|
3276 |
else:
|
|
|
3277 |
iprot.skip(ftype)
|
|
|
3278 |
elif fid == 7:
|
|
|
3279 |
if ftype == TType.I64:
|
|
|
3280 |
self.addressId = iprot.readI64();
|
|
|
3281 |
else:
|
|
|
3282 |
iprot.skip(ftype)
|
|
|
3283 |
elif fid == 8:
|
| 20065 |
amit.gupta |
3284 |
if ftype == TType.STRUCT:
|
|
|
3285 |
self.buyerAddress = WarehouseAddress()
|
|
|
3286 |
self.buyerAddress.read(iprot)
|
| 20025 |
amit.gupta |
3287 |
else:
|
|
|
3288 |
iprot.skip(ftype)
|
|
|
3289 |
elif fid == 9:
|
|
|
3290 |
if ftype == TType.I64:
|
|
|
3291 |
self.stateId = iprot.readI64();
|
|
|
3292 |
else:
|
|
|
3293 |
iprot.skip(ftype)
|
| 21844 |
amit.gupta |
3294 |
elif fid == 10:
|
|
|
3295 |
if ftype == TType.STRING:
|
|
|
3296 |
self.gstin = iprot.readString();
|
|
|
3297 |
else:
|
|
|
3298 |
iprot.skip(ftype)
|
| 20025 |
amit.gupta |
3299 |
else:
|
|
|
3300 |
iprot.skip(ftype)
|
|
|
3301 |
iprot.readFieldEnd()
|
|
|
3302 |
iprot.readStructEnd()
|
|
|
3303 |
|
|
|
3304 |
def write(self, oprot):
|
|
|
3305 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3306 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3307 |
return
|
|
|
3308 |
oprot.writeStructBegin('BuyerInfo')
|
|
|
3309 |
if self.buyerId is not None:
|
|
|
3310 |
oprot.writeFieldBegin('buyerId', TType.I64, 1)
|
|
|
3311 |
oprot.writeI64(self.buyerId)
|
|
|
3312 |
oprot.writeFieldEnd()
|
|
|
3313 |
if self.organisationName is not None:
|
|
|
3314 |
oprot.writeFieldBegin('organisationName', TType.STRING, 2)
|
|
|
3315 |
oprot.writeString(self.organisationName)
|
|
|
3316 |
oprot.writeFieldEnd()
|
|
|
3317 |
if self.registeredAddress is not None:
|
|
|
3318 |
oprot.writeFieldBegin('registeredAddress', TType.STRING, 3)
|
|
|
3319 |
oprot.writeString(self.registeredAddress)
|
|
|
3320 |
oprot.writeFieldEnd()
|
|
|
3321 |
if self.regId is not None:
|
|
|
3322 |
oprot.writeFieldBegin('regId', TType.STRING, 4)
|
|
|
3323 |
oprot.writeString(self.regId)
|
|
|
3324 |
oprot.writeFieldEnd()
|
|
|
3325 |
if self.cinNumber is not None:
|
|
|
3326 |
oprot.writeFieldBegin('cinNumber', TType.STRING, 5)
|
|
|
3327 |
oprot.writeString(self.cinNumber)
|
|
|
3328 |
oprot.writeFieldEnd()
|
|
|
3329 |
if self.tin is not None:
|
|
|
3330 |
oprot.writeFieldBegin('tin', TType.STRING, 6)
|
|
|
3331 |
oprot.writeString(self.tin)
|
|
|
3332 |
oprot.writeFieldEnd()
|
|
|
3333 |
if self.addressId is not None:
|
|
|
3334 |
oprot.writeFieldBegin('addressId', TType.I64, 7)
|
|
|
3335 |
oprot.writeI64(self.addressId)
|
|
|
3336 |
oprot.writeFieldEnd()
|
| 20065 |
amit.gupta |
3337 |
if self.buyerAddress is not None:
|
|
|
3338 |
oprot.writeFieldBegin('buyerAddress', TType.STRUCT, 8)
|
|
|
3339 |
self.buyerAddress.write(oprot)
|
| 20025 |
amit.gupta |
3340 |
oprot.writeFieldEnd()
|
|
|
3341 |
if self.stateId is not None:
|
|
|
3342 |
oprot.writeFieldBegin('stateId', TType.I64, 9)
|
|
|
3343 |
oprot.writeI64(self.stateId)
|
|
|
3344 |
oprot.writeFieldEnd()
|
| 21844 |
amit.gupta |
3345 |
if self.gstin is not None:
|
|
|
3346 |
oprot.writeFieldBegin('gstin', TType.STRING, 10)
|
|
|
3347 |
oprot.writeString(self.gstin)
|
|
|
3348 |
oprot.writeFieldEnd()
|
| 20025 |
amit.gupta |
3349 |
oprot.writeFieldStop()
|
|
|
3350 |
oprot.writeStructEnd()
|
|
|
3351 |
|
|
|
3352 |
def validate(self):
|
|
|
3353 |
return
|
|
|
3354 |
|
|
|
3355 |
|
|
|
3356 |
def __repr__(self):
|
|
|
3357 |
L = ['%s=%r' % (key, value)
|
|
|
3358 |
for key, value in self.__dict__.iteritems()]
|
|
|
3359 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3360 |
|
|
|
3361 |
def __eq__(self, other):
|
|
|
3362 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3363 |
|
|
|
3364 |
def __ne__(self, other):
|
|
|
3365 |
return not (self == other)
|
|
|
3366 |
|
| 94 |
ashish |
3367 |
class Transaction:
|
|
|
3368 |
"""
|
|
|
3369 |
Attributes:
|
|
|
3370 |
- id
|
| 483 |
rajveer |
3371 |
- orders
|
| 94 |
ashish |
3372 |
- createdOn
|
|
|
3373 |
- transactionStatus
|
|
|
3374 |
- statusDescription
|
| 483 |
rajveer |
3375 |
- shoppingCartid
|
| 94 |
ashish |
3376 |
- customer_id
|
| 2219 |
varun.gupt |
3377 |
- coupon_code
|
| 2815 |
vikas |
3378 |
- sessionSource
|
|
|
3379 |
- sessionStartTime
|
| 3858 |
vikas |
3380 |
- firstSource
|
|
|
3381 |
- firstSourceTime
|
| 18590 |
manish.sha |
3382 |
- payment_option
|
| 17470 |
manish.sha |
3383 |
- totalShippingCost
|
|
|
3384 |
- totalCodCharges
|
| 94 |
ashish |
3385 |
"""
|
|
|
3386 |
|
|
|
3387 |
thrift_spec = (
|
|
|
3388 |
None, # 0
|
|
|
3389 |
(1, TType.I64, 'id', None, None, ), # 1
|
| 483 |
rajveer |
3390 |
(2, TType.LIST, 'orders', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 2
|
| 685 |
chandransh |
3391 |
(3, TType.I64, 'createdOn', None, None, ), # 3
|
|
|
3392 |
(4, TType.I32, 'transactionStatus', None, None, ), # 4
|
|
|
3393 |
(5, TType.STRING, 'statusDescription', None, None, ), # 5
|
|
|
3394 |
(6, TType.I64, 'shoppingCartid', None, None, ), # 6
|
|
|
3395 |
(7, TType.I64, 'customer_id', None, None, ), # 7
|
| 2219 |
varun.gupt |
3396 |
(8, TType.STRING, 'coupon_code', None, None, ), # 8
|
| 2815 |
vikas |
3397 |
(9, TType.STRING, 'sessionSource', None, None, ), # 9
|
|
|
3398 |
(10, TType.I64, 'sessionStartTime', None, None, ), # 10
|
| 3858 |
vikas |
3399 |
(11, TType.STRING, 'firstSource', None, None, ), # 11
|
|
|
3400 |
(12, TType.I64, 'firstSourceTime', None, None, ), # 12
|
| 18590 |
manish.sha |
3401 |
(13, TType.I64, 'payment_option', None, None, ), # 13
|
| 17470 |
manish.sha |
3402 |
(14, TType.DOUBLE, 'totalShippingCost', None, None, ), # 14
|
|
|
3403 |
(15, TType.DOUBLE, 'totalCodCharges', None, None, ), # 15
|
| 94 |
ashish |
3404 |
)
|
|
|
3405 |
|
| 18590 |
manish.sha |
3406 |
def __init__(self, id=None, orders=None, createdOn=None, transactionStatus=None, statusDescription=None, shoppingCartid=None, customer_id=None, coupon_code=None, sessionSource=None, sessionStartTime=None, firstSource=None, firstSourceTime=None, payment_option=None, totalShippingCost=None, totalCodCharges=None,):
|
| 94 |
ashish |
3407 |
self.id = id
|
| 483 |
rajveer |
3408 |
self.orders = orders
|
| 94 |
ashish |
3409 |
self.createdOn = createdOn
|
|
|
3410 |
self.transactionStatus = transactionStatus
|
|
|
3411 |
self.statusDescription = statusDescription
|
| 483 |
rajveer |
3412 |
self.shoppingCartid = shoppingCartid
|
| 94 |
ashish |
3413 |
self.customer_id = customer_id
|
| 2219 |
varun.gupt |
3414 |
self.coupon_code = coupon_code
|
| 2815 |
vikas |
3415 |
self.sessionSource = sessionSource
|
|
|
3416 |
self.sessionStartTime = sessionStartTime
|
| 3858 |
vikas |
3417 |
self.firstSource = firstSource
|
|
|
3418 |
self.firstSourceTime = firstSourceTime
|
| 18590 |
manish.sha |
3419 |
self.payment_option = payment_option
|
| 17470 |
manish.sha |
3420 |
self.totalShippingCost = totalShippingCost
|
|
|
3421 |
self.totalCodCharges = totalCodCharges
|
| 94 |
ashish |
3422 |
|
|
|
3423 |
def read(self, iprot):
|
|
|
3424 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3425 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3426 |
return
|
|
|
3427 |
iprot.readStructBegin()
|
|
|
3428 |
while True:
|
|
|
3429 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3430 |
if ftype == TType.STOP:
|
|
|
3431 |
break
|
|
|
3432 |
if fid == 1:
|
|
|
3433 |
if ftype == TType.I64:
|
|
|
3434 |
self.id = iprot.readI64();
|
|
|
3435 |
else:
|
|
|
3436 |
iprot.skip(ftype)
|
|
|
3437 |
elif fid == 2:
|
| 483 |
rajveer |
3438 |
if ftype == TType.LIST:
|
|
|
3439 |
self.orders = []
|
| 685 |
chandransh |
3440 |
(_etype10, _size7) = iprot.readListBegin()
|
|
|
3441 |
for _i11 in xrange(_size7):
|
|
|
3442 |
_elem12 = Order()
|
|
|
3443 |
_elem12.read(iprot)
|
|
|
3444 |
self.orders.append(_elem12)
|
| 483 |
rajveer |
3445 |
iprot.readListEnd()
|
| 94 |
ashish |
3446 |
else:
|
|
|
3447 |
iprot.skip(ftype)
|
|
|
3448 |
elif fid == 3:
|
|
|
3449 |
if ftype == TType.I64:
|
|
|
3450 |
self.createdOn = iprot.readI64();
|
|
|
3451 |
else:
|
|
|
3452 |
iprot.skip(ftype)
|
| 685 |
chandransh |
3453 |
elif fid == 4:
|
| 94 |
ashish |
3454 |
if ftype == TType.I32:
|
|
|
3455 |
self.transactionStatus = iprot.readI32();
|
|
|
3456 |
else:
|
|
|
3457 |
iprot.skip(ftype)
|
| 685 |
chandransh |
3458 |
elif fid == 5:
|
| 94 |
ashish |
3459 |
if ftype == TType.STRING:
|
|
|
3460 |
self.statusDescription = iprot.readString();
|
|
|
3461 |
else:
|
|
|
3462 |
iprot.skip(ftype)
|
| 685 |
chandransh |
3463 |
elif fid == 6:
|
| 94 |
ashish |
3464 |
if ftype == TType.I64:
|
| 132 |
ashish |
3465 |
self.shoppingCartid = iprot.readI64();
|
|
|
3466 |
else:
|
|
|
3467 |
iprot.skip(ftype)
|
| 685 |
chandransh |
3468 |
elif fid == 7:
|
| 358 |
ashish |
3469 |
if ftype == TType.I64:
|
| 483 |
rajveer |
3470 |
self.customer_id = iprot.readI64();
|
| 358 |
ashish |
3471 |
else:
|
|
|
3472 |
iprot.skip(ftype)
|
| 2219 |
varun.gupt |
3473 |
elif fid == 8:
|
|
|
3474 |
if ftype == TType.STRING:
|
|
|
3475 |
self.coupon_code = iprot.readString();
|
|
|
3476 |
else:
|
|
|
3477 |
iprot.skip(ftype)
|
| 2815 |
vikas |
3478 |
elif fid == 9:
|
|
|
3479 |
if ftype == TType.STRING:
|
|
|
3480 |
self.sessionSource = iprot.readString();
|
|
|
3481 |
else:
|
|
|
3482 |
iprot.skip(ftype)
|
|
|
3483 |
elif fid == 10:
|
|
|
3484 |
if ftype == TType.I64:
|
|
|
3485 |
self.sessionStartTime = iprot.readI64();
|
|
|
3486 |
else:
|
|
|
3487 |
iprot.skip(ftype)
|
| 3858 |
vikas |
3488 |
elif fid == 11:
|
|
|
3489 |
if ftype == TType.STRING:
|
|
|
3490 |
self.firstSource = iprot.readString();
|
|
|
3491 |
else:
|
|
|
3492 |
iprot.skip(ftype)
|
|
|
3493 |
elif fid == 12:
|
|
|
3494 |
if ftype == TType.I64:
|
|
|
3495 |
self.firstSourceTime = iprot.readI64();
|
|
|
3496 |
else:
|
|
|
3497 |
iprot.skip(ftype)
|
| 6389 |
rajveer |
3498 |
elif fid == 13:
|
|
|
3499 |
if ftype == TType.I64:
|
| 18590 |
manish.sha |
3500 |
self.payment_option = iprot.readI64();
|
| 6389 |
rajveer |
3501 |
else:
|
|
|
3502 |
iprot.skip(ftype)
|
| 17470 |
manish.sha |
3503 |
elif fid == 14:
|
|
|
3504 |
if ftype == TType.DOUBLE:
|
|
|
3505 |
self.totalShippingCost = iprot.readDouble();
|
|
|
3506 |
else:
|
|
|
3507 |
iprot.skip(ftype)
|
|
|
3508 |
elif fid == 15:
|
|
|
3509 |
if ftype == TType.DOUBLE:
|
|
|
3510 |
self.totalCodCharges = iprot.readDouble();
|
|
|
3511 |
else:
|
|
|
3512 |
iprot.skip(ftype)
|
| 94 |
ashish |
3513 |
else:
|
|
|
3514 |
iprot.skip(ftype)
|
|
|
3515 |
iprot.readFieldEnd()
|
|
|
3516 |
iprot.readStructEnd()
|
|
|
3517 |
|
|
|
3518 |
def write(self, oprot):
|
|
|
3519 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3520 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3521 |
return
|
|
|
3522 |
oprot.writeStructBegin('Transaction')
|
| 3431 |
rajveer |
3523 |
if self.id is not None:
|
| 94 |
ashish |
3524 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
3525 |
oprot.writeI64(self.id)
|
|
|
3526 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3527 |
if self.orders is not None:
|
| 483 |
rajveer |
3528 |
oprot.writeFieldBegin('orders', TType.LIST, 2)
|
|
|
3529 |
oprot.writeListBegin(TType.STRUCT, len(self.orders))
|
| 685 |
chandransh |
3530 |
for iter13 in self.orders:
|
|
|
3531 |
iter13.write(oprot)
|
| 483 |
rajveer |
3532 |
oprot.writeListEnd()
|
| 94 |
ashish |
3533 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3534 |
if self.createdOn is not None:
|
| 685 |
chandransh |
3535 |
oprot.writeFieldBegin('createdOn', TType.I64, 3)
|
| 94 |
ashish |
3536 |
oprot.writeI64(self.createdOn)
|
|
|
3537 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3538 |
if self.transactionStatus is not None:
|
| 685 |
chandransh |
3539 |
oprot.writeFieldBegin('transactionStatus', TType.I32, 4)
|
| 94 |
ashish |
3540 |
oprot.writeI32(self.transactionStatus)
|
|
|
3541 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3542 |
if self.statusDescription is not None:
|
| 685 |
chandransh |
3543 |
oprot.writeFieldBegin('statusDescription', TType.STRING, 5)
|
| 94 |
ashish |
3544 |
oprot.writeString(self.statusDescription)
|
|
|
3545 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3546 |
if self.shoppingCartid is not None:
|
| 685 |
chandransh |
3547 |
oprot.writeFieldBegin('shoppingCartid', TType.I64, 6)
|
| 132 |
ashish |
3548 |
oprot.writeI64(self.shoppingCartid)
|
|
|
3549 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3550 |
if self.customer_id is not None:
|
| 685 |
chandransh |
3551 |
oprot.writeFieldBegin('customer_id', TType.I64, 7)
|
| 483 |
rajveer |
3552 |
oprot.writeI64(self.customer_id)
|
| 358 |
ashish |
3553 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3554 |
if self.coupon_code is not None:
|
| 2219 |
varun.gupt |
3555 |
oprot.writeFieldBegin('coupon_code', TType.STRING, 8)
|
|
|
3556 |
oprot.writeString(self.coupon_code)
|
|
|
3557 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3558 |
if self.sessionSource is not None:
|
| 2815 |
vikas |
3559 |
oprot.writeFieldBegin('sessionSource', TType.STRING, 9)
|
|
|
3560 |
oprot.writeString(self.sessionSource)
|
|
|
3561 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3562 |
if self.sessionStartTime is not None:
|
| 2815 |
vikas |
3563 |
oprot.writeFieldBegin('sessionStartTime', TType.I64, 10)
|
|
|
3564 |
oprot.writeI64(self.sessionStartTime)
|
|
|
3565 |
oprot.writeFieldEnd()
|
| 3858 |
vikas |
3566 |
if self.firstSource is not None:
|
|
|
3567 |
oprot.writeFieldBegin('firstSource', TType.STRING, 11)
|
|
|
3568 |
oprot.writeString(self.firstSource)
|
|
|
3569 |
oprot.writeFieldEnd()
|
|
|
3570 |
if self.firstSourceTime is not None:
|
|
|
3571 |
oprot.writeFieldBegin('firstSourceTime', TType.I64, 12)
|
|
|
3572 |
oprot.writeI64(self.firstSourceTime)
|
|
|
3573 |
oprot.writeFieldEnd()
|
| 18590 |
manish.sha |
3574 |
if self.payment_option is not None:
|
|
|
3575 |
oprot.writeFieldBegin('payment_option', TType.I64, 13)
|
|
|
3576 |
oprot.writeI64(self.payment_option)
|
| 6389 |
rajveer |
3577 |
oprot.writeFieldEnd()
|
| 17470 |
manish.sha |
3578 |
if self.totalShippingCost is not None:
|
|
|
3579 |
oprot.writeFieldBegin('totalShippingCost', TType.DOUBLE, 14)
|
|
|
3580 |
oprot.writeDouble(self.totalShippingCost)
|
|
|
3581 |
oprot.writeFieldEnd()
|
|
|
3582 |
if self.totalCodCharges is not None:
|
|
|
3583 |
oprot.writeFieldBegin('totalCodCharges', TType.DOUBLE, 15)
|
|
|
3584 |
oprot.writeDouble(self.totalCodCharges)
|
|
|
3585 |
oprot.writeFieldEnd()
|
| 94 |
ashish |
3586 |
oprot.writeFieldStop()
|
|
|
3587 |
oprot.writeStructEnd()
|
|
|
3588 |
|
| 3431 |
rajveer |
3589 |
def validate(self):
|
|
|
3590 |
return
|
|
|
3591 |
|
|
|
3592 |
|
| 94 |
ashish |
3593 |
def __repr__(self):
|
|
|
3594 |
L = ['%s=%r' % (key, value)
|
|
|
3595 |
for key, value in self.__dict__.iteritems()]
|
|
|
3596 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3597 |
|
|
|
3598 |
def __eq__(self, other):
|
|
|
3599 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3600 |
|
|
|
3601 |
def __ne__(self, other):
|
|
|
3602 |
return not (self == other)
|
|
|
3603 |
|
| 19980 |
amit.gupta |
3604 |
class WarehouseAddressMapping:
|
|
|
3605 |
"""
|
|
|
3606 |
Attributes:
|
|
|
3607 |
- warehouse_id
|
|
|
3608 |
- address_id
|
|
|
3609 |
- created
|
|
|
3610 |
- updated
|
|
|
3611 |
"""
|
|
|
3612 |
|
|
|
3613 |
thrift_spec = (
|
|
|
3614 |
None, # 0
|
|
|
3615 |
(1, TType.I64, 'warehouse_id', None, None, ), # 1
|
|
|
3616 |
(2, TType.I64, 'address_id', None, None, ), # 2
|
|
|
3617 |
(3, TType.I64, 'created', None, None, ), # 3
|
|
|
3618 |
(4, TType.I64, 'updated', None, None, ), # 4
|
|
|
3619 |
)
|
|
|
3620 |
|
|
|
3621 |
def __init__(self, warehouse_id=None, address_id=None, created=None, updated=None,):
|
|
|
3622 |
self.warehouse_id = warehouse_id
|
|
|
3623 |
self.address_id = address_id
|
|
|
3624 |
self.created = created
|
|
|
3625 |
self.updated = updated
|
|
|
3626 |
|
|
|
3627 |
def read(self, iprot):
|
|
|
3628 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3629 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3630 |
return
|
|
|
3631 |
iprot.readStructBegin()
|
|
|
3632 |
while True:
|
|
|
3633 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3634 |
if ftype == TType.STOP:
|
|
|
3635 |
break
|
|
|
3636 |
if fid == 1:
|
|
|
3637 |
if ftype == TType.I64:
|
|
|
3638 |
self.warehouse_id = iprot.readI64();
|
|
|
3639 |
else:
|
|
|
3640 |
iprot.skip(ftype)
|
|
|
3641 |
elif fid == 2:
|
|
|
3642 |
if ftype == TType.I64:
|
|
|
3643 |
self.address_id = iprot.readI64();
|
|
|
3644 |
else:
|
|
|
3645 |
iprot.skip(ftype)
|
|
|
3646 |
elif fid == 3:
|
|
|
3647 |
if ftype == TType.I64:
|
|
|
3648 |
self.created = iprot.readI64();
|
|
|
3649 |
else:
|
|
|
3650 |
iprot.skip(ftype)
|
|
|
3651 |
elif fid == 4:
|
|
|
3652 |
if ftype == TType.I64:
|
|
|
3653 |
self.updated = iprot.readI64();
|
|
|
3654 |
else:
|
|
|
3655 |
iprot.skip(ftype)
|
|
|
3656 |
else:
|
|
|
3657 |
iprot.skip(ftype)
|
|
|
3658 |
iprot.readFieldEnd()
|
|
|
3659 |
iprot.readStructEnd()
|
|
|
3660 |
|
|
|
3661 |
def write(self, oprot):
|
|
|
3662 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3663 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3664 |
return
|
|
|
3665 |
oprot.writeStructBegin('WarehouseAddressMapping')
|
|
|
3666 |
if self.warehouse_id is not None:
|
|
|
3667 |
oprot.writeFieldBegin('warehouse_id', TType.I64, 1)
|
|
|
3668 |
oprot.writeI64(self.warehouse_id)
|
|
|
3669 |
oprot.writeFieldEnd()
|
|
|
3670 |
if self.address_id is not None:
|
|
|
3671 |
oprot.writeFieldBegin('address_id', TType.I64, 2)
|
|
|
3672 |
oprot.writeI64(self.address_id)
|
|
|
3673 |
oprot.writeFieldEnd()
|
|
|
3674 |
if self.created is not None:
|
|
|
3675 |
oprot.writeFieldBegin('created', TType.I64, 3)
|
|
|
3676 |
oprot.writeI64(self.created)
|
|
|
3677 |
oprot.writeFieldEnd()
|
|
|
3678 |
if self.updated is not None:
|
|
|
3679 |
oprot.writeFieldBegin('updated', TType.I64, 4)
|
|
|
3680 |
oprot.writeI64(self.updated)
|
|
|
3681 |
oprot.writeFieldEnd()
|
|
|
3682 |
oprot.writeFieldStop()
|
|
|
3683 |
oprot.writeStructEnd()
|
|
|
3684 |
|
|
|
3685 |
def validate(self):
|
|
|
3686 |
return
|
|
|
3687 |
|
|
|
3688 |
|
|
|
3689 |
def __repr__(self):
|
|
|
3690 |
L = ['%s=%r' % (key, value)
|
|
|
3691 |
for key, value in self.__dict__.iteritems()]
|
|
|
3692 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3693 |
|
|
|
3694 |
def __eq__(self, other):
|
|
|
3695 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3696 |
|
|
|
3697 |
def __ne__(self, other):
|
|
|
3698 |
return not (self == other)
|
|
|
3699 |
|
| 304 |
ashish |
3700 |
class Alert:
|
|
|
3701 |
"""
|
|
|
3702 |
Attributes:
|
|
|
3703 |
- id
|
|
|
3704 |
- type
|
| 4394 |
rajveer |
3705 |
- status
|
|
|
3706 |
- timestamp
|
|
|
3707 |
- description
|
| 4444 |
rajveer |
3708 |
- warehouseId
|
| 304 |
ashish |
3709 |
"""
|
|
|
3710 |
|
|
|
3711 |
thrift_spec = (
|
|
|
3712 |
None, # 0
|
|
|
3713 |
(1, TType.I64, 'id', None, None, ), # 1
|
| 4394 |
rajveer |
3714 |
(2, TType.I32, 'type', None, None, ), # 2
|
|
|
3715 |
(3, TType.I64, 'status', None, None, ), # 3
|
|
|
3716 |
(4, TType.I64, 'timestamp', None, None, ), # 4
|
|
|
3717 |
(5, TType.STRING, 'description', None, None, ), # 5
|
| 4444 |
rajveer |
3718 |
(6, TType.I64, 'warehouseId', None, None, ), # 6
|
| 304 |
ashish |
3719 |
)
|
|
|
3720 |
|
| 4444 |
rajveer |
3721 |
def __init__(self, id=None, type=None, status=None, timestamp=None, description=None, warehouseId=None,):
|
| 304 |
ashish |
3722 |
self.id = id
|
|
|
3723 |
self.type = type
|
| 4394 |
rajveer |
3724 |
self.status = status
|
|
|
3725 |
self.timestamp = timestamp
|
|
|
3726 |
self.description = description
|
| 4444 |
rajveer |
3727 |
self.warehouseId = warehouseId
|
| 304 |
ashish |
3728 |
|
|
|
3729 |
def read(self, iprot):
|
|
|
3730 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3731 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3732 |
return
|
|
|
3733 |
iprot.readStructBegin()
|
|
|
3734 |
while True:
|
|
|
3735 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3736 |
if ftype == TType.STOP:
|
|
|
3737 |
break
|
|
|
3738 |
if fid == 1:
|
|
|
3739 |
if ftype == TType.I64:
|
|
|
3740 |
self.id = iprot.readI64();
|
|
|
3741 |
else:
|
|
|
3742 |
iprot.skip(ftype)
|
|
|
3743 |
elif fid == 2:
|
| 4394 |
rajveer |
3744 |
if ftype == TType.I32:
|
|
|
3745 |
self.type = iprot.readI32();
|
| 304 |
ashish |
3746 |
else:
|
|
|
3747 |
iprot.skip(ftype)
|
|
|
3748 |
elif fid == 3:
|
|
|
3749 |
if ftype == TType.I64:
|
| 4394 |
rajveer |
3750 |
self.status = iprot.readI64();
|
| 304 |
ashish |
3751 |
else:
|
|
|
3752 |
iprot.skip(ftype)
|
|
|
3753 |
elif fid == 4:
|
|
|
3754 |
if ftype == TType.I64:
|
| 4394 |
rajveer |
3755 |
self.timestamp = iprot.readI64();
|
| 304 |
ashish |
3756 |
else:
|
|
|
3757 |
iprot.skip(ftype)
|
|
|
3758 |
elif fid == 5:
|
|
|
3759 |
if ftype == TType.STRING:
|
| 4394 |
rajveer |
3760 |
self.description = iprot.readString();
|
| 304 |
ashish |
3761 |
else:
|
|
|
3762 |
iprot.skip(ftype)
|
| 4444 |
rajveer |
3763 |
elif fid == 6:
|
|
|
3764 |
if ftype == TType.I64:
|
|
|
3765 |
self.warehouseId = iprot.readI64();
|
|
|
3766 |
else:
|
|
|
3767 |
iprot.skip(ftype)
|
| 304 |
ashish |
3768 |
else:
|
|
|
3769 |
iprot.skip(ftype)
|
|
|
3770 |
iprot.readFieldEnd()
|
|
|
3771 |
iprot.readStructEnd()
|
|
|
3772 |
|
|
|
3773 |
def write(self, oprot):
|
|
|
3774 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3775 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3776 |
return
|
|
|
3777 |
oprot.writeStructBegin('Alert')
|
| 3431 |
rajveer |
3778 |
if self.id is not None:
|
| 304 |
ashish |
3779 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
3780 |
oprot.writeI64(self.id)
|
|
|
3781 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3782 |
if self.type is not None:
|
| 4394 |
rajveer |
3783 |
oprot.writeFieldBegin('type', TType.I32, 2)
|
|
|
3784 |
oprot.writeI32(self.type)
|
| 304 |
ashish |
3785 |
oprot.writeFieldEnd()
|
| 4394 |
rajveer |
3786 |
if self.status is not None:
|
|
|
3787 |
oprot.writeFieldBegin('status', TType.I64, 3)
|
|
|
3788 |
oprot.writeI64(self.status)
|
| 304 |
ashish |
3789 |
oprot.writeFieldEnd()
|
| 4394 |
rajveer |
3790 |
if self.timestamp is not None:
|
|
|
3791 |
oprot.writeFieldBegin('timestamp', TType.I64, 4)
|
|
|
3792 |
oprot.writeI64(self.timestamp)
|
| 304 |
ashish |
3793 |
oprot.writeFieldEnd()
|
| 4394 |
rajveer |
3794 |
if self.description is not None:
|
|
|
3795 |
oprot.writeFieldBegin('description', TType.STRING, 5)
|
|
|
3796 |
oprot.writeString(self.description)
|
| 304 |
ashish |
3797 |
oprot.writeFieldEnd()
|
| 4444 |
rajveer |
3798 |
if self.warehouseId is not None:
|
|
|
3799 |
oprot.writeFieldBegin('warehouseId', TType.I64, 6)
|
|
|
3800 |
oprot.writeI64(self.warehouseId)
|
|
|
3801 |
oprot.writeFieldEnd()
|
| 304 |
ashish |
3802 |
oprot.writeFieldStop()
|
|
|
3803 |
oprot.writeStructEnd()
|
|
|
3804 |
|
| 3431 |
rajveer |
3805 |
def validate(self):
|
|
|
3806 |
return
|
|
|
3807 |
|
|
|
3808 |
|
| 304 |
ashish |
3809 |
def __repr__(self):
|
|
|
3810 |
L = ['%s=%r' % (key, value)
|
|
|
3811 |
for key, value in self.__dict__.iteritems()]
|
|
|
3812 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
3813 |
|
|
|
3814 |
def __eq__(self, other):
|
|
|
3815 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
3816 |
|
|
|
3817 |
def __ne__(self, other):
|
|
|
3818 |
return not (self == other)
|
|
|
3819 |
|
| 2687 |
chandransh |
3820 |
class ReturnOrder:
|
|
|
3821 |
"""
|
|
|
3822 |
Attributes:
|
|
|
3823 |
- orderId
|
| 2697 |
chandransh |
3824 |
- warehouseId
|
| 2687 |
chandransh |
3825 |
- jacketNumber
|
|
|
3826 |
- invoiceNumber
|
|
|
3827 |
- itemId
|
|
|
3828 |
- productGroup
|
|
|
3829 |
- brand
|
|
|
3830 |
- modelNumber
|
|
|
3831 |
- modelName
|
|
|
3832 |
- color
|
|
|
3833 |
- totalPrice
|
|
|
3834 |
- transferPrice
|
|
|
3835 |
- processedStatus
|
|
|
3836 |
- createdAt
|
|
|
3837 |
- processedAt
|
|
|
3838 |
"""
|
|
|
3839 |
|
|
|
3840 |
thrift_spec = (
|
|
|
3841 |
None, # 0
|
|
|
3842 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
| 2697 |
chandransh |
3843 |
(2, TType.I64, 'warehouseId', None, None, ), # 2
|
|
|
3844 |
(3, TType.I64, 'jacketNumber', None, None, ), # 3
|
|
|
3845 |
(4, TType.STRING, 'invoiceNumber', None, None, ), # 4
|
|
|
3846 |
(5, TType.I64, 'itemId', None, None, ), # 5
|
|
|
3847 |
(6, TType.STRING, 'productGroup', None, None, ), # 6
|
|
|
3848 |
(7, TType.STRING, 'brand', None, None, ), # 7
|
|
|
3849 |
(8, TType.STRING, 'modelNumber', None, None, ), # 8
|
|
|
3850 |
(9, TType.STRING, 'modelName', None, None, ), # 9
|
|
|
3851 |
(10, TType.STRING, 'color', None, None, ), # 10
|
|
|
3852 |
(11, TType.DOUBLE, 'totalPrice', None, None, ), # 11
|
|
|
3853 |
(12, TType.DOUBLE, 'transferPrice', None, None, ), # 12
|
|
|
3854 |
(13, TType.BOOL, 'processedStatus', None, None, ), # 13
|
|
|
3855 |
(14, TType.I64, 'createdAt', None, None, ), # 14
|
|
|
3856 |
(15, TType.I64, 'processedAt', None, None, ), # 15
|
| 2687 |
chandransh |
3857 |
)
|
|
|
3858 |
|
| 2697 |
chandransh |
3859 |
def __init__(self, orderId=None, warehouseId=None, jacketNumber=None, invoiceNumber=None, itemId=None, productGroup=None, brand=None, modelNumber=None, modelName=None, color=None, totalPrice=None, transferPrice=None, processedStatus=None, createdAt=None, processedAt=None,):
|
| 2687 |
chandransh |
3860 |
self.orderId = orderId
|
| 2697 |
chandransh |
3861 |
self.warehouseId = warehouseId
|
| 2687 |
chandransh |
3862 |
self.jacketNumber = jacketNumber
|
|
|
3863 |
self.invoiceNumber = invoiceNumber
|
|
|
3864 |
self.itemId = itemId
|
|
|
3865 |
self.productGroup = productGroup
|
|
|
3866 |
self.brand = brand
|
|
|
3867 |
self.modelNumber = modelNumber
|
|
|
3868 |
self.modelName = modelName
|
|
|
3869 |
self.color = color
|
|
|
3870 |
self.totalPrice = totalPrice
|
|
|
3871 |
self.transferPrice = transferPrice
|
|
|
3872 |
self.processedStatus = processedStatus
|
|
|
3873 |
self.createdAt = createdAt
|
|
|
3874 |
self.processedAt = processedAt
|
|
|
3875 |
|
|
|
3876 |
def read(self, iprot):
|
|
|
3877 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3878 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
3879 |
return
|
|
|
3880 |
iprot.readStructBegin()
|
|
|
3881 |
while True:
|
|
|
3882 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
3883 |
if ftype == TType.STOP:
|
|
|
3884 |
break
|
|
|
3885 |
if fid == 1:
|
|
|
3886 |
if ftype == TType.I64:
|
|
|
3887 |
self.orderId = iprot.readI64();
|
|
|
3888 |
else:
|
|
|
3889 |
iprot.skip(ftype)
|
|
|
3890 |
elif fid == 2:
|
|
|
3891 |
if ftype == TType.I64:
|
| 2697 |
chandransh |
3892 |
self.warehouseId = iprot.readI64();
|
|
|
3893 |
else:
|
|
|
3894 |
iprot.skip(ftype)
|
|
|
3895 |
elif fid == 3:
|
|
|
3896 |
if ftype == TType.I64:
|
| 2687 |
chandransh |
3897 |
self.jacketNumber = iprot.readI64();
|
|
|
3898 |
else:
|
|
|
3899 |
iprot.skip(ftype)
|
| 2697 |
chandransh |
3900 |
elif fid == 4:
|
| 2687 |
chandransh |
3901 |
if ftype == TType.STRING:
|
|
|
3902 |
self.invoiceNumber = iprot.readString();
|
|
|
3903 |
else:
|
|
|
3904 |
iprot.skip(ftype)
|
| 2697 |
chandransh |
3905 |
elif fid == 5:
|
| 2687 |
chandransh |
3906 |
if ftype == TType.I64:
|
|
|
3907 |
self.itemId = iprot.readI64();
|
|
|
3908 |
else:
|
|
|
3909 |
iprot.skip(ftype)
|
| 2697 |
chandransh |
3910 |
elif fid == 6:
|
| 2687 |
chandransh |
3911 |
if ftype == TType.STRING:
|
|
|
3912 |
self.productGroup = iprot.readString();
|
|
|
3913 |
else:
|
|
|
3914 |
iprot.skip(ftype)
|
| 2697 |
chandransh |
3915 |
elif fid == 7:
|
| 2687 |
chandransh |
3916 |
if ftype == TType.STRING:
|
|
|
3917 |
self.brand = iprot.readString();
|
|
|
3918 |
else:
|
|
|
3919 |
iprot.skip(ftype)
|
| 2697 |
chandransh |
3920 |
elif fid == 8:
|
| 2687 |
chandransh |
3921 |
if ftype == TType.STRING:
|
|
|
3922 |
self.modelNumber = iprot.readString();
|
|
|
3923 |
else:
|
|
|
3924 |
iprot.skip(ftype)
|
| 2697 |
chandransh |
3925 |
elif fid == 9:
|
| 2687 |
chandransh |
3926 |
if ftype == TType.STRING:
|
|
|
3927 |
self.modelName = iprot.readString();
|
|
|
3928 |
else:
|
|
|
3929 |
iprot.skip(ftype)
|
| 2697 |
chandransh |
3930 |
elif fid == 10:
|
| 2687 |
chandransh |
3931 |
if ftype == TType.STRING:
|
|
|
3932 |
self.color = iprot.readString();
|
|
|
3933 |
else:
|
|
|
3934 |
iprot.skip(ftype)
|
| 2697 |
chandransh |
3935 |
elif fid == 11:
|
| 2687 |
chandransh |
3936 |
if ftype == TType.DOUBLE:
|
|
|
3937 |
self.totalPrice = iprot.readDouble();
|
|
|
3938 |
else:
|
|
|
3939 |
iprot.skip(ftype)
|
| 2697 |
chandransh |
3940 |
elif fid == 12:
|
| 2687 |
chandransh |
3941 |
if ftype == TType.DOUBLE:
|
|
|
3942 |
self.transferPrice = iprot.readDouble();
|
|
|
3943 |
else:
|
|
|
3944 |
iprot.skip(ftype)
|
| 2697 |
chandransh |
3945 |
elif fid == 13:
|
| 2687 |
chandransh |
3946 |
if ftype == TType.BOOL:
|
|
|
3947 |
self.processedStatus = iprot.readBool();
|
|
|
3948 |
else:
|
|
|
3949 |
iprot.skip(ftype)
|
| 2697 |
chandransh |
3950 |
elif fid == 14:
|
| 2687 |
chandransh |
3951 |
if ftype == TType.I64:
|
|
|
3952 |
self.createdAt = iprot.readI64();
|
|
|
3953 |
else:
|
|
|
3954 |
iprot.skip(ftype)
|
| 2697 |
chandransh |
3955 |
elif fid == 15:
|
| 2687 |
chandransh |
3956 |
if ftype == TType.I64:
|
|
|
3957 |
self.processedAt = iprot.readI64();
|
|
|
3958 |
else:
|
|
|
3959 |
iprot.skip(ftype)
|
|
|
3960 |
else:
|
|
|
3961 |
iprot.skip(ftype)
|
|
|
3962 |
iprot.readFieldEnd()
|
|
|
3963 |
iprot.readStructEnd()
|
|
|
3964 |
|
|
|
3965 |
def write(self, oprot):
|
|
|
3966 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
3967 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
3968 |
return
|
|
|
3969 |
oprot.writeStructBegin('ReturnOrder')
|
| 3431 |
rajveer |
3970 |
if self.orderId is not None:
|
| 2687 |
chandransh |
3971 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
3972 |
oprot.writeI64(self.orderId)
|
|
|
3973 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3974 |
if self.warehouseId is not None:
|
| 2697 |
chandransh |
3975 |
oprot.writeFieldBegin('warehouseId', TType.I64, 2)
|
|
|
3976 |
oprot.writeI64(self.warehouseId)
|
|
|
3977 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3978 |
if self.jacketNumber is not None:
|
| 2697 |
chandransh |
3979 |
oprot.writeFieldBegin('jacketNumber', TType.I64, 3)
|
| 2687 |
chandransh |
3980 |
oprot.writeI64(self.jacketNumber)
|
|
|
3981 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3982 |
if self.invoiceNumber is not None:
|
| 2697 |
chandransh |
3983 |
oprot.writeFieldBegin('invoiceNumber', TType.STRING, 4)
|
| 2687 |
chandransh |
3984 |
oprot.writeString(self.invoiceNumber)
|
|
|
3985 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3986 |
if self.itemId is not None:
|
| 2697 |
chandransh |
3987 |
oprot.writeFieldBegin('itemId', TType.I64, 5)
|
| 2687 |
chandransh |
3988 |
oprot.writeI64(self.itemId)
|
|
|
3989 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3990 |
if self.productGroup is not None:
|
| 2697 |
chandransh |
3991 |
oprot.writeFieldBegin('productGroup', TType.STRING, 6)
|
| 2687 |
chandransh |
3992 |
oprot.writeString(self.productGroup)
|
|
|
3993 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3994 |
if self.brand is not None:
|
| 2697 |
chandransh |
3995 |
oprot.writeFieldBegin('brand', TType.STRING, 7)
|
| 2687 |
chandransh |
3996 |
oprot.writeString(self.brand)
|
|
|
3997 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
3998 |
if self.modelNumber is not None:
|
| 2697 |
chandransh |
3999 |
oprot.writeFieldBegin('modelNumber', TType.STRING, 8)
|
| 2687 |
chandransh |
4000 |
oprot.writeString(self.modelNumber)
|
|
|
4001 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
4002 |
if self.modelName is not None:
|
| 2697 |
chandransh |
4003 |
oprot.writeFieldBegin('modelName', TType.STRING, 9)
|
| 2687 |
chandransh |
4004 |
oprot.writeString(self.modelName)
|
|
|
4005 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
4006 |
if self.color is not None:
|
| 2697 |
chandransh |
4007 |
oprot.writeFieldBegin('color', TType.STRING, 10)
|
| 2687 |
chandransh |
4008 |
oprot.writeString(self.color)
|
|
|
4009 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
4010 |
if self.totalPrice is not None:
|
| 2697 |
chandransh |
4011 |
oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 11)
|
| 2687 |
chandransh |
4012 |
oprot.writeDouble(self.totalPrice)
|
|
|
4013 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
4014 |
if self.transferPrice is not None:
|
| 2697 |
chandransh |
4015 |
oprot.writeFieldBegin('transferPrice', TType.DOUBLE, 12)
|
| 2687 |
chandransh |
4016 |
oprot.writeDouble(self.transferPrice)
|
|
|
4017 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
4018 |
if self.processedStatus is not None:
|
| 2697 |
chandransh |
4019 |
oprot.writeFieldBegin('processedStatus', TType.BOOL, 13)
|
| 2687 |
chandransh |
4020 |
oprot.writeBool(self.processedStatus)
|
|
|
4021 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
4022 |
if self.createdAt is not None:
|
| 2697 |
chandransh |
4023 |
oprot.writeFieldBegin('createdAt', TType.I64, 14)
|
| 2687 |
chandransh |
4024 |
oprot.writeI64(self.createdAt)
|
|
|
4025 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
4026 |
if self.processedAt is not None:
|
| 2697 |
chandransh |
4027 |
oprot.writeFieldBegin('processedAt', TType.I64, 15)
|
| 2687 |
chandransh |
4028 |
oprot.writeI64(self.processedAt)
|
|
|
4029 |
oprot.writeFieldEnd()
|
|
|
4030 |
oprot.writeFieldStop()
|
|
|
4031 |
oprot.writeStructEnd()
|
|
|
4032 |
|
| 3431 |
rajveer |
4033 |
def validate(self):
|
|
|
4034 |
return
|
|
|
4035 |
|
|
|
4036 |
|
| 2687 |
chandransh |
4037 |
def __repr__(self):
|
|
|
4038 |
L = ['%s=%r' % (key, value)
|
|
|
4039 |
for key, value in self.__dict__.iteritems()]
|
|
|
4040 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4041 |
|
|
|
4042 |
def __eq__(self, other):
|
|
|
4043 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4044 |
|
|
|
4045 |
def __ne__(self, other):
|
|
|
4046 |
return not (self == other)
|
|
|
4047 |
|
| 4600 |
varun.gupt |
4048 |
class PaymentSettlement:
|
|
|
4049 |
"""
|
|
|
4050 |
Attributes:
|
|
|
4051 |
- paymentGatewayId
|
| 4905 |
varun.gupt |
4052 |
- referenceId
|
| 4600 |
varun.gupt |
4053 |
- settlementDate
|
|
|
4054 |
- serviceTax
|
|
|
4055 |
- otherCharges
|
|
|
4056 |
- netCollection
|
|
|
4057 |
"""
|
|
|
4058 |
|
|
|
4059 |
thrift_spec = (
|
|
|
4060 |
None, # 0
|
| 4905 |
varun.gupt |
4061 |
None, # 1
|
| 4600 |
varun.gupt |
4062 |
(2, TType.I64, 'paymentGatewayId', None, None, ), # 2
|
| 4905 |
varun.gupt |
4063 |
(3, TType.I64, 'referenceId', None, None, ), # 3
|
| 4600 |
varun.gupt |
4064 |
(4, TType.I64, 'settlementDate', None, None, ), # 4
|
|
|
4065 |
(5, TType.DOUBLE, 'serviceTax', None, None, ), # 5
|
|
|
4066 |
(6, TType.DOUBLE, 'otherCharges', None, None, ), # 6
|
|
|
4067 |
(7, TType.DOUBLE, 'netCollection', None, None, ), # 7
|
|
|
4068 |
)
|
|
|
4069 |
|
| 4905 |
varun.gupt |
4070 |
def __init__(self, paymentGatewayId=None, referenceId=None, settlementDate=None, serviceTax=None, otherCharges=None, netCollection=None,):
|
| 4600 |
varun.gupt |
4071 |
self.paymentGatewayId = paymentGatewayId
|
| 4905 |
varun.gupt |
4072 |
self.referenceId = referenceId
|
| 4600 |
varun.gupt |
4073 |
self.settlementDate = settlementDate
|
|
|
4074 |
self.serviceTax = serviceTax
|
|
|
4075 |
self.otherCharges = otherCharges
|
|
|
4076 |
self.netCollection = netCollection
|
|
|
4077 |
|
|
|
4078 |
def read(self, iprot):
|
|
|
4079 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4080 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4081 |
return
|
|
|
4082 |
iprot.readStructBegin()
|
|
|
4083 |
while True:
|
|
|
4084 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4085 |
if ftype == TType.STOP:
|
|
|
4086 |
break
|
| 4905 |
varun.gupt |
4087 |
if fid == 2:
|
| 4600 |
varun.gupt |
4088 |
if ftype == TType.I64:
|
|
|
4089 |
self.paymentGatewayId = iprot.readI64();
|
|
|
4090 |
else:
|
|
|
4091 |
iprot.skip(ftype)
|
|
|
4092 |
elif fid == 3:
|
|
|
4093 |
if ftype == TType.I64:
|
| 4905 |
varun.gupt |
4094 |
self.referenceId = iprot.readI64();
|
| 4600 |
varun.gupt |
4095 |
else:
|
|
|
4096 |
iprot.skip(ftype)
|
|
|
4097 |
elif fid == 4:
|
|
|
4098 |
if ftype == TType.I64:
|
|
|
4099 |
self.settlementDate = iprot.readI64();
|
|
|
4100 |
else:
|
|
|
4101 |
iprot.skip(ftype)
|
|
|
4102 |
elif fid == 5:
|
|
|
4103 |
if ftype == TType.DOUBLE:
|
|
|
4104 |
self.serviceTax = iprot.readDouble();
|
|
|
4105 |
else:
|
|
|
4106 |
iprot.skip(ftype)
|
|
|
4107 |
elif fid == 6:
|
|
|
4108 |
if ftype == TType.DOUBLE:
|
|
|
4109 |
self.otherCharges = iprot.readDouble();
|
|
|
4110 |
else:
|
|
|
4111 |
iprot.skip(ftype)
|
|
|
4112 |
elif fid == 7:
|
|
|
4113 |
if ftype == TType.DOUBLE:
|
|
|
4114 |
self.netCollection = iprot.readDouble();
|
|
|
4115 |
else:
|
|
|
4116 |
iprot.skip(ftype)
|
|
|
4117 |
else:
|
|
|
4118 |
iprot.skip(ftype)
|
|
|
4119 |
iprot.readFieldEnd()
|
|
|
4120 |
iprot.readStructEnd()
|
|
|
4121 |
|
|
|
4122 |
def write(self, oprot):
|
|
|
4123 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4124 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4125 |
return
|
|
|
4126 |
oprot.writeStructBegin('PaymentSettlement')
|
|
|
4127 |
if self.paymentGatewayId is not None:
|
|
|
4128 |
oprot.writeFieldBegin('paymentGatewayId', TType.I64, 2)
|
|
|
4129 |
oprot.writeI64(self.paymentGatewayId)
|
|
|
4130 |
oprot.writeFieldEnd()
|
| 4905 |
varun.gupt |
4131 |
if self.referenceId is not None:
|
|
|
4132 |
oprot.writeFieldBegin('referenceId', TType.I64, 3)
|
|
|
4133 |
oprot.writeI64(self.referenceId)
|
| 4600 |
varun.gupt |
4134 |
oprot.writeFieldEnd()
|
|
|
4135 |
if self.settlementDate is not None:
|
|
|
4136 |
oprot.writeFieldBegin('settlementDate', TType.I64, 4)
|
|
|
4137 |
oprot.writeI64(self.settlementDate)
|
|
|
4138 |
oprot.writeFieldEnd()
|
|
|
4139 |
if self.serviceTax is not None:
|
|
|
4140 |
oprot.writeFieldBegin('serviceTax', TType.DOUBLE, 5)
|
|
|
4141 |
oprot.writeDouble(self.serviceTax)
|
|
|
4142 |
oprot.writeFieldEnd()
|
|
|
4143 |
if self.otherCharges is not None:
|
|
|
4144 |
oprot.writeFieldBegin('otherCharges', TType.DOUBLE, 6)
|
|
|
4145 |
oprot.writeDouble(self.otherCharges)
|
|
|
4146 |
oprot.writeFieldEnd()
|
|
|
4147 |
if self.netCollection is not None:
|
|
|
4148 |
oprot.writeFieldBegin('netCollection', TType.DOUBLE, 7)
|
|
|
4149 |
oprot.writeDouble(self.netCollection)
|
|
|
4150 |
oprot.writeFieldEnd()
|
|
|
4151 |
oprot.writeFieldStop()
|
|
|
4152 |
oprot.writeStructEnd()
|
|
|
4153 |
|
|
|
4154 |
def validate(self):
|
|
|
4155 |
return
|
|
|
4156 |
|
|
|
4157 |
|
|
|
4158 |
def __repr__(self):
|
|
|
4159 |
L = ['%s=%r' % (key, value)
|
|
|
4160 |
for key, value in self.__dict__.iteritems()]
|
|
|
4161 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4162 |
|
|
|
4163 |
def __eq__(self, other):
|
|
|
4164 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4165 |
|
|
|
4166 |
def __ne__(self, other):
|
|
|
4167 |
return not (self == other)
|
|
|
4168 |
|
| 4875 |
varun.gupt |
4169 |
class CODPaymentSettlement:
|
|
|
4170 |
"""
|
|
|
4171 |
Attributes:
|
|
|
4172 |
- orderId
|
|
|
4173 |
- settlementDate
|
|
|
4174 |
- collection
|
|
|
4175 |
"""
|
|
|
4176 |
|
|
|
4177 |
thrift_spec = (
|
|
|
4178 |
None, # 0
|
|
|
4179 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
|
|
4180 |
(2, TType.I64, 'settlementDate', None, None, ), # 2
|
|
|
4181 |
(3, TType.DOUBLE, 'collection', None, None, ), # 3
|
|
|
4182 |
)
|
|
|
4183 |
|
|
|
4184 |
def __init__(self, orderId=None, settlementDate=None, collection=None,):
|
|
|
4185 |
self.orderId = orderId
|
|
|
4186 |
self.settlementDate = settlementDate
|
|
|
4187 |
self.collection = collection
|
|
|
4188 |
|
|
|
4189 |
def read(self, iprot):
|
|
|
4190 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4191 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4192 |
return
|
|
|
4193 |
iprot.readStructBegin()
|
|
|
4194 |
while True:
|
|
|
4195 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4196 |
if ftype == TType.STOP:
|
|
|
4197 |
break
|
|
|
4198 |
if fid == 1:
|
|
|
4199 |
if ftype == TType.I64:
|
|
|
4200 |
self.orderId = iprot.readI64();
|
|
|
4201 |
else:
|
|
|
4202 |
iprot.skip(ftype)
|
|
|
4203 |
elif fid == 2:
|
|
|
4204 |
if ftype == TType.I64:
|
|
|
4205 |
self.settlementDate = iprot.readI64();
|
|
|
4206 |
else:
|
|
|
4207 |
iprot.skip(ftype)
|
|
|
4208 |
elif fid == 3:
|
|
|
4209 |
if ftype == TType.DOUBLE:
|
|
|
4210 |
self.collection = iprot.readDouble();
|
|
|
4211 |
else:
|
|
|
4212 |
iprot.skip(ftype)
|
|
|
4213 |
else:
|
|
|
4214 |
iprot.skip(ftype)
|
|
|
4215 |
iprot.readFieldEnd()
|
|
|
4216 |
iprot.readStructEnd()
|
|
|
4217 |
|
|
|
4218 |
def write(self, oprot):
|
|
|
4219 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4220 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4221 |
return
|
|
|
4222 |
oprot.writeStructBegin('CODPaymentSettlement')
|
|
|
4223 |
if self.orderId is not None:
|
|
|
4224 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
4225 |
oprot.writeI64(self.orderId)
|
|
|
4226 |
oprot.writeFieldEnd()
|
|
|
4227 |
if self.settlementDate is not None:
|
|
|
4228 |
oprot.writeFieldBegin('settlementDate', TType.I64, 2)
|
|
|
4229 |
oprot.writeI64(self.settlementDate)
|
|
|
4230 |
oprot.writeFieldEnd()
|
|
|
4231 |
if self.collection is not None:
|
|
|
4232 |
oprot.writeFieldBegin('collection', TType.DOUBLE, 3)
|
|
|
4233 |
oprot.writeDouble(self.collection)
|
|
|
4234 |
oprot.writeFieldEnd()
|
|
|
4235 |
oprot.writeFieldStop()
|
|
|
4236 |
oprot.writeStructEnd()
|
|
|
4237 |
|
|
|
4238 |
def validate(self):
|
|
|
4239 |
return
|
|
|
4240 |
|
|
|
4241 |
|
|
|
4242 |
def __repr__(self):
|
|
|
4243 |
L = ['%s=%r' % (key, value)
|
|
|
4244 |
for key, value in self.__dict__.iteritems()]
|
|
|
4245 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4246 |
|
|
|
4247 |
def __eq__(self, other):
|
|
|
4248 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4249 |
|
|
|
4250 |
def __ne__(self, other):
|
|
|
4251 |
return not (self == other)
|
|
|
4252 |
|
| 4369 |
rajveer |
4253 |
class TimeoutSummary:
|
|
|
4254 |
"""
|
|
|
4255 |
Attributes:
|
|
|
4256 |
- poRaised
|
|
|
4257 |
- poEstimate
|
|
|
4258 |
- reversalInitiated
|
|
|
4259 |
- reversalEstimate
|
|
|
4260 |
"""
|
|
|
4261 |
|
|
|
4262 |
thrift_spec = (
|
|
|
4263 |
None, # 0
|
|
|
4264 |
(1, TType.I32, 'poRaised', None, None, ), # 1
|
|
|
4265 |
(2, TType.I32, 'poEstimate', None, None, ), # 2
|
|
|
4266 |
(3, TType.I32, 'reversalInitiated', None, None, ), # 3
|
|
|
4267 |
(4, TType.I32, 'reversalEstimate', None, None, ), # 4
|
|
|
4268 |
)
|
|
|
4269 |
|
|
|
4270 |
def __init__(self, poRaised=None, poEstimate=None, reversalInitiated=None, reversalEstimate=None,):
|
|
|
4271 |
self.poRaised = poRaised
|
|
|
4272 |
self.poEstimate = poEstimate
|
|
|
4273 |
self.reversalInitiated = reversalInitiated
|
|
|
4274 |
self.reversalEstimate = reversalEstimate
|
|
|
4275 |
|
|
|
4276 |
def read(self, iprot):
|
|
|
4277 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4278 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4279 |
return
|
|
|
4280 |
iprot.readStructBegin()
|
|
|
4281 |
while True:
|
|
|
4282 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4283 |
if ftype == TType.STOP:
|
|
|
4284 |
break
|
|
|
4285 |
if fid == 1:
|
|
|
4286 |
if ftype == TType.I32:
|
|
|
4287 |
self.poRaised = iprot.readI32();
|
|
|
4288 |
else:
|
|
|
4289 |
iprot.skip(ftype)
|
|
|
4290 |
elif fid == 2:
|
|
|
4291 |
if ftype == TType.I32:
|
|
|
4292 |
self.poEstimate = iprot.readI32();
|
|
|
4293 |
else:
|
|
|
4294 |
iprot.skip(ftype)
|
|
|
4295 |
elif fid == 3:
|
|
|
4296 |
if ftype == TType.I32:
|
|
|
4297 |
self.reversalInitiated = iprot.readI32();
|
|
|
4298 |
else:
|
|
|
4299 |
iprot.skip(ftype)
|
|
|
4300 |
elif fid == 4:
|
|
|
4301 |
if ftype == TType.I32:
|
|
|
4302 |
self.reversalEstimate = iprot.readI32();
|
|
|
4303 |
else:
|
|
|
4304 |
iprot.skip(ftype)
|
|
|
4305 |
else:
|
|
|
4306 |
iprot.skip(ftype)
|
|
|
4307 |
iprot.readFieldEnd()
|
|
|
4308 |
iprot.readStructEnd()
|
|
|
4309 |
|
|
|
4310 |
def write(self, oprot):
|
|
|
4311 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4312 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4313 |
return
|
|
|
4314 |
oprot.writeStructBegin('TimeoutSummary')
|
|
|
4315 |
if self.poRaised is not None:
|
|
|
4316 |
oprot.writeFieldBegin('poRaised', TType.I32, 1)
|
|
|
4317 |
oprot.writeI32(self.poRaised)
|
|
|
4318 |
oprot.writeFieldEnd()
|
|
|
4319 |
if self.poEstimate is not None:
|
|
|
4320 |
oprot.writeFieldBegin('poEstimate', TType.I32, 2)
|
|
|
4321 |
oprot.writeI32(self.poEstimate)
|
|
|
4322 |
oprot.writeFieldEnd()
|
|
|
4323 |
if self.reversalInitiated is not None:
|
|
|
4324 |
oprot.writeFieldBegin('reversalInitiated', TType.I32, 3)
|
|
|
4325 |
oprot.writeI32(self.reversalInitiated)
|
|
|
4326 |
oprot.writeFieldEnd()
|
|
|
4327 |
if self.reversalEstimate is not None:
|
|
|
4328 |
oprot.writeFieldBegin('reversalEstimate', TType.I32, 4)
|
|
|
4329 |
oprot.writeI32(self.reversalEstimate)
|
|
|
4330 |
oprot.writeFieldEnd()
|
|
|
4331 |
oprot.writeFieldStop()
|
|
|
4332 |
oprot.writeStructEnd()
|
|
|
4333 |
|
|
|
4334 |
def validate(self):
|
|
|
4335 |
return
|
|
|
4336 |
|
|
|
4337 |
|
|
|
4338 |
def __repr__(self):
|
|
|
4339 |
L = ['%s=%r' % (key, value)
|
|
|
4340 |
for key, value in self.__dict__.iteritems()]
|
|
|
4341 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4342 |
|
|
|
4343 |
def __eq__(self, other):
|
|
|
4344 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4345 |
|
|
|
4346 |
def __ne__(self, other):
|
|
|
4347 |
return not (self == other)
|
|
|
4348 |
|
| 5447 |
anupam.sin |
4349 |
class CODVerificationAgent:
|
|
|
4350 |
"""
|
|
|
4351 |
Attributes:
|
|
|
4352 |
- orderId
|
|
|
4353 |
- agentEmailId
|
|
|
4354 |
"""
|
|
|
4355 |
|
|
|
4356 |
thrift_spec = (
|
|
|
4357 |
None, # 0
|
|
|
4358 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
|
|
4359 |
(2, TType.STRING, 'agentEmailId', None, None, ), # 2
|
|
|
4360 |
)
|
|
|
4361 |
|
|
|
4362 |
def __init__(self, orderId=None, agentEmailId=None,):
|
|
|
4363 |
self.orderId = orderId
|
|
|
4364 |
self.agentEmailId = agentEmailId
|
|
|
4365 |
|
|
|
4366 |
def read(self, iprot):
|
|
|
4367 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4368 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4369 |
return
|
|
|
4370 |
iprot.readStructBegin()
|
|
|
4371 |
while True:
|
|
|
4372 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4373 |
if ftype == TType.STOP:
|
|
|
4374 |
break
|
|
|
4375 |
if fid == 1:
|
|
|
4376 |
if ftype == TType.I64:
|
|
|
4377 |
self.orderId = iprot.readI64();
|
|
|
4378 |
else:
|
|
|
4379 |
iprot.skip(ftype)
|
|
|
4380 |
elif fid == 2:
|
|
|
4381 |
if ftype == TType.STRING:
|
|
|
4382 |
self.agentEmailId = iprot.readString();
|
|
|
4383 |
else:
|
|
|
4384 |
iprot.skip(ftype)
|
|
|
4385 |
else:
|
|
|
4386 |
iprot.skip(ftype)
|
|
|
4387 |
iprot.readFieldEnd()
|
|
|
4388 |
iprot.readStructEnd()
|
|
|
4389 |
|
|
|
4390 |
def write(self, oprot):
|
|
|
4391 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4392 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4393 |
return
|
|
|
4394 |
oprot.writeStructBegin('CODVerificationAgent')
|
|
|
4395 |
if self.orderId is not None:
|
|
|
4396 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
4397 |
oprot.writeI64(self.orderId)
|
|
|
4398 |
oprot.writeFieldEnd()
|
|
|
4399 |
if self.agentEmailId is not None:
|
|
|
4400 |
oprot.writeFieldBegin('agentEmailId', TType.STRING, 2)
|
|
|
4401 |
oprot.writeString(self.agentEmailId)
|
|
|
4402 |
oprot.writeFieldEnd()
|
|
|
4403 |
oprot.writeFieldStop()
|
|
|
4404 |
oprot.writeStructEnd()
|
|
|
4405 |
|
|
|
4406 |
def validate(self):
|
|
|
4407 |
return
|
|
|
4408 |
|
|
|
4409 |
|
|
|
4410 |
def __repr__(self):
|
|
|
4411 |
L = ['%s=%r' % (key, value)
|
|
|
4412 |
for key, value in self.__dict__.iteritems()]
|
|
|
4413 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4414 |
|
|
|
4415 |
def __eq__(self, other):
|
|
|
4416 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4417 |
|
|
|
4418 |
def __ne__(self, other):
|
|
|
4419 |
return not (self == other)
|
|
|
4420 |
|
| 6000 |
mandeep.dh |
4421 |
class RechargeOrder:
|
|
|
4422 |
"""
|
|
|
4423 |
Attributes:
|
|
|
4424 |
- id
|
| 6031 |
rajveer |
4425 |
- displayId
|
|
|
4426 |
- totalAmount
|
|
|
4427 |
- walletAmount
|
| 6000 |
mandeep.dh |
4428 |
- transactionId
|
|
|
4429 |
- invoiceNumber
|
|
|
4430 |
- orderType
|
|
|
4431 |
- operatorId
|
|
|
4432 |
- rechargeType
|
| 6031 |
rajveer |
4433 |
- status
|
| 6000 |
mandeep.dh |
4434 |
- deviceNumber
|
| 6031 |
rajveer |
4435 |
- userId
|
|
|
4436 |
- userEmailId
|
| 6000 |
mandeep.dh |
4437 |
- creationTimestamp
|
| 6048 |
rajveer |
4438 |
- spiceTID
|
|
|
4439 |
- responseTimestamp
|
| 6094 |
rajveer |
4440 |
- description
|
| 6159 |
rajveer |
4441 |
- plan
|
| 6433 |
anupam.sin |
4442 |
- couponCode
|
|
|
4443 |
- couponAmount
|
| 6515 |
anupam.sin |
4444 |
- refundTimestamp
|
| 6591 |
anupam.sin |
4445 |
- ipAddress
|
| 6000 |
mandeep.dh |
4446 |
"""
|
|
|
4447 |
|
|
|
4448 |
thrift_spec = (
|
|
|
4449 |
None, # 0
|
| 6031 |
rajveer |
4450 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
4451 |
(2, TType.STRING, 'displayId', None, None, ), # 2
|
|
|
4452 |
(3, TType.I64, 'totalAmount', None, None, ), # 3
|
|
|
4453 |
(4, TType.I64, 'walletAmount', None, None, ), # 4
|
|
|
4454 |
(5, TType.I64, 'transactionId', None, None, ), # 5
|
| 6077 |
anupam.sin |
4455 |
(6, TType.I64, 'invoiceNumber', None, None, ), # 6
|
| 6031 |
rajveer |
4456 |
(7, TType.I32, 'orderType', None, None, ), # 7
|
|
|
4457 |
(8, TType.I64, 'operatorId', None, None, ), # 8
|
|
|
4458 |
(9, TType.I32, 'rechargeType', None, None, ), # 9
|
|
|
4459 |
(10, TType.I32, 'status', None, None, ), # 10
|
|
|
4460 |
(11, TType.STRING, 'deviceNumber', None, None, ), # 11
|
|
|
4461 |
(12, TType.I64, 'userId', None, None, ), # 12
|
|
|
4462 |
(13, TType.STRING, 'userEmailId', None, None, ), # 13
|
|
|
4463 |
(14, TType.I64, 'creationTimestamp', None, None, ), # 14
|
| 6048 |
rajveer |
4464 |
(15, TType.STRING, 'spiceTID', None, None, ), # 15
|
|
|
4465 |
(16, TType.I64, 'responseTimestamp', None, None, ), # 16
|
| 6094 |
rajveer |
4466 |
(17, TType.STRING, 'description', None, None, ), # 17
|
| 6159 |
rajveer |
4467 |
(18, TType.STRING, 'plan', None, None, ), # 18
|
| 6433 |
anupam.sin |
4468 |
(19, TType.STRING, 'couponCode', None, None, ), # 19
|
|
|
4469 |
(20, TType.I64, 'couponAmount', None, None, ), # 20
|
| 6515 |
anupam.sin |
4470 |
(21, TType.I64, 'refundTimestamp', None, None, ), # 21
|
| 6591 |
anupam.sin |
4471 |
(22, TType.STRING, 'ipAddress', None, None, ), # 22
|
| 6000 |
mandeep.dh |
4472 |
)
|
|
|
4473 |
|
| 6591 |
anupam.sin |
4474 |
def __init__(self, id=None, displayId=None, totalAmount=None, walletAmount=None, transactionId=None, invoiceNumber=None, orderType=None, operatorId=None, rechargeType=None, status=None, deviceNumber=None, userId=None, userEmailId=None, creationTimestamp=None, spiceTID=None, responseTimestamp=None, description=None, plan=None, couponCode=None, couponAmount=None, refundTimestamp=None, ipAddress=None,):
|
| 6000 |
mandeep.dh |
4475 |
self.id = id
|
| 6031 |
rajveer |
4476 |
self.displayId = displayId
|
|
|
4477 |
self.totalAmount = totalAmount
|
|
|
4478 |
self.walletAmount = walletAmount
|
| 6000 |
mandeep.dh |
4479 |
self.transactionId = transactionId
|
|
|
4480 |
self.invoiceNumber = invoiceNumber
|
|
|
4481 |
self.orderType = orderType
|
|
|
4482 |
self.operatorId = operatorId
|
|
|
4483 |
self.rechargeType = rechargeType
|
| 6031 |
rajveer |
4484 |
self.status = status
|
| 6000 |
mandeep.dh |
4485 |
self.deviceNumber = deviceNumber
|
| 6031 |
rajveer |
4486 |
self.userId = userId
|
|
|
4487 |
self.userEmailId = userEmailId
|
| 6000 |
mandeep.dh |
4488 |
self.creationTimestamp = creationTimestamp
|
| 6048 |
rajveer |
4489 |
self.spiceTID = spiceTID
|
|
|
4490 |
self.responseTimestamp = responseTimestamp
|
| 6094 |
rajveer |
4491 |
self.description = description
|
| 6159 |
rajveer |
4492 |
self.plan = plan
|
| 6433 |
anupam.sin |
4493 |
self.couponCode = couponCode
|
|
|
4494 |
self.couponAmount = couponAmount
|
| 6515 |
anupam.sin |
4495 |
self.refundTimestamp = refundTimestamp
|
| 6591 |
anupam.sin |
4496 |
self.ipAddress = ipAddress
|
| 6000 |
mandeep.dh |
4497 |
|
|
|
4498 |
def read(self, iprot):
|
|
|
4499 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4500 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4501 |
return
|
|
|
4502 |
iprot.readStructBegin()
|
|
|
4503 |
while True:
|
|
|
4504 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4505 |
if ftype == TType.STOP:
|
|
|
4506 |
break
|
|
|
4507 |
if fid == 1:
|
| 6031 |
rajveer |
4508 |
if ftype == TType.I64:
|
|
|
4509 |
self.id = iprot.readI64();
|
| 6000 |
mandeep.dh |
4510 |
else:
|
|
|
4511 |
iprot.skip(ftype)
|
|
|
4512 |
elif fid == 2:
|
| 6031 |
rajveer |
4513 |
if ftype == TType.STRING:
|
|
|
4514 |
self.displayId = iprot.readString();
|
| 6000 |
mandeep.dh |
4515 |
else:
|
|
|
4516 |
iprot.skip(ftype)
|
|
|
4517 |
elif fid == 3:
|
|
|
4518 |
if ftype == TType.I64:
|
| 6031 |
rajveer |
4519 |
self.totalAmount = iprot.readI64();
|
|
|
4520 |
else:
|
|
|
4521 |
iprot.skip(ftype)
|
|
|
4522 |
elif fid == 4:
|
|
|
4523 |
if ftype == TType.I64:
|
|
|
4524 |
self.walletAmount = iprot.readI64();
|
|
|
4525 |
else:
|
|
|
4526 |
iprot.skip(ftype)
|
|
|
4527 |
elif fid == 5:
|
|
|
4528 |
if ftype == TType.I64:
|
| 6000 |
mandeep.dh |
4529 |
self.transactionId = iprot.readI64();
|
|
|
4530 |
else:
|
|
|
4531 |
iprot.skip(ftype)
|
| 6031 |
rajveer |
4532 |
elif fid == 6:
|
| 6077 |
anupam.sin |
4533 |
if ftype == TType.I64:
|
|
|
4534 |
self.invoiceNumber = iprot.readI64();
|
| 6000 |
mandeep.dh |
4535 |
else:
|
|
|
4536 |
iprot.skip(ftype)
|
| 6031 |
rajveer |
4537 |
elif fid == 7:
|
| 6000 |
mandeep.dh |
4538 |
if ftype == TType.I32:
|
|
|
4539 |
self.orderType = iprot.readI32();
|
|
|
4540 |
else:
|
|
|
4541 |
iprot.skip(ftype)
|
| 6031 |
rajveer |
4542 |
elif fid == 8:
|
| 6000 |
mandeep.dh |
4543 |
if ftype == TType.I64:
|
|
|
4544 |
self.operatorId = iprot.readI64();
|
|
|
4545 |
else:
|
|
|
4546 |
iprot.skip(ftype)
|
| 6031 |
rajveer |
4547 |
elif fid == 9:
|
| 6000 |
mandeep.dh |
4548 |
if ftype == TType.I32:
|
|
|
4549 |
self.rechargeType = iprot.readI32();
|
|
|
4550 |
else:
|
|
|
4551 |
iprot.skip(ftype)
|
| 6031 |
rajveer |
4552 |
elif fid == 10:
|
| 6000 |
mandeep.dh |
4553 |
if ftype == TType.I32:
|
| 6031 |
rajveer |
4554 |
self.status = iprot.readI32();
|
| 6000 |
mandeep.dh |
4555 |
else:
|
|
|
4556 |
iprot.skip(ftype)
|
| 6031 |
rajveer |
4557 |
elif fid == 11:
|
| 6000 |
mandeep.dh |
4558 |
if ftype == TType.STRING:
|
|
|
4559 |
self.deviceNumber = iprot.readString();
|
|
|
4560 |
else:
|
|
|
4561 |
iprot.skip(ftype)
|
| 6031 |
rajveer |
4562 |
elif fid == 12:
|
| 6000 |
mandeep.dh |
4563 |
if ftype == TType.I64:
|
| 6031 |
rajveer |
4564 |
self.userId = iprot.readI64();
|
| 6000 |
mandeep.dh |
4565 |
else:
|
|
|
4566 |
iprot.skip(ftype)
|
| 6031 |
rajveer |
4567 |
elif fid == 13:
|
|
|
4568 |
if ftype == TType.STRING:
|
|
|
4569 |
self.userEmailId = iprot.readString();
|
| 6000 |
mandeep.dh |
4570 |
else:
|
|
|
4571 |
iprot.skip(ftype)
|
| 6031 |
rajveer |
4572 |
elif fid == 14:
|
| 6000 |
mandeep.dh |
4573 |
if ftype == TType.I64:
|
|
|
4574 |
self.creationTimestamp = iprot.readI64();
|
|
|
4575 |
else:
|
|
|
4576 |
iprot.skip(ftype)
|
| 6048 |
rajveer |
4577 |
elif fid == 15:
|
|
|
4578 |
if ftype == TType.STRING:
|
|
|
4579 |
self.spiceTID = iprot.readString();
|
|
|
4580 |
else:
|
|
|
4581 |
iprot.skip(ftype)
|
|
|
4582 |
elif fid == 16:
|
|
|
4583 |
if ftype == TType.I64:
|
|
|
4584 |
self.responseTimestamp = iprot.readI64();
|
|
|
4585 |
else:
|
|
|
4586 |
iprot.skip(ftype)
|
| 6094 |
rajveer |
4587 |
elif fid == 17:
|
|
|
4588 |
if ftype == TType.STRING:
|
|
|
4589 |
self.description = iprot.readString();
|
|
|
4590 |
else:
|
|
|
4591 |
iprot.skip(ftype)
|
| 6159 |
rajveer |
4592 |
elif fid == 18:
|
|
|
4593 |
if ftype == TType.STRING:
|
|
|
4594 |
self.plan = iprot.readString();
|
|
|
4595 |
else:
|
|
|
4596 |
iprot.skip(ftype)
|
| 6433 |
anupam.sin |
4597 |
elif fid == 19:
|
|
|
4598 |
if ftype == TType.STRING:
|
|
|
4599 |
self.couponCode = iprot.readString();
|
|
|
4600 |
else:
|
|
|
4601 |
iprot.skip(ftype)
|
|
|
4602 |
elif fid == 20:
|
|
|
4603 |
if ftype == TType.I64:
|
|
|
4604 |
self.couponAmount = iprot.readI64();
|
|
|
4605 |
else:
|
|
|
4606 |
iprot.skip(ftype)
|
| 6515 |
anupam.sin |
4607 |
elif fid == 21:
|
|
|
4608 |
if ftype == TType.I64:
|
|
|
4609 |
self.refundTimestamp = iprot.readI64();
|
|
|
4610 |
else:
|
|
|
4611 |
iprot.skip(ftype)
|
| 6591 |
anupam.sin |
4612 |
elif fid == 22:
|
|
|
4613 |
if ftype == TType.STRING:
|
|
|
4614 |
self.ipAddress = iprot.readString();
|
|
|
4615 |
else:
|
|
|
4616 |
iprot.skip(ftype)
|
| 6000 |
mandeep.dh |
4617 |
else:
|
|
|
4618 |
iprot.skip(ftype)
|
|
|
4619 |
iprot.readFieldEnd()
|
|
|
4620 |
iprot.readStructEnd()
|
|
|
4621 |
|
|
|
4622 |
def write(self, oprot):
|
|
|
4623 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4624 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4625 |
return
|
|
|
4626 |
oprot.writeStructBegin('RechargeOrder')
|
|
|
4627 |
if self.id is not None:
|
| 6031 |
rajveer |
4628 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
4629 |
oprot.writeI64(self.id)
|
| 6000 |
mandeep.dh |
4630 |
oprot.writeFieldEnd()
|
| 6031 |
rajveer |
4631 |
if self.displayId is not None:
|
|
|
4632 |
oprot.writeFieldBegin('displayId', TType.STRING, 2)
|
|
|
4633 |
oprot.writeString(self.displayId)
|
| 6000 |
mandeep.dh |
4634 |
oprot.writeFieldEnd()
|
| 6031 |
rajveer |
4635 |
if self.totalAmount is not None:
|
|
|
4636 |
oprot.writeFieldBegin('totalAmount', TType.I64, 3)
|
|
|
4637 |
oprot.writeI64(self.totalAmount)
|
|
|
4638 |
oprot.writeFieldEnd()
|
|
|
4639 |
if self.walletAmount is not None:
|
|
|
4640 |
oprot.writeFieldBegin('walletAmount', TType.I64, 4)
|
|
|
4641 |
oprot.writeI64(self.walletAmount)
|
|
|
4642 |
oprot.writeFieldEnd()
|
| 6000 |
mandeep.dh |
4643 |
if self.transactionId is not None:
|
| 6031 |
rajveer |
4644 |
oprot.writeFieldBegin('transactionId', TType.I64, 5)
|
| 6000 |
mandeep.dh |
4645 |
oprot.writeI64(self.transactionId)
|
|
|
4646 |
oprot.writeFieldEnd()
|
|
|
4647 |
if self.invoiceNumber is not None:
|
| 6077 |
anupam.sin |
4648 |
oprot.writeFieldBegin('invoiceNumber', TType.I64, 6)
|
|
|
4649 |
oprot.writeI64(self.invoiceNumber)
|
| 6000 |
mandeep.dh |
4650 |
oprot.writeFieldEnd()
|
|
|
4651 |
if self.orderType is not None:
|
| 6031 |
rajveer |
4652 |
oprot.writeFieldBegin('orderType', TType.I32, 7)
|
| 6000 |
mandeep.dh |
4653 |
oprot.writeI32(self.orderType)
|
|
|
4654 |
oprot.writeFieldEnd()
|
|
|
4655 |
if self.operatorId is not None:
|
| 6031 |
rajveer |
4656 |
oprot.writeFieldBegin('operatorId', TType.I64, 8)
|
| 6000 |
mandeep.dh |
4657 |
oprot.writeI64(self.operatorId)
|
|
|
4658 |
oprot.writeFieldEnd()
|
|
|
4659 |
if self.rechargeType is not None:
|
| 6031 |
rajveer |
4660 |
oprot.writeFieldBegin('rechargeType', TType.I32, 9)
|
| 6000 |
mandeep.dh |
4661 |
oprot.writeI32(self.rechargeType)
|
|
|
4662 |
oprot.writeFieldEnd()
|
| 6031 |
rajveer |
4663 |
if self.status is not None:
|
|
|
4664 |
oprot.writeFieldBegin('status', TType.I32, 10)
|
|
|
4665 |
oprot.writeI32(self.status)
|
| 6000 |
mandeep.dh |
4666 |
oprot.writeFieldEnd()
|
|
|
4667 |
if self.deviceNumber is not None:
|
| 6031 |
rajveer |
4668 |
oprot.writeFieldBegin('deviceNumber', TType.STRING, 11)
|
| 6000 |
mandeep.dh |
4669 |
oprot.writeString(self.deviceNumber)
|
|
|
4670 |
oprot.writeFieldEnd()
|
| 6031 |
rajveer |
4671 |
if self.userId is not None:
|
|
|
4672 |
oprot.writeFieldBegin('userId', TType.I64, 12)
|
|
|
4673 |
oprot.writeI64(self.userId)
|
| 6000 |
mandeep.dh |
4674 |
oprot.writeFieldEnd()
|
| 6031 |
rajveer |
4675 |
if self.userEmailId is not None:
|
|
|
4676 |
oprot.writeFieldBegin('userEmailId', TType.STRING, 13)
|
|
|
4677 |
oprot.writeString(self.userEmailId)
|
| 6000 |
mandeep.dh |
4678 |
oprot.writeFieldEnd()
|
|
|
4679 |
if self.creationTimestamp is not None:
|
| 6031 |
rajveer |
4680 |
oprot.writeFieldBegin('creationTimestamp', TType.I64, 14)
|
| 6000 |
mandeep.dh |
4681 |
oprot.writeI64(self.creationTimestamp)
|
|
|
4682 |
oprot.writeFieldEnd()
|
| 6048 |
rajveer |
4683 |
if self.spiceTID is not None:
|
|
|
4684 |
oprot.writeFieldBegin('spiceTID', TType.STRING, 15)
|
|
|
4685 |
oprot.writeString(self.spiceTID)
|
|
|
4686 |
oprot.writeFieldEnd()
|
|
|
4687 |
if self.responseTimestamp is not None:
|
|
|
4688 |
oprot.writeFieldBegin('responseTimestamp', TType.I64, 16)
|
|
|
4689 |
oprot.writeI64(self.responseTimestamp)
|
|
|
4690 |
oprot.writeFieldEnd()
|
| 6094 |
rajveer |
4691 |
if self.description is not None:
|
|
|
4692 |
oprot.writeFieldBegin('description', TType.STRING, 17)
|
|
|
4693 |
oprot.writeString(self.description)
|
|
|
4694 |
oprot.writeFieldEnd()
|
| 6159 |
rajveer |
4695 |
if self.plan is not None:
|
|
|
4696 |
oprot.writeFieldBegin('plan', TType.STRING, 18)
|
|
|
4697 |
oprot.writeString(self.plan)
|
|
|
4698 |
oprot.writeFieldEnd()
|
| 6433 |
anupam.sin |
4699 |
if self.couponCode is not None:
|
|
|
4700 |
oprot.writeFieldBegin('couponCode', TType.STRING, 19)
|
|
|
4701 |
oprot.writeString(self.couponCode)
|
|
|
4702 |
oprot.writeFieldEnd()
|
|
|
4703 |
if self.couponAmount is not None:
|
|
|
4704 |
oprot.writeFieldBegin('couponAmount', TType.I64, 20)
|
|
|
4705 |
oprot.writeI64(self.couponAmount)
|
|
|
4706 |
oprot.writeFieldEnd()
|
| 6515 |
anupam.sin |
4707 |
if self.refundTimestamp is not None:
|
|
|
4708 |
oprot.writeFieldBegin('refundTimestamp', TType.I64, 21)
|
|
|
4709 |
oprot.writeI64(self.refundTimestamp)
|
|
|
4710 |
oprot.writeFieldEnd()
|
| 6591 |
anupam.sin |
4711 |
if self.ipAddress is not None:
|
|
|
4712 |
oprot.writeFieldBegin('ipAddress', TType.STRING, 22)
|
|
|
4713 |
oprot.writeString(self.ipAddress)
|
|
|
4714 |
oprot.writeFieldEnd()
|
| 6000 |
mandeep.dh |
4715 |
oprot.writeFieldStop()
|
|
|
4716 |
oprot.writeStructEnd()
|
|
|
4717 |
|
|
|
4718 |
def validate(self):
|
|
|
4719 |
return
|
|
|
4720 |
|
|
|
4721 |
|
|
|
4722 |
def __repr__(self):
|
|
|
4723 |
L = ['%s=%r' % (key, value)
|
|
|
4724 |
for key, value in self.__dict__.iteritems()]
|
|
|
4725 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4726 |
|
|
|
4727 |
def __eq__(self, other):
|
|
|
4728 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4729 |
|
|
|
4730 |
def __ne__(self, other):
|
|
|
4731 |
return not (self == other)
|
|
|
4732 |
|
| 6189 |
rajveer |
4733 |
class RechargeStatistics:
|
|
|
4734 |
"""
|
|
|
4735 |
Attributes:
|
|
|
4736 |
- statusCounts
|
|
|
4737 |
- operatorCounts
|
|
|
4738 |
- currentOrders
|
|
|
4739 |
- amounts
|
|
|
4740 |
"""
|
|
|
4741 |
|
|
|
4742 |
thrift_spec = (
|
|
|
4743 |
None, # 0
|
| 6190 |
rajveer |
4744 |
(1, TType.MAP, 'statusCounts', (TType.I64,None,TType.I64,None), None, ), # 1
|
|
|
4745 |
(2, TType.MAP, 'operatorCounts', (TType.I64,None,TType.I64,None), None, ), # 2
|
| 6189 |
rajveer |
4746 |
(3, TType.MAP, 'currentOrders', (TType.STRING,None,TType.LIST,(TType.STRUCT,(RechargeOrder, RechargeOrder.thrift_spec))), None, ), # 3
|
|
|
4747 |
(4, TType.MAP, 'amounts', (TType.STRING,None,TType.I64,None), None, ), # 4
|
|
|
4748 |
)
|
|
|
4749 |
|
|
|
4750 |
def __init__(self, statusCounts=None, operatorCounts=None, currentOrders=None, amounts=None,):
|
|
|
4751 |
self.statusCounts = statusCounts
|
|
|
4752 |
self.operatorCounts = operatorCounts
|
|
|
4753 |
self.currentOrders = currentOrders
|
|
|
4754 |
self.amounts = amounts
|
|
|
4755 |
|
|
|
4756 |
def read(self, iprot):
|
|
|
4757 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4758 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4759 |
return
|
|
|
4760 |
iprot.readStructBegin()
|
|
|
4761 |
while True:
|
|
|
4762 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4763 |
if ftype == TType.STOP:
|
|
|
4764 |
break
|
|
|
4765 |
if fid == 1:
|
|
|
4766 |
if ftype == TType.MAP:
|
|
|
4767 |
self.statusCounts = {}
|
|
|
4768 |
(_ktype15, _vtype16, _size14 ) = iprot.readMapBegin()
|
|
|
4769 |
for _i18 in xrange(_size14):
|
| 6190 |
rajveer |
4770 |
_key19 = iprot.readI64();
|
| 6189 |
rajveer |
4771 |
_val20 = iprot.readI64();
|
|
|
4772 |
self.statusCounts[_key19] = _val20
|
|
|
4773 |
iprot.readMapEnd()
|
|
|
4774 |
else:
|
|
|
4775 |
iprot.skip(ftype)
|
|
|
4776 |
elif fid == 2:
|
|
|
4777 |
if ftype == TType.MAP:
|
|
|
4778 |
self.operatorCounts = {}
|
|
|
4779 |
(_ktype22, _vtype23, _size21 ) = iprot.readMapBegin()
|
|
|
4780 |
for _i25 in xrange(_size21):
|
| 6190 |
rajveer |
4781 |
_key26 = iprot.readI64();
|
| 6189 |
rajveer |
4782 |
_val27 = iprot.readI64();
|
|
|
4783 |
self.operatorCounts[_key26] = _val27
|
|
|
4784 |
iprot.readMapEnd()
|
|
|
4785 |
else:
|
|
|
4786 |
iprot.skip(ftype)
|
|
|
4787 |
elif fid == 3:
|
|
|
4788 |
if ftype == TType.MAP:
|
|
|
4789 |
self.currentOrders = {}
|
|
|
4790 |
(_ktype29, _vtype30, _size28 ) = iprot.readMapBegin()
|
|
|
4791 |
for _i32 in xrange(_size28):
|
|
|
4792 |
_key33 = iprot.readString();
|
|
|
4793 |
_val34 = []
|
|
|
4794 |
(_etype38, _size35) = iprot.readListBegin()
|
|
|
4795 |
for _i39 in xrange(_size35):
|
|
|
4796 |
_elem40 = RechargeOrder()
|
|
|
4797 |
_elem40.read(iprot)
|
|
|
4798 |
_val34.append(_elem40)
|
|
|
4799 |
iprot.readListEnd()
|
|
|
4800 |
self.currentOrders[_key33] = _val34
|
|
|
4801 |
iprot.readMapEnd()
|
|
|
4802 |
else:
|
|
|
4803 |
iprot.skip(ftype)
|
|
|
4804 |
elif fid == 4:
|
|
|
4805 |
if ftype == TType.MAP:
|
|
|
4806 |
self.amounts = {}
|
|
|
4807 |
(_ktype42, _vtype43, _size41 ) = iprot.readMapBegin()
|
|
|
4808 |
for _i45 in xrange(_size41):
|
|
|
4809 |
_key46 = iprot.readString();
|
|
|
4810 |
_val47 = iprot.readI64();
|
|
|
4811 |
self.amounts[_key46] = _val47
|
|
|
4812 |
iprot.readMapEnd()
|
|
|
4813 |
else:
|
|
|
4814 |
iprot.skip(ftype)
|
|
|
4815 |
else:
|
|
|
4816 |
iprot.skip(ftype)
|
|
|
4817 |
iprot.readFieldEnd()
|
|
|
4818 |
iprot.readStructEnd()
|
|
|
4819 |
|
|
|
4820 |
def write(self, oprot):
|
|
|
4821 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4822 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4823 |
return
|
|
|
4824 |
oprot.writeStructBegin('RechargeStatistics')
|
|
|
4825 |
if self.statusCounts is not None:
|
|
|
4826 |
oprot.writeFieldBegin('statusCounts', TType.MAP, 1)
|
| 6190 |
rajveer |
4827 |
oprot.writeMapBegin(TType.I64, TType.I64, len(self.statusCounts))
|
| 6189 |
rajveer |
4828 |
for kiter48,viter49 in self.statusCounts.items():
|
| 6190 |
rajveer |
4829 |
oprot.writeI64(kiter48)
|
| 6189 |
rajveer |
4830 |
oprot.writeI64(viter49)
|
|
|
4831 |
oprot.writeMapEnd()
|
|
|
4832 |
oprot.writeFieldEnd()
|
|
|
4833 |
if self.operatorCounts is not None:
|
|
|
4834 |
oprot.writeFieldBegin('operatorCounts', TType.MAP, 2)
|
| 6190 |
rajveer |
4835 |
oprot.writeMapBegin(TType.I64, TType.I64, len(self.operatorCounts))
|
| 6189 |
rajveer |
4836 |
for kiter50,viter51 in self.operatorCounts.items():
|
| 6190 |
rajveer |
4837 |
oprot.writeI64(kiter50)
|
| 6189 |
rajveer |
4838 |
oprot.writeI64(viter51)
|
|
|
4839 |
oprot.writeMapEnd()
|
|
|
4840 |
oprot.writeFieldEnd()
|
|
|
4841 |
if self.currentOrders is not None:
|
|
|
4842 |
oprot.writeFieldBegin('currentOrders', TType.MAP, 3)
|
|
|
4843 |
oprot.writeMapBegin(TType.STRING, TType.LIST, len(self.currentOrders))
|
|
|
4844 |
for kiter52,viter53 in self.currentOrders.items():
|
|
|
4845 |
oprot.writeString(kiter52)
|
|
|
4846 |
oprot.writeListBegin(TType.STRUCT, len(viter53))
|
|
|
4847 |
for iter54 in viter53:
|
|
|
4848 |
iter54.write(oprot)
|
|
|
4849 |
oprot.writeListEnd()
|
|
|
4850 |
oprot.writeMapEnd()
|
|
|
4851 |
oprot.writeFieldEnd()
|
|
|
4852 |
if self.amounts is not None:
|
|
|
4853 |
oprot.writeFieldBegin('amounts', TType.MAP, 4)
|
|
|
4854 |
oprot.writeMapBegin(TType.STRING, TType.I64, len(self.amounts))
|
|
|
4855 |
for kiter55,viter56 in self.amounts.items():
|
|
|
4856 |
oprot.writeString(kiter55)
|
|
|
4857 |
oprot.writeI64(viter56)
|
|
|
4858 |
oprot.writeMapEnd()
|
|
|
4859 |
oprot.writeFieldEnd()
|
|
|
4860 |
oprot.writeFieldStop()
|
|
|
4861 |
oprot.writeStructEnd()
|
|
|
4862 |
|
|
|
4863 |
def validate(self):
|
|
|
4864 |
return
|
|
|
4865 |
|
|
|
4866 |
|
|
|
4867 |
def __repr__(self):
|
|
|
4868 |
L = ['%s=%r' % (key, value)
|
|
|
4869 |
for key, value in self.__dict__.iteritems()]
|
|
|
4870 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4871 |
|
|
|
4872 |
def __eq__(self, other):
|
|
|
4873 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4874 |
|
|
|
4875 |
def __ne__(self, other):
|
|
|
4876 |
return not (self == other)
|
|
|
4877 |
|
| 6159 |
rajveer |
4878 |
class RechargePlan:
|
|
|
4879 |
"""
|
|
|
4880 |
Attributes:
|
|
|
4881 |
- operatorId
|
|
|
4882 |
- name
|
|
|
4883 |
- displayName
|
|
|
4884 |
- description
|
|
|
4885 |
"""
|
|
|
4886 |
|
|
|
4887 |
thrift_spec = (
|
|
|
4888 |
None, # 0
|
|
|
4889 |
(1, TType.I64, 'operatorId', None, None, ), # 1
|
|
|
4890 |
(2, TType.STRING, 'name', None, None, ), # 2
|
|
|
4891 |
(3, TType.STRING, 'displayName', None, None, ), # 3
|
|
|
4892 |
(4, TType.STRING, 'description', None, None, ), # 4
|
|
|
4893 |
)
|
|
|
4894 |
|
|
|
4895 |
def __init__(self, operatorId=None, name=None, displayName=None, description=None,):
|
|
|
4896 |
self.operatorId = operatorId
|
|
|
4897 |
self.name = name
|
|
|
4898 |
self.displayName = displayName
|
|
|
4899 |
self.description = description
|
|
|
4900 |
|
|
|
4901 |
def read(self, iprot):
|
|
|
4902 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4903 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
4904 |
return
|
|
|
4905 |
iprot.readStructBegin()
|
|
|
4906 |
while True:
|
|
|
4907 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
4908 |
if ftype == TType.STOP:
|
|
|
4909 |
break
|
|
|
4910 |
if fid == 1:
|
|
|
4911 |
if ftype == TType.I64:
|
|
|
4912 |
self.operatorId = iprot.readI64();
|
|
|
4913 |
else:
|
|
|
4914 |
iprot.skip(ftype)
|
|
|
4915 |
elif fid == 2:
|
|
|
4916 |
if ftype == TType.STRING:
|
|
|
4917 |
self.name = iprot.readString();
|
|
|
4918 |
else:
|
|
|
4919 |
iprot.skip(ftype)
|
|
|
4920 |
elif fid == 3:
|
|
|
4921 |
if ftype == TType.STRING:
|
|
|
4922 |
self.displayName = iprot.readString();
|
|
|
4923 |
else:
|
|
|
4924 |
iprot.skip(ftype)
|
|
|
4925 |
elif fid == 4:
|
|
|
4926 |
if ftype == TType.STRING:
|
|
|
4927 |
self.description = iprot.readString();
|
|
|
4928 |
else:
|
|
|
4929 |
iprot.skip(ftype)
|
|
|
4930 |
else:
|
|
|
4931 |
iprot.skip(ftype)
|
|
|
4932 |
iprot.readFieldEnd()
|
|
|
4933 |
iprot.readStructEnd()
|
|
|
4934 |
|
|
|
4935 |
def write(self, oprot):
|
|
|
4936 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
4937 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
4938 |
return
|
|
|
4939 |
oprot.writeStructBegin('RechargePlan')
|
|
|
4940 |
if self.operatorId is not None:
|
|
|
4941 |
oprot.writeFieldBegin('operatorId', TType.I64, 1)
|
|
|
4942 |
oprot.writeI64(self.operatorId)
|
|
|
4943 |
oprot.writeFieldEnd()
|
|
|
4944 |
if self.name is not None:
|
|
|
4945 |
oprot.writeFieldBegin('name', TType.STRING, 2)
|
|
|
4946 |
oprot.writeString(self.name)
|
|
|
4947 |
oprot.writeFieldEnd()
|
|
|
4948 |
if self.displayName is not None:
|
|
|
4949 |
oprot.writeFieldBegin('displayName', TType.STRING, 3)
|
|
|
4950 |
oprot.writeString(self.displayName)
|
|
|
4951 |
oprot.writeFieldEnd()
|
|
|
4952 |
if self.description is not None:
|
|
|
4953 |
oprot.writeFieldBegin('description', TType.STRING, 4)
|
|
|
4954 |
oprot.writeString(self.description)
|
|
|
4955 |
oprot.writeFieldEnd()
|
|
|
4956 |
oprot.writeFieldStop()
|
|
|
4957 |
oprot.writeStructEnd()
|
|
|
4958 |
|
|
|
4959 |
def validate(self):
|
|
|
4960 |
return
|
|
|
4961 |
|
|
|
4962 |
|
|
|
4963 |
def __repr__(self):
|
|
|
4964 |
L = ['%s=%r' % (key, value)
|
|
|
4965 |
for key, value in self.__dict__.iteritems()]
|
|
|
4966 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
4967 |
|
|
|
4968 |
def __eq__(self, other):
|
|
|
4969 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
4970 |
|
|
|
4971 |
def __ne__(self, other):
|
|
|
4972 |
return not (self == other)
|
|
|
4973 |
|
| 6289 |
anupam.sin |
4974 |
class RechargeDenomination:
|
|
|
4975 |
"""
|
|
|
4976 |
Attributes:
|
|
|
4977 |
- operatorId
|
|
|
4978 |
- circleId
|
|
|
4979 |
- denominationType
|
|
|
4980 |
- amount
|
|
|
4981 |
- validity
|
|
|
4982 |
- description
|
|
|
4983 |
"""
|
|
|
4984 |
|
|
|
4985 |
thrift_spec = (
|
|
|
4986 |
None, # 0
|
|
|
4987 |
(1, TType.I64, 'operatorId', None, None, ), # 1
|
|
|
4988 |
(2, TType.I64, 'circleId', None, None, ), # 2
|
|
|
4989 |
(3, TType.I32, 'denominationType', None, None, ), # 3
|
|
|
4990 |
(4, TType.I64, 'amount', None, None, ), # 4
|
|
|
4991 |
(5, TType.STRING, 'validity', None, None, ), # 5
|
|
|
4992 |
(6, TType.STRING, 'description', None, None, ), # 6
|
|
|
4993 |
)
|
|
|
4994 |
|
|
|
4995 |
def __init__(self, operatorId=None, circleId=None, denominationType=None, amount=None, validity=None, description=None,):
|
|
|
4996 |
self.operatorId = operatorId
|
|
|
4997 |
self.circleId = circleId
|
|
|
4998 |
self.denominationType = denominationType
|
|
|
4999 |
self.amount = amount
|
|
|
5000 |
self.validity = validity
|
|
|
5001 |
self.description = description
|
|
|
5002 |
|
|
|
5003 |
def read(self, iprot):
|
|
|
5004 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5005 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5006 |
return
|
|
|
5007 |
iprot.readStructBegin()
|
|
|
5008 |
while True:
|
|
|
5009 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5010 |
if ftype == TType.STOP:
|
|
|
5011 |
break
|
|
|
5012 |
if fid == 1:
|
|
|
5013 |
if ftype == TType.I64:
|
|
|
5014 |
self.operatorId = iprot.readI64();
|
|
|
5015 |
else:
|
|
|
5016 |
iprot.skip(ftype)
|
|
|
5017 |
elif fid == 2:
|
|
|
5018 |
if ftype == TType.I64:
|
|
|
5019 |
self.circleId = iprot.readI64();
|
|
|
5020 |
else:
|
|
|
5021 |
iprot.skip(ftype)
|
|
|
5022 |
elif fid == 3:
|
|
|
5023 |
if ftype == TType.I32:
|
|
|
5024 |
self.denominationType = iprot.readI32();
|
|
|
5025 |
else:
|
|
|
5026 |
iprot.skip(ftype)
|
|
|
5027 |
elif fid == 4:
|
|
|
5028 |
if ftype == TType.I64:
|
|
|
5029 |
self.amount = iprot.readI64();
|
|
|
5030 |
else:
|
|
|
5031 |
iprot.skip(ftype)
|
|
|
5032 |
elif fid == 5:
|
|
|
5033 |
if ftype == TType.STRING:
|
|
|
5034 |
self.validity = iprot.readString();
|
|
|
5035 |
else:
|
|
|
5036 |
iprot.skip(ftype)
|
|
|
5037 |
elif fid == 6:
|
|
|
5038 |
if ftype == TType.STRING:
|
|
|
5039 |
self.description = iprot.readString();
|
|
|
5040 |
else:
|
|
|
5041 |
iprot.skip(ftype)
|
|
|
5042 |
else:
|
|
|
5043 |
iprot.skip(ftype)
|
|
|
5044 |
iprot.readFieldEnd()
|
|
|
5045 |
iprot.readStructEnd()
|
|
|
5046 |
|
|
|
5047 |
def write(self, oprot):
|
|
|
5048 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5049 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5050 |
return
|
|
|
5051 |
oprot.writeStructBegin('RechargeDenomination')
|
|
|
5052 |
if self.operatorId is not None:
|
|
|
5053 |
oprot.writeFieldBegin('operatorId', TType.I64, 1)
|
|
|
5054 |
oprot.writeI64(self.operatorId)
|
|
|
5055 |
oprot.writeFieldEnd()
|
|
|
5056 |
if self.circleId is not None:
|
|
|
5057 |
oprot.writeFieldBegin('circleId', TType.I64, 2)
|
|
|
5058 |
oprot.writeI64(self.circleId)
|
|
|
5059 |
oprot.writeFieldEnd()
|
|
|
5060 |
if self.denominationType is not None:
|
|
|
5061 |
oprot.writeFieldBegin('denominationType', TType.I32, 3)
|
|
|
5062 |
oprot.writeI32(self.denominationType)
|
|
|
5063 |
oprot.writeFieldEnd()
|
|
|
5064 |
if self.amount is not None:
|
|
|
5065 |
oprot.writeFieldBegin('amount', TType.I64, 4)
|
|
|
5066 |
oprot.writeI64(self.amount)
|
|
|
5067 |
oprot.writeFieldEnd()
|
|
|
5068 |
if self.validity is not None:
|
|
|
5069 |
oprot.writeFieldBegin('validity', TType.STRING, 5)
|
|
|
5070 |
oprot.writeString(self.validity)
|
|
|
5071 |
oprot.writeFieldEnd()
|
|
|
5072 |
if self.description is not None:
|
|
|
5073 |
oprot.writeFieldBegin('description', TType.STRING, 6)
|
|
|
5074 |
oprot.writeString(self.description)
|
|
|
5075 |
oprot.writeFieldEnd()
|
|
|
5076 |
oprot.writeFieldStop()
|
|
|
5077 |
oprot.writeStructEnd()
|
|
|
5078 |
|
|
|
5079 |
def validate(self):
|
|
|
5080 |
return
|
|
|
5081 |
|
|
|
5082 |
|
|
|
5083 |
def __repr__(self):
|
|
|
5084 |
L = ['%s=%r' % (key, value)
|
|
|
5085 |
for key, value in self.__dict__.iteritems()]
|
|
|
5086 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5087 |
|
|
|
5088 |
def __eq__(self, other):
|
|
|
5089 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5090 |
|
|
|
5091 |
def __ne__(self, other):
|
|
|
5092 |
return not (self == other)
|
|
|
5093 |
|
|
|
5094 |
class DeviceNumberInfo:
|
|
|
5095 |
"""
|
|
|
5096 |
Attributes:
|
|
|
5097 |
- operatorId
|
| 6336 |
anupam.sin |
5098 |
- circleCode
|
| 6310 |
anupam.sin |
5099 |
- operatorName
|
| 6289 |
anupam.sin |
5100 |
"""
|
|
|
5101 |
|
|
|
5102 |
thrift_spec = (
|
|
|
5103 |
None, # 0
|
|
|
5104 |
(1, TType.I64, 'operatorId', None, None, ), # 1
|
| 6336 |
anupam.sin |
5105 |
(2, TType.STRING, 'circleCode', None, None, ), # 2
|
| 6310 |
anupam.sin |
5106 |
(3, TType.STRING, 'operatorName', None, None, ), # 3
|
| 6289 |
anupam.sin |
5107 |
)
|
|
|
5108 |
|
| 6336 |
anupam.sin |
5109 |
def __init__(self, operatorId=None, circleCode=None, operatorName=None,):
|
| 6289 |
anupam.sin |
5110 |
self.operatorId = operatorId
|
| 6336 |
anupam.sin |
5111 |
self.circleCode = circleCode
|
| 6310 |
anupam.sin |
5112 |
self.operatorName = operatorName
|
| 6289 |
anupam.sin |
5113 |
|
|
|
5114 |
def read(self, iprot):
|
|
|
5115 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5116 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5117 |
return
|
|
|
5118 |
iprot.readStructBegin()
|
|
|
5119 |
while True:
|
|
|
5120 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5121 |
if ftype == TType.STOP:
|
|
|
5122 |
break
|
|
|
5123 |
if fid == 1:
|
|
|
5124 |
if ftype == TType.I64:
|
|
|
5125 |
self.operatorId = iprot.readI64();
|
|
|
5126 |
else:
|
|
|
5127 |
iprot.skip(ftype)
|
|
|
5128 |
elif fid == 2:
|
|
|
5129 |
if ftype == TType.STRING:
|
| 6336 |
anupam.sin |
5130 |
self.circleCode = iprot.readString();
|
| 6289 |
anupam.sin |
5131 |
else:
|
|
|
5132 |
iprot.skip(ftype)
|
| 6310 |
anupam.sin |
5133 |
elif fid == 3:
|
|
|
5134 |
if ftype == TType.STRING:
|
|
|
5135 |
self.operatorName = iprot.readString();
|
|
|
5136 |
else:
|
|
|
5137 |
iprot.skip(ftype)
|
| 6289 |
anupam.sin |
5138 |
else:
|
|
|
5139 |
iprot.skip(ftype)
|
|
|
5140 |
iprot.readFieldEnd()
|
|
|
5141 |
iprot.readStructEnd()
|
|
|
5142 |
|
|
|
5143 |
def write(self, oprot):
|
|
|
5144 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5145 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5146 |
return
|
|
|
5147 |
oprot.writeStructBegin('DeviceNumberInfo')
|
|
|
5148 |
if self.operatorId is not None:
|
|
|
5149 |
oprot.writeFieldBegin('operatorId', TType.I64, 1)
|
|
|
5150 |
oprot.writeI64(self.operatorId)
|
|
|
5151 |
oprot.writeFieldEnd()
|
| 6336 |
anupam.sin |
5152 |
if self.circleCode is not None:
|
|
|
5153 |
oprot.writeFieldBegin('circleCode', TType.STRING, 2)
|
|
|
5154 |
oprot.writeString(self.circleCode)
|
| 6289 |
anupam.sin |
5155 |
oprot.writeFieldEnd()
|
| 6310 |
anupam.sin |
5156 |
if self.operatorName is not None:
|
|
|
5157 |
oprot.writeFieldBegin('operatorName', TType.STRING, 3)
|
|
|
5158 |
oprot.writeString(self.operatorName)
|
|
|
5159 |
oprot.writeFieldEnd()
|
| 6289 |
anupam.sin |
5160 |
oprot.writeFieldStop()
|
|
|
5161 |
oprot.writeStructEnd()
|
|
|
5162 |
|
|
|
5163 |
def validate(self):
|
|
|
5164 |
return
|
|
|
5165 |
|
|
|
5166 |
|
|
|
5167 |
def __repr__(self):
|
|
|
5168 |
L = ['%s=%r' % (key, value)
|
|
|
5169 |
for key, value in self.__dict__.iteritems()]
|
|
|
5170 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5171 |
|
|
|
5172 |
def __eq__(self, other):
|
|
|
5173 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5174 |
|
|
|
5175 |
def __ne__(self, other):
|
|
|
5176 |
return not (self == other)
|
|
|
5177 |
|
| 6031 |
rajveer |
5178 |
class UserWallet:
|
| 6000 |
mandeep.dh |
5179 |
"""
|
|
|
5180 |
Attributes:
|
|
|
5181 |
- id
|
|
|
5182 |
- amount
|
| 6031 |
rajveer |
5183 |
- userId
|
| 20954 |
kshitij.so |
5184 |
- refundable_amount
|
| 6000 |
mandeep.dh |
5185 |
"""
|
|
|
5186 |
|
|
|
5187 |
thrift_spec = (
|
|
|
5188 |
None, # 0
|
|
|
5189 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
5190 |
(2, TType.I64, 'amount', None, None, ), # 2
|
| 6031 |
rajveer |
5191 |
(3, TType.I64, 'userId', None, None, ), # 3
|
| 20954 |
kshitij.so |
5192 |
(4, TType.I64, 'refundable_amount', None, None, ), # 4
|
| 6000 |
mandeep.dh |
5193 |
)
|
|
|
5194 |
|
| 20954 |
kshitij.so |
5195 |
def __init__(self, id=None, amount=None, userId=None, refundable_amount=None,):
|
| 6000 |
mandeep.dh |
5196 |
self.id = id
|
|
|
5197 |
self.amount = amount
|
| 6031 |
rajveer |
5198 |
self.userId = userId
|
| 20954 |
kshitij.so |
5199 |
self.refundable_amount = refundable_amount
|
| 6000 |
mandeep.dh |
5200 |
|
|
|
5201 |
def read(self, iprot):
|
|
|
5202 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5203 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5204 |
return
|
|
|
5205 |
iprot.readStructBegin()
|
|
|
5206 |
while True:
|
|
|
5207 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5208 |
if ftype == TType.STOP:
|
|
|
5209 |
break
|
|
|
5210 |
if fid == 1:
|
|
|
5211 |
if ftype == TType.I64:
|
|
|
5212 |
self.id = iprot.readI64();
|
|
|
5213 |
else:
|
|
|
5214 |
iprot.skip(ftype)
|
|
|
5215 |
elif fid == 2:
|
|
|
5216 |
if ftype == TType.I64:
|
|
|
5217 |
self.amount = iprot.readI64();
|
|
|
5218 |
else:
|
|
|
5219 |
iprot.skip(ftype)
|
|
|
5220 |
elif fid == 3:
|
|
|
5221 |
if ftype == TType.I64:
|
| 6031 |
rajveer |
5222 |
self.userId = iprot.readI64();
|
| 6000 |
mandeep.dh |
5223 |
else:
|
|
|
5224 |
iprot.skip(ftype)
|
| 20954 |
kshitij.so |
5225 |
elif fid == 4:
|
|
|
5226 |
if ftype == TType.I64:
|
|
|
5227 |
self.refundable_amount = iprot.readI64();
|
|
|
5228 |
else:
|
|
|
5229 |
iprot.skip(ftype)
|
| 6000 |
mandeep.dh |
5230 |
else:
|
|
|
5231 |
iprot.skip(ftype)
|
|
|
5232 |
iprot.readFieldEnd()
|
|
|
5233 |
iprot.readStructEnd()
|
|
|
5234 |
|
|
|
5235 |
def write(self, oprot):
|
|
|
5236 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5237 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5238 |
return
|
| 6031 |
rajveer |
5239 |
oprot.writeStructBegin('UserWallet')
|
| 6000 |
mandeep.dh |
5240 |
if self.id is not None:
|
|
|
5241 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
5242 |
oprot.writeI64(self.id)
|
|
|
5243 |
oprot.writeFieldEnd()
|
|
|
5244 |
if self.amount is not None:
|
|
|
5245 |
oprot.writeFieldBegin('amount', TType.I64, 2)
|
|
|
5246 |
oprot.writeI64(self.amount)
|
|
|
5247 |
oprot.writeFieldEnd()
|
| 6031 |
rajveer |
5248 |
if self.userId is not None:
|
|
|
5249 |
oprot.writeFieldBegin('userId', TType.I64, 3)
|
|
|
5250 |
oprot.writeI64(self.userId)
|
| 6000 |
mandeep.dh |
5251 |
oprot.writeFieldEnd()
|
| 20954 |
kshitij.so |
5252 |
if self.refundable_amount is not None:
|
|
|
5253 |
oprot.writeFieldBegin('refundable_amount', TType.I64, 4)
|
|
|
5254 |
oprot.writeI64(self.refundable_amount)
|
|
|
5255 |
oprot.writeFieldEnd()
|
| 6000 |
mandeep.dh |
5256 |
oprot.writeFieldStop()
|
|
|
5257 |
oprot.writeStructEnd()
|
|
|
5258 |
|
|
|
5259 |
def validate(self):
|
|
|
5260 |
return
|
|
|
5261 |
|
|
|
5262 |
|
|
|
5263 |
def __repr__(self):
|
|
|
5264 |
L = ['%s=%r' % (key, value)
|
|
|
5265 |
for key, value in self.__dict__.iteritems()]
|
|
|
5266 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5267 |
|
|
|
5268 |
def __eq__(self, other):
|
|
|
5269 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5270 |
|
|
|
5271 |
def __ne__(self, other):
|
|
|
5272 |
return not (self == other)
|
|
|
5273 |
|
| 6031 |
rajveer |
5274 |
class UserWalletHistory:
|
| 6000 |
mandeep.dh |
5275 |
"""
|
|
|
5276 |
Attributes:
|
| 6031 |
rajveer |
5277 |
- id
|
|
|
5278 |
- walletId
|
| 22059 |
amit.gupta |
5279 |
- refundableAmount
|
| 6031 |
rajveer |
5280 |
- amount
|
|
|
5281 |
- timestamp
|
| 22043 |
amit.gupta |
5282 |
- description
|
|
|
5283 |
- referenceNumber
|
|
|
5284 |
- referenceType
|
| 6000 |
mandeep.dh |
5285 |
"""
|
|
|
5286 |
|
|
|
5287 |
thrift_spec = (
|
|
|
5288 |
None, # 0
|
| 6031 |
rajveer |
5289 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
5290 |
(2, TType.I64, 'walletId', None, None, ), # 2
|
| 22059 |
amit.gupta |
5291 |
(3, TType.I64, 'refundableAmount', None, None, ), # 3
|
| 6031 |
rajveer |
5292 |
(4, TType.I64, 'amount', None, None, ), # 4
|
|
|
5293 |
(5, TType.I64, 'timestamp', None, None, ), # 5
|
| 22043 |
amit.gupta |
5294 |
(6, TType.STRING, 'description', None, None, ), # 6
|
| 22051 |
amit.gupta |
5295 |
(7, TType.I64, 'referenceNumber', None, None, ), # 7
|
| 22043 |
amit.gupta |
5296 |
(8, TType.I32, 'referenceType', None, None, ), # 8
|
| 6000 |
mandeep.dh |
5297 |
)
|
|
|
5298 |
|
| 22059 |
amit.gupta |
5299 |
def __init__(self, id=None, walletId=None, refundableAmount=None, amount=None, timestamp=None, description=None, referenceNumber=None, referenceType=None,):
|
| 6031 |
rajveer |
5300 |
self.id = id
|
|
|
5301 |
self.walletId = walletId
|
| 22059 |
amit.gupta |
5302 |
self.refundableAmount = refundableAmount
|
| 6031 |
rajveer |
5303 |
self.amount = amount
|
|
|
5304 |
self.timestamp = timestamp
|
| 22043 |
amit.gupta |
5305 |
self.description = description
|
|
|
5306 |
self.referenceNumber = referenceNumber
|
|
|
5307 |
self.referenceType = referenceType
|
| 6000 |
mandeep.dh |
5308 |
|
|
|
5309 |
def read(self, iprot):
|
|
|
5310 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5311 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5312 |
return
|
|
|
5313 |
iprot.readStructBegin()
|
|
|
5314 |
while True:
|
|
|
5315 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5316 |
if ftype == TType.STOP:
|
|
|
5317 |
break
|
|
|
5318 |
if fid == 1:
|
| 6031 |
rajveer |
5319 |
if ftype == TType.I64:
|
|
|
5320 |
self.id = iprot.readI64();
|
| 6000 |
mandeep.dh |
5321 |
else:
|
|
|
5322 |
iprot.skip(ftype)
|
|
|
5323 |
elif fid == 2:
|
| 6031 |
rajveer |
5324 |
if ftype == TType.I64:
|
|
|
5325 |
self.walletId = iprot.readI64();
|
| 6000 |
mandeep.dh |
5326 |
else:
|
|
|
5327 |
iprot.skip(ftype)
|
|
|
5328 |
elif fid == 3:
|
| 6031 |
rajveer |
5329 |
if ftype == TType.I64:
|
| 22059 |
amit.gupta |
5330 |
self.refundableAmount = iprot.readI64();
|
| 6000 |
mandeep.dh |
5331 |
else:
|
|
|
5332 |
iprot.skip(ftype)
|
|
|
5333 |
elif fid == 4:
|
| 6031 |
rajveer |
5334 |
if ftype == TType.I64:
|
|
|
5335 |
self.amount = iprot.readI64();
|
| 6000 |
mandeep.dh |
5336 |
else:
|
|
|
5337 |
iprot.skip(ftype)
|
| 6031 |
rajveer |
5338 |
elif fid == 5:
|
|
|
5339 |
if ftype == TType.I64:
|
|
|
5340 |
self.timestamp = iprot.readI64();
|
|
|
5341 |
else:
|
|
|
5342 |
iprot.skip(ftype)
|
| 22043 |
amit.gupta |
5343 |
elif fid == 6:
|
|
|
5344 |
if ftype == TType.STRING:
|
|
|
5345 |
self.description = iprot.readString();
|
|
|
5346 |
else:
|
|
|
5347 |
iprot.skip(ftype)
|
|
|
5348 |
elif fid == 7:
|
| 22051 |
amit.gupta |
5349 |
if ftype == TType.I64:
|
|
|
5350 |
self.referenceNumber = iprot.readI64();
|
| 22043 |
amit.gupta |
5351 |
else:
|
|
|
5352 |
iprot.skip(ftype)
|
|
|
5353 |
elif fid == 8:
|
|
|
5354 |
if ftype == TType.I32:
|
|
|
5355 |
self.referenceType = iprot.readI32();
|
|
|
5356 |
else:
|
|
|
5357 |
iprot.skip(ftype)
|
| 6000 |
mandeep.dh |
5358 |
else:
|
|
|
5359 |
iprot.skip(ftype)
|
|
|
5360 |
iprot.readFieldEnd()
|
|
|
5361 |
iprot.readStructEnd()
|
|
|
5362 |
|
|
|
5363 |
def write(self, oprot):
|
|
|
5364 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5365 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5366 |
return
|
| 6031 |
rajveer |
5367 |
oprot.writeStructBegin('UserWalletHistory')
|
|
|
5368 |
if self.id is not None:
|
|
|
5369 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
5370 |
oprot.writeI64(self.id)
|
| 6000 |
mandeep.dh |
5371 |
oprot.writeFieldEnd()
|
| 6031 |
rajveer |
5372 |
if self.walletId is not None:
|
|
|
5373 |
oprot.writeFieldBegin('walletId', TType.I64, 2)
|
|
|
5374 |
oprot.writeI64(self.walletId)
|
| 6000 |
mandeep.dh |
5375 |
oprot.writeFieldEnd()
|
| 22059 |
amit.gupta |
5376 |
if self.refundableAmount is not None:
|
|
|
5377 |
oprot.writeFieldBegin('refundableAmount', TType.I64, 3)
|
|
|
5378 |
oprot.writeI64(self.refundableAmount)
|
| 6000 |
mandeep.dh |
5379 |
oprot.writeFieldEnd()
|
| 6031 |
rajveer |
5380 |
if self.amount is not None:
|
|
|
5381 |
oprot.writeFieldBegin('amount', TType.I64, 4)
|
|
|
5382 |
oprot.writeI64(self.amount)
|
| 6000 |
mandeep.dh |
5383 |
oprot.writeFieldEnd()
|
| 6031 |
rajveer |
5384 |
if self.timestamp is not None:
|
|
|
5385 |
oprot.writeFieldBegin('timestamp', TType.I64, 5)
|
|
|
5386 |
oprot.writeI64(self.timestamp)
|
|
|
5387 |
oprot.writeFieldEnd()
|
| 22043 |
amit.gupta |
5388 |
if self.description is not None:
|
|
|
5389 |
oprot.writeFieldBegin('description', TType.STRING, 6)
|
|
|
5390 |
oprot.writeString(self.description)
|
|
|
5391 |
oprot.writeFieldEnd()
|
|
|
5392 |
if self.referenceNumber is not None:
|
| 22051 |
amit.gupta |
5393 |
oprot.writeFieldBegin('referenceNumber', TType.I64, 7)
|
|
|
5394 |
oprot.writeI64(self.referenceNumber)
|
| 22043 |
amit.gupta |
5395 |
oprot.writeFieldEnd()
|
|
|
5396 |
if self.referenceType is not None:
|
|
|
5397 |
oprot.writeFieldBegin('referenceType', TType.I32, 8)
|
|
|
5398 |
oprot.writeI32(self.referenceType)
|
|
|
5399 |
oprot.writeFieldEnd()
|
| 6000 |
mandeep.dh |
5400 |
oprot.writeFieldStop()
|
|
|
5401 |
oprot.writeStructEnd()
|
|
|
5402 |
|
|
|
5403 |
def validate(self):
|
|
|
5404 |
return
|
|
|
5405 |
|
|
|
5406 |
|
|
|
5407 |
def __repr__(self):
|
|
|
5408 |
L = ['%s=%r' % (key, value)
|
|
|
5409 |
for key, value in self.__dict__.iteritems()]
|
|
|
5410 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5411 |
|
|
|
5412 |
def __eq__(self, other):
|
|
|
5413 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5414 |
|
|
|
5415 |
def __ne__(self, other):
|
|
|
5416 |
return not (self == other)
|
|
|
5417 |
|
| 6389 |
rajveer |
5418 |
class EmiScheme:
|
|
|
5419 |
"""
|
|
|
5420 |
Attributes:
|
|
|
5421 |
- id
|
|
|
5422 |
- gatewayId
|
|
|
5423 |
- bankId
|
|
|
5424 |
- tenure
|
|
|
5425 |
- bankName
|
|
|
5426 |
- minAmount
|
|
|
5427 |
- tenureDescription
|
|
|
5428 |
- chargeType
|
|
|
5429 |
- chargeValue
|
| 8942 |
rajveer |
5430 |
- interestRate
|
| 6389 |
rajveer |
5431 |
"""
|
|
|
5432 |
|
|
|
5433 |
thrift_spec = (
|
|
|
5434 |
None, # 0
|
|
|
5435 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
5436 |
(2, TType.I64, 'gatewayId', None, None, ), # 2
|
|
|
5437 |
(3, TType.I64, 'bankId', None, None, ), # 3
|
|
|
5438 |
(4, TType.I64, 'tenure', None, None, ), # 4
|
|
|
5439 |
(5, TType.STRING, 'bankName', None, None, ), # 5
|
| 6392 |
amit.gupta |
5440 |
(6, TType.I64, 'minAmount', None, None, ), # 6
|
| 6389 |
rajveer |
5441 |
(7, TType.STRING, 'tenureDescription', None, None, ), # 7
|
|
|
5442 |
(8, TType.I32, 'chargeType', None, None, ), # 8
|
| 6410 |
rajveer |
5443 |
(9, TType.DOUBLE, 'chargeValue', None, None, ), # 9
|
| 8942 |
rajveer |
5444 |
(10, TType.DOUBLE, 'interestRate', None, None, ), # 10
|
| 6389 |
rajveer |
5445 |
)
|
|
|
5446 |
|
| 8942 |
rajveer |
5447 |
def __init__(self, id=None, gatewayId=None, bankId=None, tenure=None, bankName=None, minAmount=None, tenureDescription=None, chargeType=None, chargeValue=None, interestRate=None,):
|
| 6389 |
rajveer |
5448 |
self.id = id
|
|
|
5449 |
self.gatewayId = gatewayId
|
|
|
5450 |
self.bankId = bankId
|
|
|
5451 |
self.tenure = tenure
|
|
|
5452 |
self.bankName = bankName
|
|
|
5453 |
self.minAmount = minAmount
|
|
|
5454 |
self.tenureDescription = tenureDescription
|
|
|
5455 |
self.chargeType = chargeType
|
|
|
5456 |
self.chargeValue = chargeValue
|
| 8942 |
rajveer |
5457 |
self.interestRate = interestRate
|
| 6389 |
rajveer |
5458 |
|
|
|
5459 |
def read(self, iprot):
|
|
|
5460 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5461 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5462 |
return
|
|
|
5463 |
iprot.readStructBegin()
|
|
|
5464 |
while True:
|
|
|
5465 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5466 |
if ftype == TType.STOP:
|
|
|
5467 |
break
|
|
|
5468 |
if fid == 1:
|
|
|
5469 |
if ftype == TType.I64:
|
|
|
5470 |
self.id = iprot.readI64();
|
|
|
5471 |
else:
|
|
|
5472 |
iprot.skip(ftype)
|
|
|
5473 |
elif fid == 2:
|
|
|
5474 |
if ftype == TType.I64:
|
|
|
5475 |
self.gatewayId = iprot.readI64();
|
|
|
5476 |
else:
|
|
|
5477 |
iprot.skip(ftype)
|
|
|
5478 |
elif fid == 3:
|
|
|
5479 |
if ftype == TType.I64:
|
|
|
5480 |
self.bankId = iprot.readI64();
|
|
|
5481 |
else:
|
|
|
5482 |
iprot.skip(ftype)
|
|
|
5483 |
elif fid == 4:
|
|
|
5484 |
if ftype == TType.I64:
|
|
|
5485 |
self.tenure = iprot.readI64();
|
|
|
5486 |
else:
|
|
|
5487 |
iprot.skip(ftype)
|
|
|
5488 |
elif fid == 5:
|
|
|
5489 |
if ftype == TType.STRING:
|
|
|
5490 |
self.bankName = iprot.readString();
|
|
|
5491 |
else:
|
|
|
5492 |
iprot.skip(ftype)
|
|
|
5493 |
elif fid == 6:
|
| 6392 |
amit.gupta |
5494 |
if ftype == TType.I64:
|
|
|
5495 |
self.minAmount = iprot.readI64();
|
| 6389 |
rajveer |
5496 |
else:
|
|
|
5497 |
iprot.skip(ftype)
|
|
|
5498 |
elif fid == 7:
|
|
|
5499 |
if ftype == TType.STRING:
|
|
|
5500 |
self.tenureDescription = iprot.readString();
|
|
|
5501 |
else:
|
|
|
5502 |
iprot.skip(ftype)
|
|
|
5503 |
elif fid == 8:
|
|
|
5504 |
if ftype == TType.I32:
|
|
|
5505 |
self.chargeType = iprot.readI32();
|
|
|
5506 |
else:
|
|
|
5507 |
iprot.skip(ftype)
|
|
|
5508 |
elif fid == 9:
|
| 6410 |
rajveer |
5509 |
if ftype == TType.DOUBLE:
|
|
|
5510 |
self.chargeValue = iprot.readDouble();
|
| 6389 |
rajveer |
5511 |
else:
|
|
|
5512 |
iprot.skip(ftype)
|
| 8942 |
rajveer |
5513 |
elif fid == 10:
|
|
|
5514 |
if ftype == TType.DOUBLE:
|
|
|
5515 |
self.interestRate = iprot.readDouble();
|
|
|
5516 |
else:
|
|
|
5517 |
iprot.skip(ftype)
|
| 6389 |
rajveer |
5518 |
else:
|
|
|
5519 |
iprot.skip(ftype)
|
|
|
5520 |
iprot.readFieldEnd()
|
|
|
5521 |
iprot.readStructEnd()
|
|
|
5522 |
|
|
|
5523 |
def write(self, oprot):
|
|
|
5524 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5525 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5526 |
return
|
|
|
5527 |
oprot.writeStructBegin('EmiScheme')
|
|
|
5528 |
if self.id is not None:
|
|
|
5529 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
5530 |
oprot.writeI64(self.id)
|
|
|
5531 |
oprot.writeFieldEnd()
|
|
|
5532 |
if self.gatewayId is not None:
|
|
|
5533 |
oprot.writeFieldBegin('gatewayId', TType.I64, 2)
|
|
|
5534 |
oprot.writeI64(self.gatewayId)
|
|
|
5535 |
oprot.writeFieldEnd()
|
|
|
5536 |
if self.bankId is not None:
|
|
|
5537 |
oprot.writeFieldBegin('bankId', TType.I64, 3)
|
|
|
5538 |
oprot.writeI64(self.bankId)
|
|
|
5539 |
oprot.writeFieldEnd()
|
|
|
5540 |
if self.tenure is not None:
|
|
|
5541 |
oprot.writeFieldBegin('tenure', TType.I64, 4)
|
|
|
5542 |
oprot.writeI64(self.tenure)
|
|
|
5543 |
oprot.writeFieldEnd()
|
|
|
5544 |
if self.bankName is not None:
|
|
|
5545 |
oprot.writeFieldBegin('bankName', TType.STRING, 5)
|
|
|
5546 |
oprot.writeString(self.bankName)
|
|
|
5547 |
oprot.writeFieldEnd()
|
|
|
5548 |
if self.minAmount is not None:
|
| 6392 |
amit.gupta |
5549 |
oprot.writeFieldBegin('minAmount', TType.I64, 6)
|
|
|
5550 |
oprot.writeI64(self.minAmount)
|
| 6389 |
rajveer |
5551 |
oprot.writeFieldEnd()
|
|
|
5552 |
if self.tenureDescription is not None:
|
|
|
5553 |
oprot.writeFieldBegin('tenureDescription', TType.STRING, 7)
|
|
|
5554 |
oprot.writeString(self.tenureDescription)
|
|
|
5555 |
oprot.writeFieldEnd()
|
|
|
5556 |
if self.chargeType is not None:
|
|
|
5557 |
oprot.writeFieldBegin('chargeType', TType.I32, 8)
|
|
|
5558 |
oprot.writeI32(self.chargeType)
|
|
|
5559 |
oprot.writeFieldEnd()
|
|
|
5560 |
if self.chargeValue is not None:
|
| 6410 |
rajveer |
5561 |
oprot.writeFieldBegin('chargeValue', TType.DOUBLE, 9)
|
|
|
5562 |
oprot.writeDouble(self.chargeValue)
|
| 6389 |
rajveer |
5563 |
oprot.writeFieldEnd()
|
| 8942 |
rajveer |
5564 |
if self.interestRate is not None:
|
|
|
5565 |
oprot.writeFieldBegin('interestRate', TType.DOUBLE, 10)
|
|
|
5566 |
oprot.writeDouble(self.interestRate)
|
|
|
5567 |
oprot.writeFieldEnd()
|
| 6389 |
rajveer |
5568 |
oprot.writeFieldStop()
|
|
|
5569 |
oprot.writeStructEnd()
|
|
|
5570 |
|
|
|
5571 |
def validate(self):
|
|
|
5572 |
return
|
|
|
5573 |
|
|
|
5574 |
|
|
|
5575 |
def __repr__(self):
|
|
|
5576 |
L = ['%s=%r' % (key, value)
|
|
|
5577 |
for key, value in self.__dict__.iteritems()]
|
|
|
5578 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5579 |
|
|
|
5580 |
def __eq__(self, other):
|
|
|
5581 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5582 |
|
|
|
5583 |
def __ne__(self, other):
|
|
|
5584 |
return not (self == other)
|
|
|
5585 |
|
| 94 |
ashish |
5586 |
class TransactionServiceException(Exception):
|
|
|
5587 |
"""
|
|
|
5588 |
Attributes:
|
|
|
5589 |
- errorCode
|
|
|
5590 |
- message
|
|
|
5591 |
"""
|
|
|
5592 |
|
|
|
5593 |
thrift_spec = (
|
|
|
5594 |
None, # 0
|
|
|
5595 |
(1, TType.I32, 'errorCode', None, None, ), # 1
|
|
|
5596 |
(2, TType.STRING, 'message', None, None, ), # 2
|
|
|
5597 |
)
|
|
|
5598 |
|
|
|
5599 |
def __init__(self, errorCode=None, message=None,):
|
|
|
5600 |
self.errorCode = errorCode
|
|
|
5601 |
self.message = message
|
|
|
5602 |
|
|
|
5603 |
def read(self, iprot):
|
|
|
5604 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5605 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5606 |
return
|
|
|
5607 |
iprot.readStructBegin()
|
|
|
5608 |
while True:
|
|
|
5609 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5610 |
if ftype == TType.STOP:
|
|
|
5611 |
break
|
|
|
5612 |
if fid == 1:
|
|
|
5613 |
if ftype == TType.I32:
|
|
|
5614 |
self.errorCode = iprot.readI32();
|
|
|
5615 |
else:
|
|
|
5616 |
iprot.skip(ftype)
|
|
|
5617 |
elif fid == 2:
|
|
|
5618 |
if ftype == TType.STRING:
|
|
|
5619 |
self.message = iprot.readString();
|
|
|
5620 |
else:
|
|
|
5621 |
iprot.skip(ftype)
|
|
|
5622 |
else:
|
|
|
5623 |
iprot.skip(ftype)
|
|
|
5624 |
iprot.readFieldEnd()
|
|
|
5625 |
iprot.readStructEnd()
|
|
|
5626 |
|
|
|
5627 |
def write(self, oprot):
|
|
|
5628 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5629 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5630 |
return
|
|
|
5631 |
oprot.writeStructBegin('TransactionServiceException')
|
| 3431 |
rajveer |
5632 |
if self.errorCode is not None:
|
| 94 |
ashish |
5633 |
oprot.writeFieldBegin('errorCode', TType.I32, 1)
|
|
|
5634 |
oprot.writeI32(self.errorCode)
|
|
|
5635 |
oprot.writeFieldEnd()
|
| 3431 |
rajveer |
5636 |
if self.message is not None:
|
| 94 |
ashish |
5637 |
oprot.writeFieldBegin('message', TType.STRING, 2)
|
|
|
5638 |
oprot.writeString(self.message)
|
|
|
5639 |
oprot.writeFieldEnd()
|
|
|
5640 |
oprot.writeFieldStop()
|
|
|
5641 |
oprot.writeStructEnd()
|
|
|
5642 |
|
| 3431 |
rajveer |
5643 |
def validate(self):
|
|
|
5644 |
return
|
|
|
5645 |
|
|
|
5646 |
|
| 94 |
ashish |
5647 |
def __str__(self):
|
|
|
5648 |
return repr(self)
|
|
|
5649 |
|
|
|
5650 |
def __repr__(self):
|
|
|
5651 |
L = ['%s=%r' % (key, value)
|
|
|
5652 |
for key, value in self.__dict__.iteritems()]
|
|
|
5653 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5654 |
|
|
|
5655 |
def __eq__(self, other):
|
|
|
5656 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5657 |
|
|
|
5658 |
def __ne__(self, other):
|
|
|
5659 |
return not (self == other)
|
| 4815 |
phani.kuma |
5660 |
|
| 7073 |
anupam.sin |
5661 |
class Company:
|
|
|
5662 |
"""
|
|
|
5663 |
Attributes:
|
|
|
5664 |
- id
|
|
|
5665 |
- name
|
|
|
5666 |
- Address
|
|
|
5667 |
"""
|
|
|
5668 |
|
|
|
5669 |
thrift_spec = (
|
|
|
5670 |
None, # 0
|
|
|
5671 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
5672 |
(2, TType.STRING, 'name', None, None, ), # 2
|
|
|
5673 |
(3, TType.STRING, 'Address', None, None, ), # 3
|
|
|
5674 |
)
|
|
|
5675 |
|
|
|
5676 |
def __init__(self, id=None, name=None, Address=None,):
|
|
|
5677 |
self.id = id
|
|
|
5678 |
self.name = name
|
|
|
5679 |
self.Address = Address
|
|
|
5680 |
|
|
|
5681 |
def read(self, iprot):
|
|
|
5682 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5683 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5684 |
return
|
|
|
5685 |
iprot.readStructBegin()
|
|
|
5686 |
while True:
|
|
|
5687 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5688 |
if ftype == TType.STOP:
|
|
|
5689 |
break
|
|
|
5690 |
if fid == 1:
|
|
|
5691 |
if ftype == TType.I64:
|
|
|
5692 |
self.id = iprot.readI64();
|
|
|
5693 |
else:
|
|
|
5694 |
iprot.skip(ftype)
|
|
|
5695 |
elif fid == 2:
|
|
|
5696 |
if ftype == TType.STRING:
|
|
|
5697 |
self.name = iprot.readString();
|
|
|
5698 |
else:
|
|
|
5699 |
iprot.skip(ftype)
|
|
|
5700 |
elif fid == 3:
|
|
|
5701 |
if ftype == TType.STRING:
|
|
|
5702 |
self.Address = iprot.readString();
|
|
|
5703 |
else:
|
|
|
5704 |
iprot.skip(ftype)
|
|
|
5705 |
else:
|
|
|
5706 |
iprot.skip(ftype)
|
|
|
5707 |
iprot.readFieldEnd()
|
|
|
5708 |
iprot.readStructEnd()
|
|
|
5709 |
|
|
|
5710 |
def write(self, oprot):
|
|
|
5711 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5712 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5713 |
return
|
|
|
5714 |
oprot.writeStructBegin('Company')
|
|
|
5715 |
if self.id is not None:
|
|
|
5716 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
5717 |
oprot.writeI64(self.id)
|
|
|
5718 |
oprot.writeFieldEnd()
|
|
|
5719 |
if self.name is not None:
|
|
|
5720 |
oprot.writeFieldBegin('name', TType.STRING, 2)
|
|
|
5721 |
oprot.writeString(self.name)
|
|
|
5722 |
oprot.writeFieldEnd()
|
|
|
5723 |
if self.Address is not None:
|
|
|
5724 |
oprot.writeFieldBegin('Address', TType.STRING, 3)
|
|
|
5725 |
oprot.writeString(self.Address)
|
|
|
5726 |
oprot.writeFieldEnd()
|
|
|
5727 |
oprot.writeFieldStop()
|
|
|
5728 |
oprot.writeStructEnd()
|
|
|
5729 |
|
|
|
5730 |
def validate(self):
|
|
|
5731 |
return
|
|
|
5732 |
|
|
|
5733 |
|
|
|
5734 |
def __repr__(self):
|
|
|
5735 |
L = ['%s=%r' % (key, value)
|
|
|
5736 |
for key, value in self.__dict__.iteritems()]
|
|
|
5737 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5738 |
|
|
|
5739 |
def __eq__(self, other):
|
|
|
5740 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5741 |
|
|
|
5742 |
def __ne__(self, other):
|
|
|
5743 |
return not (self == other)
|
|
|
5744 |
|
|
|
5745 |
class WalletForCompany:
|
|
|
5746 |
"""
|
|
|
5747 |
Attributes:
|
|
|
5748 |
- id
|
|
|
5749 |
- companyId
|
|
|
5750 |
- amount
|
|
|
5751 |
"""
|
|
|
5752 |
|
|
|
5753 |
thrift_spec = (
|
|
|
5754 |
None, # 0
|
|
|
5755 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
5756 |
(2, TType.I64, 'companyId', None, None, ), # 2
|
|
|
5757 |
(3, TType.DOUBLE, 'amount', None, None, ), # 3
|
|
|
5758 |
)
|
|
|
5759 |
|
|
|
5760 |
def __init__(self, id=None, companyId=None, amount=None,):
|
|
|
5761 |
self.id = id
|
|
|
5762 |
self.companyId = companyId
|
|
|
5763 |
self.amount = amount
|
|
|
5764 |
|
|
|
5765 |
def read(self, iprot):
|
|
|
5766 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5767 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5768 |
return
|
|
|
5769 |
iprot.readStructBegin()
|
|
|
5770 |
while True:
|
|
|
5771 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5772 |
if ftype == TType.STOP:
|
|
|
5773 |
break
|
|
|
5774 |
if fid == 1:
|
|
|
5775 |
if ftype == TType.I64:
|
|
|
5776 |
self.id = iprot.readI64();
|
|
|
5777 |
else:
|
|
|
5778 |
iprot.skip(ftype)
|
|
|
5779 |
elif fid == 2:
|
|
|
5780 |
if ftype == TType.I64:
|
|
|
5781 |
self.companyId = iprot.readI64();
|
|
|
5782 |
else:
|
|
|
5783 |
iprot.skip(ftype)
|
|
|
5784 |
elif fid == 3:
|
|
|
5785 |
if ftype == TType.DOUBLE:
|
|
|
5786 |
self.amount = iprot.readDouble();
|
|
|
5787 |
else:
|
|
|
5788 |
iprot.skip(ftype)
|
|
|
5789 |
else:
|
|
|
5790 |
iprot.skip(ftype)
|
|
|
5791 |
iprot.readFieldEnd()
|
|
|
5792 |
iprot.readStructEnd()
|
|
|
5793 |
|
|
|
5794 |
def write(self, oprot):
|
|
|
5795 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5796 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5797 |
return
|
|
|
5798 |
oprot.writeStructBegin('WalletForCompany')
|
|
|
5799 |
if self.id is not None:
|
|
|
5800 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
5801 |
oprot.writeI64(self.id)
|
|
|
5802 |
oprot.writeFieldEnd()
|
|
|
5803 |
if self.companyId is not None:
|
|
|
5804 |
oprot.writeFieldBegin('companyId', TType.I64, 2)
|
|
|
5805 |
oprot.writeI64(self.companyId)
|
|
|
5806 |
oprot.writeFieldEnd()
|
|
|
5807 |
if self.amount is not None:
|
|
|
5808 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 3)
|
|
|
5809 |
oprot.writeDouble(self.amount)
|
|
|
5810 |
oprot.writeFieldEnd()
|
|
|
5811 |
oprot.writeFieldStop()
|
|
|
5812 |
oprot.writeStructEnd()
|
|
|
5813 |
|
|
|
5814 |
def validate(self):
|
|
|
5815 |
return
|
|
|
5816 |
|
|
|
5817 |
|
|
|
5818 |
def __repr__(self):
|
|
|
5819 |
L = ['%s=%r' % (key, value)
|
|
|
5820 |
for key, value in self.__dict__.iteritems()]
|
|
|
5821 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5822 |
|
|
|
5823 |
def __eq__(self, other):
|
|
|
5824 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5825 |
|
|
|
5826 |
def __ne__(self, other):
|
|
|
5827 |
return not (self == other)
|
|
|
5828 |
|
|
|
5829 |
class WalletHistoryForCompany:
|
|
|
5830 |
"""
|
|
|
5831 |
Attributes:
|
|
|
5832 |
- id
|
|
|
5833 |
- walletId
|
|
|
5834 |
- amount
|
|
|
5835 |
- transactionTime
|
|
|
5836 |
- openingBal
|
|
|
5837 |
- closingBal
|
|
|
5838 |
- referenceNumber
|
|
|
5839 |
- description
|
|
|
5840 |
"""
|
|
|
5841 |
|
|
|
5842 |
thrift_spec = (
|
|
|
5843 |
None, # 0
|
|
|
5844 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
5845 |
(2, TType.I64, 'walletId', None, None, ), # 2
|
|
|
5846 |
(3, TType.DOUBLE, 'amount', None, None, ), # 3
|
|
|
5847 |
(4, TType.I64, 'transactionTime', None, None, ), # 4
|
|
|
5848 |
(5, TType.DOUBLE, 'openingBal', None, None, ), # 5
|
|
|
5849 |
(6, TType.DOUBLE, 'closingBal', None, None, ), # 6
|
|
|
5850 |
(7, TType.I64, 'referenceNumber', None, None, ), # 7
|
|
|
5851 |
(8, TType.STRING, 'description', None, None, ), # 8
|
|
|
5852 |
)
|
|
|
5853 |
|
|
|
5854 |
def __init__(self, id=None, walletId=None, amount=None, transactionTime=None, openingBal=None, closingBal=None, referenceNumber=None, description=None,):
|
|
|
5855 |
self.id = id
|
|
|
5856 |
self.walletId = walletId
|
|
|
5857 |
self.amount = amount
|
|
|
5858 |
self.transactionTime = transactionTime
|
|
|
5859 |
self.openingBal = openingBal
|
|
|
5860 |
self.closingBal = closingBal
|
|
|
5861 |
self.referenceNumber = referenceNumber
|
|
|
5862 |
self.description = description
|
|
|
5863 |
|
|
|
5864 |
def read(self, iprot):
|
|
|
5865 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5866 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
5867 |
return
|
|
|
5868 |
iprot.readStructBegin()
|
|
|
5869 |
while True:
|
|
|
5870 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
5871 |
if ftype == TType.STOP:
|
|
|
5872 |
break
|
|
|
5873 |
if fid == 1:
|
|
|
5874 |
if ftype == TType.I64:
|
|
|
5875 |
self.id = iprot.readI64();
|
|
|
5876 |
else:
|
|
|
5877 |
iprot.skip(ftype)
|
|
|
5878 |
elif fid == 2:
|
|
|
5879 |
if ftype == TType.I64:
|
|
|
5880 |
self.walletId = iprot.readI64();
|
|
|
5881 |
else:
|
|
|
5882 |
iprot.skip(ftype)
|
|
|
5883 |
elif fid == 3:
|
|
|
5884 |
if ftype == TType.DOUBLE:
|
|
|
5885 |
self.amount = iprot.readDouble();
|
|
|
5886 |
else:
|
|
|
5887 |
iprot.skip(ftype)
|
|
|
5888 |
elif fid == 4:
|
|
|
5889 |
if ftype == TType.I64:
|
|
|
5890 |
self.transactionTime = iprot.readI64();
|
|
|
5891 |
else:
|
|
|
5892 |
iprot.skip(ftype)
|
|
|
5893 |
elif fid == 5:
|
|
|
5894 |
if ftype == TType.DOUBLE:
|
|
|
5895 |
self.openingBal = iprot.readDouble();
|
|
|
5896 |
else:
|
|
|
5897 |
iprot.skip(ftype)
|
|
|
5898 |
elif fid == 6:
|
|
|
5899 |
if ftype == TType.DOUBLE:
|
|
|
5900 |
self.closingBal = iprot.readDouble();
|
|
|
5901 |
else:
|
|
|
5902 |
iprot.skip(ftype)
|
|
|
5903 |
elif fid == 7:
|
|
|
5904 |
if ftype == TType.I64:
|
|
|
5905 |
self.referenceNumber = iprot.readI64();
|
|
|
5906 |
else:
|
|
|
5907 |
iprot.skip(ftype)
|
|
|
5908 |
elif fid == 8:
|
|
|
5909 |
if ftype == TType.STRING:
|
|
|
5910 |
self.description = iprot.readString();
|
|
|
5911 |
else:
|
|
|
5912 |
iprot.skip(ftype)
|
|
|
5913 |
else:
|
|
|
5914 |
iprot.skip(ftype)
|
|
|
5915 |
iprot.readFieldEnd()
|
|
|
5916 |
iprot.readStructEnd()
|
|
|
5917 |
|
|
|
5918 |
def write(self, oprot):
|
|
|
5919 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
5920 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
5921 |
return
|
|
|
5922 |
oprot.writeStructBegin('WalletHistoryForCompany')
|
|
|
5923 |
if self.id is not None:
|
|
|
5924 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
5925 |
oprot.writeI64(self.id)
|
|
|
5926 |
oprot.writeFieldEnd()
|
|
|
5927 |
if self.walletId is not None:
|
|
|
5928 |
oprot.writeFieldBegin('walletId', TType.I64, 2)
|
|
|
5929 |
oprot.writeI64(self.walletId)
|
|
|
5930 |
oprot.writeFieldEnd()
|
|
|
5931 |
if self.amount is not None:
|
|
|
5932 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 3)
|
|
|
5933 |
oprot.writeDouble(self.amount)
|
|
|
5934 |
oprot.writeFieldEnd()
|
|
|
5935 |
if self.transactionTime is not None:
|
|
|
5936 |
oprot.writeFieldBegin('transactionTime', TType.I64, 4)
|
|
|
5937 |
oprot.writeI64(self.transactionTime)
|
|
|
5938 |
oprot.writeFieldEnd()
|
|
|
5939 |
if self.openingBal is not None:
|
|
|
5940 |
oprot.writeFieldBegin('openingBal', TType.DOUBLE, 5)
|
|
|
5941 |
oprot.writeDouble(self.openingBal)
|
|
|
5942 |
oprot.writeFieldEnd()
|
|
|
5943 |
if self.closingBal is not None:
|
|
|
5944 |
oprot.writeFieldBegin('closingBal', TType.DOUBLE, 6)
|
|
|
5945 |
oprot.writeDouble(self.closingBal)
|
|
|
5946 |
oprot.writeFieldEnd()
|
|
|
5947 |
if self.referenceNumber is not None:
|
|
|
5948 |
oprot.writeFieldBegin('referenceNumber', TType.I64, 7)
|
|
|
5949 |
oprot.writeI64(self.referenceNumber)
|
|
|
5950 |
oprot.writeFieldEnd()
|
|
|
5951 |
if self.description is not None:
|
|
|
5952 |
oprot.writeFieldBegin('description', TType.STRING, 8)
|
|
|
5953 |
oprot.writeString(self.description)
|
|
|
5954 |
oprot.writeFieldEnd()
|
|
|
5955 |
oprot.writeFieldStop()
|
|
|
5956 |
oprot.writeStructEnd()
|
|
|
5957 |
|
|
|
5958 |
def validate(self):
|
|
|
5959 |
return
|
|
|
5960 |
|
|
|
5961 |
|
|
|
5962 |
def __repr__(self):
|
|
|
5963 |
L = ['%s=%r' % (key, value)
|
|
|
5964 |
for key, value in self.__dict__.iteritems()]
|
|
|
5965 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
5966 |
|
|
|
5967 |
def __eq__(self, other):
|
|
|
5968 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
5969 |
|
|
|
5970 |
def __ne__(self, other):
|
|
|
5971 |
return not (self == other)
|
|
|
5972 |
|
| 7080 |
anupam.sin |
5973 |
class FRC:
|
|
|
5974 |
"""
|
|
|
5975 |
Attributes:
|
|
|
5976 |
- id
|
|
|
5977 |
- operatorId
|
|
|
5978 |
- circleId
|
|
|
5979 |
- denomination
|
|
|
5980 |
- maxDiscount
|
|
|
5981 |
"""
|
|
|
5982 |
|
|
|
5983 |
thrift_spec = (
|
|
|
5984 |
None, # 0
|
|
|
5985 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
5986 |
(2, TType.I64, 'operatorId', None, None, ), # 2
|
|
|
5987 |
(3, TType.I64, 'circleId', None, None, ), # 3
|
|
|
5988 |
(4, TType.I64, 'denomination', None, None, ), # 4
|
|
|
5989 |
(5, TType.I64, 'maxDiscount', None, None, ), # 5
|
|
|
5990 |
)
|
|
|
5991 |
|
|
|
5992 |
def __init__(self, id=None, operatorId=None, circleId=None, denomination=None, maxDiscount=None,):
|
|
|
5993 |
self.id = id
|
|
|
5994 |
self.operatorId = operatorId
|
|
|
5995 |
self.circleId = circleId
|
|
|
5996 |
self.denomination = denomination
|
|
|
5997 |
self.maxDiscount = maxDiscount
|
|
|
5998 |
|
|
|
5999 |
def read(self, iprot):
|
|
|
6000 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6001 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6002 |
return
|
|
|
6003 |
iprot.readStructBegin()
|
|
|
6004 |
while True:
|
|
|
6005 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6006 |
if ftype == TType.STOP:
|
|
|
6007 |
break
|
|
|
6008 |
if fid == 1:
|
|
|
6009 |
if ftype == TType.I64:
|
|
|
6010 |
self.id = iprot.readI64();
|
|
|
6011 |
else:
|
|
|
6012 |
iprot.skip(ftype)
|
|
|
6013 |
elif fid == 2:
|
|
|
6014 |
if ftype == TType.I64:
|
|
|
6015 |
self.operatorId = iprot.readI64();
|
|
|
6016 |
else:
|
|
|
6017 |
iprot.skip(ftype)
|
|
|
6018 |
elif fid == 3:
|
|
|
6019 |
if ftype == TType.I64:
|
|
|
6020 |
self.circleId = iprot.readI64();
|
|
|
6021 |
else:
|
|
|
6022 |
iprot.skip(ftype)
|
|
|
6023 |
elif fid == 4:
|
|
|
6024 |
if ftype == TType.I64:
|
|
|
6025 |
self.denomination = iprot.readI64();
|
|
|
6026 |
else:
|
|
|
6027 |
iprot.skip(ftype)
|
|
|
6028 |
elif fid == 5:
|
|
|
6029 |
if ftype == TType.I64:
|
|
|
6030 |
self.maxDiscount = iprot.readI64();
|
|
|
6031 |
else:
|
|
|
6032 |
iprot.skip(ftype)
|
|
|
6033 |
else:
|
|
|
6034 |
iprot.skip(ftype)
|
|
|
6035 |
iprot.readFieldEnd()
|
|
|
6036 |
iprot.readStructEnd()
|
|
|
6037 |
|
|
|
6038 |
def write(self, oprot):
|
|
|
6039 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6040 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6041 |
return
|
|
|
6042 |
oprot.writeStructBegin('FRC')
|
|
|
6043 |
if self.id is not None:
|
|
|
6044 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
6045 |
oprot.writeI64(self.id)
|
|
|
6046 |
oprot.writeFieldEnd()
|
|
|
6047 |
if self.operatorId is not None:
|
|
|
6048 |
oprot.writeFieldBegin('operatorId', TType.I64, 2)
|
|
|
6049 |
oprot.writeI64(self.operatorId)
|
|
|
6050 |
oprot.writeFieldEnd()
|
|
|
6051 |
if self.circleId is not None:
|
|
|
6052 |
oprot.writeFieldBegin('circleId', TType.I64, 3)
|
|
|
6053 |
oprot.writeI64(self.circleId)
|
|
|
6054 |
oprot.writeFieldEnd()
|
|
|
6055 |
if self.denomination is not None:
|
|
|
6056 |
oprot.writeFieldBegin('denomination', TType.I64, 4)
|
|
|
6057 |
oprot.writeI64(self.denomination)
|
|
|
6058 |
oprot.writeFieldEnd()
|
|
|
6059 |
if self.maxDiscount is not None:
|
|
|
6060 |
oprot.writeFieldBegin('maxDiscount', TType.I64, 5)
|
|
|
6061 |
oprot.writeI64(self.maxDiscount)
|
|
|
6062 |
oprot.writeFieldEnd()
|
|
|
6063 |
oprot.writeFieldStop()
|
|
|
6064 |
oprot.writeStructEnd()
|
|
|
6065 |
|
|
|
6066 |
def validate(self):
|
|
|
6067 |
return
|
|
|
6068 |
|
|
|
6069 |
|
|
|
6070 |
def __repr__(self):
|
|
|
6071 |
L = ['%s=%r' % (key, value)
|
|
|
6072 |
for key, value in self.__dict__.iteritems()]
|
|
|
6073 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6074 |
|
|
|
6075 |
def __eq__(self, other):
|
|
|
6076 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6077 |
|
|
|
6078 |
def __ne__(self, other):
|
|
|
6079 |
return not (self == other)
|
|
|
6080 |
|
| 7096 |
anupam.sin |
6081 |
class HotspotStore:
|
|
|
6082 |
"""
|
|
|
6083 |
Attributes:
|
|
|
6084 |
- id
|
|
|
6085 |
- hotspotId
|
|
|
6086 |
- companyId
|
|
|
6087 |
- name
|
|
|
6088 |
- city
|
|
|
6089 |
- collectedAmount
|
|
|
6090 |
- availableLimit
|
|
|
6091 |
- creditLimit
|
|
|
6092 |
- salt
|
|
|
6093 |
- password
|
|
|
6094 |
- isActive
|
|
|
6095 |
- circleId
|
| 7169 |
anupam.sin |
6096 |
- email
|
| 7308 |
rajveer |
6097 |
- line1
|
|
|
6098 |
- line2
|
|
|
6099 |
- state
|
|
|
6100 |
- pin
|
|
|
6101 |
- phone
|
|
|
6102 |
- approvalEmail
|
| 7096 |
anupam.sin |
6103 |
"""
|
|
|
6104 |
|
|
|
6105 |
thrift_spec = (
|
|
|
6106 |
None, # 0
|
|
|
6107 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
6108 |
(2, TType.STRING, 'hotspotId', None, None, ), # 2
|
|
|
6109 |
(3, TType.I64, 'companyId', None, None, ), # 3
|
|
|
6110 |
(4, TType.STRING, 'name', None, None, ), # 4
|
|
|
6111 |
(5, TType.STRING, 'city', None, None, ), # 5
|
|
|
6112 |
(6, TType.I64, 'collectedAmount', None, None, ), # 6
|
|
|
6113 |
(7, TType.I64, 'availableLimit', None, None, ), # 7
|
|
|
6114 |
(8, TType.I64, 'creditLimit', None, None, ), # 8
|
|
|
6115 |
(9, TType.STRING, 'salt', None, None, ), # 9
|
|
|
6116 |
(10, TType.STRING, 'password', None, None, ), # 10
|
|
|
6117 |
(11, TType.BOOL, 'isActive', None, None, ), # 11
|
|
|
6118 |
(12, TType.I64, 'circleId', None, None, ), # 12
|
| 7169 |
anupam.sin |
6119 |
(13, TType.STRING, 'email', None, None, ), # 13
|
| 7308 |
rajveer |
6120 |
(14, TType.STRING, 'line1', None, None, ), # 14
|
|
|
6121 |
(15, TType.STRING, 'line2', None, None, ), # 15
|
|
|
6122 |
(16, TType.STRING, 'state', None, None, ), # 16
|
|
|
6123 |
(17, TType.STRING, 'pin', None, None, ), # 17
|
|
|
6124 |
(18, TType.STRING, 'phone', None, None, ), # 18
|
|
|
6125 |
(19, TType.STRING, 'approvalEmail', None, None, ), # 19
|
| 7096 |
anupam.sin |
6126 |
)
|
|
|
6127 |
|
| 7308 |
rajveer |
6128 |
def __init__(self, id=None, hotspotId=None, companyId=None, name=None, city=None, collectedAmount=None, availableLimit=None, creditLimit=None, salt=None, password=None, isActive=None, circleId=None, email=None, line1=None, line2=None, state=None, pin=None, phone=None, approvalEmail=None,):
|
| 7096 |
anupam.sin |
6129 |
self.id = id
|
|
|
6130 |
self.hotspotId = hotspotId
|
|
|
6131 |
self.companyId = companyId
|
|
|
6132 |
self.name = name
|
|
|
6133 |
self.city = city
|
|
|
6134 |
self.collectedAmount = collectedAmount
|
|
|
6135 |
self.availableLimit = availableLimit
|
|
|
6136 |
self.creditLimit = creditLimit
|
|
|
6137 |
self.salt = salt
|
|
|
6138 |
self.password = password
|
|
|
6139 |
self.isActive = isActive
|
|
|
6140 |
self.circleId = circleId
|
| 7169 |
anupam.sin |
6141 |
self.email = email
|
| 7308 |
rajveer |
6142 |
self.line1 = line1
|
|
|
6143 |
self.line2 = line2
|
|
|
6144 |
self.state = state
|
|
|
6145 |
self.pin = pin
|
|
|
6146 |
self.phone = phone
|
|
|
6147 |
self.approvalEmail = approvalEmail
|
| 7096 |
anupam.sin |
6148 |
|
|
|
6149 |
def read(self, iprot):
|
|
|
6150 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6151 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6152 |
return
|
|
|
6153 |
iprot.readStructBegin()
|
|
|
6154 |
while True:
|
|
|
6155 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6156 |
if ftype == TType.STOP:
|
|
|
6157 |
break
|
|
|
6158 |
if fid == 1:
|
|
|
6159 |
if ftype == TType.I64:
|
|
|
6160 |
self.id = iprot.readI64();
|
|
|
6161 |
else:
|
|
|
6162 |
iprot.skip(ftype)
|
|
|
6163 |
elif fid == 2:
|
|
|
6164 |
if ftype == TType.STRING:
|
|
|
6165 |
self.hotspotId = iprot.readString();
|
|
|
6166 |
else:
|
|
|
6167 |
iprot.skip(ftype)
|
|
|
6168 |
elif fid == 3:
|
|
|
6169 |
if ftype == TType.I64:
|
|
|
6170 |
self.companyId = iprot.readI64();
|
|
|
6171 |
else:
|
|
|
6172 |
iprot.skip(ftype)
|
|
|
6173 |
elif fid == 4:
|
|
|
6174 |
if ftype == TType.STRING:
|
|
|
6175 |
self.name = iprot.readString();
|
|
|
6176 |
else:
|
|
|
6177 |
iprot.skip(ftype)
|
|
|
6178 |
elif fid == 5:
|
|
|
6179 |
if ftype == TType.STRING:
|
|
|
6180 |
self.city = iprot.readString();
|
|
|
6181 |
else:
|
|
|
6182 |
iprot.skip(ftype)
|
|
|
6183 |
elif fid == 6:
|
|
|
6184 |
if ftype == TType.I64:
|
|
|
6185 |
self.collectedAmount = iprot.readI64();
|
|
|
6186 |
else:
|
|
|
6187 |
iprot.skip(ftype)
|
|
|
6188 |
elif fid == 7:
|
|
|
6189 |
if ftype == TType.I64:
|
|
|
6190 |
self.availableLimit = iprot.readI64();
|
|
|
6191 |
else:
|
|
|
6192 |
iprot.skip(ftype)
|
|
|
6193 |
elif fid == 8:
|
|
|
6194 |
if ftype == TType.I64:
|
|
|
6195 |
self.creditLimit = iprot.readI64();
|
|
|
6196 |
else:
|
|
|
6197 |
iprot.skip(ftype)
|
|
|
6198 |
elif fid == 9:
|
|
|
6199 |
if ftype == TType.STRING:
|
|
|
6200 |
self.salt = iprot.readString();
|
|
|
6201 |
else:
|
|
|
6202 |
iprot.skip(ftype)
|
|
|
6203 |
elif fid == 10:
|
|
|
6204 |
if ftype == TType.STRING:
|
|
|
6205 |
self.password = iprot.readString();
|
|
|
6206 |
else:
|
|
|
6207 |
iprot.skip(ftype)
|
|
|
6208 |
elif fid == 11:
|
|
|
6209 |
if ftype == TType.BOOL:
|
|
|
6210 |
self.isActive = iprot.readBool();
|
|
|
6211 |
else:
|
|
|
6212 |
iprot.skip(ftype)
|
|
|
6213 |
elif fid == 12:
|
|
|
6214 |
if ftype == TType.I64:
|
|
|
6215 |
self.circleId = iprot.readI64();
|
|
|
6216 |
else:
|
|
|
6217 |
iprot.skip(ftype)
|
| 7169 |
anupam.sin |
6218 |
elif fid == 13:
|
|
|
6219 |
if ftype == TType.STRING:
|
|
|
6220 |
self.email = iprot.readString();
|
|
|
6221 |
else:
|
|
|
6222 |
iprot.skip(ftype)
|
| 7308 |
rajveer |
6223 |
elif fid == 14:
|
|
|
6224 |
if ftype == TType.STRING:
|
|
|
6225 |
self.line1 = iprot.readString();
|
|
|
6226 |
else:
|
|
|
6227 |
iprot.skip(ftype)
|
|
|
6228 |
elif fid == 15:
|
|
|
6229 |
if ftype == TType.STRING:
|
|
|
6230 |
self.line2 = iprot.readString();
|
|
|
6231 |
else:
|
|
|
6232 |
iprot.skip(ftype)
|
|
|
6233 |
elif fid == 16:
|
|
|
6234 |
if ftype == TType.STRING:
|
|
|
6235 |
self.state = iprot.readString();
|
|
|
6236 |
else:
|
|
|
6237 |
iprot.skip(ftype)
|
|
|
6238 |
elif fid == 17:
|
|
|
6239 |
if ftype == TType.STRING:
|
|
|
6240 |
self.pin = iprot.readString();
|
|
|
6241 |
else:
|
|
|
6242 |
iprot.skip(ftype)
|
|
|
6243 |
elif fid == 18:
|
|
|
6244 |
if ftype == TType.STRING:
|
|
|
6245 |
self.phone = iprot.readString();
|
|
|
6246 |
else:
|
|
|
6247 |
iprot.skip(ftype)
|
|
|
6248 |
elif fid == 19:
|
|
|
6249 |
if ftype == TType.STRING:
|
|
|
6250 |
self.approvalEmail = iprot.readString();
|
|
|
6251 |
else:
|
|
|
6252 |
iprot.skip(ftype)
|
| 7096 |
anupam.sin |
6253 |
else:
|
|
|
6254 |
iprot.skip(ftype)
|
|
|
6255 |
iprot.readFieldEnd()
|
|
|
6256 |
iprot.readStructEnd()
|
|
|
6257 |
|
|
|
6258 |
def write(self, oprot):
|
|
|
6259 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6260 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6261 |
return
|
|
|
6262 |
oprot.writeStructBegin('HotspotStore')
|
|
|
6263 |
if self.id is not None:
|
|
|
6264 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
6265 |
oprot.writeI64(self.id)
|
|
|
6266 |
oprot.writeFieldEnd()
|
|
|
6267 |
if self.hotspotId is not None:
|
|
|
6268 |
oprot.writeFieldBegin('hotspotId', TType.STRING, 2)
|
|
|
6269 |
oprot.writeString(self.hotspotId)
|
|
|
6270 |
oprot.writeFieldEnd()
|
|
|
6271 |
if self.companyId is not None:
|
|
|
6272 |
oprot.writeFieldBegin('companyId', TType.I64, 3)
|
|
|
6273 |
oprot.writeI64(self.companyId)
|
|
|
6274 |
oprot.writeFieldEnd()
|
|
|
6275 |
if self.name is not None:
|
|
|
6276 |
oprot.writeFieldBegin('name', TType.STRING, 4)
|
|
|
6277 |
oprot.writeString(self.name)
|
|
|
6278 |
oprot.writeFieldEnd()
|
|
|
6279 |
if self.city is not None:
|
|
|
6280 |
oprot.writeFieldBegin('city', TType.STRING, 5)
|
|
|
6281 |
oprot.writeString(self.city)
|
|
|
6282 |
oprot.writeFieldEnd()
|
|
|
6283 |
if self.collectedAmount is not None:
|
|
|
6284 |
oprot.writeFieldBegin('collectedAmount', TType.I64, 6)
|
|
|
6285 |
oprot.writeI64(self.collectedAmount)
|
|
|
6286 |
oprot.writeFieldEnd()
|
|
|
6287 |
if self.availableLimit is not None:
|
|
|
6288 |
oprot.writeFieldBegin('availableLimit', TType.I64, 7)
|
|
|
6289 |
oprot.writeI64(self.availableLimit)
|
|
|
6290 |
oprot.writeFieldEnd()
|
|
|
6291 |
if self.creditLimit is not None:
|
|
|
6292 |
oprot.writeFieldBegin('creditLimit', TType.I64, 8)
|
|
|
6293 |
oprot.writeI64(self.creditLimit)
|
|
|
6294 |
oprot.writeFieldEnd()
|
|
|
6295 |
if self.salt is not None:
|
|
|
6296 |
oprot.writeFieldBegin('salt', TType.STRING, 9)
|
|
|
6297 |
oprot.writeString(self.salt)
|
|
|
6298 |
oprot.writeFieldEnd()
|
|
|
6299 |
if self.password is not None:
|
|
|
6300 |
oprot.writeFieldBegin('password', TType.STRING, 10)
|
|
|
6301 |
oprot.writeString(self.password)
|
|
|
6302 |
oprot.writeFieldEnd()
|
|
|
6303 |
if self.isActive is not None:
|
|
|
6304 |
oprot.writeFieldBegin('isActive', TType.BOOL, 11)
|
|
|
6305 |
oprot.writeBool(self.isActive)
|
|
|
6306 |
oprot.writeFieldEnd()
|
|
|
6307 |
if self.circleId is not None:
|
|
|
6308 |
oprot.writeFieldBegin('circleId', TType.I64, 12)
|
|
|
6309 |
oprot.writeI64(self.circleId)
|
|
|
6310 |
oprot.writeFieldEnd()
|
| 7169 |
anupam.sin |
6311 |
if self.email is not None:
|
|
|
6312 |
oprot.writeFieldBegin('email', TType.STRING, 13)
|
|
|
6313 |
oprot.writeString(self.email)
|
|
|
6314 |
oprot.writeFieldEnd()
|
| 7308 |
rajveer |
6315 |
if self.line1 is not None:
|
|
|
6316 |
oprot.writeFieldBegin('line1', TType.STRING, 14)
|
|
|
6317 |
oprot.writeString(self.line1)
|
|
|
6318 |
oprot.writeFieldEnd()
|
|
|
6319 |
if self.line2 is not None:
|
|
|
6320 |
oprot.writeFieldBegin('line2', TType.STRING, 15)
|
|
|
6321 |
oprot.writeString(self.line2)
|
|
|
6322 |
oprot.writeFieldEnd()
|
|
|
6323 |
if self.state is not None:
|
|
|
6324 |
oprot.writeFieldBegin('state', TType.STRING, 16)
|
|
|
6325 |
oprot.writeString(self.state)
|
|
|
6326 |
oprot.writeFieldEnd()
|
|
|
6327 |
if self.pin is not None:
|
|
|
6328 |
oprot.writeFieldBegin('pin', TType.STRING, 17)
|
|
|
6329 |
oprot.writeString(self.pin)
|
|
|
6330 |
oprot.writeFieldEnd()
|
|
|
6331 |
if self.phone is not None:
|
|
|
6332 |
oprot.writeFieldBegin('phone', TType.STRING, 18)
|
|
|
6333 |
oprot.writeString(self.phone)
|
|
|
6334 |
oprot.writeFieldEnd()
|
|
|
6335 |
if self.approvalEmail is not None:
|
|
|
6336 |
oprot.writeFieldBegin('approvalEmail', TType.STRING, 19)
|
|
|
6337 |
oprot.writeString(self.approvalEmail)
|
|
|
6338 |
oprot.writeFieldEnd()
|
| 7096 |
anupam.sin |
6339 |
oprot.writeFieldStop()
|
|
|
6340 |
oprot.writeStructEnd()
|
|
|
6341 |
|
|
|
6342 |
def validate(self):
|
|
|
6343 |
return
|
|
|
6344 |
|
|
|
6345 |
|
|
|
6346 |
def __repr__(self):
|
|
|
6347 |
L = ['%s=%r' % (key, value)
|
|
|
6348 |
for key, value in self.__dict__.iteritems()]
|
|
|
6349 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6350 |
|
|
|
6351 |
def __eq__(self, other):
|
|
|
6352 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6353 |
|
|
|
6354 |
def __ne__(self, other):
|
|
|
6355 |
return not (self == other)
|
|
|
6356 |
|
| 7967 |
anupam.sin |
6357 |
class HotspotServiceMatrix:
|
|
|
6358 |
"""
|
|
|
6359 |
Attributes:
|
|
|
6360 |
- storeId
|
|
|
6361 |
- hotspotId
|
|
|
6362 |
- pickupFromStoreService
|
|
|
6363 |
- storeWebsiteService
|
|
|
6364 |
- rechargeService
|
|
|
6365 |
"""
|
|
|
6366 |
|
|
|
6367 |
thrift_spec = (
|
|
|
6368 |
None, # 0
|
|
|
6369 |
(1, TType.I64, 'storeId', None, None, ), # 1
|
|
|
6370 |
(2, TType.STRING, 'hotspotId', None, None, ), # 2
|
|
|
6371 |
(3, TType.BOOL, 'pickupFromStoreService', None, None, ), # 3
|
|
|
6372 |
(4, TType.BOOL, 'storeWebsiteService', None, None, ), # 4
|
|
|
6373 |
(5, TType.BOOL, 'rechargeService', None, None, ), # 5
|
|
|
6374 |
)
|
|
|
6375 |
|
|
|
6376 |
def __init__(self, storeId=None, hotspotId=None, pickupFromStoreService=None, storeWebsiteService=None, rechargeService=None,):
|
|
|
6377 |
self.storeId = storeId
|
|
|
6378 |
self.hotspotId = hotspotId
|
|
|
6379 |
self.pickupFromStoreService = pickupFromStoreService
|
|
|
6380 |
self.storeWebsiteService = storeWebsiteService
|
|
|
6381 |
self.rechargeService = rechargeService
|
|
|
6382 |
|
|
|
6383 |
def read(self, iprot):
|
|
|
6384 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6385 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6386 |
return
|
|
|
6387 |
iprot.readStructBegin()
|
|
|
6388 |
while True:
|
|
|
6389 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6390 |
if ftype == TType.STOP:
|
|
|
6391 |
break
|
|
|
6392 |
if fid == 1:
|
|
|
6393 |
if ftype == TType.I64:
|
|
|
6394 |
self.storeId = iprot.readI64();
|
|
|
6395 |
else:
|
|
|
6396 |
iprot.skip(ftype)
|
|
|
6397 |
elif fid == 2:
|
|
|
6398 |
if ftype == TType.STRING:
|
|
|
6399 |
self.hotspotId = iprot.readString();
|
|
|
6400 |
else:
|
|
|
6401 |
iprot.skip(ftype)
|
|
|
6402 |
elif fid == 3:
|
|
|
6403 |
if ftype == TType.BOOL:
|
|
|
6404 |
self.pickupFromStoreService = iprot.readBool();
|
|
|
6405 |
else:
|
|
|
6406 |
iprot.skip(ftype)
|
|
|
6407 |
elif fid == 4:
|
|
|
6408 |
if ftype == TType.BOOL:
|
|
|
6409 |
self.storeWebsiteService = iprot.readBool();
|
|
|
6410 |
else:
|
|
|
6411 |
iprot.skip(ftype)
|
|
|
6412 |
elif fid == 5:
|
|
|
6413 |
if ftype == TType.BOOL:
|
|
|
6414 |
self.rechargeService = iprot.readBool();
|
|
|
6415 |
else:
|
|
|
6416 |
iprot.skip(ftype)
|
|
|
6417 |
else:
|
|
|
6418 |
iprot.skip(ftype)
|
|
|
6419 |
iprot.readFieldEnd()
|
|
|
6420 |
iprot.readStructEnd()
|
|
|
6421 |
|
|
|
6422 |
def write(self, oprot):
|
|
|
6423 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6424 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6425 |
return
|
|
|
6426 |
oprot.writeStructBegin('HotspotServiceMatrix')
|
|
|
6427 |
if self.storeId is not None:
|
|
|
6428 |
oprot.writeFieldBegin('storeId', TType.I64, 1)
|
|
|
6429 |
oprot.writeI64(self.storeId)
|
|
|
6430 |
oprot.writeFieldEnd()
|
|
|
6431 |
if self.hotspotId is not None:
|
|
|
6432 |
oprot.writeFieldBegin('hotspotId', TType.STRING, 2)
|
|
|
6433 |
oprot.writeString(self.hotspotId)
|
|
|
6434 |
oprot.writeFieldEnd()
|
|
|
6435 |
if self.pickupFromStoreService is not None:
|
|
|
6436 |
oprot.writeFieldBegin('pickupFromStoreService', TType.BOOL, 3)
|
|
|
6437 |
oprot.writeBool(self.pickupFromStoreService)
|
|
|
6438 |
oprot.writeFieldEnd()
|
|
|
6439 |
if self.storeWebsiteService is not None:
|
|
|
6440 |
oprot.writeFieldBegin('storeWebsiteService', TType.BOOL, 4)
|
|
|
6441 |
oprot.writeBool(self.storeWebsiteService)
|
|
|
6442 |
oprot.writeFieldEnd()
|
|
|
6443 |
if self.rechargeService is not None:
|
|
|
6444 |
oprot.writeFieldBegin('rechargeService', TType.BOOL, 5)
|
|
|
6445 |
oprot.writeBool(self.rechargeService)
|
|
|
6446 |
oprot.writeFieldEnd()
|
|
|
6447 |
oprot.writeFieldStop()
|
|
|
6448 |
oprot.writeStructEnd()
|
|
|
6449 |
|
|
|
6450 |
def validate(self):
|
|
|
6451 |
return
|
|
|
6452 |
|
|
|
6453 |
|
|
|
6454 |
def __repr__(self):
|
|
|
6455 |
L = ['%s=%r' % (key, value)
|
|
|
6456 |
for key, value in self.__dict__.iteritems()]
|
|
|
6457 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6458 |
|
|
|
6459 |
def __eq__(self, other):
|
|
|
6460 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6461 |
|
|
|
6462 |
def __ne__(self, other):
|
|
|
6463 |
return not (self == other)
|
|
|
6464 |
|
| 7073 |
anupam.sin |
6465 |
class RechargeTransaction:
|
|
|
6466 |
"""
|
|
|
6467 |
Attributes:
|
|
|
6468 |
- id
|
|
|
6469 |
- storeId
|
|
|
6470 |
- amount
|
|
|
6471 |
- transactionTime
|
|
|
6472 |
- deviceNum
|
|
|
6473 |
- deviceType
|
|
|
6474 |
- isFrc
|
|
|
6475 |
- email
|
|
|
6476 |
- discount
|
|
|
6477 |
- paymentAmount
|
|
|
6478 |
- payMethod
|
|
|
6479 |
- status
|
|
|
6480 |
- invoiceNumber
|
|
|
6481 |
- circleId
|
|
|
6482 |
- operatorId
|
|
|
6483 |
- plan
|
|
|
6484 |
- ipAddress
|
|
|
6485 |
- name
|
|
|
6486 |
- cafNum
|
|
|
6487 |
- simNum
|
| 7080 |
anupam.sin |
6488 |
- alternateNumber
|
| 7096 |
anupam.sin |
6489 |
- description
|
| 7169 |
anupam.sin |
6490 |
- responseTime
|
| 7369 |
rajveer |
6491 |
- spiceTID
|
|
|
6492 |
- aggTID
|
|
|
6493 |
- providerTID
|
| 7073 |
anupam.sin |
6494 |
"""
|
|
|
6495 |
|
|
|
6496 |
thrift_spec = (
|
|
|
6497 |
None, # 0
|
|
|
6498 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
6499 |
(2, TType.I64, 'storeId', None, None, ), # 2
|
|
|
6500 |
(3, TType.DOUBLE, 'amount', None, None, ), # 3
|
|
|
6501 |
(4, TType.I64, 'transactionTime', None, None, ), # 4
|
|
|
6502 |
(5, TType.STRING, 'deviceNum', None, None, ), # 5
|
|
|
6503 |
(6, TType.I32, 'deviceType', None, None, ), # 6
|
|
|
6504 |
(7, TType.BOOL, 'isFrc', None, None, ), # 7
|
|
|
6505 |
(8, TType.STRING, 'email', None, None, ), # 8
|
|
|
6506 |
(9, TType.DOUBLE, 'discount', None, None, ), # 9
|
|
|
6507 |
(10, TType.DOUBLE, 'paymentAmount', None, None, ), # 10
|
|
|
6508 |
(11, TType.I32, 'payMethod', None, None, ), # 11
|
|
|
6509 |
(12, TType.I32, 'status', None, None, ), # 12
|
|
|
6510 |
(13, TType.STRING, 'invoiceNumber', None, None, ), # 13
|
|
|
6511 |
(14, TType.I64, 'circleId', None, None, ), # 14
|
|
|
6512 |
(15, TType.I64, 'operatorId', None, None, ), # 15
|
|
|
6513 |
(16, TType.STRING, 'plan', None, None, ), # 16
|
|
|
6514 |
(17, TType.STRING, 'ipAddress', None, None, ), # 17
|
|
|
6515 |
(18, TType.STRING, 'name', None, None, ), # 18
|
|
|
6516 |
(19, TType.STRING, 'cafNum', None, None, ), # 19
|
|
|
6517 |
(20, TType.STRING, 'simNum', None, None, ), # 20
|
| 7080 |
anupam.sin |
6518 |
(21, TType.STRING, 'alternateNumber', None, None, ), # 21
|
| 7096 |
anupam.sin |
6519 |
(22, TType.STRING, 'description', None, None, ), # 22
|
| 7169 |
anupam.sin |
6520 |
(23, TType.I64, 'responseTime', None, None, ), # 23
|
| 7369 |
rajveer |
6521 |
(24, TType.STRING, 'spiceTID', None, None, ), # 24
|
|
|
6522 |
(25, TType.STRING, 'aggTID', None, None, ), # 25
|
|
|
6523 |
(26, TType.STRING, 'providerTID', None, None, ), # 26
|
| 7073 |
anupam.sin |
6524 |
)
|
|
|
6525 |
|
| 7369 |
rajveer |
6526 |
def __init__(self, id=None, storeId=None, amount=None, transactionTime=None, deviceNum=None, deviceType=None, isFrc=None, email=None, discount=None, paymentAmount=None, payMethod=None, status=None, invoiceNumber=None, circleId=None, operatorId=None, plan=None, ipAddress=None, name=None, cafNum=None, simNum=None, alternateNumber=None, description=None, responseTime=None, spiceTID=None, aggTID=None, providerTID=None,):
|
| 7073 |
anupam.sin |
6527 |
self.id = id
|
|
|
6528 |
self.storeId = storeId
|
|
|
6529 |
self.amount = amount
|
|
|
6530 |
self.transactionTime = transactionTime
|
|
|
6531 |
self.deviceNum = deviceNum
|
|
|
6532 |
self.deviceType = deviceType
|
|
|
6533 |
self.isFrc = isFrc
|
|
|
6534 |
self.email = email
|
|
|
6535 |
self.discount = discount
|
|
|
6536 |
self.paymentAmount = paymentAmount
|
|
|
6537 |
self.payMethod = payMethod
|
|
|
6538 |
self.status = status
|
|
|
6539 |
self.invoiceNumber = invoiceNumber
|
|
|
6540 |
self.circleId = circleId
|
|
|
6541 |
self.operatorId = operatorId
|
|
|
6542 |
self.plan = plan
|
|
|
6543 |
self.ipAddress = ipAddress
|
|
|
6544 |
self.name = name
|
|
|
6545 |
self.cafNum = cafNum
|
|
|
6546 |
self.simNum = simNum
|
| 7080 |
anupam.sin |
6547 |
self.alternateNumber = alternateNumber
|
| 7096 |
anupam.sin |
6548 |
self.description = description
|
| 7169 |
anupam.sin |
6549 |
self.responseTime = responseTime
|
| 7369 |
rajveer |
6550 |
self.spiceTID = spiceTID
|
|
|
6551 |
self.aggTID = aggTID
|
|
|
6552 |
self.providerTID = providerTID
|
| 7073 |
anupam.sin |
6553 |
|
|
|
6554 |
def read(self, iprot):
|
|
|
6555 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6556 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6557 |
return
|
|
|
6558 |
iprot.readStructBegin()
|
|
|
6559 |
while True:
|
|
|
6560 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6561 |
if ftype == TType.STOP:
|
|
|
6562 |
break
|
|
|
6563 |
if fid == 1:
|
|
|
6564 |
if ftype == TType.I64:
|
|
|
6565 |
self.id = iprot.readI64();
|
|
|
6566 |
else:
|
|
|
6567 |
iprot.skip(ftype)
|
|
|
6568 |
elif fid == 2:
|
|
|
6569 |
if ftype == TType.I64:
|
|
|
6570 |
self.storeId = iprot.readI64();
|
|
|
6571 |
else:
|
|
|
6572 |
iprot.skip(ftype)
|
|
|
6573 |
elif fid == 3:
|
|
|
6574 |
if ftype == TType.DOUBLE:
|
|
|
6575 |
self.amount = iprot.readDouble();
|
|
|
6576 |
else:
|
|
|
6577 |
iprot.skip(ftype)
|
|
|
6578 |
elif fid == 4:
|
|
|
6579 |
if ftype == TType.I64:
|
|
|
6580 |
self.transactionTime = iprot.readI64();
|
|
|
6581 |
else:
|
|
|
6582 |
iprot.skip(ftype)
|
|
|
6583 |
elif fid == 5:
|
|
|
6584 |
if ftype == TType.STRING:
|
|
|
6585 |
self.deviceNum = iprot.readString();
|
|
|
6586 |
else:
|
|
|
6587 |
iprot.skip(ftype)
|
|
|
6588 |
elif fid == 6:
|
|
|
6589 |
if ftype == TType.I32:
|
|
|
6590 |
self.deviceType = iprot.readI32();
|
|
|
6591 |
else:
|
|
|
6592 |
iprot.skip(ftype)
|
|
|
6593 |
elif fid == 7:
|
|
|
6594 |
if ftype == TType.BOOL:
|
|
|
6595 |
self.isFrc = iprot.readBool();
|
|
|
6596 |
else:
|
|
|
6597 |
iprot.skip(ftype)
|
|
|
6598 |
elif fid == 8:
|
|
|
6599 |
if ftype == TType.STRING:
|
|
|
6600 |
self.email = iprot.readString();
|
|
|
6601 |
else:
|
|
|
6602 |
iprot.skip(ftype)
|
|
|
6603 |
elif fid == 9:
|
|
|
6604 |
if ftype == TType.DOUBLE:
|
|
|
6605 |
self.discount = iprot.readDouble();
|
|
|
6606 |
else:
|
|
|
6607 |
iprot.skip(ftype)
|
|
|
6608 |
elif fid == 10:
|
|
|
6609 |
if ftype == TType.DOUBLE:
|
|
|
6610 |
self.paymentAmount = iprot.readDouble();
|
|
|
6611 |
else:
|
|
|
6612 |
iprot.skip(ftype)
|
|
|
6613 |
elif fid == 11:
|
|
|
6614 |
if ftype == TType.I32:
|
|
|
6615 |
self.payMethod = iprot.readI32();
|
|
|
6616 |
else:
|
|
|
6617 |
iprot.skip(ftype)
|
|
|
6618 |
elif fid == 12:
|
|
|
6619 |
if ftype == TType.I32:
|
|
|
6620 |
self.status = iprot.readI32();
|
|
|
6621 |
else:
|
|
|
6622 |
iprot.skip(ftype)
|
|
|
6623 |
elif fid == 13:
|
|
|
6624 |
if ftype == TType.STRING:
|
|
|
6625 |
self.invoiceNumber = iprot.readString();
|
|
|
6626 |
else:
|
|
|
6627 |
iprot.skip(ftype)
|
|
|
6628 |
elif fid == 14:
|
|
|
6629 |
if ftype == TType.I64:
|
|
|
6630 |
self.circleId = iprot.readI64();
|
|
|
6631 |
else:
|
|
|
6632 |
iprot.skip(ftype)
|
|
|
6633 |
elif fid == 15:
|
|
|
6634 |
if ftype == TType.I64:
|
|
|
6635 |
self.operatorId = iprot.readI64();
|
|
|
6636 |
else:
|
|
|
6637 |
iprot.skip(ftype)
|
|
|
6638 |
elif fid == 16:
|
|
|
6639 |
if ftype == TType.STRING:
|
|
|
6640 |
self.plan = iprot.readString();
|
|
|
6641 |
else:
|
|
|
6642 |
iprot.skip(ftype)
|
|
|
6643 |
elif fid == 17:
|
|
|
6644 |
if ftype == TType.STRING:
|
|
|
6645 |
self.ipAddress = iprot.readString();
|
|
|
6646 |
else:
|
|
|
6647 |
iprot.skip(ftype)
|
|
|
6648 |
elif fid == 18:
|
|
|
6649 |
if ftype == TType.STRING:
|
|
|
6650 |
self.name = iprot.readString();
|
|
|
6651 |
else:
|
|
|
6652 |
iprot.skip(ftype)
|
|
|
6653 |
elif fid == 19:
|
|
|
6654 |
if ftype == TType.STRING:
|
|
|
6655 |
self.cafNum = iprot.readString();
|
|
|
6656 |
else:
|
|
|
6657 |
iprot.skip(ftype)
|
|
|
6658 |
elif fid == 20:
|
|
|
6659 |
if ftype == TType.STRING:
|
|
|
6660 |
self.simNum = iprot.readString();
|
|
|
6661 |
else:
|
|
|
6662 |
iprot.skip(ftype)
|
| 7080 |
anupam.sin |
6663 |
elif fid == 21:
|
|
|
6664 |
if ftype == TType.STRING:
|
|
|
6665 |
self.alternateNumber = iprot.readString();
|
|
|
6666 |
else:
|
|
|
6667 |
iprot.skip(ftype)
|
| 7096 |
anupam.sin |
6668 |
elif fid == 22:
|
|
|
6669 |
if ftype == TType.STRING:
|
|
|
6670 |
self.description = iprot.readString();
|
|
|
6671 |
else:
|
|
|
6672 |
iprot.skip(ftype)
|
| 7169 |
anupam.sin |
6673 |
elif fid == 23:
|
|
|
6674 |
if ftype == TType.I64:
|
|
|
6675 |
self.responseTime = iprot.readI64();
|
|
|
6676 |
else:
|
|
|
6677 |
iprot.skip(ftype)
|
| 7369 |
rajveer |
6678 |
elif fid == 24:
|
|
|
6679 |
if ftype == TType.STRING:
|
|
|
6680 |
self.spiceTID = iprot.readString();
|
|
|
6681 |
else:
|
|
|
6682 |
iprot.skip(ftype)
|
|
|
6683 |
elif fid == 25:
|
|
|
6684 |
if ftype == TType.STRING:
|
|
|
6685 |
self.aggTID = iprot.readString();
|
|
|
6686 |
else:
|
|
|
6687 |
iprot.skip(ftype)
|
|
|
6688 |
elif fid == 26:
|
|
|
6689 |
if ftype == TType.STRING:
|
|
|
6690 |
self.providerTID = iprot.readString();
|
|
|
6691 |
else:
|
|
|
6692 |
iprot.skip(ftype)
|
| 7073 |
anupam.sin |
6693 |
else:
|
|
|
6694 |
iprot.skip(ftype)
|
|
|
6695 |
iprot.readFieldEnd()
|
|
|
6696 |
iprot.readStructEnd()
|
|
|
6697 |
|
|
|
6698 |
def write(self, oprot):
|
|
|
6699 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6700 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6701 |
return
|
|
|
6702 |
oprot.writeStructBegin('RechargeTransaction')
|
|
|
6703 |
if self.id is not None:
|
|
|
6704 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
6705 |
oprot.writeI64(self.id)
|
|
|
6706 |
oprot.writeFieldEnd()
|
|
|
6707 |
if self.storeId is not None:
|
|
|
6708 |
oprot.writeFieldBegin('storeId', TType.I64, 2)
|
|
|
6709 |
oprot.writeI64(self.storeId)
|
|
|
6710 |
oprot.writeFieldEnd()
|
|
|
6711 |
if self.amount is not None:
|
|
|
6712 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 3)
|
|
|
6713 |
oprot.writeDouble(self.amount)
|
|
|
6714 |
oprot.writeFieldEnd()
|
|
|
6715 |
if self.transactionTime is not None:
|
|
|
6716 |
oprot.writeFieldBegin('transactionTime', TType.I64, 4)
|
|
|
6717 |
oprot.writeI64(self.transactionTime)
|
|
|
6718 |
oprot.writeFieldEnd()
|
|
|
6719 |
if self.deviceNum is not None:
|
|
|
6720 |
oprot.writeFieldBegin('deviceNum', TType.STRING, 5)
|
|
|
6721 |
oprot.writeString(self.deviceNum)
|
|
|
6722 |
oprot.writeFieldEnd()
|
|
|
6723 |
if self.deviceType is not None:
|
|
|
6724 |
oprot.writeFieldBegin('deviceType', TType.I32, 6)
|
|
|
6725 |
oprot.writeI32(self.deviceType)
|
|
|
6726 |
oprot.writeFieldEnd()
|
|
|
6727 |
if self.isFrc is not None:
|
|
|
6728 |
oprot.writeFieldBegin('isFrc', TType.BOOL, 7)
|
|
|
6729 |
oprot.writeBool(self.isFrc)
|
|
|
6730 |
oprot.writeFieldEnd()
|
|
|
6731 |
if self.email is not None:
|
|
|
6732 |
oprot.writeFieldBegin('email', TType.STRING, 8)
|
|
|
6733 |
oprot.writeString(self.email)
|
|
|
6734 |
oprot.writeFieldEnd()
|
|
|
6735 |
if self.discount is not None:
|
|
|
6736 |
oprot.writeFieldBegin('discount', TType.DOUBLE, 9)
|
|
|
6737 |
oprot.writeDouble(self.discount)
|
|
|
6738 |
oprot.writeFieldEnd()
|
|
|
6739 |
if self.paymentAmount is not None:
|
|
|
6740 |
oprot.writeFieldBegin('paymentAmount', TType.DOUBLE, 10)
|
|
|
6741 |
oprot.writeDouble(self.paymentAmount)
|
|
|
6742 |
oprot.writeFieldEnd()
|
|
|
6743 |
if self.payMethod is not None:
|
|
|
6744 |
oprot.writeFieldBegin('payMethod', TType.I32, 11)
|
|
|
6745 |
oprot.writeI32(self.payMethod)
|
|
|
6746 |
oprot.writeFieldEnd()
|
|
|
6747 |
if self.status is not None:
|
|
|
6748 |
oprot.writeFieldBegin('status', TType.I32, 12)
|
|
|
6749 |
oprot.writeI32(self.status)
|
|
|
6750 |
oprot.writeFieldEnd()
|
|
|
6751 |
if self.invoiceNumber is not None:
|
|
|
6752 |
oprot.writeFieldBegin('invoiceNumber', TType.STRING, 13)
|
|
|
6753 |
oprot.writeString(self.invoiceNumber)
|
|
|
6754 |
oprot.writeFieldEnd()
|
|
|
6755 |
if self.circleId is not None:
|
|
|
6756 |
oprot.writeFieldBegin('circleId', TType.I64, 14)
|
|
|
6757 |
oprot.writeI64(self.circleId)
|
|
|
6758 |
oprot.writeFieldEnd()
|
|
|
6759 |
if self.operatorId is not None:
|
|
|
6760 |
oprot.writeFieldBegin('operatorId', TType.I64, 15)
|
|
|
6761 |
oprot.writeI64(self.operatorId)
|
|
|
6762 |
oprot.writeFieldEnd()
|
|
|
6763 |
if self.plan is not None:
|
|
|
6764 |
oprot.writeFieldBegin('plan', TType.STRING, 16)
|
|
|
6765 |
oprot.writeString(self.plan)
|
|
|
6766 |
oprot.writeFieldEnd()
|
|
|
6767 |
if self.ipAddress is not None:
|
|
|
6768 |
oprot.writeFieldBegin('ipAddress', TType.STRING, 17)
|
|
|
6769 |
oprot.writeString(self.ipAddress)
|
|
|
6770 |
oprot.writeFieldEnd()
|
|
|
6771 |
if self.name is not None:
|
|
|
6772 |
oprot.writeFieldBegin('name', TType.STRING, 18)
|
|
|
6773 |
oprot.writeString(self.name)
|
|
|
6774 |
oprot.writeFieldEnd()
|
|
|
6775 |
if self.cafNum is not None:
|
|
|
6776 |
oprot.writeFieldBegin('cafNum', TType.STRING, 19)
|
|
|
6777 |
oprot.writeString(self.cafNum)
|
|
|
6778 |
oprot.writeFieldEnd()
|
|
|
6779 |
if self.simNum is not None:
|
|
|
6780 |
oprot.writeFieldBegin('simNum', TType.STRING, 20)
|
|
|
6781 |
oprot.writeString(self.simNum)
|
|
|
6782 |
oprot.writeFieldEnd()
|
| 7080 |
anupam.sin |
6783 |
if self.alternateNumber is not None:
|
|
|
6784 |
oprot.writeFieldBegin('alternateNumber', TType.STRING, 21)
|
|
|
6785 |
oprot.writeString(self.alternateNumber)
|
|
|
6786 |
oprot.writeFieldEnd()
|
| 7096 |
anupam.sin |
6787 |
if self.description is not None:
|
|
|
6788 |
oprot.writeFieldBegin('description', TType.STRING, 22)
|
|
|
6789 |
oprot.writeString(self.description)
|
|
|
6790 |
oprot.writeFieldEnd()
|
| 7169 |
anupam.sin |
6791 |
if self.responseTime is not None:
|
|
|
6792 |
oprot.writeFieldBegin('responseTime', TType.I64, 23)
|
|
|
6793 |
oprot.writeI64(self.responseTime)
|
|
|
6794 |
oprot.writeFieldEnd()
|
| 7369 |
rajveer |
6795 |
if self.spiceTID is not None:
|
|
|
6796 |
oprot.writeFieldBegin('spiceTID', TType.STRING, 24)
|
|
|
6797 |
oprot.writeString(self.spiceTID)
|
|
|
6798 |
oprot.writeFieldEnd()
|
|
|
6799 |
if self.aggTID is not None:
|
|
|
6800 |
oprot.writeFieldBegin('aggTID', TType.STRING, 25)
|
|
|
6801 |
oprot.writeString(self.aggTID)
|
|
|
6802 |
oprot.writeFieldEnd()
|
|
|
6803 |
if self.providerTID is not None:
|
|
|
6804 |
oprot.writeFieldBegin('providerTID', TType.STRING, 26)
|
|
|
6805 |
oprot.writeString(self.providerTID)
|
|
|
6806 |
oprot.writeFieldEnd()
|
| 7073 |
anupam.sin |
6807 |
oprot.writeFieldStop()
|
|
|
6808 |
oprot.writeStructEnd()
|
|
|
6809 |
|
|
|
6810 |
def validate(self):
|
|
|
6811 |
return
|
|
|
6812 |
|
|
|
6813 |
|
|
|
6814 |
def __repr__(self):
|
|
|
6815 |
L = ['%s=%r' % (key, value)
|
|
|
6816 |
for key, value in self.__dict__.iteritems()]
|
|
|
6817 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6818 |
|
|
|
6819 |
def __eq__(self, other):
|
|
|
6820 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6821 |
|
|
|
6822 |
def __ne__(self, other):
|
|
|
6823 |
return not (self == other)
|
|
|
6824 |
|
| 7096 |
anupam.sin |
6825 |
class TelecomCircle:
|
|
|
6826 |
"""
|
|
|
6827 |
Attributes:
|
|
|
6828 |
- id
|
|
|
6829 |
- name
|
|
|
6830 |
- code
|
|
|
6831 |
"""
|
|
|
6832 |
|
|
|
6833 |
thrift_spec = (
|
|
|
6834 |
None, # 0
|
|
|
6835 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
6836 |
(2, TType.STRING, 'name', None, None, ), # 2
|
|
|
6837 |
(3, TType.STRING, 'code', None, None, ), # 3
|
|
|
6838 |
)
|
|
|
6839 |
|
|
|
6840 |
def __init__(self, id=None, name=None, code=None,):
|
|
|
6841 |
self.id = id
|
|
|
6842 |
self.name = name
|
|
|
6843 |
self.code = code
|
|
|
6844 |
|
|
|
6845 |
def read(self, iprot):
|
|
|
6846 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6847 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6848 |
return
|
|
|
6849 |
iprot.readStructBegin()
|
|
|
6850 |
while True:
|
|
|
6851 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6852 |
if ftype == TType.STOP:
|
|
|
6853 |
break
|
|
|
6854 |
if fid == 1:
|
|
|
6855 |
if ftype == TType.I64:
|
|
|
6856 |
self.id = iprot.readI64();
|
|
|
6857 |
else:
|
|
|
6858 |
iprot.skip(ftype)
|
|
|
6859 |
elif fid == 2:
|
|
|
6860 |
if ftype == TType.STRING:
|
|
|
6861 |
self.name = iprot.readString();
|
|
|
6862 |
else:
|
|
|
6863 |
iprot.skip(ftype)
|
|
|
6864 |
elif fid == 3:
|
|
|
6865 |
if ftype == TType.STRING:
|
|
|
6866 |
self.code = iprot.readString();
|
|
|
6867 |
else:
|
|
|
6868 |
iprot.skip(ftype)
|
|
|
6869 |
else:
|
|
|
6870 |
iprot.skip(ftype)
|
|
|
6871 |
iprot.readFieldEnd()
|
|
|
6872 |
iprot.readStructEnd()
|
|
|
6873 |
|
|
|
6874 |
def write(self, oprot):
|
|
|
6875 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6876 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6877 |
return
|
|
|
6878 |
oprot.writeStructBegin('TelecomCircle')
|
|
|
6879 |
if self.id is not None:
|
|
|
6880 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
6881 |
oprot.writeI64(self.id)
|
|
|
6882 |
oprot.writeFieldEnd()
|
|
|
6883 |
if self.name is not None:
|
|
|
6884 |
oprot.writeFieldBegin('name', TType.STRING, 2)
|
|
|
6885 |
oprot.writeString(self.name)
|
|
|
6886 |
oprot.writeFieldEnd()
|
|
|
6887 |
if self.code is not None:
|
|
|
6888 |
oprot.writeFieldBegin('code', TType.STRING, 3)
|
|
|
6889 |
oprot.writeString(self.code)
|
|
|
6890 |
oprot.writeFieldEnd()
|
|
|
6891 |
oprot.writeFieldStop()
|
|
|
6892 |
oprot.writeStructEnd()
|
|
|
6893 |
|
|
|
6894 |
def validate(self):
|
|
|
6895 |
return
|
|
|
6896 |
|
|
|
6897 |
|
|
|
6898 |
def __repr__(self):
|
|
|
6899 |
L = ['%s=%r' % (key, value)
|
|
|
6900 |
for key, value in self.__dict__.iteritems()]
|
|
|
6901 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
6902 |
|
|
|
6903 |
def __eq__(self, other):
|
|
|
6904 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
6905 |
|
|
|
6906 |
def __ne__(self, other):
|
|
|
6907 |
return not (self == other)
|
|
|
6908 |
|
| 7263 |
anupam.sin |
6909 |
class SourceDetail:
|
|
|
6910 |
"""
|
|
|
6911 |
Attributes:
|
|
|
6912 |
- id
|
|
|
6913 |
- name
|
|
|
6914 |
- email
|
| 7410 |
amar.kumar |
6915 |
- tinNumber
|
| 7530 |
kshitij.so |
6916 |
- lastUpdatedOn
|
| 7263 |
anupam.sin |
6917 |
"""
|
|
|
6918 |
|
|
|
6919 |
thrift_spec = (
|
|
|
6920 |
None, # 0
|
|
|
6921 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
6922 |
(2, TType.STRING, 'name', None, None, ), # 2
|
|
|
6923 |
(3, TType.STRING, 'email', None, None, ), # 3
|
| 7410 |
amar.kumar |
6924 |
(4, TType.STRING, 'tinNumber', None, None, ), # 4
|
| 7530 |
kshitij.so |
6925 |
(5, TType.I64, 'lastUpdatedOn', None, None, ), # 5
|
| 7263 |
anupam.sin |
6926 |
)
|
|
|
6927 |
|
| 7530 |
kshitij.so |
6928 |
def __init__(self, id=None, name=None, email=None, tinNumber=None, lastUpdatedOn=None,):
|
| 7263 |
anupam.sin |
6929 |
self.id = id
|
|
|
6930 |
self.name = name
|
|
|
6931 |
self.email = email
|
| 7410 |
amar.kumar |
6932 |
self.tinNumber = tinNumber
|
| 7530 |
kshitij.so |
6933 |
self.lastUpdatedOn = lastUpdatedOn
|
| 7263 |
anupam.sin |
6934 |
|
|
|
6935 |
def read(self, iprot):
|
|
|
6936 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6937 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
6938 |
return
|
|
|
6939 |
iprot.readStructBegin()
|
|
|
6940 |
while True:
|
|
|
6941 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
6942 |
if ftype == TType.STOP:
|
|
|
6943 |
break
|
|
|
6944 |
if fid == 1:
|
|
|
6945 |
if ftype == TType.I64:
|
|
|
6946 |
self.id = iprot.readI64();
|
|
|
6947 |
else:
|
|
|
6948 |
iprot.skip(ftype)
|
|
|
6949 |
elif fid == 2:
|
|
|
6950 |
if ftype == TType.STRING:
|
|
|
6951 |
self.name = iprot.readString();
|
|
|
6952 |
else:
|
|
|
6953 |
iprot.skip(ftype)
|
|
|
6954 |
elif fid == 3:
|
|
|
6955 |
if ftype == TType.STRING:
|
|
|
6956 |
self.email = iprot.readString();
|
|
|
6957 |
else:
|
|
|
6958 |
iprot.skip(ftype)
|
| 7410 |
amar.kumar |
6959 |
elif fid == 4:
|
|
|
6960 |
if ftype == TType.STRING:
|
|
|
6961 |
self.tinNumber = iprot.readString();
|
|
|
6962 |
else:
|
|
|
6963 |
iprot.skip(ftype)
|
| 7530 |
kshitij.so |
6964 |
elif fid == 5:
|
|
|
6965 |
if ftype == TType.I64:
|
|
|
6966 |
self.lastUpdatedOn = iprot.readI64();
|
|
|
6967 |
else:
|
|
|
6968 |
iprot.skip(ftype)
|
| 7263 |
anupam.sin |
6969 |
else:
|
|
|
6970 |
iprot.skip(ftype)
|
|
|
6971 |
iprot.readFieldEnd()
|
|
|
6972 |
iprot.readStructEnd()
|
|
|
6973 |
|
|
|
6974 |
def write(self, oprot):
|
|
|
6975 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
6976 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
6977 |
return
|
|
|
6978 |
oprot.writeStructBegin('SourceDetail')
|
|
|
6979 |
if self.id is not None:
|
|
|
6980 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
6981 |
oprot.writeI64(self.id)
|
|
|
6982 |
oprot.writeFieldEnd()
|
|
|
6983 |
if self.name is not None:
|
|
|
6984 |
oprot.writeFieldBegin('name', TType.STRING, 2)
|
|
|
6985 |
oprot.writeString(self.name)
|
|
|
6986 |
oprot.writeFieldEnd()
|
|
|
6987 |
if self.email is not None:
|
|
|
6988 |
oprot.writeFieldBegin('email', TType.STRING, 3)
|
|
|
6989 |
oprot.writeString(self.email)
|
|
|
6990 |
oprot.writeFieldEnd()
|
| 7410 |
amar.kumar |
6991 |
if self.tinNumber is not None:
|
|
|
6992 |
oprot.writeFieldBegin('tinNumber', TType.STRING, 4)
|
|
|
6993 |
oprot.writeString(self.tinNumber)
|
|
|
6994 |
oprot.writeFieldEnd()
|
| 7530 |
kshitij.so |
6995 |
if self.lastUpdatedOn is not None:
|
|
|
6996 |
oprot.writeFieldBegin('lastUpdatedOn', TType.I64, 5)
|
|
|
6997 |
oprot.writeI64(self.lastUpdatedOn)
|
|
|
6998 |
oprot.writeFieldEnd()
|
| 7263 |
anupam.sin |
6999 |
oprot.writeFieldStop()
|
|
|
7000 |
oprot.writeStructEnd()
|
|
|
7001 |
|
|
|
7002 |
def validate(self):
|
|
|
7003 |
return
|
|
|
7004 |
|
|
|
7005 |
|
|
|
7006 |
def __repr__(self):
|
|
|
7007 |
L = ['%s=%r' % (key, value)
|
|
|
7008 |
for key, value in self.__dict__.iteritems()]
|
|
|
7009 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7010 |
|
|
|
7011 |
def __eq__(self, other):
|
|
|
7012 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7013 |
|
|
|
7014 |
def __ne__(self, other):
|
|
|
7015 |
return not (self == other)
|
|
|
7016 |
|
| 7311 |
kshitij.so |
7017 |
class AmazonOrder:
|
|
|
7018 |
"""
|
|
|
7019 |
Attributes:
|
|
|
7020 |
- orderId
|
|
|
7021 |
- amazonOrderCode
|
|
|
7022 |
- amazonOrderItemCode
|
|
|
7023 |
- transactionId
|
|
|
7024 |
- item_id
|
|
|
7025 |
- status
|
| 7715 |
vikram.rag |
7026 |
- purchaseDateOnAmazon
|
| 7311 |
kshitij.so |
7027 |
"""
|
|
|
7028 |
|
|
|
7029 |
thrift_spec = (
|
|
|
7030 |
None, # 0
|
|
|
7031 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
| 7322 |
vikram.rag |
7032 |
(2, TType.STRING, 'amazonOrderCode', None, None, ), # 2
|
|
|
7033 |
(3, TType.STRING, 'amazonOrderItemCode', None, None, ), # 3
|
| 7311 |
kshitij.so |
7034 |
(4, TType.I64, 'transactionId', None, None, ), # 4
|
|
|
7035 |
(5, TType.I64, 'item_id', None, None, ), # 5
|
|
|
7036 |
(6, TType.STRING, 'status', None, None, ), # 6
|
| 7715 |
vikram.rag |
7037 |
(7, TType.I64, 'purchaseDateOnAmazon', None, None, ), # 7
|
| 7311 |
kshitij.so |
7038 |
)
|
|
|
7039 |
|
| 7715 |
vikram.rag |
7040 |
def __init__(self, orderId=None, amazonOrderCode=None, amazonOrderItemCode=None, transactionId=None, item_id=None, status=None, purchaseDateOnAmazon=None,):
|
| 7311 |
kshitij.so |
7041 |
self.orderId = orderId
|
|
|
7042 |
self.amazonOrderCode = amazonOrderCode
|
|
|
7043 |
self.amazonOrderItemCode = amazonOrderItemCode
|
|
|
7044 |
self.transactionId = transactionId
|
|
|
7045 |
self.item_id = item_id
|
|
|
7046 |
self.status = status
|
| 7715 |
vikram.rag |
7047 |
self.purchaseDateOnAmazon = purchaseDateOnAmazon
|
| 7311 |
kshitij.so |
7048 |
|
|
|
7049 |
def read(self, iprot):
|
|
|
7050 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7051 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7052 |
return
|
|
|
7053 |
iprot.readStructBegin()
|
|
|
7054 |
while True:
|
|
|
7055 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7056 |
if ftype == TType.STOP:
|
|
|
7057 |
break
|
|
|
7058 |
if fid == 1:
|
|
|
7059 |
if ftype == TType.I64:
|
|
|
7060 |
self.orderId = iprot.readI64();
|
|
|
7061 |
else:
|
|
|
7062 |
iprot.skip(ftype)
|
|
|
7063 |
elif fid == 2:
|
| 7322 |
vikram.rag |
7064 |
if ftype == TType.STRING:
|
|
|
7065 |
self.amazonOrderCode = iprot.readString();
|
| 7311 |
kshitij.so |
7066 |
else:
|
|
|
7067 |
iprot.skip(ftype)
|
|
|
7068 |
elif fid == 3:
|
| 7322 |
vikram.rag |
7069 |
if ftype == TType.STRING:
|
|
|
7070 |
self.amazonOrderItemCode = iprot.readString();
|
| 7311 |
kshitij.so |
7071 |
else:
|
|
|
7072 |
iprot.skip(ftype)
|
|
|
7073 |
elif fid == 4:
|
|
|
7074 |
if ftype == TType.I64:
|
|
|
7075 |
self.transactionId = iprot.readI64();
|
|
|
7076 |
else:
|
|
|
7077 |
iprot.skip(ftype)
|
|
|
7078 |
elif fid == 5:
|
|
|
7079 |
if ftype == TType.I64:
|
|
|
7080 |
self.item_id = iprot.readI64();
|
|
|
7081 |
else:
|
|
|
7082 |
iprot.skip(ftype)
|
|
|
7083 |
elif fid == 6:
|
|
|
7084 |
if ftype == TType.STRING:
|
|
|
7085 |
self.status = iprot.readString();
|
|
|
7086 |
else:
|
|
|
7087 |
iprot.skip(ftype)
|
| 7715 |
vikram.rag |
7088 |
elif fid == 7:
|
|
|
7089 |
if ftype == TType.I64:
|
|
|
7090 |
self.purchaseDateOnAmazon = iprot.readI64();
|
|
|
7091 |
else:
|
|
|
7092 |
iprot.skip(ftype)
|
| 7311 |
kshitij.so |
7093 |
else:
|
|
|
7094 |
iprot.skip(ftype)
|
|
|
7095 |
iprot.readFieldEnd()
|
|
|
7096 |
iprot.readStructEnd()
|
|
|
7097 |
|
|
|
7098 |
def write(self, oprot):
|
|
|
7099 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7100 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7101 |
return
|
|
|
7102 |
oprot.writeStructBegin('AmazonOrder')
|
|
|
7103 |
if self.orderId is not None:
|
|
|
7104 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
7105 |
oprot.writeI64(self.orderId)
|
|
|
7106 |
oprot.writeFieldEnd()
|
|
|
7107 |
if self.amazonOrderCode is not None:
|
| 7322 |
vikram.rag |
7108 |
oprot.writeFieldBegin('amazonOrderCode', TType.STRING, 2)
|
|
|
7109 |
oprot.writeString(self.amazonOrderCode)
|
| 7311 |
kshitij.so |
7110 |
oprot.writeFieldEnd()
|
|
|
7111 |
if self.amazonOrderItemCode is not None:
|
| 7322 |
vikram.rag |
7112 |
oprot.writeFieldBegin('amazonOrderItemCode', TType.STRING, 3)
|
|
|
7113 |
oprot.writeString(self.amazonOrderItemCode)
|
| 7311 |
kshitij.so |
7114 |
oprot.writeFieldEnd()
|
|
|
7115 |
if self.transactionId is not None:
|
|
|
7116 |
oprot.writeFieldBegin('transactionId', TType.I64, 4)
|
|
|
7117 |
oprot.writeI64(self.transactionId)
|
|
|
7118 |
oprot.writeFieldEnd()
|
|
|
7119 |
if self.item_id is not None:
|
|
|
7120 |
oprot.writeFieldBegin('item_id', TType.I64, 5)
|
|
|
7121 |
oprot.writeI64(self.item_id)
|
|
|
7122 |
oprot.writeFieldEnd()
|
|
|
7123 |
if self.status is not None:
|
|
|
7124 |
oprot.writeFieldBegin('status', TType.STRING, 6)
|
|
|
7125 |
oprot.writeString(self.status)
|
|
|
7126 |
oprot.writeFieldEnd()
|
| 7715 |
vikram.rag |
7127 |
if self.purchaseDateOnAmazon is not None:
|
|
|
7128 |
oprot.writeFieldBegin('purchaseDateOnAmazon', TType.I64, 7)
|
|
|
7129 |
oprot.writeI64(self.purchaseDateOnAmazon)
|
|
|
7130 |
oprot.writeFieldEnd()
|
| 7311 |
kshitij.so |
7131 |
oprot.writeFieldStop()
|
|
|
7132 |
oprot.writeStructEnd()
|
|
|
7133 |
|
|
|
7134 |
def validate(self):
|
|
|
7135 |
return
|
|
|
7136 |
|
|
|
7137 |
|
|
|
7138 |
def __repr__(self):
|
|
|
7139 |
L = ['%s=%r' % (key, value)
|
|
|
7140 |
for key, value in self.__dict__.iteritems()]
|
|
|
7141 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7142 |
|
|
|
7143 |
def __eq__(self, other):
|
|
|
7144 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7145 |
|
|
|
7146 |
def __ne__(self, other):
|
|
|
7147 |
return not (self == other)
|
|
|
7148 |
|
| 7386 |
anupam.sin |
7149 |
class StoreOrderDetail:
|
|
|
7150 |
"""
|
|
|
7151 |
Attributes:
|
|
|
7152 |
- orderId
|
|
|
7153 |
- storeId
|
|
|
7154 |
- advanceAmount
|
|
|
7155 |
- cashAmount
|
|
|
7156 |
- cardAmount
|
|
|
7157 |
- payStatus
|
| 7393 |
anupam.sin |
7158 |
- edcBank
|
|
|
7159 |
- cashRefundAmount
|
|
|
7160 |
- cardRefundAmount
|
| 7423 |
anupam.sin |
7161 |
- approvalCode
|
| 7611 |
anupam.sin |
7162 |
- cardType
|
| 7386 |
anupam.sin |
7163 |
"""
|
|
|
7164 |
|
|
|
7165 |
thrift_spec = (
|
|
|
7166 |
None, # 0
|
|
|
7167 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
|
|
7168 |
(2, TType.I64, 'storeId', None, None, ), # 2
|
|
|
7169 |
(3, TType.DOUBLE, 'advanceAmount', None, None, ), # 3
|
|
|
7170 |
(4, TType.DOUBLE, 'cashAmount', None, None, ), # 4
|
|
|
7171 |
(5, TType.DOUBLE, 'cardAmount', None, None, ), # 5
|
|
|
7172 |
(6, TType.I32, 'payStatus', None, None, ), # 6
|
| 7393 |
anupam.sin |
7173 |
(7, TType.STRING, 'edcBank', None, None, ), # 7
|
|
|
7174 |
(8, TType.DOUBLE, 'cashRefundAmount', None, None, ), # 8
|
|
|
7175 |
(9, TType.DOUBLE, 'cardRefundAmount', None, None, ), # 9
|
| 7423 |
anupam.sin |
7176 |
(10, TType.STRING, 'approvalCode', None, None, ), # 10
|
| 7611 |
anupam.sin |
7177 |
(11, TType.STRING, 'cardType', None, None, ), # 11
|
| 7386 |
anupam.sin |
7178 |
)
|
|
|
7179 |
|
| 7611 |
anupam.sin |
7180 |
def __init__(self, orderId=None, storeId=None, advanceAmount=None, cashAmount=None, cardAmount=None, payStatus=None, edcBank=None, cashRefundAmount=None, cardRefundAmount=None, approvalCode=None, cardType=None,):
|
| 7386 |
anupam.sin |
7181 |
self.orderId = orderId
|
|
|
7182 |
self.storeId = storeId
|
|
|
7183 |
self.advanceAmount = advanceAmount
|
|
|
7184 |
self.cashAmount = cashAmount
|
|
|
7185 |
self.cardAmount = cardAmount
|
|
|
7186 |
self.payStatus = payStatus
|
| 7393 |
anupam.sin |
7187 |
self.edcBank = edcBank
|
|
|
7188 |
self.cashRefundAmount = cashRefundAmount
|
|
|
7189 |
self.cardRefundAmount = cardRefundAmount
|
| 7423 |
anupam.sin |
7190 |
self.approvalCode = approvalCode
|
| 7611 |
anupam.sin |
7191 |
self.cardType = cardType
|
| 7386 |
anupam.sin |
7192 |
|
|
|
7193 |
def read(self, iprot):
|
|
|
7194 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7195 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7196 |
return
|
|
|
7197 |
iprot.readStructBegin()
|
|
|
7198 |
while True:
|
|
|
7199 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7200 |
if ftype == TType.STOP:
|
|
|
7201 |
break
|
|
|
7202 |
if fid == 1:
|
|
|
7203 |
if ftype == TType.I64:
|
|
|
7204 |
self.orderId = iprot.readI64();
|
|
|
7205 |
else:
|
|
|
7206 |
iprot.skip(ftype)
|
|
|
7207 |
elif fid == 2:
|
|
|
7208 |
if ftype == TType.I64:
|
|
|
7209 |
self.storeId = iprot.readI64();
|
|
|
7210 |
else:
|
|
|
7211 |
iprot.skip(ftype)
|
|
|
7212 |
elif fid == 3:
|
|
|
7213 |
if ftype == TType.DOUBLE:
|
|
|
7214 |
self.advanceAmount = iprot.readDouble();
|
|
|
7215 |
else:
|
|
|
7216 |
iprot.skip(ftype)
|
|
|
7217 |
elif fid == 4:
|
|
|
7218 |
if ftype == TType.DOUBLE:
|
|
|
7219 |
self.cashAmount = iprot.readDouble();
|
|
|
7220 |
else:
|
|
|
7221 |
iprot.skip(ftype)
|
|
|
7222 |
elif fid == 5:
|
|
|
7223 |
if ftype == TType.DOUBLE:
|
|
|
7224 |
self.cardAmount = iprot.readDouble();
|
|
|
7225 |
else:
|
|
|
7226 |
iprot.skip(ftype)
|
|
|
7227 |
elif fid == 6:
|
|
|
7228 |
if ftype == TType.I32:
|
|
|
7229 |
self.payStatus = iprot.readI32();
|
|
|
7230 |
else:
|
|
|
7231 |
iprot.skip(ftype)
|
| 7393 |
anupam.sin |
7232 |
elif fid == 7:
|
|
|
7233 |
if ftype == TType.STRING:
|
|
|
7234 |
self.edcBank = iprot.readString();
|
|
|
7235 |
else:
|
|
|
7236 |
iprot.skip(ftype)
|
|
|
7237 |
elif fid == 8:
|
|
|
7238 |
if ftype == TType.DOUBLE:
|
|
|
7239 |
self.cashRefundAmount = iprot.readDouble();
|
|
|
7240 |
else:
|
|
|
7241 |
iprot.skip(ftype)
|
|
|
7242 |
elif fid == 9:
|
|
|
7243 |
if ftype == TType.DOUBLE:
|
|
|
7244 |
self.cardRefundAmount = iprot.readDouble();
|
|
|
7245 |
else:
|
|
|
7246 |
iprot.skip(ftype)
|
| 7423 |
anupam.sin |
7247 |
elif fid == 10:
|
|
|
7248 |
if ftype == TType.STRING:
|
|
|
7249 |
self.approvalCode = iprot.readString();
|
|
|
7250 |
else:
|
|
|
7251 |
iprot.skip(ftype)
|
| 7611 |
anupam.sin |
7252 |
elif fid == 11:
|
|
|
7253 |
if ftype == TType.STRING:
|
|
|
7254 |
self.cardType = iprot.readString();
|
|
|
7255 |
else:
|
|
|
7256 |
iprot.skip(ftype)
|
| 7386 |
anupam.sin |
7257 |
else:
|
|
|
7258 |
iprot.skip(ftype)
|
|
|
7259 |
iprot.readFieldEnd()
|
|
|
7260 |
iprot.readStructEnd()
|
|
|
7261 |
|
|
|
7262 |
def write(self, oprot):
|
|
|
7263 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7264 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7265 |
return
|
|
|
7266 |
oprot.writeStructBegin('StoreOrderDetail')
|
|
|
7267 |
if self.orderId is not None:
|
|
|
7268 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
7269 |
oprot.writeI64(self.orderId)
|
|
|
7270 |
oprot.writeFieldEnd()
|
|
|
7271 |
if self.storeId is not None:
|
|
|
7272 |
oprot.writeFieldBegin('storeId', TType.I64, 2)
|
|
|
7273 |
oprot.writeI64(self.storeId)
|
|
|
7274 |
oprot.writeFieldEnd()
|
|
|
7275 |
if self.advanceAmount is not None:
|
|
|
7276 |
oprot.writeFieldBegin('advanceAmount', TType.DOUBLE, 3)
|
|
|
7277 |
oprot.writeDouble(self.advanceAmount)
|
|
|
7278 |
oprot.writeFieldEnd()
|
|
|
7279 |
if self.cashAmount is not None:
|
|
|
7280 |
oprot.writeFieldBegin('cashAmount', TType.DOUBLE, 4)
|
|
|
7281 |
oprot.writeDouble(self.cashAmount)
|
|
|
7282 |
oprot.writeFieldEnd()
|
|
|
7283 |
if self.cardAmount is not None:
|
|
|
7284 |
oprot.writeFieldBegin('cardAmount', TType.DOUBLE, 5)
|
|
|
7285 |
oprot.writeDouble(self.cardAmount)
|
|
|
7286 |
oprot.writeFieldEnd()
|
|
|
7287 |
if self.payStatus is not None:
|
|
|
7288 |
oprot.writeFieldBegin('payStatus', TType.I32, 6)
|
|
|
7289 |
oprot.writeI32(self.payStatus)
|
|
|
7290 |
oprot.writeFieldEnd()
|
| 7393 |
anupam.sin |
7291 |
if self.edcBank is not None:
|
|
|
7292 |
oprot.writeFieldBegin('edcBank', TType.STRING, 7)
|
|
|
7293 |
oprot.writeString(self.edcBank)
|
|
|
7294 |
oprot.writeFieldEnd()
|
|
|
7295 |
if self.cashRefundAmount is not None:
|
|
|
7296 |
oprot.writeFieldBegin('cashRefundAmount', TType.DOUBLE, 8)
|
|
|
7297 |
oprot.writeDouble(self.cashRefundAmount)
|
|
|
7298 |
oprot.writeFieldEnd()
|
|
|
7299 |
if self.cardRefundAmount is not None:
|
|
|
7300 |
oprot.writeFieldBegin('cardRefundAmount', TType.DOUBLE, 9)
|
|
|
7301 |
oprot.writeDouble(self.cardRefundAmount)
|
|
|
7302 |
oprot.writeFieldEnd()
|
| 7423 |
anupam.sin |
7303 |
if self.approvalCode is not None:
|
|
|
7304 |
oprot.writeFieldBegin('approvalCode', TType.STRING, 10)
|
|
|
7305 |
oprot.writeString(self.approvalCode)
|
|
|
7306 |
oprot.writeFieldEnd()
|
| 7611 |
anupam.sin |
7307 |
if self.cardType is not None:
|
|
|
7308 |
oprot.writeFieldBegin('cardType', TType.STRING, 11)
|
|
|
7309 |
oprot.writeString(self.cardType)
|
|
|
7310 |
oprot.writeFieldEnd()
|
| 7386 |
anupam.sin |
7311 |
oprot.writeFieldStop()
|
|
|
7312 |
oprot.writeStructEnd()
|
|
|
7313 |
|
|
|
7314 |
def validate(self):
|
|
|
7315 |
return
|
|
|
7316 |
|
|
|
7317 |
|
|
|
7318 |
def __repr__(self):
|
|
|
7319 |
L = ['%s=%r' % (key, value)
|
|
|
7320 |
for key, value in self.__dict__.iteritems()]
|
|
|
7321 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7322 |
|
|
|
7323 |
def __eq__(self, other):
|
|
|
7324 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7325 |
|
|
|
7326 |
def __ne__(self, other):
|
|
|
7327 |
return not (self == other)
|
|
|
7328 |
|
| 7423 |
anupam.sin |
7329 |
class StoreOrderCollection:
|
|
|
7330 |
"""
|
|
|
7331 |
Attributes:
|
|
|
7332 |
- hotspotId
|
|
|
7333 |
- orderId
|
|
|
7334 |
- collectionType
|
|
|
7335 |
- productName
|
|
|
7336 |
- advanceAmount
|
|
|
7337 |
- cash
|
|
|
7338 |
- card
|
|
|
7339 |
- addedAt
|
|
|
7340 |
- pushedAt
|
|
|
7341 |
- pushedToOcr
|
|
|
7342 |
"""
|
|
|
7343 |
|
|
|
7344 |
thrift_spec = (
|
|
|
7345 |
None, # 0
|
|
|
7346 |
(1, TType.STRING, 'hotspotId', None, None, ), # 1
|
|
|
7347 |
(2, TType.I64, 'orderId', None, None, ), # 2
|
|
|
7348 |
(3, TType.STRING, 'collectionType', None, None, ), # 3
|
|
|
7349 |
(4, TType.STRING, 'productName', None, None, ), # 4
|
|
|
7350 |
(5, TType.I64, 'advanceAmount', None, None, ), # 5
|
|
|
7351 |
(6, TType.I64, 'cash', None, None, ), # 6
|
|
|
7352 |
(7, TType.I64, 'card', None, None, ), # 7
|
|
|
7353 |
(8, TType.I64, 'addedAt', None, None, ), # 8
|
|
|
7354 |
(9, TType.I64, 'pushedAt', None, None, ), # 9
|
|
|
7355 |
(10, TType.BOOL, 'pushedToOcr', None, None, ), # 10
|
|
|
7356 |
)
|
|
|
7357 |
|
|
|
7358 |
def __init__(self, hotspotId=None, orderId=None, collectionType=None, productName=None, advanceAmount=None, cash=None, card=None, addedAt=None, pushedAt=None, pushedToOcr=None,):
|
|
|
7359 |
self.hotspotId = hotspotId
|
|
|
7360 |
self.orderId = orderId
|
|
|
7361 |
self.collectionType = collectionType
|
|
|
7362 |
self.productName = productName
|
|
|
7363 |
self.advanceAmount = advanceAmount
|
|
|
7364 |
self.cash = cash
|
|
|
7365 |
self.card = card
|
|
|
7366 |
self.addedAt = addedAt
|
|
|
7367 |
self.pushedAt = pushedAt
|
|
|
7368 |
self.pushedToOcr = pushedToOcr
|
|
|
7369 |
|
|
|
7370 |
def read(self, iprot):
|
|
|
7371 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7372 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7373 |
return
|
|
|
7374 |
iprot.readStructBegin()
|
|
|
7375 |
while True:
|
|
|
7376 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7377 |
if ftype == TType.STOP:
|
|
|
7378 |
break
|
|
|
7379 |
if fid == 1:
|
|
|
7380 |
if ftype == TType.STRING:
|
|
|
7381 |
self.hotspotId = iprot.readString();
|
|
|
7382 |
else:
|
|
|
7383 |
iprot.skip(ftype)
|
|
|
7384 |
elif fid == 2:
|
|
|
7385 |
if ftype == TType.I64:
|
|
|
7386 |
self.orderId = iprot.readI64();
|
|
|
7387 |
else:
|
|
|
7388 |
iprot.skip(ftype)
|
|
|
7389 |
elif fid == 3:
|
|
|
7390 |
if ftype == TType.STRING:
|
|
|
7391 |
self.collectionType = iprot.readString();
|
|
|
7392 |
else:
|
|
|
7393 |
iprot.skip(ftype)
|
|
|
7394 |
elif fid == 4:
|
|
|
7395 |
if ftype == TType.STRING:
|
|
|
7396 |
self.productName = iprot.readString();
|
|
|
7397 |
else:
|
|
|
7398 |
iprot.skip(ftype)
|
|
|
7399 |
elif fid == 5:
|
|
|
7400 |
if ftype == TType.I64:
|
|
|
7401 |
self.advanceAmount = iprot.readI64();
|
|
|
7402 |
else:
|
|
|
7403 |
iprot.skip(ftype)
|
|
|
7404 |
elif fid == 6:
|
|
|
7405 |
if ftype == TType.I64:
|
|
|
7406 |
self.cash = iprot.readI64();
|
|
|
7407 |
else:
|
|
|
7408 |
iprot.skip(ftype)
|
|
|
7409 |
elif fid == 7:
|
|
|
7410 |
if ftype == TType.I64:
|
|
|
7411 |
self.card = iprot.readI64();
|
|
|
7412 |
else:
|
|
|
7413 |
iprot.skip(ftype)
|
|
|
7414 |
elif fid == 8:
|
|
|
7415 |
if ftype == TType.I64:
|
|
|
7416 |
self.addedAt = iprot.readI64();
|
|
|
7417 |
else:
|
|
|
7418 |
iprot.skip(ftype)
|
|
|
7419 |
elif fid == 9:
|
|
|
7420 |
if ftype == TType.I64:
|
|
|
7421 |
self.pushedAt = iprot.readI64();
|
|
|
7422 |
else:
|
|
|
7423 |
iprot.skip(ftype)
|
|
|
7424 |
elif fid == 10:
|
|
|
7425 |
if ftype == TType.BOOL:
|
|
|
7426 |
self.pushedToOcr = iprot.readBool();
|
|
|
7427 |
else:
|
|
|
7428 |
iprot.skip(ftype)
|
|
|
7429 |
else:
|
|
|
7430 |
iprot.skip(ftype)
|
|
|
7431 |
iprot.readFieldEnd()
|
|
|
7432 |
iprot.readStructEnd()
|
|
|
7433 |
|
|
|
7434 |
def write(self, oprot):
|
|
|
7435 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7436 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7437 |
return
|
|
|
7438 |
oprot.writeStructBegin('StoreOrderCollection')
|
|
|
7439 |
if self.hotspotId is not None:
|
|
|
7440 |
oprot.writeFieldBegin('hotspotId', TType.STRING, 1)
|
|
|
7441 |
oprot.writeString(self.hotspotId)
|
|
|
7442 |
oprot.writeFieldEnd()
|
|
|
7443 |
if self.orderId is not None:
|
|
|
7444 |
oprot.writeFieldBegin('orderId', TType.I64, 2)
|
|
|
7445 |
oprot.writeI64(self.orderId)
|
|
|
7446 |
oprot.writeFieldEnd()
|
|
|
7447 |
if self.collectionType is not None:
|
|
|
7448 |
oprot.writeFieldBegin('collectionType', TType.STRING, 3)
|
|
|
7449 |
oprot.writeString(self.collectionType)
|
|
|
7450 |
oprot.writeFieldEnd()
|
|
|
7451 |
if self.productName is not None:
|
|
|
7452 |
oprot.writeFieldBegin('productName', TType.STRING, 4)
|
|
|
7453 |
oprot.writeString(self.productName)
|
|
|
7454 |
oprot.writeFieldEnd()
|
|
|
7455 |
if self.advanceAmount is not None:
|
|
|
7456 |
oprot.writeFieldBegin('advanceAmount', TType.I64, 5)
|
|
|
7457 |
oprot.writeI64(self.advanceAmount)
|
|
|
7458 |
oprot.writeFieldEnd()
|
|
|
7459 |
if self.cash is not None:
|
|
|
7460 |
oprot.writeFieldBegin('cash', TType.I64, 6)
|
|
|
7461 |
oprot.writeI64(self.cash)
|
|
|
7462 |
oprot.writeFieldEnd()
|
|
|
7463 |
if self.card is not None:
|
|
|
7464 |
oprot.writeFieldBegin('card', TType.I64, 7)
|
|
|
7465 |
oprot.writeI64(self.card)
|
|
|
7466 |
oprot.writeFieldEnd()
|
|
|
7467 |
if self.addedAt is not None:
|
|
|
7468 |
oprot.writeFieldBegin('addedAt', TType.I64, 8)
|
|
|
7469 |
oprot.writeI64(self.addedAt)
|
|
|
7470 |
oprot.writeFieldEnd()
|
|
|
7471 |
if self.pushedAt is not None:
|
|
|
7472 |
oprot.writeFieldBegin('pushedAt', TType.I64, 9)
|
|
|
7473 |
oprot.writeI64(self.pushedAt)
|
|
|
7474 |
oprot.writeFieldEnd()
|
|
|
7475 |
if self.pushedToOcr is not None:
|
|
|
7476 |
oprot.writeFieldBegin('pushedToOcr', TType.BOOL, 10)
|
|
|
7477 |
oprot.writeBool(self.pushedToOcr)
|
|
|
7478 |
oprot.writeFieldEnd()
|
|
|
7479 |
oprot.writeFieldStop()
|
|
|
7480 |
oprot.writeStructEnd()
|
|
|
7481 |
|
|
|
7482 |
def validate(self):
|
|
|
7483 |
return
|
|
|
7484 |
|
|
|
7485 |
|
|
|
7486 |
def __repr__(self):
|
|
|
7487 |
L = ['%s=%r' % (key, value)
|
|
|
7488 |
for key, value in self.__dict__.iteritems()]
|
|
|
7489 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7490 |
|
|
|
7491 |
def __eq__(self, other):
|
|
|
7492 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7493 |
|
|
|
7494 |
def __ne__(self, other):
|
|
|
7495 |
return not (self == other)
|
|
|
7496 |
|
| 8182 |
amar.kumar |
7497 |
class EbayOrder:
|
|
|
7498 |
"""
|
|
|
7499 |
Attributes:
|
|
|
7500 |
- orderId
|
|
|
7501 |
- salesRecordNumber
|
|
|
7502 |
- paisaPayId
|
|
|
7503 |
- ebayListingId
|
|
|
7504 |
- subsidyAmount
|
|
|
7505 |
- ebayTxnDate
|
|
|
7506 |
- transactionId
|
|
|
7507 |
- listingName
|
|
|
7508 |
- listingPrice
|
| 8241 |
amar.kumar |
7509 |
- bluedartPaisaPayRef
|
| 8182 |
amar.kumar |
7510 |
"""
|
|
|
7511 |
|
|
|
7512 |
thrift_spec = (
|
|
|
7513 |
None, # 0
|
|
|
7514 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
|
|
7515 |
(2, TType.I64, 'salesRecordNumber', None, None, ), # 2
|
|
|
7516 |
(3, TType.STRING, 'paisaPayId', None, None, ), # 3
|
|
|
7517 |
(4, TType.STRING, 'ebayListingId', None, None, ), # 4
|
|
|
7518 |
(5, TType.DOUBLE, 'subsidyAmount', None, None, ), # 5
|
|
|
7519 |
(6, TType.I64, 'ebayTxnDate', None, None, ), # 6
|
|
|
7520 |
(7, TType.STRING, 'transactionId', None, None, ), # 7
|
|
|
7521 |
(8, TType.STRING, 'listingName', None, None, ), # 8
|
|
|
7522 |
(9, TType.DOUBLE, 'listingPrice', None, None, ), # 9
|
| 8247 |
amar.kumar |
7523 |
(10, TType.STRING, 'bluedartPaisaPayRef', None, None, ), # 10
|
| 8182 |
amar.kumar |
7524 |
)
|
|
|
7525 |
|
| 8241 |
amar.kumar |
7526 |
def __init__(self, orderId=None, salesRecordNumber=None, paisaPayId=None, ebayListingId=None, subsidyAmount=None, ebayTxnDate=None, transactionId=None, listingName=None, listingPrice=None, bluedartPaisaPayRef=None,):
|
| 8182 |
amar.kumar |
7527 |
self.orderId = orderId
|
|
|
7528 |
self.salesRecordNumber = salesRecordNumber
|
|
|
7529 |
self.paisaPayId = paisaPayId
|
|
|
7530 |
self.ebayListingId = ebayListingId
|
|
|
7531 |
self.subsidyAmount = subsidyAmount
|
|
|
7532 |
self.ebayTxnDate = ebayTxnDate
|
|
|
7533 |
self.transactionId = transactionId
|
|
|
7534 |
self.listingName = listingName
|
|
|
7535 |
self.listingPrice = listingPrice
|
| 8241 |
amar.kumar |
7536 |
self.bluedartPaisaPayRef = bluedartPaisaPayRef
|
| 8182 |
amar.kumar |
7537 |
|
|
|
7538 |
def read(self, iprot):
|
|
|
7539 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7540 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7541 |
return
|
|
|
7542 |
iprot.readStructBegin()
|
|
|
7543 |
while True:
|
|
|
7544 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7545 |
if ftype == TType.STOP:
|
|
|
7546 |
break
|
|
|
7547 |
if fid == 1:
|
|
|
7548 |
if ftype == TType.I64:
|
|
|
7549 |
self.orderId = iprot.readI64();
|
|
|
7550 |
else:
|
|
|
7551 |
iprot.skip(ftype)
|
|
|
7552 |
elif fid == 2:
|
|
|
7553 |
if ftype == TType.I64:
|
|
|
7554 |
self.salesRecordNumber = iprot.readI64();
|
|
|
7555 |
else:
|
|
|
7556 |
iprot.skip(ftype)
|
|
|
7557 |
elif fid == 3:
|
|
|
7558 |
if ftype == TType.STRING:
|
|
|
7559 |
self.paisaPayId = iprot.readString();
|
|
|
7560 |
else:
|
|
|
7561 |
iprot.skip(ftype)
|
|
|
7562 |
elif fid == 4:
|
|
|
7563 |
if ftype == TType.STRING:
|
|
|
7564 |
self.ebayListingId = iprot.readString();
|
|
|
7565 |
else:
|
|
|
7566 |
iprot.skip(ftype)
|
|
|
7567 |
elif fid == 5:
|
|
|
7568 |
if ftype == TType.DOUBLE:
|
|
|
7569 |
self.subsidyAmount = iprot.readDouble();
|
|
|
7570 |
else:
|
|
|
7571 |
iprot.skip(ftype)
|
|
|
7572 |
elif fid == 6:
|
|
|
7573 |
if ftype == TType.I64:
|
|
|
7574 |
self.ebayTxnDate = iprot.readI64();
|
|
|
7575 |
else:
|
|
|
7576 |
iprot.skip(ftype)
|
|
|
7577 |
elif fid == 7:
|
|
|
7578 |
if ftype == TType.STRING:
|
|
|
7579 |
self.transactionId = iprot.readString();
|
|
|
7580 |
else:
|
|
|
7581 |
iprot.skip(ftype)
|
|
|
7582 |
elif fid == 8:
|
|
|
7583 |
if ftype == TType.STRING:
|
|
|
7584 |
self.listingName = iprot.readString();
|
|
|
7585 |
else:
|
|
|
7586 |
iprot.skip(ftype)
|
|
|
7587 |
elif fid == 9:
|
|
|
7588 |
if ftype == TType.DOUBLE:
|
|
|
7589 |
self.listingPrice = iprot.readDouble();
|
|
|
7590 |
else:
|
|
|
7591 |
iprot.skip(ftype)
|
| 8241 |
amar.kumar |
7592 |
elif fid == 10:
|
| 8247 |
amar.kumar |
7593 |
if ftype == TType.STRING:
|
|
|
7594 |
self.bluedartPaisaPayRef = iprot.readString();
|
| 8241 |
amar.kumar |
7595 |
else:
|
|
|
7596 |
iprot.skip(ftype)
|
| 8182 |
amar.kumar |
7597 |
else:
|
|
|
7598 |
iprot.skip(ftype)
|
|
|
7599 |
iprot.readFieldEnd()
|
|
|
7600 |
iprot.readStructEnd()
|
|
|
7601 |
|
|
|
7602 |
def write(self, oprot):
|
|
|
7603 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7604 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7605 |
return
|
|
|
7606 |
oprot.writeStructBegin('EbayOrder')
|
|
|
7607 |
if self.orderId is not None:
|
|
|
7608 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
7609 |
oprot.writeI64(self.orderId)
|
|
|
7610 |
oprot.writeFieldEnd()
|
|
|
7611 |
if self.salesRecordNumber is not None:
|
|
|
7612 |
oprot.writeFieldBegin('salesRecordNumber', TType.I64, 2)
|
|
|
7613 |
oprot.writeI64(self.salesRecordNumber)
|
|
|
7614 |
oprot.writeFieldEnd()
|
|
|
7615 |
if self.paisaPayId is not None:
|
|
|
7616 |
oprot.writeFieldBegin('paisaPayId', TType.STRING, 3)
|
|
|
7617 |
oprot.writeString(self.paisaPayId)
|
|
|
7618 |
oprot.writeFieldEnd()
|
|
|
7619 |
if self.ebayListingId is not None:
|
|
|
7620 |
oprot.writeFieldBegin('ebayListingId', TType.STRING, 4)
|
|
|
7621 |
oprot.writeString(self.ebayListingId)
|
|
|
7622 |
oprot.writeFieldEnd()
|
|
|
7623 |
if self.subsidyAmount is not None:
|
|
|
7624 |
oprot.writeFieldBegin('subsidyAmount', TType.DOUBLE, 5)
|
|
|
7625 |
oprot.writeDouble(self.subsidyAmount)
|
|
|
7626 |
oprot.writeFieldEnd()
|
|
|
7627 |
if self.ebayTxnDate is not None:
|
|
|
7628 |
oprot.writeFieldBegin('ebayTxnDate', TType.I64, 6)
|
|
|
7629 |
oprot.writeI64(self.ebayTxnDate)
|
|
|
7630 |
oprot.writeFieldEnd()
|
|
|
7631 |
if self.transactionId is not None:
|
|
|
7632 |
oprot.writeFieldBegin('transactionId', TType.STRING, 7)
|
|
|
7633 |
oprot.writeString(self.transactionId)
|
|
|
7634 |
oprot.writeFieldEnd()
|
|
|
7635 |
if self.listingName is not None:
|
|
|
7636 |
oprot.writeFieldBegin('listingName', TType.STRING, 8)
|
|
|
7637 |
oprot.writeString(self.listingName)
|
|
|
7638 |
oprot.writeFieldEnd()
|
|
|
7639 |
if self.listingPrice is not None:
|
|
|
7640 |
oprot.writeFieldBegin('listingPrice', TType.DOUBLE, 9)
|
|
|
7641 |
oprot.writeDouble(self.listingPrice)
|
|
|
7642 |
oprot.writeFieldEnd()
|
| 8241 |
amar.kumar |
7643 |
if self.bluedartPaisaPayRef is not None:
|
| 8247 |
amar.kumar |
7644 |
oprot.writeFieldBegin('bluedartPaisaPayRef', TType.STRING, 10)
|
|
|
7645 |
oprot.writeString(self.bluedartPaisaPayRef)
|
| 8241 |
amar.kumar |
7646 |
oprot.writeFieldEnd()
|
| 8182 |
amar.kumar |
7647 |
oprot.writeFieldStop()
|
|
|
7648 |
oprot.writeStructEnd()
|
|
|
7649 |
|
|
|
7650 |
def validate(self):
|
|
|
7651 |
return
|
|
|
7652 |
|
|
|
7653 |
|
|
|
7654 |
def __repr__(self):
|
|
|
7655 |
L = ['%s=%r' % (key, value)
|
|
|
7656 |
for key, value in self.__dict__.iteritems()]
|
|
|
7657 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7658 |
|
|
|
7659 |
def __eq__(self, other):
|
|
|
7660 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7661 |
|
|
|
7662 |
def __ne__(self, other):
|
|
|
7663 |
return not (self == other)
|
|
|
7664 |
|
| 8532 |
vikram.rag |
7665 |
class FbaItemPrices:
|
|
|
7666 |
"""
|
|
|
7667 |
Attributes:
|
|
|
7668 |
- item_id
|
|
|
7669 |
- minFbaPrice
|
|
|
7670 |
- minMfnPrice
|
|
|
7671 |
- ourPrice
|
|
|
7672 |
- salePrice
|
|
|
7673 |
- minFbaPriceSnapshotDate
|
|
|
7674 |
- minMfnPriceSnapshotDate
|
|
|
7675 |
- ourPriceSnapshotDate
|
|
|
7676 |
- salePriceSnapshotDate
|
|
|
7677 |
"""
|
|
|
7678 |
|
|
|
7679 |
thrift_spec = (
|
|
|
7680 |
None, # 0
|
|
|
7681 |
(1, TType.I64, 'item_id', None, None, ), # 1
|
|
|
7682 |
(2, TType.DOUBLE, 'minFbaPrice', None, None, ), # 2
|
|
|
7683 |
(3, TType.DOUBLE, 'minMfnPrice', None, None, ), # 3
|
|
|
7684 |
(4, TType.DOUBLE, 'ourPrice', None, None, ), # 4
|
|
|
7685 |
(5, TType.DOUBLE, 'salePrice', None, None, ), # 5
|
|
|
7686 |
(6, TType.I64, 'minFbaPriceSnapshotDate', None, None, ), # 6
|
|
|
7687 |
(7, TType.I64, 'minMfnPriceSnapshotDate', None, None, ), # 7
|
|
|
7688 |
(8, TType.I64, 'ourPriceSnapshotDate', None, None, ), # 8
|
|
|
7689 |
(9, TType.I64, 'salePriceSnapshotDate', None, None, ), # 9
|
|
|
7690 |
)
|
|
|
7691 |
|
|
|
7692 |
def __init__(self, item_id=None, minFbaPrice=None, minMfnPrice=None, ourPrice=None, salePrice=None, minFbaPriceSnapshotDate=None, minMfnPriceSnapshotDate=None, ourPriceSnapshotDate=None, salePriceSnapshotDate=None,):
|
|
|
7693 |
self.item_id = item_id
|
|
|
7694 |
self.minFbaPrice = minFbaPrice
|
|
|
7695 |
self.minMfnPrice = minMfnPrice
|
|
|
7696 |
self.ourPrice = ourPrice
|
|
|
7697 |
self.salePrice = salePrice
|
|
|
7698 |
self.minFbaPriceSnapshotDate = minFbaPriceSnapshotDate
|
|
|
7699 |
self.minMfnPriceSnapshotDate = minMfnPriceSnapshotDate
|
|
|
7700 |
self.ourPriceSnapshotDate = ourPriceSnapshotDate
|
|
|
7701 |
self.salePriceSnapshotDate = salePriceSnapshotDate
|
|
|
7702 |
|
|
|
7703 |
def read(self, iprot):
|
|
|
7704 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7705 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7706 |
return
|
|
|
7707 |
iprot.readStructBegin()
|
|
|
7708 |
while True:
|
|
|
7709 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7710 |
if ftype == TType.STOP:
|
|
|
7711 |
break
|
|
|
7712 |
if fid == 1:
|
|
|
7713 |
if ftype == TType.I64:
|
|
|
7714 |
self.item_id = iprot.readI64();
|
|
|
7715 |
else:
|
|
|
7716 |
iprot.skip(ftype)
|
|
|
7717 |
elif fid == 2:
|
|
|
7718 |
if ftype == TType.DOUBLE:
|
|
|
7719 |
self.minFbaPrice = iprot.readDouble();
|
|
|
7720 |
else:
|
|
|
7721 |
iprot.skip(ftype)
|
|
|
7722 |
elif fid == 3:
|
|
|
7723 |
if ftype == TType.DOUBLE:
|
|
|
7724 |
self.minMfnPrice = iprot.readDouble();
|
|
|
7725 |
else:
|
|
|
7726 |
iprot.skip(ftype)
|
|
|
7727 |
elif fid == 4:
|
|
|
7728 |
if ftype == TType.DOUBLE:
|
|
|
7729 |
self.ourPrice = iprot.readDouble();
|
|
|
7730 |
else:
|
|
|
7731 |
iprot.skip(ftype)
|
|
|
7732 |
elif fid == 5:
|
|
|
7733 |
if ftype == TType.DOUBLE:
|
|
|
7734 |
self.salePrice = iprot.readDouble();
|
|
|
7735 |
else:
|
|
|
7736 |
iprot.skip(ftype)
|
|
|
7737 |
elif fid == 6:
|
|
|
7738 |
if ftype == TType.I64:
|
|
|
7739 |
self.minFbaPriceSnapshotDate = iprot.readI64();
|
|
|
7740 |
else:
|
|
|
7741 |
iprot.skip(ftype)
|
|
|
7742 |
elif fid == 7:
|
|
|
7743 |
if ftype == TType.I64:
|
|
|
7744 |
self.minMfnPriceSnapshotDate = iprot.readI64();
|
|
|
7745 |
else:
|
|
|
7746 |
iprot.skip(ftype)
|
|
|
7747 |
elif fid == 8:
|
|
|
7748 |
if ftype == TType.I64:
|
|
|
7749 |
self.ourPriceSnapshotDate = iprot.readI64();
|
|
|
7750 |
else:
|
|
|
7751 |
iprot.skip(ftype)
|
|
|
7752 |
elif fid == 9:
|
|
|
7753 |
if ftype == TType.I64:
|
|
|
7754 |
self.salePriceSnapshotDate = iprot.readI64();
|
|
|
7755 |
else:
|
|
|
7756 |
iprot.skip(ftype)
|
|
|
7757 |
else:
|
|
|
7758 |
iprot.skip(ftype)
|
|
|
7759 |
iprot.readFieldEnd()
|
|
|
7760 |
iprot.readStructEnd()
|
|
|
7761 |
|
|
|
7762 |
def write(self, oprot):
|
|
|
7763 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7764 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7765 |
return
|
|
|
7766 |
oprot.writeStructBegin('FbaItemPrices')
|
|
|
7767 |
if self.item_id is not None:
|
|
|
7768 |
oprot.writeFieldBegin('item_id', TType.I64, 1)
|
|
|
7769 |
oprot.writeI64(self.item_id)
|
|
|
7770 |
oprot.writeFieldEnd()
|
|
|
7771 |
if self.minFbaPrice is not None:
|
|
|
7772 |
oprot.writeFieldBegin('minFbaPrice', TType.DOUBLE, 2)
|
|
|
7773 |
oprot.writeDouble(self.minFbaPrice)
|
|
|
7774 |
oprot.writeFieldEnd()
|
|
|
7775 |
if self.minMfnPrice is not None:
|
|
|
7776 |
oprot.writeFieldBegin('minMfnPrice', TType.DOUBLE, 3)
|
|
|
7777 |
oprot.writeDouble(self.minMfnPrice)
|
|
|
7778 |
oprot.writeFieldEnd()
|
|
|
7779 |
if self.ourPrice is not None:
|
|
|
7780 |
oprot.writeFieldBegin('ourPrice', TType.DOUBLE, 4)
|
|
|
7781 |
oprot.writeDouble(self.ourPrice)
|
|
|
7782 |
oprot.writeFieldEnd()
|
|
|
7783 |
if self.salePrice is not None:
|
|
|
7784 |
oprot.writeFieldBegin('salePrice', TType.DOUBLE, 5)
|
|
|
7785 |
oprot.writeDouble(self.salePrice)
|
|
|
7786 |
oprot.writeFieldEnd()
|
|
|
7787 |
if self.minFbaPriceSnapshotDate is not None:
|
|
|
7788 |
oprot.writeFieldBegin('minFbaPriceSnapshotDate', TType.I64, 6)
|
|
|
7789 |
oprot.writeI64(self.minFbaPriceSnapshotDate)
|
|
|
7790 |
oprot.writeFieldEnd()
|
|
|
7791 |
if self.minMfnPriceSnapshotDate is not None:
|
|
|
7792 |
oprot.writeFieldBegin('minMfnPriceSnapshotDate', TType.I64, 7)
|
|
|
7793 |
oprot.writeI64(self.minMfnPriceSnapshotDate)
|
|
|
7794 |
oprot.writeFieldEnd()
|
|
|
7795 |
if self.ourPriceSnapshotDate is not None:
|
|
|
7796 |
oprot.writeFieldBegin('ourPriceSnapshotDate', TType.I64, 8)
|
|
|
7797 |
oprot.writeI64(self.ourPriceSnapshotDate)
|
|
|
7798 |
oprot.writeFieldEnd()
|
|
|
7799 |
if self.salePriceSnapshotDate is not None:
|
|
|
7800 |
oprot.writeFieldBegin('salePriceSnapshotDate', TType.I64, 9)
|
|
|
7801 |
oprot.writeI64(self.salePriceSnapshotDate)
|
|
|
7802 |
oprot.writeFieldEnd()
|
|
|
7803 |
oprot.writeFieldStop()
|
|
|
7804 |
oprot.writeStructEnd()
|
|
|
7805 |
|
|
|
7806 |
def validate(self):
|
|
|
7807 |
return
|
|
|
7808 |
|
|
|
7809 |
|
|
|
7810 |
def __repr__(self):
|
|
|
7811 |
L = ['%s=%r' % (key, value)
|
|
|
7812 |
for key, value in self.__dict__.iteritems()]
|
|
|
7813 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7814 |
|
|
|
7815 |
def __eq__(self, other):
|
|
|
7816 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7817 |
|
|
|
7818 |
def __ne__(self, other):
|
|
|
7819 |
return not (self == other)
|
|
|
7820 |
|
| 8488 |
amar.kumar |
7821 |
class SnapdealOrder:
|
|
|
7822 |
"""
|
|
|
7823 |
Attributes:
|
|
|
7824 |
- orderId
|
|
|
7825 |
- referenceCode
|
|
|
7826 |
- subOrderId
|
|
|
7827 |
- listingPrice
|
|
|
7828 |
- productName
|
|
|
7829 |
- snapdealTxnDate
|
| 9456 |
vikram.rag |
7830 |
- maxNlc
|
| 8488 |
amar.kumar |
7831 |
"""
|
|
|
7832 |
|
|
|
7833 |
thrift_spec = (
|
|
|
7834 |
None, # 0
|
|
|
7835 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
|
|
7836 |
(2, TType.STRING, 'referenceCode', None, None, ), # 2
|
| 9627 |
vikram.rag |
7837 |
(3, TType.STRING, 'subOrderId', None, None, ), # 3
|
| 8488 |
amar.kumar |
7838 |
(4, TType.DOUBLE, 'listingPrice', None, None, ), # 4
|
|
|
7839 |
(5, TType.STRING, 'productName', None, None, ), # 5
|
|
|
7840 |
(6, TType.I64, 'snapdealTxnDate', None, None, ), # 6
|
| 9456 |
vikram.rag |
7841 |
(7, TType.DOUBLE, 'maxNlc', None, None, ), # 7
|
| 8488 |
amar.kumar |
7842 |
)
|
|
|
7843 |
|
| 9456 |
vikram.rag |
7844 |
def __init__(self, orderId=None, referenceCode=None, subOrderId=None, listingPrice=None, productName=None, snapdealTxnDate=None, maxNlc=None,):
|
| 8488 |
amar.kumar |
7845 |
self.orderId = orderId
|
|
|
7846 |
self.referenceCode = referenceCode
|
|
|
7847 |
self.subOrderId = subOrderId
|
|
|
7848 |
self.listingPrice = listingPrice
|
|
|
7849 |
self.productName = productName
|
|
|
7850 |
self.snapdealTxnDate = snapdealTxnDate
|
| 9456 |
vikram.rag |
7851 |
self.maxNlc = maxNlc
|
| 8488 |
amar.kumar |
7852 |
|
|
|
7853 |
def read(self, iprot):
|
|
|
7854 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7855 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7856 |
return
|
|
|
7857 |
iprot.readStructBegin()
|
|
|
7858 |
while True:
|
|
|
7859 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7860 |
if ftype == TType.STOP:
|
|
|
7861 |
break
|
|
|
7862 |
if fid == 1:
|
|
|
7863 |
if ftype == TType.I64:
|
|
|
7864 |
self.orderId = iprot.readI64();
|
|
|
7865 |
else:
|
|
|
7866 |
iprot.skip(ftype)
|
|
|
7867 |
elif fid == 2:
|
|
|
7868 |
if ftype == TType.STRING:
|
|
|
7869 |
self.referenceCode = iprot.readString();
|
|
|
7870 |
else:
|
|
|
7871 |
iprot.skip(ftype)
|
|
|
7872 |
elif fid == 3:
|
| 9627 |
vikram.rag |
7873 |
if ftype == TType.STRING:
|
|
|
7874 |
self.subOrderId = iprot.readString();
|
| 8488 |
amar.kumar |
7875 |
else:
|
|
|
7876 |
iprot.skip(ftype)
|
|
|
7877 |
elif fid == 4:
|
|
|
7878 |
if ftype == TType.DOUBLE:
|
|
|
7879 |
self.listingPrice = iprot.readDouble();
|
|
|
7880 |
else:
|
|
|
7881 |
iprot.skip(ftype)
|
|
|
7882 |
elif fid == 5:
|
|
|
7883 |
if ftype == TType.STRING:
|
|
|
7884 |
self.productName = iprot.readString();
|
|
|
7885 |
else:
|
|
|
7886 |
iprot.skip(ftype)
|
|
|
7887 |
elif fid == 6:
|
|
|
7888 |
if ftype == TType.I64:
|
|
|
7889 |
self.snapdealTxnDate = iprot.readI64();
|
|
|
7890 |
else:
|
|
|
7891 |
iprot.skip(ftype)
|
| 9456 |
vikram.rag |
7892 |
elif fid == 7:
|
|
|
7893 |
if ftype == TType.DOUBLE:
|
|
|
7894 |
self.maxNlc = iprot.readDouble();
|
|
|
7895 |
else:
|
|
|
7896 |
iprot.skip(ftype)
|
| 8488 |
amar.kumar |
7897 |
else:
|
|
|
7898 |
iprot.skip(ftype)
|
|
|
7899 |
iprot.readFieldEnd()
|
|
|
7900 |
iprot.readStructEnd()
|
|
|
7901 |
|
|
|
7902 |
def write(self, oprot):
|
|
|
7903 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7904 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
7905 |
return
|
|
|
7906 |
oprot.writeStructBegin('SnapdealOrder')
|
|
|
7907 |
if self.orderId is not None:
|
|
|
7908 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
7909 |
oprot.writeI64(self.orderId)
|
|
|
7910 |
oprot.writeFieldEnd()
|
|
|
7911 |
if self.referenceCode is not None:
|
|
|
7912 |
oprot.writeFieldBegin('referenceCode', TType.STRING, 2)
|
|
|
7913 |
oprot.writeString(self.referenceCode)
|
|
|
7914 |
oprot.writeFieldEnd()
|
|
|
7915 |
if self.subOrderId is not None:
|
| 9627 |
vikram.rag |
7916 |
oprot.writeFieldBegin('subOrderId', TType.STRING, 3)
|
|
|
7917 |
oprot.writeString(self.subOrderId)
|
| 8488 |
amar.kumar |
7918 |
oprot.writeFieldEnd()
|
|
|
7919 |
if self.listingPrice is not None:
|
|
|
7920 |
oprot.writeFieldBegin('listingPrice', TType.DOUBLE, 4)
|
|
|
7921 |
oprot.writeDouble(self.listingPrice)
|
|
|
7922 |
oprot.writeFieldEnd()
|
|
|
7923 |
if self.productName is not None:
|
|
|
7924 |
oprot.writeFieldBegin('productName', TType.STRING, 5)
|
|
|
7925 |
oprot.writeString(self.productName)
|
|
|
7926 |
oprot.writeFieldEnd()
|
|
|
7927 |
if self.snapdealTxnDate is not None:
|
|
|
7928 |
oprot.writeFieldBegin('snapdealTxnDate', TType.I64, 6)
|
|
|
7929 |
oprot.writeI64(self.snapdealTxnDate)
|
|
|
7930 |
oprot.writeFieldEnd()
|
| 9456 |
vikram.rag |
7931 |
if self.maxNlc is not None:
|
|
|
7932 |
oprot.writeFieldBegin('maxNlc', TType.DOUBLE, 7)
|
|
|
7933 |
oprot.writeDouble(self.maxNlc)
|
|
|
7934 |
oprot.writeFieldEnd()
|
| 8488 |
amar.kumar |
7935 |
oprot.writeFieldStop()
|
|
|
7936 |
oprot.writeStructEnd()
|
|
|
7937 |
|
|
|
7938 |
def validate(self):
|
|
|
7939 |
return
|
|
|
7940 |
|
|
|
7941 |
|
|
|
7942 |
def __repr__(self):
|
|
|
7943 |
L = ['%s=%r' % (key, value)
|
|
|
7944 |
for key, value in self.__dict__.iteritems()]
|
|
|
7945 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
7946 |
|
|
|
7947 |
def __eq__(self, other):
|
|
|
7948 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
7949 |
|
|
|
7950 |
def __ne__(self, other):
|
|
|
7951 |
return not (self == other)
|
|
|
7952 |
|
| 8961 |
vikram.rag |
7953 |
class FlipkartOrder:
|
|
|
7954 |
"""
|
|
|
7955 |
Attributes:
|
|
|
7956 |
- flipkartOrderId
|
|
|
7957 |
- flipkartSubOrderId
|
|
|
7958 |
- flipkartTxnDate
|
|
|
7959 |
- orderId
|
|
|
7960 |
- shippingPrice
|
|
|
7961 |
- octroiFee
|
|
|
7962 |
- emiFee
|
| 9456 |
vikram.rag |
7963 |
- maxNlc
|
| 8961 |
vikram.rag |
7964 |
"""
|
|
|
7965 |
|
|
|
7966 |
thrift_spec = (
|
|
|
7967 |
None, # 0
|
|
|
7968 |
(1, TType.STRING, 'flipkartOrderId', None, None, ), # 1
|
|
|
7969 |
(2, TType.STRING, 'flipkartSubOrderId', None, None, ), # 2
|
|
|
7970 |
(3, TType.I64, 'flipkartTxnDate', None, None, ), # 3
|
|
|
7971 |
(4, TType.I64, 'orderId', None, None, ), # 4
|
|
|
7972 |
(5, TType.DOUBLE, 'shippingPrice', None, None, ), # 5
|
|
|
7973 |
(6, TType.DOUBLE, 'octroiFee', None, None, ), # 6
|
|
|
7974 |
(7, TType.DOUBLE, 'emiFee', None, None, ), # 7
|
| 9456 |
vikram.rag |
7975 |
(8, TType.DOUBLE, 'maxNlc', None, None, ), # 8
|
| 8961 |
vikram.rag |
7976 |
)
|
|
|
7977 |
|
| 9456 |
vikram.rag |
7978 |
def __init__(self, flipkartOrderId=None, flipkartSubOrderId=None, flipkartTxnDate=None, orderId=None, shippingPrice=None, octroiFee=None, emiFee=None, maxNlc=None,):
|
| 8961 |
vikram.rag |
7979 |
self.flipkartOrderId = flipkartOrderId
|
|
|
7980 |
self.flipkartSubOrderId = flipkartSubOrderId
|
|
|
7981 |
self.flipkartTxnDate = flipkartTxnDate
|
|
|
7982 |
self.orderId = orderId
|
|
|
7983 |
self.shippingPrice = shippingPrice
|
|
|
7984 |
self.octroiFee = octroiFee
|
|
|
7985 |
self.emiFee = emiFee
|
| 9456 |
vikram.rag |
7986 |
self.maxNlc = maxNlc
|
| 8961 |
vikram.rag |
7987 |
|
|
|
7988 |
def read(self, iprot):
|
|
|
7989 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
7990 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
7991 |
return
|
|
|
7992 |
iprot.readStructBegin()
|
|
|
7993 |
while True:
|
|
|
7994 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
7995 |
if ftype == TType.STOP:
|
|
|
7996 |
break
|
|
|
7997 |
if fid == 1:
|
|
|
7998 |
if ftype == TType.STRING:
|
|
|
7999 |
self.flipkartOrderId = iprot.readString();
|
|
|
8000 |
else:
|
|
|
8001 |
iprot.skip(ftype)
|
|
|
8002 |
elif fid == 2:
|
|
|
8003 |
if ftype == TType.STRING:
|
|
|
8004 |
self.flipkartSubOrderId = iprot.readString();
|
|
|
8005 |
else:
|
|
|
8006 |
iprot.skip(ftype)
|
|
|
8007 |
elif fid == 3:
|
|
|
8008 |
if ftype == TType.I64:
|
|
|
8009 |
self.flipkartTxnDate = iprot.readI64();
|
|
|
8010 |
else:
|
|
|
8011 |
iprot.skip(ftype)
|
|
|
8012 |
elif fid == 4:
|
|
|
8013 |
if ftype == TType.I64:
|
|
|
8014 |
self.orderId = iprot.readI64();
|
|
|
8015 |
else:
|
|
|
8016 |
iprot.skip(ftype)
|
|
|
8017 |
elif fid == 5:
|
|
|
8018 |
if ftype == TType.DOUBLE:
|
|
|
8019 |
self.shippingPrice = iprot.readDouble();
|
|
|
8020 |
else:
|
|
|
8021 |
iprot.skip(ftype)
|
|
|
8022 |
elif fid == 6:
|
|
|
8023 |
if ftype == TType.DOUBLE:
|
|
|
8024 |
self.octroiFee = iprot.readDouble();
|
|
|
8025 |
else:
|
|
|
8026 |
iprot.skip(ftype)
|
|
|
8027 |
elif fid == 7:
|
|
|
8028 |
if ftype == TType.DOUBLE:
|
|
|
8029 |
self.emiFee = iprot.readDouble();
|
|
|
8030 |
else:
|
|
|
8031 |
iprot.skip(ftype)
|
| 9456 |
vikram.rag |
8032 |
elif fid == 8:
|
|
|
8033 |
if ftype == TType.DOUBLE:
|
|
|
8034 |
self.maxNlc = iprot.readDouble();
|
|
|
8035 |
else:
|
|
|
8036 |
iprot.skip(ftype)
|
| 8961 |
vikram.rag |
8037 |
else:
|
|
|
8038 |
iprot.skip(ftype)
|
|
|
8039 |
iprot.readFieldEnd()
|
|
|
8040 |
iprot.readStructEnd()
|
|
|
8041 |
|
|
|
8042 |
def write(self, oprot):
|
|
|
8043 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8044 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8045 |
return
|
|
|
8046 |
oprot.writeStructBegin('FlipkartOrder')
|
|
|
8047 |
if self.flipkartOrderId is not None:
|
|
|
8048 |
oprot.writeFieldBegin('flipkartOrderId', TType.STRING, 1)
|
|
|
8049 |
oprot.writeString(self.flipkartOrderId)
|
|
|
8050 |
oprot.writeFieldEnd()
|
|
|
8051 |
if self.flipkartSubOrderId is not None:
|
|
|
8052 |
oprot.writeFieldBegin('flipkartSubOrderId', TType.STRING, 2)
|
|
|
8053 |
oprot.writeString(self.flipkartSubOrderId)
|
|
|
8054 |
oprot.writeFieldEnd()
|
|
|
8055 |
if self.flipkartTxnDate is not None:
|
|
|
8056 |
oprot.writeFieldBegin('flipkartTxnDate', TType.I64, 3)
|
|
|
8057 |
oprot.writeI64(self.flipkartTxnDate)
|
|
|
8058 |
oprot.writeFieldEnd()
|
|
|
8059 |
if self.orderId is not None:
|
|
|
8060 |
oprot.writeFieldBegin('orderId', TType.I64, 4)
|
|
|
8061 |
oprot.writeI64(self.orderId)
|
|
|
8062 |
oprot.writeFieldEnd()
|
|
|
8063 |
if self.shippingPrice is not None:
|
|
|
8064 |
oprot.writeFieldBegin('shippingPrice', TType.DOUBLE, 5)
|
|
|
8065 |
oprot.writeDouble(self.shippingPrice)
|
|
|
8066 |
oprot.writeFieldEnd()
|
|
|
8067 |
if self.octroiFee is not None:
|
|
|
8068 |
oprot.writeFieldBegin('octroiFee', TType.DOUBLE, 6)
|
|
|
8069 |
oprot.writeDouble(self.octroiFee)
|
|
|
8070 |
oprot.writeFieldEnd()
|
|
|
8071 |
if self.emiFee is not None:
|
|
|
8072 |
oprot.writeFieldBegin('emiFee', TType.DOUBLE, 7)
|
|
|
8073 |
oprot.writeDouble(self.emiFee)
|
|
|
8074 |
oprot.writeFieldEnd()
|
| 9456 |
vikram.rag |
8075 |
if self.maxNlc is not None:
|
|
|
8076 |
oprot.writeFieldBegin('maxNlc', TType.DOUBLE, 8)
|
|
|
8077 |
oprot.writeDouble(self.maxNlc)
|
|
|
8078 |
oprot.writeFieldEnd()
|
| 8961 |
vikram.rag |
8079 |
oprot.writeFieldStop()
|
|
|
8080 |
oprot.writeStructEnd()
|
|
|
8081 |
|
|
|
8082 |
def validate(self):
|
|
|
8083 |
return
|
|
|
8084 |
|
|
|
8085 |
|
|
|
8086 |
def __repr__(self):
|
|
|
8087 |
L = ['%s=%r' % (key, value)
|
|
|
8088 |
for key, value in self.__dict__.iteritems()]
|
|
|
8089 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8090 |
|
|
|
8091 |
def __eq__(self, other):
|
|
|
8092 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8093 |
|
|
|
8094 |
def __ne__(self, other):
|
|
|
8095 |
return not (self == other)
|
|
|
8096 |
|
| 4815 |
phani.kuma |
8097 |
class OrderStatusGroups:
|
|
|
8098 |
"""
|
|
|
8099 |
Attributes:
|
|
|
8100 |
- codCancellable
|
|
|
8101 |
- prepaidCancellableBeforeBilled
|
|
|
8102 |
- prepaidCancellableAfterBilled
|
| 4837 |
varun.gupt |
8103 |
- openOrders
|
| 5031 |
varun.gupt |
8104 |
- refundedOrders
|
| 4983 |
phani.kuma |
8105 |
- shippedOrders
|
|
|
8106 |
- failedOrders
|
| 4815 |
phani.kuma |
8107 |
"""
|
|
|
8108 |
|
|
|
8109 |
thrift_spec = (
|
|
|
8110 |
None, # 0
|
|
|
8111 |
(1, TType.LIST, 'codCancellable', (TType.I32,None), [
|
|
|
8112 |
2,
|
|
|
8113 |
3,
|
|
|
8114 |
4,
|
|
|
8115 |
5,
|
|
|
8116 |
35,
|
|
|
8117 |
36,
|
|
|
8118 |
37,
|
|
|
8119 |
7,
|
|
|
8120 |
8,
|
|
|
8121 |
], ), # 1
|
|
|
8122 |
(2, TType.LIST, 'prepaidCancellableBeforeBilled', (TType.I32,None), [
|
|
|
8123 |
2,
|
|
|
8124 |
3,
|
|
|
8125 |
4,
|
|
|
8126 |
5,
|
|
|
8127 |
35,
|
|
|
8128 |
36,
|
|
|
8129 |
37,
|
|
|
8130 |
], ), # 2
|
|
|
8131 |
(3, TType.LIST, 'prepaidCancellableAfterBilled', (TType.I32,None), [
|
|
|
8132 |
7,
|
|
|
8133 |
8,
|
|
|
8134 |
], ), # 3
|
| 4837 |
varun.gupt |
8135 |
(4, TType.LIST, 'openOrders', (TType.I32,None), [
|
|
|
8136 |
0,
|
|
|
8137 |
2,
|
|
|
8138 |
3,
|
|
|
8139 |
4,
|
|
|
8140 |
5,
|
|
|
8141 |
7,
|
|
|
8142 |
8,
|
|
|
8143 |
9,
|
|
|
8144 |
10,
|
|
|
8145 |
11,
|
| 4910 |
phani.kuma |
8146 |
16,
|
|
|
8147 |
17,
|
| 4837 |
varun.gupt |
8148 |
13,
|
|
|
8149 |
14,
|
|
|
8150 |
20,
|
|
|
8151 |
21,
|
|
|
8152 |
22,
|
|
|
8153 |
23,
|
|
|
8154 |
24,
|
|
|
8155 |
25,
|
|
|
8156 |
26,
|
|
|
8157 |
27,
|
|
|
8158 |
35,
|
|
|
8159 |
36,
|
|
|
8160 |
37,
|
|
|
8161 |
38,
|
|
|
8162 |
39,
|
|
|
8163 |
40,
|
|
|
8164 |
41,
|
|
|
8165 |
42,
|
|
|
8166 |
43,
|
|
|
8167 |
45,
|
|
|
8168 |
46,
|
|
|
8169 |
51,
|
|
|
8170 |
52,
|
|
|
8171 |
57,
|
|
|
8172 |
58,
|
|
|
8173 |
59,
|
|
|
8174 |
60,
|
|
|
8175 |
61,
|
|
|
8176 |
62,
|
|
|
8177 |
63,
|
|
|
8178 |
64,
|
|
|
8179 |
65,
|
|
|
8180 |
66,
|
|
|
8181 |
67,
|
| 5867 |
rajveer |
8182 |
80,
|
| 5854 |
amit.gupta |
8183 |
81,
|
| 4837 |
varun.gupt |
8184 |
], ), # 4
|
| 5031 |
varun.gupt |
8185 |
(5, TType.LIST, 'refundedOrders', (TType.I32,None), [
|
|
|
8186 |
15,
|
|
|
8187 |
31,
|
|
|
8188 |
32,
|
|
|
8189 |
33,
|
|
|
8190 |
34,
|
|
|
8191 |
48,
|
|
|
8192 |
50,
|
|
|
8193 |
54,
|
|
|
8194 |
56,
|
|
|
8195 |
70,
|
|
|
8196 |
72,
|
|
|
8197 |
76,
|
|
|
8198 |
74,
|
|
|
8199 |
79,
|
|
|
8200 |
], ), # 5
|
|
|
8201 |
(6, TType.LIST, 'shippedOrders', (TType.I32,None), [
|
| 4983 |
phani.kuma |
8202 |
9,
|
|
|
8203 |
10,
|
|
|
8204 |
16,
|
|
|
8205 |
17,
|
|
|
8206 |
20,
|
|
|
8207 |
21,
|
|
|
8208 |
22,
|
|
|
8209 |
23,
|
|
|
8210 |
24,
|
|
|
8211 |
25,
|
|
|
8212 |
26,
|
|
|
8213 |
27,
|
|
|
8214 |
40,
|
|
|
8215 |
42,
|
|
|
8216 |
43,
|
|
|
8217 |
45,
|
|
|
8218 |
46,
|
|
|
8219 |
51,
|
|
|
8220 |
52,
|
|
|
8221 |
57,
|
|
|
8222 |
58,
|
|
|
8223 |
59,
|
|
|
8224 |
60,
|
|
|
8225 |
61,
|
|
|
8226 |
62,
|
|
|
8227 |
63,
|
|
|
8228 |
64,
|
|
|
8229 |
65,
|
|
|
8230 |
66,
|
|
|
8231 |
67,
|
|
|
8232 |
68,
|
|
|
8233 |
77,
|
| 5867 |
rajveer |
8234 |
80,
|
|
|
8235 |
81,
|
| 5031 |
varun.gupt |
8236 |
], ), # 6
|
|
|
8237 |
(7, TType.LIST, 'failedOrders', (TType.I32,None), [
|
| 4983 |
phani.kuma |
8238 |
1,
|
|
|
8239 |
34,
|
|
|
8240 |
6,
|
|
|
8241 |
33,
|
|
|
8242 |
29,
|
|
|
8243 |
32,
|
|
|
8244 |
30,
|
|
|
8245 |
31,
|
|
|
8246 |
28,
|
| 6566 |
amit.gupta |
8247 |
18,
|
| 5031 |
varun.gupt |
8248 |
], ), # 7
|
| 4815 |
phani.kuma |
8249 |
)
|
|
|
8250 |
|
| 5031 |
varun.gupt |
8251 |
def __init__(self, codCancellable=thrift_spec[1][4], prepaidCancellableBeforeBilled=thrift_spec[2][4], prepaidCancellableAfterBilled=thrift_spec[3][4], openOrders=thrift_spec[4][4], refundedOrders=thrift_spec[5][4], shippedOrders=thrift_spec[6][4], failedOrders=thrift_spec[7][4],):
|
| 4815 |
phani.kuma |
8252 |
if codCancellable is self.thrift_spec[1][4]:
|
|
|
8253 |
codCancellable = [
|
|
|
8254 |
2,
|
|
|
8255 |
3,
|
|
|
8256 |
4,
|
|
|
8257 |
5,
|
|
|
8258 |
35,
|
|
|
8259 |
36,
|
|
|
8260 |
37,
|
|
|
8261 |
7,
|
|
|
8262 |
8,
|
|
|
8263 |
]
|
|
|
8264 |
self.codCancellable = codCancellable
|
|
|
8265 |
if prepaidCancellableBeforeBilled is self.thrift_spec[2][4]:
|
|
|
8266 |
prepaidCancellableBeforeBilled = [
|
|
|
8267 |
2,
|
|
|
8268 |
3,
|
|
|
8269 |
4,
|
|
|
8270 |
5,
|
|
|
8271 |
35,
|
|
|
8272 |
36,
|
|
|
8273 |
37,
|
|
|
8274 |
]
|
|
|
8275 |
self.prepaidCancellableBeforeBilled = prepaidCancellableBeforeBilled
|
|
|
8276 |
if prepaidCancellableAfterBilled is self.thrift_spec[3][4]:
|
|
|
8277 |
prepaidCancellableAfterBilled = [
|
|
|
8278 |
7,
|
|
|
8279 |
8,
|
|
|
8280 |
]
|
|
|
8281 |
self.prepaidCancellableAfterBilled = prepaidCancellableAfterBilled
|
| 4837 |
varun.gupt |
8282 |
if openOrders is self.thrift_spec[4][4]:
|
|
|
8283 |
openOrders = [
|
|
|
8284 |
0,
|
|
|
8285 |
2,
|
|
|
8286 |
3,
|
|
|
8287 |
4,
|
|
|
8288 |
5,
|
|
|
8289 |
7,
|
|
|
8290 |
8,
|
|
|
8291 |
9,
|
|
|
8292 |
10,
|
|
|
8293 |
11,
|
| 4910 |
phani.kuma |
8294 |
16,
|
|
|
8295 |
17,
|
| 4837 |
varun.gupt |
8296 |
13,
|
|
|
8297 |
14,
|
|
|
8298 |
20,
|
|
|
8299 |
21,
|
|
|
8300 |
22,
|
|
|
8301 |
23,
|
|
|
8302 |
24,
|
|
|
8303 |
25,
|
|
|
8304 |
26,
|
|
|
8305 |
27,
|
|
|
8306 |
35,
|
|
|
8307 |
36,
|
|
|
8308 |
37,
|
|
|
8309 |
38,
|
|
|
8310 |
39,
|
|
|
8311 |
40,
|
|
|
8312 |
41,
|
|
|
8313 |
42,
|
|
|
8314 |
43,
|
|
|
8315 |
45,
|
|
|
8316 |
46,
|
|
|
8317 |
51,
|
|
|
8318 |
52,
|
|
|
8319 |
57,
|
|
|
8320 |
58,
|
|
|
8321 |
59,
|
|
|
8322 |
60,
|
|
|
8323 |
61,
|
|
|
8324 |
62,
|
|
|
8325 |
63,
|
|
|
8326 |
64,
|
|
|
8327 |
65,
|
|
|
8328 |
66,
|
|
|
8329 |
67,
|
| 5867 |
rajveer |
8330 |
80,
|
| 5854 |
amit.gupta |
8331 |
81,
|
| 4837 |
varun.gupt |
8332 |
]
|
|
|
8333 |
self.openOrders = openOrders
|
| 5031 |
varun.gupt |
8334 |
if refundedOrders is self.thrift_spec[5][4]:
|
|
|
8335 |
refundedOrders = [
|
|
|
8336 |
15,
|
|
|
8337 |
31,
|
|
|
8338 |
32,
|
|
|
8339 |
33,
|
|
|
8340 |
34,
|
|
|
8341 |
48,
|
|
|
8342 |
50,
|
|
|
8343 |
54,
|
|
|
8344 |
56,
|
|
|
8345 |
70,
|
|
|
8346 |
72,
|
|
|
8347 |
76,
|
|
|
8348 |
74,
|
|
|
8349 |
79,
|
|
|
8350 |
]
|
|
|
8351 |
self.refundedOrders = refundedOrders
|
|
|
8352 |
if shippedOrders is self.thrift_spec[6][4]:
|
| 4983 |
phani.kuma |
8353 |
shippedOrders = [
|
|
|
8354 |
9,
|
|
|
8355 |
10,
|
|
|
8356 |
16,
|
|
|
8357 |
17,
|
|
|
8358 |
20,
|
|
|
8359 |
21,
|
|
|
8360 |
22,
|
|
|
8361 |
23,
|
|
|
8362 |
24,
|
|
|
8363 |
25,
|
|
|
8364 |
26,
|
|
|
8365 |
27,
|
|
|
8366 |
40,
|
|
|
8367 |
42,
|
|
|
8368 |
43,
|
|
|
8369 |
45,
|
|
|
8370 |
46,
|
|
|
8371 |
51,
|
|
|
8372 |
52,
|
|
|
8373 |
57,
|
|
|
8374 |
58,
|
|
|
8375 |
59,
|
|
|
8376 |
60,
|
|
|
8377 |
61,
|
|
|
8378 |
62,
|
|
|
8379 |
63,
|
|
|
8380 |
64,
|
|
|
8381 |
65,
|
|
|
8382 |
66,
|
|
|
8383 |
67,
|
|
|
8384 |
68,
|
|
|
8385 |
77,
|
| 5867 |
rajveer |
8386 |
80,
|
|
|
8387 |
81,
|
| 4983 |
phani.kuma |
8388 |
]
|
|
|
8389 |
self.shippedOrders = shippedOrders
|
| 5031 |
varun.gupt |
8390 |
if failedOrders is self.thrift_spec[7][4]:
|
| 4983 |
phani.kuma |
8391 |
failedOrders = [
|
|
|
8392 |
1,
|
|
|
8393 |
34,
|
|
|
8394 |
6,
|
|
|
8395 |
33,
|
|
|
8396 |
29,
|
|
|
8397 |
32,
|
|
|
8398 |
30,
|
|
|
8399 |
31,
|
|
|
8400 |
28,
|
| 6566 |
amit.gupta |
8401 |
18,
|
| 4983 |
phani.kuma |
8402 |
]
|
|
|
8403 |
self.failedOrders = failedOrders
|
| 4815 |
phani.kuma |
8404 |
|
|
|
8405 |
def read(self, iprot):
|
|
|
8406 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8407 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8408 |
return
|
|
|
8409 |
iprot.readStructBegin()
|
|
|
8410 |
while True:
|
|
|
8411 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8412 |
if ftype == TType.STOP:
|
|
|
8413 |
break
|
|
|
8414 |
if fid == 1:
|
|
|
8415 |
if ftype == TType.LIST:
|
|
|
8416 |
self.codCancellable = []
|
| 6189 |
rajveer |
8417 |
(_etype60, _size57) = iprot.readListBegin()
|
|
|
8418 |
for _i61 in xrange(_size57):
|
|
|
8419 |
_elem62 = iprot.readI32();
|
|
|
8420 |
self.codCancellable.append(_elem62)
|
| 4815 |
phani.kuma |
8421 |
iprot.readListEnd()
|
|
|
8422 |
else:
|
|
|
8423 |
iprot.skip(ftype)
|
|
|
8424 |
elif fid == 2:
|
|
|
8425 |
if ftype == TType.LIST:
|
|
|
8426 |
self.prepaidCancellableBeforeBilled = []
|
| 6189 |
rajveer |
8427 |
(_etype66, _size63) = iprot.readListBegin()
|
|
|
8428 |
for _i67 in xrange(_size63):
|
|
|
8429 |
_elem68 = iprot.readI32();
|
|
|
8430 |
self.prepaidCancellableBeforeBilled.append(_elem68)
|
| 4815 |
phani.kuma |
8431 |
iprot.readListEnd()
|
|
|
8432 |
else:
|
|
|
8433 |
iprot.skip(ftype)
|
|
|
8434 |
elif fid == 3:
|
|
|
8435 |
if ftype == TType.LIST:
|
|
|
8436 |
self.prepaidCancellableAfterBilled = []
|
| 6189 |
rajveer |
8437 |
(_etype72, _size69) = iprot.readListBegin()
|
|
|
8438 |
for _i73 in xrange(_size69):
|
|
|
8439 |
_elem74 = iprot.readI32();
|
|
|
8440 |
self.prepaidCancellableAfterBilled.append(_elem74)
|
| 4815 |
phani.kuma |
8441 |
iprot.readListEnd()
|
|
|
8442 |
else:
|
|
|
8443 |
iprot.skip(ftype)
|
| 4837 |
varun.gupt |
8444 |
elif fid == 4:
|
|
|
8445 |
if ftype == TType.LIST:
|
|
|
8446 |
self.openOrders = []
|
| 6189 |
rajveer |
8447 |
(_etype78, _size75) = iprot.readListBegin()
|
|
|
8448 |
for _i79 in xrange(_size75):
|
|
|
8449 |
_elem80 = iprot.readI32();
|
|
|
8450 |
self.openOrders.append(_elem80)
|
| 4837 |
varun.gupt |
8451 |
iprot.readListEnd()
|
|
|
8452 |
else:
|
|
|
8453 |
iprot.skip(ftype)
|
| 4983 |
phani.kuma |
8454 |
elif fid == 5:
|
|
|
8455 |
if ftype == TType.LIST:
|
| 5031 |
varun.gupt |
8456 |
self.refundedOrders = []
|
| 6189 |
rajveer |
8457 |
(_etype84, _size81) = iprot.readListBegin()
|
|
|
8458 |
for _i85 in xrange(_size81):
|
|
|
8459 |
_elem86 = iprot.readI32();
|
|
|
8460 |
self.refundedOrders.append(_elem86)
|
| 4983 |
phani.kuma |
8461 |
iprot.readListEnd()
|
|
|
8462 |
else:
|
|
|
8463 |
iprot.skip(ftype)
|
|
|
8464 |
elif fid == 6:
|
|
|
8465 |
if ftype == TType.LIST:
|
| 5031 |
varun.gupt |
8466 |
self.shippedOrders = []
|
| 6189 |
rajveer |
8467 |
(_etype90, _size87) = iprot.readListBegin()
|
|
|
8468 |
for _i91 in xrange(_size87):
|
|
|
8469 |
_elem92 = iprot.readI32();
|
|
|
8470 |
self.shippedOrders.append(_elem92)
|
| 4983 |
phani.kuma |
8471 |
iprot.readListEnd()
|
|
|
8472 |
else:
|
|
|
8473 |
iprot.skip(ftype)
|
| 5031 |
varun.gupt |
8474 |
elif fid == 7:
|
|
|
8475 |
if ftype == TType.LIST:
|
|
|
8476 |
self.failedOrders = []
|
| 6189 |
rajveer |
8477 |
(_etype96, _size93) = iprot.readListBegin()
|
|
|
8478 |
for _i97 in xrange(_size93):
|
|
|
8479 |
_elem98 = iprot.readI32();
|
|
|
8480 |
self.failedOrders.append(_elem98)
|
| 5031 |
varun.gupt |
8481 |
iprot.readListEnd()
|
|
|
8482 |
else:
|
|
|
8483 |
iprot.skip(ftype)
|
| 4815 |
phani.kuma |
8484 |
else:
|
|
|
8485 |
iprot.skip(ftype)
|
|
|
8486 |
iprot.readFieldEnd()
|
|
|
8487 |
iprot.readStructEnd()
|
|
|
8488 |
|
|
|
8489 |
def write(self, oprot):
|
|
|
8490 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8491 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8492 |
return
|
|
|
8493 |
oprot.writeStructBegin('OrderStatusGroups')
|
|
|
8494 |
if self.codCancellable is not None:
|
|
|
8495 |
oprot.writeFieldBegin('codCancellable', TType.LIST, 1)
|
|
|
8496 |
oprot.writeListBegin(TType.I32, len(self.codCancellable))
|
| 6189 |
rajveer |
8497 |
for iter99 in self.codCancellable:
|
|
|
8498 |
oprot.writeI32(iter99)
|
| 4815 |
phani.kuma |
8499 |
oprot.writeListEnd()
|
|
|
8500 |
oprot.writeFieldEnd()
|
|
|
8501 |
if self.prepaidCancellableBeforeBilled is not None:
|
|
|
8502 |
oprot.writeFieldBegin('prepaidCancellableBeforeBilled', TType.LIST, 2)
|
|
|
8503 |
oprot.writeListBegin(TType.I32, len(self.prepaidCancellableBeforeBilled))
|
| 6189 |
rajveer |
8504 |
for iter100 in self.prepaidCancellableBeforeBilled:
|
|
|
8505 |
oprot.writeI32(iter100)
|
| 4815 |
phani.kuma |
8506 |
oprot.writeListEnd()
|
|
|
8507 |
oprot.writeFieldEnd()
|
|
|
8508 |
if self.prepaidCancellableAfterBilled is not None:
|
|
|
8509 |
oprot.writeFieldBegin('prepaidCancellableAfterBilled', TType.LIST, 3)
|
|
|
8510 |
oprot.writeListBegin(TType.I32, len(self.prepaidCancellableAfterBilled))
|
| 6189 |
rajveer |
8511 |
for iter101 in self.prepaidCancellableAfterBilled:
|
|
|
8512 |
oprot.writeI32(iter101)
|
| 4815 |
phani.kuma |
8513 |
oprot.writeListEnd()
|
|
|
8514 |
oprot.writeFieldEnd()
|
| 4837 |
varun.gupt |
8515 |
if self.openOrders is not None:
|
|
|
8516 |
oprot.writeFieldBegin('openOrders', TType.LIST, 4)
|
|
|
8517 |
oprot.writeListBegin(TType.I32, len(self.openOrders))
|
| 6189 |
rajveer |
8518 |
for iter102 in self.openOrders:
|
|
|
8519 |
oprot.writeI32(iter102)
|
| 4837 |
varun.gupt |
8520 |
oprot.writeListEnd()
|
|
|
8521 |
oprot.writeFieldEnd()
|
| 5031 |
varun.gupt |
8522 |
if self.refundedOrders is not None:
|
|
|
8523 |
oprot.writeFieldBegin('refundedOrders', TType.LIST, 5)
|
|
|
8524 |
oprot.writeListBegin(TType.I32, len(self.refundedOrders))
|
| 6189 |
rajveer |
8525 |
for iter103 in self.refundedOrders:
|
|
|
8526 |
oprot.writeI32(iter103)
|
| 5031 |
varun.gupt |
8527 |
oprot.writeListEnd()
|
|
|
8528 |
oprot.writeFieldEnd()
|
| 4983 |
phani.kuma |
8529 |
if self.shippedOrders is not None:
|
| 5031 |
varun.gupt |
8530 |
oprot.writeFieldBegin('shippedOrders', TType.LIST, 6)
|
| 4983 |
phani.kuma |
8531 |
oprot.writeListBegin(TType.I32, len(self.shippedOrders))
|
| 6189 |
rajveer |
8532 |
for iter104 in self.shippedOrders:
|
|
|
8533 |
oprot.writeI32(iter104)
|
| 4983 |
phani.kuma |
8534 |
oprot.writeListEnd()
|
|
|
8535 |
oprot.writeFieldEnd()
|
|
|
8536 |
if self.failedOrders is not None:
|
| 5031 |
varun.gupt |
8537 |
oprot.writeFieldBegin('failedOrders', TType.LIST, 7)
|
| 4983 |
phani.kuma |
8538 |
oprot.writeListBegin(TType.I32, len(self.failedOrders))
|
| 6189 |
rajveer |
8539 |
for iter105 in self.failedOrders:
|
|
|
8540 |
oprot.writeI32(iter105)
|
| 4983 |
phani.kuma |
8541 |
oprot.writeListEnd()
|
|
|
8542 |
oprot.writeFieldEnd()
|
| 4815 |
phani.kuma |
8543 |
oprot.writeFieldStop()
|
|
|
8544 |
oprot.writeStructEnd()
|
|
|
8545 |
|
|
|
8546 |
def validate(self):
|
|
|
8547 |
return
|
|
|
8548 |
|
|
|
8549 |
|
|
|
8550 |
def __repr__(self):
|
|
|
8551 |
L = ['%s=%r' % (key, value)
|
|
|
8552 |
for key, value in self.__dict__.iteritems()]
|
|
|
8553 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8554 |
|
|
|
8555 |
def __eq__(self, other):
|
|
|
8556 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8557 |
|
|
|
8558 |
def __ne__(self, other):
|
|
|
8559 |
return not (self == other)
|
| 8282 |
kshitij.so |
8560 |
|
|
|
8561 |
class AmazonFbaSalesSnapshot:
|
|
|
8562 |
"""
|
|
|
8563 |
Attributes:
|
|
|
8564 |
- dateOfSale
|
|
|
8565 |
- item_id
|
| 8363 |
vikram.rag |
8566 |
- totalOrderCount
|
| 8282 |
kshitij.so |
8567 |
- amazonFbaInventory
|
|
|
8568 |
- isOutOfStock
|
|
|
8569 |
- salePrice
|
|
|
8570 |
- minFbaPrice
|
|
|
8571 |
- minMfnPrice
|
| 8363 |
vikram.rag |
8572 |
- totalSale
|
|
|
8573 |
- promotionSale
|
|
|
8574 |
- promotionOrderCount
|
| 8445 |
vikram.rag |
8575 |
- ourPrice
|
| 8532 |
vikram.rag |
8576 |
- minFbaPriceSnapshotDate
|
|
|
8577 |
- minMfnPriceSnapshotDate
|
|
|
8578 |
- ourPriceSnapshotDate
|
|
|
8579 |
- salePriceSnapshotDate
|
| 11173 |
vikram.rag |
8580 |
- fcLocation
|
| 8282 |
kshitij.so |
8581 |
"""
|
|
|
8582 |
|
|
|
8583 |
thrift_spec = (
|
|
|
8584 |
None, # 0
|
|
|
8585 |
(1, TType.I64, 'dateOfSale', None, None, ), # 1
|
|
|
8586 |
(2, TType.I64, 'item_id', None, None, ), # 2
|
| 8363 |
vikram.rag |
8587 |
(3, TType.I32, 'totalOrderCount', None, None, ), # 3
|
| 8282 |
kshitij.so |
8588 |
(4, TType.I64, 'amazonFbaInventory', None, None, ), # 4
|
|
|
8589 |
(5, TType.BOOL, 'isOutOfStock', None, None, ), # 5
|
|
|
8590 |
(6, TType.DOUBLE, 'salePrice', None, None, ), # 6
|
|
|
8591 |
(7, TType.DOUBLE, 'minFbaPrice', None, None, ), # 7
|
|
|
8592 |
(8, TType.DOUBLE, 'minMfnPrice', None, None, ), # 8
|
| 8363 |
vikram.rag |
8593 |
(9, TType.DOUBLE, 'totalSale', None, None, ), # 9
|
|
|
8594 |
(10, TType.DOUBLE, 'promotionSale', None, None, ), # 10
|
|
|
8595 |
(11, TType.I32, 'promotionOrderCount', None, None, ), # 11
|
| 8445 |
vikram.rag |
8596 |
(12, TType.DOUBLE, 'ourPrice', None, None, ), # 12
|
| 8532 |
vikram.rag |
8597 |
(13, TType.I64, 'minFbaPriceSnapshotDate', None, None, ), # 13
|
|
|
8598 |
(14, TType.I64, 'minMfnPriceSnapshotDate', None, None, ), # 14
|
|
|
8599 |
(15, TType.I64, 'ourPriceSnapshotDate', None, None, ), # 15
|
|
|
8600 |
(16, TType.I64, 'salePriceSnapshotDate', None, None, ), # 16
|
| 11173 |
vikram.rag |
8601 |
(17, TType.I32, 'fcLocation', None, None, ), # 17
|
| 8282 |
kshitij.so |
8602 |
)
|
|
|
8603 |
|
| 12619 |
kshitij.so |
8604 |
def __init__(self, dateOfSale=None, item_id=None, totalOrderCount=None, amazonFbaInventory=None, isOutOfStock=None, salePrice=None, minFbaPrice=None, minMfnPrice=None, totalSale=None, promotionSale=None, promotionOrderCount=None, ourPrice=None, minFbaPriceSnapshotDate=None, minMfnPriceSnapshotDate=None, ourPriceSnapshotDate=None, salePriceSnapshotDate=None, fcLocation=None,):
|
| 8282 |
kshitij.so |
8605 |
self.dateOfSale = dateOfSale
|
|
|
8606 |
self.item_id = item_id
|
| 8363 |
vikram.rag |
8607 |
self.totalOrderCount = totalOrderCount
|
| 8282 |
kshitij.so |
8608 |
self.amazonFbaInventory = amazonFbaInventory
|
|
|
8609 |
self.isOutOfStock = isOutOfStock
|
|
|
8610 |
self.salePrice = salePrice
|
|
|
8611 |
self.minFbaPrice = minFbaPrice
|
|
|
8612 |
self.minMfnPrice = minMfnPrice
|
| 8363 |
vikram.rag |
8613 |
self.totalSale = totalSale
|
|
|
8614 |
self.promotionSale = promotionSale
|
|
|
8615 |
self.promotionOrderCount = promotionOrderCount
|
| 8445 |
vikram.rag |
8616 |
self.ourPrice = ourPrice
|
| 8532 |
vikram.rag |
8617 |
self.minFbaPriceSnapshotDate = minFbaPriceSnapshotDate
|
|
|
8618 |
self.minMfnPriceSnapshotDate = minMfnPriceSnapshotDate
|
|
|
8619 |
self.ourPriceSnapshotDate = ourPriceSnapshotDate
|
|
|
8620 |
self.salePriceSnapshotDate = salePriceSnapshotDate
|
| 11173 |
vikram.rag |
8621 |
self.fcLocation = fcLocation
|
| 8282 |
kshitij.so |
8622 |
|
|
|
8623 |
def read(self, iprot):
|
|
|
8624 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8625 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8626 |
return
|
|
|
8627 |
iprot.readStructBegin()
|
|
|
8628 |
while True:
|
|
|
8629 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8630 |
if ftype == TType.STOP:
|
|
|
8631 |
break
|
|
|
8632 |
if fid == 1:
|
|
|
8633 |
if ftype == TType.I64:
|
|
|
8634 |
self.dateOfSale = iprot.readI64();
|
|
|
8635 |
else:
|
|
|
8636 |
iprot.skip(ftype)
|
|
|
8637 |
elif fid == 2:
|
|
|
8638 |
if ftype == TType.I64:
|
|
|
8639 |
self.item_id = iprot.readI64();
|
|
|
8640 |
else:
|
|
|
8641 |
iprot.skip(ftype)
|
|
|
8642 |
elif fid == 3:
|
|
|
8643 |
if ftype == TType.I32:
|
| 8363 |
vikram.rag |
8644 |
self.totalOrderCount = iprot.readI32();
|
| 8282 |
kshitij.so |
8645 |
else:
|
|
|
8646 |
iprot.skip(ftype)
|
|
|
8647 |
elif fid == 4:
|
|
|
8648 |
if ftype == TType.I64:
|
|
|
8649 |
self.amazonFbaInventory = iprot.readI64();
|
|
|
8650 |
else:
|
|
|
8651 |
iprot.skip(ftype)
|
|
|
8652 |
elif fid == 5:
|
|
|
8653 |
if ftype == TType.BOOL:
|
|
|
8654 |
self.isOutOfStock = iprot.readBool();
|
|
|
8655 |
else:
|
|
|
8656 |
iprot.skip(ftype)
|
|
|
8657 |
elif fid == 6:
|
|
|
8658 |
if ftype == TType.DOUBLE:
|
|
|
8659 |
self.salePrice = iprot.readDouble();
|
|
|
8660 |
else:
|
|
|
8661 |
iprot.skip(ftype)
|
|
|
8662 |
elif fid == 7:
|
|
|
8663 |
if ftype == TType.DOUBLE:
|
|
|
8664 |
self.minFbaPrice = iprot.readDouble();
|
|
|
8665 |
else:
|
|
|
8666 |
iprot.skip(ftype)
|
|
|
8667 |
elif fid == 8:
|
|
|
8668 |
if ftype == TType.DOUBLE:
|
|
|
8669 |
self.minMfnPrice = iprot.readDouble();
|
|
|
8670 |
else:
|
|
|
8671 |
iprot.skip(ftype)
|
| 8363 |
vikram.rag |
8672 |
elif fid == 9:
|
|
|
8673 |
if ftype == TType.DOUBLE:
|
|
|
8674 |
self.totalSale = iprot.readDouble();
|
|
|
8675 |
else:
|
|
|
8676 |
iprot.skip(ftype)
|
|
|
8677 |
elif fid == 10:
|
|
|
8678 |
if ftype == TType.DOUBLE:
|
|
|
8679 |
self.promotionSale = iprot.readDouble();
|
|
|
8680 |
else:
|
|
|
8681 |
iprot.skip(ftype)
|
|
|
8682 |
elif fid == 11:
|
|
|
8683 |
if ftype == TType.I32:
|
|
|
8684 |
self.promotionOrderCount = iprot.readI32();
|
|
|
8685 |
else:
|
|
|
8686 |
iprot.skip(ftype)
|
| 8445 |
vikram.rag |
8687 |
elif fid == 12:
|
|
|
8688 |
if ftype == TType.DOUBLE:
|
|
|
8689 |
self.ourPrice = iprot.readDouble();
|
|
|
8690 |
else:
|
|
|
8691 |
iprot.skip(ftype)
|
| 8532 |
vikram.rag |
8692 |
elif fid == 13:
|
|
|
8693 |
if ftype == TType.I64:
|
|
|
8694 |
self.minFbaPriceSnapshotDate = iprot.readI64();
|
|
|
8695 |
else:
|
|
|
8696 |
iprot.skip(ftype)
|
|
|
8697 |
elif fid == 14:
|
|
|
8698 |
if ftype == TType.I64:
|
|
|
8699 |
self.minMfnPriceSnapshotDate = iprot.readI64();
|
|
|
8700 |
else:
|
|
|
8701 |
iprot.skip(ftype)
|
|
|
8702 |
elif fid == 15:
|
|
|
8703 |
if ftype == TType.I64:
|
|
|
8704 |
self.ourPriceSnapshotDate = iprot.readI64();
|
|
|
8705 |
else:
|
|
|
8706 |
iprot.skip(ftype)
|
|
|
8707 |
elif fid == 16:
|
|
|
8708 |
if ftype == TType.I64:
|
|
|
8709 |
self.salePriceSnapshotDate = iprot.readI64();
|
|
|
8710 |
else:
|
|
|
8711 |
iprot.skip(ftype)
|
| 11173 |
vikram.rag |
8712 |
elif fid == 17:
|
|
|
8713 |
if ftype == TType.I32:
|
|
|
8714 |
self.fcLocation = iprot.readI32();
|
|
|
8715 |
else:
|
|
|
8716 |
iprot.skip(ftype)
|
| 8282 |
kshitij.so |
8717 |
else:
|
|
|
8718 |
iprot.skip(ftype)
|
|
|
8719 |
iprot.readFieldEnd()
|
|
|
8720 |
iprot.readStructEnd()
|
|
|
8721 |
|
|
|
8722 |
def write(self, oprot):
|
|
|
8723 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8724 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8725 |
return
|
|
|
8726 |
oprot.writeStructBegin('AmazonFbaSalesSnapshot')
|
|
|
8727 |
if self.dateOfSale is not None:
|
|
|
8728 |
oprot.writeFieldBegin('dateOfSale', TType.I64, 1)
|
|
|
8729 |
oprot.writeI64(self.dateOfSale)
|
|
|
8730 |
oprot.writeFieldEnd()
|
|
|
8731 |
if self.item_id is not None:
|
|
|
8732 |
oprot.writeFieldBegin('item_id', TType.I64, 2)
|
|
|
8733 |
oprot.writeI64(self.item_id)
|
|
|
8734 |
oprot.writeFieldEnd()
|
| 8363 |
vikram.rag |
8735 |
if self.totalOrderCount is not None:
|
|
|
8736 |
oprot.writeFieldBegin('totalOrderCount', TType.I32, 3)
|
|
|
8737 |
oprot.writeI32(self.totalOrderCount)
|
| 8282 |
kshitij.so |
8738 |
oprot.writeFieldEnd()
|
|
|
8739 |
if self.amazonFbaInventory is not None:
|
|
|
8740 |
oprot.writeFieldBegin('amazonFbaInventory', TType.I64, 4)
|
|
|
8741 |
oprot.writeI64(self.amazonFbaInventory)
|
|
|
8742 |
oprot.writeFieldEnd()
|
|
|
8743 |
if self.isOutOfStock is not None:
|
|
|
8744 |
oprot.writeFieldBegin('isOutOfStock', TType.BOOL, 5)
|
|
|
8745 |
oprot.writeBool(self.isOutOfStock)
|
|
|
8746 |
oprot.writeFieldEnd()
|
|
|
8747 |
if self.salePrice is not None:
|
|
|
8748 |
oprot.writeFieldBegin('salePrice', TType.DOUBLE, 6)
|
|
|
8749 |
oprot.writeDouble(self.salePrice)
|
|
|
8750 |
oprot.writeFieldEnd()
|
|
|
8751 |
if self.minFbaPrice is not None:
|
|
|
8752 |
oprot.writeFieldBegin('minFbaPrice', TType.DOUBLE, 7)
|
|
|
8753 |
oprot.writeDouble(self.minFbaPrice)
|
|
|
8754 |
oprot.writeFieldEnd()
|
|
|
8755 |
if self.minMfnPrice is not None:
|
|
|
8756 |
oprot.writeFieldBegin('minMfnPrice', TType.DOUBLE, 8)
|
|
|
8757 |
oprot.writeDouble(self.minMfnPrice)
|
|
|
8758 |
oprot.writeFieldEnd()
|
| 8363 |
vikram.rag |
8759 |
if self.totalSale is not None:
|
|
|
8760 |
oprot.writeFieldBegin('totalSale', TType.DOUBLE, 9)
|
|
|
8761 |
oprot.writeDouble(self.totalSale)
|
|
|
8762 |
oprot.writeFieldEnd()
|
|
|
8763 |
if self.promotionSale is not None:
|
|
|
8764 |
oprot.writeFieldBegin('promotionSale', TType.DOUBLE, 10)
|
|
|
8765 |
oprot.writeDouble(self.promotionSale)
|
|
|
8766 |
oprot.writeFieldEnd()
|
|
|
8767 |
if self.promotionOrderCount is not None:
|
|
|
8768 |
oprot.writeFieldBegin('promotionOrderCount', TType.I32, 11)
|
|
|
8769 |
oprot.writeI32(self.promotionOrderCount)
|
|
|
8770 |
oprot.writeFieldEnd()
|
| 8445 |
vikram.rag |
8771 |
if self.ourPrice is not None:
|
|
|
8772 |
oprot.writeFieldBegin('ourPrice', TType.DOUBLE, 12)
|
|
|
8773 |
oprot.writeDouble(self.ourPrice)
|
|
|
8774 |
oprot.writeFieldEnd()
|
| 8532 |
vikram.rag |
8775 |
if self.minFbaPriceSnapshotDate is not None:
|
|
|
8776 |
oprot.writeFieldBegin('minFbaPriceSnapshotDate', TType.I64, 13)
|
|
|
8777 |
oprot.writeI64(self.minFbaPriceSnapshotDate)
|
|
|
8778 |
oprot.writeFieldEnd()
|
|
|
8779 |
if self.minMfnPriceSnapshotDate is not None:
|
|
|
8780 |
oprot.writeFieldBegin('minMfnPriceSnapshotDate', TType.I64, 14)
|
|
|
8781 |
oprot.writeI64(self.minMfnPriceSnapshotDate)
|
|
|
8782 |
oprot.writeFieldEnd()
|
|
|
8783 |
if self.ourPriceSnapshotDate is not None:
|
|
|
8784 |
oprot.writeFieldBegin('ourPriceSnapshotDate', TType.I64, 15)
|
|
|
8785 |
oprot.writeI64(self.ourPriceSnapshotDate)
|
|
|
8786 |
oprot.writeFieldEnd()
|
|
|
8787 |
if self.salePriceSnapshotDate is not None:
|
|
|
8788 |
oprot.writeFieldBegin('salePriceSnapshotDate', TType.I64, 16)
|
|
|
8789 |
oprot.writeI64(self.salePriceSnapshotDate)
|
|
|
8790 |
oprot.writeFieldEnd()
|
| 11173 |
vikram.rag |
8791 |
if self.fcLocation is not None:
|
|
|
8792 |
oprot.writeFieldBegin('fcLocation', TType.I32, 17)
|
|
|
8793 |
oprot.writeI32(self.fcLocation)
|
|
|
8794 |
oprot.writeFieldEnd()
|
| 8282 |
kshitij.so |
8795 |
oprot.writeFieldStop()
|
|
|
8796 |
oprot.writeStructEnd()
|
|
|
8797 |
|
|
|
8798 |
def validate(self):
|
|
|
8799 |
return
|
|
|
8800 |
|
|
|
8801 |
|
|
|
8802 |
def __repr__(self):
|
|
|
8803 |
L = ['%s=%r' % (key, value)
|
|
|
8804 |
for key, value in self.__dict__.iteritems()]
|
|
|
8805 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8806 |
|
|
|
8807 |
def __eq__(self, other):
|
|
|
8808 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8809 |
|
|
|
8810 |
def __ne__(self, other):
|
|
|
8811 |
return not (self == other)
|
| 12103 |
manish.sha |
8812 |
|
|
|
8813 |
class AmazonFbaOrderReturns:
|
|
|
8814 |
"""
|
|
|
8815 |
Attributes:
|
|
|
8816 |
- amazonOrderId
|
|
|
8817 |
- insertionTimestamp
|
|
|
8818 |
- sku
|
|
|
8819 |
- creationTimestamp
|
|
|
8820 |
- shippedQuantity
|
|
|
8821 |
- sellableReturnQuantity
|
|
|
8822 |
- nonSellableReturnQuantity
|
|
|
8823 |
"""
|
|
|
8824 |
|
|
|
8825 |
thrift_spec = (
|
|
|
8826 |
None, # 0
|
|
|
8827 |
(1, TType.STRING, 'amazonOrderId', None, None, ), # 1
|
|
|
8828 |
(2, TType.I64, 'insertionTimestamp', None, None, ), # 2
|
|
|
8829 |
(3, TType.I64, 'sku', None, None, ), # 3
|
|
|
8830 |
(4, TType.I64, 'creationTimestamp', None, None, ), # 4
|
|
|
8831 |
(5, TType.I64, 'shippedQuantity', None, None, ), # 5
|
|
|
8832 |
(6, TType.I64, 'sellableReturnQuantity', None, None, ), # 6
|
|
|
8833 |
(7, TType.I64, 'nonSellableReturnQuantity', None, None, ), # 7
|
|
|
8834 |
)
|
|
|
8835 |
|
|
|
8836 |
def __init__(self, amazonOrderId=None, insertionTimestamp=None, sku=None, creationTimestamp=None, shippedQuantity=None, sellableReturnQuantity=None, nonSellableReturnQuantity=None,):
|
|
|
8837 |
self.amazonOrderId = amazonOrderId
|
|
|
8838 |
self.insertionTimestamp = insertionTimestamp
|
|
|
8839 |
self.sku = sku
|
|
|
8840 |
self.creationTimestamp = creationTimestamp
|
|
|
8841 |
self.shippedQuantity = shippedQuantity
|
|
|
8842 |
self.sellableReturnQuantity = sellableReturnQuantity
|
|
|
8843 |
self.nonSellableReturnQuantity = nonSellableReturnQuantity
|
|
|
8844 |
|
|
|
8845 |
def read(self, iprot):
|
|
|
8846 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8847 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
8848 |
return
|
|
|
8849 |
iprot.readStructBegin()
|
|
|
8850 |
while True:
|
|
|
8851 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
8852 |
if ftype == TType.STOP:
|
|
|
8853 |
break
|
|
|
8854 |
if fid == 1:
|
|
|
8855 |
if ftype == TType.STRING:
|
|
|
8856 |
self.amazonOrderId = iprot.readString();
|
|
|
8857 |
else:
|
|
|
8858 |
iprot.skip(ftype)
|
|
|
8859 |
elif fid == 2:
|
|
|
8860 |
if ftype == TType.I64:
|
|
|
8861 |
self.insertionTimestamp = iprot.readI64();
|
|
|
8862 |
else:
|
|
|
8863 |
iprot.skip(ftype)
|
|
|
8864 |
elif fid == 3:
|
|
|
8865 |
if ftype == TType.I64:
|
|
|
8866 |
self.sku = iprot.readI64();
|
|
|
8867 |
else:
|
|
|
8868 |
iprot.skip(ftype)
|
|
|
8869 |
elif fid == 4:
|
|
|
8870 |
if ftype == TType.I64:
|
|
|
8871 |
self.creationTimestamp = iprot.readI64();
|
|
|
8872 |
else:
|
|
|
8873 |
iprot.skip(ftype)
|
|
|
8874 |
elif fid == 5:
|
|
|
8875 |
if ftype == TType.I64:
|
|
|
8876 |
self.shippedQuantity = iprot.readI64();
|
|
|
8877 |
else:
|
|
|
8878 |
iprot.skip(ftype)
|
|
|
8879 |
elif fid == 6:
|
|
|
8880 |
if ftype == TType.I64:
|
|
|
8881 |
self.sellableReturnQuantity = iprot.readI64();
|
|
|
8882 |
else:
|
|
|
8883 |
iprot.skip(ftype)
|
|
|
8884 |
elif fid == 7:
|
|
|
8885 |
if ftype == TType.I64:
|
|
|
8886 |
self.nonSellableReturnQuantity = iprot.readI64();
|
|
|
8887 |
else:
|
|
|
8888 |
iprot.skip(ftype)
|
|
|
8889 |
else:
|
|
|
8890 |
iprot.skip(ftype)
|
|
|
8891 |
iprot.readFieldEnd()
|
|
|
8892 |
iprot.readStructEnd()
|
|
|
8893 |
|
|
|
8894 |
def write(self, oprot):
|
|
|
8895 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
8896 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
8897 |
return
|
|
|
8898 |
oprot.writeStructBegin('AmazonFbaOrderReturns')
|
|
|
8899 |
if self.amazonOrderId is not None:
|
|
|
8900 |
oprot.writeFieldBegin('amazonOrderId', TType.STRING, 1)
|
|
|
8901 |
oprot.writeString(self.amazonOrderId)
|
|
|
8902 |
oprot.writeFieldEnd()
|
|
|
8903 |
if self.insertionTimestamp is not None:
|
|
|
8904 |
oprot.writeFieldBegin('insertionTimestamp', TType.I64, 2)
|
|
|
8905 |
oprot.writeI64(self.insertionTimestamp)
|
|
|
8906 |
oprot.writeFieldEnd()
|
|
|
8907 |
if self.sku is not None:
|
|
|
8908 |
oprot.writeFieldBegin('sku', TType.I64, 3)
|
|
|
8909 |
oprot.writeI64(self.sku)
|
|
|
8910 |
oprot.writeFieldEnd()
|
|
|
8911 |
if self.creationTimestamp is not None:
|
|
|
8912 |
oprot.writeFieldBegin('creationTimestamp', TType.I64, 4)
|
|
|
8913 |
oprot.writeI64(self.creationTimestamp)
|
|
|
8914 |
oprot.writeFieldEnd()
|
|
|
8915 |
if self.shippedQuantity is not None:
|
|
|
8916 |
oprot.writeFieldBegin('shippedQuantity', TType.I64, 5)
|
|
|
8917 |
oprot.writeI64(self.shippedQuantity)
|
|
|
8918 |
oprot.writeFieldEnd()
|
|
|
8919 |
if self.sellableReturnQuantity is not None:
|
|
|
8920 |
oprot.writeFieldBegin('sellableReturnQuantity', TType.I64, 6)
|
|
|
8921 |
oprot.writeI64(self.sellableReturnQuantity)
|
|
|
8922 |
oprot.writeFieldEnd()
|
|
|
8923 |
if self.nonSellableReturnQuantity is not None:
|
|
|
8924 |
oprot.writeFieldBegin('nonSellableReturnQuantity', TType.I64, 7)
|
|
|
8925 |
oprot.writeI64(self.nonSellableReturnQuantity)
|
|
|
8926 |
oprot.writeFieldEnd()
|
|
|
8927 |
oprot.writeFieldStop()
|
|
|
8928 |
oprot.writeStructEnd()
|
|
|
8929 |
|
|
|
8930 |
def validate(self):
|
|
|
8931 |
return
|
|
|
8932 |
|
|
|
8933 |
|
|
|
8934 |
def __repr__(self):
|
|
|
8935 |
L = ['%s=%r' % (key, value)
|
|
|
8936 |
for key, value in self.__dict__.iteritems()]
|
|
|
8937 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
8938 |
|
|
|
8939 |
def __eq__(self, other):
|
|
|
8940 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
8941 |
|
|
|
8942 |
def __ne__(self, other):
|
|
|
8943 |
return not (self == other)
|
| 12614 |
amit.gupta |
8944 |
|
|
|
8945 |
class FlipkartAdvantageOrder:
|
|
|
8946 |
"""
|
|
|
8947 |
Attributes:
|
|
|
8948 |
- fkOrderId
|
|
|
8949 |
- fkOrderItemId
|
|
|
8950 |
- sku
|
|
|
8951 |
- creationTimestamp
|
|
|
8952 |
- customerName
|
|
|
8953 |
- customerAddress
|
|
|
8954 |
- pincode
|
|
|
8955 |
- customerCity
|
|
|
8956 |
- customerState
|
|
|
8957 |
- customerPhone
|
|
|
8958 |
- status
|
|
|
8959 |
- quantity
|
|
|
8960 |
- totalPrice
|
|
|
8961 |
- listPrice
|
|
|
8962 |
- modifiedDate
|
|
|
8963 |
- listingId
|
|
|
8964 |
- cancelReason
|
|
|
8965 |
- returnReason
|
|
|
8966 |
- freebieItemId
|
|
|
8967 |
- productTitle
|
|
|
8968 |
"""
|
|
|
8969 |
|
|
|
8970 |
thrift_spec = (
|
|
|
8971 |
None, # 0
|
|
|
8972 |
(1, TType.STRING, 'fkOrderId', None, None, ), # 1
|
|
|
8973 |
(2, TType.STRING, 'fkOrderItemId', None, None, ), # 2
|
| 12980 |
kshitij.so |
8974 |
(3, TType.I64, 'sku', None, None, ), # 3
|
| 12614 |
amit.gupta |
8975 |
(4, TType.I64, 'creationTimestamp', None, None, ), # 4
|
|
|
8976 |
(5, TType.STRING, 'customerName', None, None, ), # 5
|
|
|
8977 |
(6, TType.STRING, 'customerAddress', None, None, ), # 6
|
|
|
8978 |
(7, TType.STRING, 'pincode', None, None, ), # 7
|
|
|
8979 |
(8, TType.STRING, 'customerCity', None, None, ), # 8
|
|
|
8980 |
(9, TType.STRING, 'customerState', None, None, ), # 9
|
|
|
8981 |
(10, TType.STRING, 'customerPhone', None, None, ), # 10
|
|
|
8982 |
(11, TType.STRING, 'status', None, None, ), # 11
|
|
|
8983 |
(12, TType.I64, 'quantity', None, None, ), # 12
|
|
|
8984 |
(13, TType.DOUBLE, 'totalPrice', None, None, ), # 13
|
|
|
8985 |
(14, TType.DOUBLE, 'listPrice', None, None, ), # 14
|
|
|
8986 |
(15, TType.I64, 'modifiedDate', None, None, ), # 15
|
|
|
8987 |
(16, TType.STRING, 'listingId', None, None, ), # 16
|
|
|
8988 |
(17, TType.STRING, 'cancelReason', None, None, ), # 17
|
|
|
8989 |
(18, TType.STRING, 'returnReason', None, None, ), # 18
|
|
|
8990 |
(19, TType.STRING, 'freebieItemId', None, None, ), # 19
|
|
|
8991 |
(20, TType.STRING, 'productTitle', None, None, ), # 20
|
|
|
8992 |
)
|
|
|
8993 |
|
|
|
8994 |
def __init__(self, fkOrderId=None, fkOrderItemId=None, sku=None, creationTimestamp=None, customerName=None, customerAddress=None, pincode=None, customerCity=None, customerState=None, customerPhone=None, status=None, quantity=None, totalPrice=None, listPrice=None, modifiedDate=None, listingId=None, cancelReason=None, returnReason=None, freebieItemId=None, productTitle=None,):
|
|
|
8995 |
self.fkOrderId = fkOrderId
|
|
|
8996 |
self.fkOrderItemId = fkOrderItemId
|
|
|
8997 |
self.sku = sku
|
|
|
8998 |
self.creationTimestamp = creationTimestamp
|
|
|
8999 |
self.customerName = customerName
|
|
|
9000 |
self.customerAddress = customerAddress
|
|
|
9001 |
self.pincode = pincode
|
|
|
9002 |
self.customerCity = customerCity
|
|
|
9003 |
self.customerState = customerState
|
|
|
9004 |
self.customerPhone = customerPhone
|
|
|
9005 |
self.status = status
|
|
|
9006 |
self.quantity = quantity
|
|
|
9007 |
self.totalPrice = totalPrice
|
|
|
9008 |
self.listPrice = listPrice
|
|
|
9009 |
self.modifiedDate = modifiedDate
|
|
|
9010 |
self.listingId = listingId
|
|
|
9011 |
self.cancelReason = cancelReason
|
|
|
9012 |
self.returnReason = returnReason
|
|
|
9013 |
self.freebieItemId = freebieItemId
|
|
|
9014 |
self.productTitle = productTitle
|
|
|
9015 |
|
|
|
9016 |
def read(self, iprot):
|
|
|
9017 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9018 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
9019 |
return
|
|
|
9020 |
iprot.readStructBegin()
|
|
|
9021 |
while True:
|
|
|
9022 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
9023 |
if ftype == TType.STOP:
|
|
|
9024 |
break
|
|
|
9025 |
if fid == 1:
|
|
|
9026 |
if ftype == TType.STRING:
|
|
|
9027 |
self.fkOrderId = iprot.readString();
|
|
|
9028 |
else:
|
|
|
9029 |
iprot.skip(ftype)
|
|
|
9030 |
elif fid == 2:
|
|
|
9031 |
if ftype == TType.STRING:
|
|
|
9032 |
self.fkOrderItemId = iprot.readString();
|
|
|
9033 |
else:
|
|
|
9034 |
iprot.skip(ftype)
|
|
|
9035 |
elif fid == 3:
|
| 12980 |
kshitij.so |
9036 |
if ftype == TType.I64:
|
|
|
9037 |
self.sku = iprot.readI64();
|
| 12614 |
amit.gupta |
9038 |
else:
|
|
|
9039 |
iprot.skip(ftype)
|
|
|
9040 |
elif fid == 4:
|
|
|
9041 |
if ftype == TType.I64:
|
|
|
9042 |
self.creationTimestamp = iprot.readI64();
|
|
|
9043 |
else:
|
|
|
9044 |
iprot.skip(ftype)
|
|
|
9045 |
elif fid == 5:
|
|
|
9046 |
if ftype == TType.STRING:
|
|
|
9047 |
self.customerName = iprot.readString();
|
|
|
9048 |
else:
|
|
|
9049 |
iprot.skip(ftype)
|
|
|
9050 |
elif fid == 6:
|
|
|
9051 |
if ftype == TType.STRING:
|
|
|
9052 |
self.customerAddress = iprot.readString();
|
|
|
9053 |
else:
|
|
|
9054 |
iprot.skip(ftype)
|
|
|
9055 |
elif fid == 7:
|
|
|
9056 |
if ftype == TType.STRING:
|
|
|
9057 |
self.pincode = iprot.readString();
|
|
|
9058 |
else:
|
|
|
9059 |
iprot.skip(ftype)
|
|
|
9060 |
elif fid == 8:
|
|
|
9061 |
if ftype == TType.STRING:
|
|
|
9062 |
self.customerCity = iprot.readString();
|
|
|
9063 |
else:
|
|
|
9064 |
iprot.skip(ftype)
|
|
|
9065 |
elif fid == 9:
|
|
|
9066 |
if ftype == TType.STRING:
|
|
|
9067 |
self.customerState = iprot.readString();
|
|
|
9068 |
else:
|
|
|
9069 |
iprot.skip(ftype)
|
|
|
9070 |
elif fid == 10:
|
|
|
9071 |
if ftype == TType.STRING:
|
|
|
9072 |
self.customerPhone = iprot.readString();
|
|
|
9073 |
else:
|
|
|
9074 |
iprot.skip(ftype)
|
|
|
9075 |
elif fid == 11:
|
|
|
9076 |
if ftype == TType.STRING:
|
|
|
9077 |
self.status = iprot.readString();
|
|
|
9078 |
else:
|
|
|
9079 |
iprot.skip(ftype)
|
|
|
9080 |
elif fid == 12:
|
|
|
9081 |
if ftype == TType.I64:
|
|
|
9082 |
self.quantity = iprot.readI64();
|
|
|
9083 |
else:
|
|
|
9084 |
iprot.skip(ftype)
|
|
|
9085 |
elif fid == 13:
|
|
|
9086 |
if ftype == TType.DOUBLE:
|
|
|
9087 |
self.totalPrice = iprot.readDouble();
|
|
|
9088 |
else:
|
|
|
9089 |
iprot.skip(ftype)
|
|
|
9090 |
elif fid == 14:
|
|
|
9091 |
if ftype == TType.DOUBLE:
|
|
|
9092 |
self.listPrice = iprot.readDouble();
|
|
|
9093 |
else:
|
|
|
9094 |
iprot.skip(ftype)
|
|
|
9095 |
elif fid == 15:
|
|
|
9096 |
if ftype == TType.I64:
|
|
|
9097 |
self.modifiedDate = iprot.readI64();
|
|
|
9098 |
else:
|
|
|
9099 |
iprot.skip(ftype)
|
|
|
9100 |
elif fid == 16:
|
|
|
9101 |
if ftype == TType.STRING:
|
|
|
9102 |
self.listingId = iprot.readString();
|
|
|
9103 |
else:
|
|
|
9104 |
iprot.skip(ftype)
|
|
|
9105 |
elif fid == 17:
|
|
|
9106 |
if ftype == TType.STRING:
|
|
|
9107 |
self.cancelReason = iprot.readString();
|
|
|
9108 |
else:
|
|
|
9109 |
iprot.skip(ftype)
|
|
|
9110 |
elif fid == 18:
|
|
|
9111 |
if ftype == TType.STRING:
|
|
|
9112 |
self.returnReason = iprot.readString();
|
|
|
9113 |
else:
|
|
|
9114 |
iprot.skip(ftype)
|
|
|
9115 |
elif fid == 19:
|
|
|
9116 |
if ftype == TType.STRING:
|
|
|
9117 |
self.freebieItemId = iprot.readString();
|
|
|
9118 |
else:
|
|
|
9119 |
iprot.skip(ftype)
|
|
|
9120 |
elif fid == 20:
|
|
|
9121 |
if ftype == TType.STRING:
|
|
|
9122 |
self.productTitle = iprot.readString();
|
|
|
9123 |
else:
|
|
|
9124 |
iprot.skip(ftype)
|
|
|
9125 |
else:
|
|
|
9126 |
iprot.skip(ftype)
|
|
|
9127 |
iprot.readFieldEnd()
|
|
|
9128 |
iprot.readStructEnd()
|
|
|
9129 |
|
|
|
9130 |
def write(self, oprot):
|
|
|
9131 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9132 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
9133 |
return
|
|
|
9134 |
oprot.writeStructBegin('FlipkartAdvantageOrder')
|
|
|
9135 |
if self.fkOrderId is not None:
|
|
|
9136 |
oprot.writeFieldBegin('fkOrderId', TType.STRING, 1)
|
|
|
9137 |
oprot.writeString(self.fkOrderId)
|
|
|
9138 |
oprot.writeFieldEnd()
|
|
|
9139 |
if self.fkOrderItemId is not None:
|
|
|
9140 |
oprot.writeFieldBegin('fkOrderItemId', TType.STRING, 2)
|
|
|
9141 |
oprot.writeString(self.fkOrderItemId)
|
|
|
9142 |
oprot.writeFieldEnd()
|
|
|
9143 |
if self.sku is not None:
|
| 12980 |
kshitij.so |
9144 |
oprot.writeFieldBegin('sku', TType.I64, 3)
|
|
|
9145 |
oprot.writeI64(self.sku)
|
| 12614 |
amit.gupta |
9146 |
oprot.writeFieldEnd()
|
|
|
9147 |
if self.creationTimestamp is not None:
|
|
|
9148 |
oprot.writeFieldBegin('creationTimestamp', TType.I64, 4)
|
|
|
9149 |
oprot.writeI64(self.creationTimestamp)
|
|
|
9150 |
oprot.writeFieldEnd()
|
|
|
9151 |
if self.customerName is not None:
|
|
|
9152 |
oprot.writeFieldBegin('customerName', TType.STRING, 5)
|
|
|
9153 |
oprot.writeString(self.customerName)
|
|
|
9154 |
oprot.writeFieldEnd()
|
|
|
9155 |
if self.customerAddress is not None:
|
|
|
9156 |
oprot.writeFieldBegin('customerAddress', TType.STRING, 6)
|
|
|
9157 |
oprot.writeString(self.customerAddress)
|
|
|
9158 |
oprot.writeFieldEnd()
|
|
|
9159 |
if self.pincode is not None:
|
|
|
9160 |
oprot.writeFieldBegin('pincode', TType.STRING, 7)
|
|
|
9161 |
oprot.writeString(self.pincode)
|
|
|
9162 |
oprot.writeFieldEnd()
|
|
|
9163 |
if self.customerCity is not None:
|
|
|
9164 |
oprot.writeFieldBegin('customerCity', TType.STRING, 8)
|
|
|
9165 |
oprot.writeString(self.customerCity)
|
|
|
9166 |
oprot.writeFieldEnd()
|
|
|
9167 |
if self.customerState is not None:
|
|
|
9168 |
oprot.writeFieldBegin('customerState', TType.STRING, 9)
|
|
|
9169 |
oprot.writeString(self.customerState)
|
|
|
9170 |
oprot.writeFieldEnd()
|
|
|
9171 |
if self.customerPhone is not None:
|
|
|
9172 |
oprot.writeFieldBegin('customerPhone', TType.STRING, 10)
|
|
|
9173 |
oprot.writeString(self.customerPhone)
|
|
|
9174 |
oprot.writeFieldEnd()
|
|
|
9175 |
if self.status is not None:
|
|
|
9176 |
oprot.writeFieldBegin('status', TType.STRING, 11)
|
|
|
9177 |
oprot.writeString(self.status)
|
|
|
9178 |
oprot.writeFieldEnd()
|
|
|
9179 |
if self.quantity is not None:
|
|
|
9180 |
oprot.writeFieldBegin('quantity', TType.I64, 12)
|
|
|
9181 |
oprot.writeI64(self.quantity)
|
|
|
9182 |
oprot.writeFieldEnd()
|
|
|
9183 |
if self.totalPrice is not None:
|
|
|
9184 |
oprot.writeFieldBegin('totalPrice', TType.DOUBLE, 13)
|
|
|
9185 |
oprot.writeDouble(self.totalPrice)
|
|
|
9186 |
oprot.writeFieldEnd()
|
|
|
9187 |
if self.listPrice is not None:
|
|
|
9188 |
oprot.writeFieldBegin('listPrice', TType.DOUBLE, 14)
|
|
|
9189 |
oprot.writeDouble(self.listPrice)
|
|
|
9190 |
oprot.writeFieldEnd()
|
|
|
9191 |
if self.modifiedDate is not None:
|
|
|
9192 |
oprot.writeFieldBegin('modifiedDate', TType.I64, 15)
|
|
|
9193 |
oprot.writeI64(self.modifiedDate)
|
|
|
9194 |
oprot.writeFieldEnd()
|
|
|
9195 |
if self.listingId is not None:
|
|
|
9196 |
oprot.writeFieldBegin('listingId', TType.STRING, 16)
|
|
|
9197 |
oprot.writeString(self.listingId)
|
|
|
9198 |
oprot.writeFieldEnd()
|
|
|
9199 |
if self.cancelReason is not None:
|
|
|
9200 |
oprot.writeFieldBegin('cancelReason', TType.STRING, 17)
|
|
|
9201 |
oprot.writeString(self.cancelReason)
|
|
|
9202 |
oprot.writeFieldEnd()
|
|
|
9203 |
if self.returnReason is not None:
|
|
|
9204 |
oprot.writeFieldBegin('returnReason', TType.STRING, 18)
|
|
|
9205 |
oprot.writeString(self.returnReason)
|
|
|
9206 |
oprot.writeFieldEnd()
|
|
|
9207 |
if self.freebieItemId is not None:
|
|
|
9208 |
oprot.writeFieldBegin('freebieItemId', TType.STRING, 19)
|
|
|
9209 |
oprot.writeString(self.freebieItemId)
|
|
|
9210 |
oprot.writeFieldEnd()
|
|
|
9211 |
if self.productTitle is not None:
|
|
|
9212 |
oprot.writeFieldBegin('productTitle', TType.STRING, 20)
|
|
|
9213 |
oprot.writeString(self.productTitle)
|
|
|
9214 |
oprot.writeFieldEnd()
|
|
|
9215 |
oprot.writeFieldStop()
|
|
|
9216 |
oprot.writeStructEnd()
|
|
|
9217 |
|
|
|
9218 |
def validate(self):
|
|
|
9219 |
return
|
|
|
9220 |
|
|
|
9221 |
|
|
|
9222 |
def __repr__(self):
|
|
|
9223 |
L = ['%s=%r' % (key, value)
|
|
|
9224 |
for key, value in self.__dict__.iteritems()]
|
|
|
9225 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
9226 |
|
|
|
9227 |
def __eq__(self, other):
|
|
|
9228 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
9229 |
|
|
|
9230 |
def __ne__(self, other):
|
|
|
9231 |
return not (self == other)
|
| 13113 |
kshitij.so |
9232 |
|
| 13147 |
manish.sha |
9233 |
class FlipkartFaSalesSnapshot:
|
|
|
9234 |
"""
|
|
|
9235 |
Attributes:
|
|
|
9236 |
- dateOfSale
|
|
|
9237 |
- item_id
|
|
|
9238 |
- totalOrderCount
|
|
|
9239 |
- isOutOfStock
|
|
|
9240 |
- totalSale
|
|
|
9241 |
- ourPrice
|
| 13584 |
manish.sha |
9242 |
- fcLocation
|
|
|
9243 |
- returnQuantity
|
|
|
9244 |
- returnValue
|
| 13147 |
manish.sha |
9245 |
"""
|
|
|
9246 |
|
|
|
9247 |
thrift_spec = (
|
|
|
9248 |
None, # 0
|
|
|
9249 |
(1, TType.I64, 'dateOfSale', None, None, ), # 1
|
|
|
9250 |
(2, TType.I64, 'item_id', None, None, ), # 2
|
|
|
9251 |
(3, TType.I32, 'totalOrderCount', None, None, ), # 3
|
|
|
9252 |
(4, TType.BOOL, 'isOutOfStock', None, None, ), # 4
|
|
|
9253 |
(5, TType.DOUBLE, 'totalSale', None, None, ), # 5
|
|
|
9254 |
(6, TType.DOUBLE, 'ourPrice', None, None, ), # 6
|
| 13584 |
manish.sha |
9255 |
(7, TType.I32, 'fcLocation', None, None, ), # 7
|
|
|
9256 |
(8, TType.I32, 'returnQuantity', None, None, ), # 8
|
|
|
9257 |
(9, TType.DOUBLE, 'returnValue', None, None, ), # 9
|
| 13147 |
manish.sha |
9258 |
)
|
|
|
9259 |
|
| 13584 |
manish.sha |
9260 |
def __init__(self, dateOfSale=None, item_id=None, totalOrderCount=None, isOutOfStock=None, totalSale=None, ourPrice=None, fcLocation=None, returnQuantity=None, returnValue=None,):
|
| 13147 |
manish.sha |
9261 |
self.dateOfSale = dateOfSale
|
|
|
9262 |
self.item_id = item_id
|
|
|
9263 |
self.totalOrderCount = totalOrderCount
|
|
|
9264 |
self.isOutOfStock = isOutOfStock
|
|
|
9265 |
self.totalSale = totalSale
|
|
|
9266 |
self.ourPrice = ourPrice
|
| 13584 |
manish.sha |
9267 |
self.fcLocation = fcLocation
|
|
|
9268 |
self.returnQuantity = returnQuantity
|
|
|
9269 |
self.returnValue = returnValue
|
| 13147 |
manish.sha |
9270 |
|
|
|
9271 |
def read(self, iprot):
|
|
|
9272 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9273 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
9274 |
return
|
|
|
9275 |
iprot.readStructBegin()
|
|
|
9276 |
while True:
|
|
|
9277 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
9278 |
if ftype == TType.STOP:
|
|
|
9279 |
break
|
|
|
9280 |
if fid == 1:
|
|
|
9281 |
if ftype == TType.I64:
|
|
|
9282 |
self.dateOfSale = iprot.readI64();
|
|
|
9283 |
else:
|
|
|
9284 |
iprot.skip(ftype)
|
|
|
9285 |
elif fid == 2:
|
|
|
9286 |
if ftype == TType.I64:
|
|
|
9287 |
self.item_id = iprot.readI64();
|
|
|
9288 |
else:
|
|
|
9289 |
iprot.skip(ftype)
|
|
|
9290 |
elif fid == 3:
|
|
|
9291 |
if ftype == TType.I32:
|
|
|
9292 |
self.totalOrderCount = iprot.readI32();
|
|
|
9293 |
else:
|
|
|
9294 |
iprot.skip(ftype)
|
|
|
9295 |
elif fid == 4:
|
|
|
9296 |
if ftype == TType.BOOL:
|
|
|
9297 |
self.isOutOfStock = iprot.readBool();
|
|
|
9298 |
else:
|
|
|
9299 |
iprot.skip(ftype)
|
|
|
9300 |
elif fid == 5:
|
|
|
9301 |
if ftype == TType.DOUBLE:
|
|
|
9302 |
self.totalSale = iprot.readDouble();
|
|
|
9303 |
else:
|
|
|
9304 |
iprot.skip(ftype)
|
|
|
9305 |
elif fid == 6:
|
|
|
9306 |
if ftype == TType.DOUBLE:
|
|
|
9307 |
self.ourPrice = iprot.readDouble();
|
|
|
9308 |
else:
|
|
|
9309 |
iprot.skip(ftype)
|
| 13584 |
manish.sha |
9310 |
elif fid == 7:
|
|
|
9311 |
if ftype == TType.I32:
|
|
|
9312 |
self.fcLocation = iprot.readI32();
|
|
|
9313 |
else:
|
|
|
9314 |
iprot.skip(ftype)
|
|
|
9315 |
elif fid == 8:
|
|
|
9316 |
if ftype == TType.I32:
|
|
|
9317 |
self.returnQuantity = iprot.readI32();
|
|
|
9318 |
else:
|
|
|
9319 |
iprot.skip(ftype)
|
|
|
9320 |
elif fid == 9:
|
|
|
9321 |
if ftype == TType.DOUBLE:
|
|
|
9322 |
self.returnValue = iprot.readDouble();
|
|
|
9323 |
else:
|
|
|
9324 |
iprot.skip(ftype)
|
| 13147 |
manish.sha |
9325 |
else:
|
|
|
9326 |
iprot.skip(ftype)
|
|
|
9327 |
iprot.readFieldEnd()
|
|
|
9328 |
iprot.readStructEnd()
|
|
|
9329 |
|
|
|
9330 |
def write(self, oprot):
|
|
|
9331 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9332 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
9333 |
return
|
|
|
9334 |
oprot.writeStructBegin('FlipkartFaSalesSnapshot')
|
|
|
9335 |
if self.dateOfSale is not None:
|
|
|
9336 |
oprot.writeFieldBegin('dateOfSale', TType.I64, 1)
|
|
|
9337 |
oprot.writeI64(self.dateOfSale)
|
|
|
9338 |
oprot.writeFieldEnd()
|
|
|
9339 |
if self.item_id is not None:
|
|
|
9340 |
oprot.writeFieldBegin('item_id', TType.I64, 2)
|
|
|
9341 |
oprot.writeI64(self.item_id)
|
|
|
9342 |
oprot.writeFieldEnd()
|
|
|
9343 |
if self.totalOrderCount is not None:
|
|
|
9344 |
oprot.writeFieldBegin('totalOrderCount', TType.I32, 3)
|
|
|
9345 |
oprot.writeI32(self.totalOrderCount)
|
|
|
9346 |
oprot.writeFieldEnd()
|
|
|
9347 |
if self.isOutOfStock is not None:
|
|
|
9348 |
oprot.writeFieldBegin('isOutOfStock', TType.BOOL, 4)
|
|
|
9349 |
oprot.writeBool(self.isOutOfStock)
|
|
|
9350 |
oprot.writeFieldEnd()
|
|
|
9351 |
if self.totalSale is not None:
|
|
|
9352 |
oprot.writeFieldBegin('totalSale', TType.DOUBLE, 5)
|
|
|
9353 |
oprot.writeDouble(self.totalSale)
|
|
|
9354 |
oprot.writeFieldEnd()
|
|
|
9355 |
if self.ourPrice is not None:
|
|
|
9356 |
oprot.writeFieldBegin('ourPrice', TType.DOUBLE, 6)
|
|
|
9357 |
oprot.writeDouble(self.ourPrice)
|
|
|
9358 |
oprot.writeFieldEnd()
|
| 13584 |
manish.sha |
9359 |
if self.fcLocation is not None:
|
|
|
9360 |
oprot.writeFieldBegin('fcLocation', TType.I32, 7)
|
|
|
9361 |
oprot.writeI32(self.fcLocation)
|
|
|
9362 |
oprot.writeFieldEnd()
|
|
|
9363 |
if self.returnQuantity is not None:
|
|
|
9364 |
oprot.writeFieldBegin('returnQuantity', TType.I32, 8)
|
|
|
9365 |
oprot.writeI32(self.returnQuantity)
|
|
|
9366 |
oprot.writeFieldEnd()
|
|
|
9367 |
if self.returnValue is not None:
|
|
|
9368 |
oprot.writeFieldBegin('returnValue', TType.DOUBLE, 9)
|
|
|
9369 |
oprot.writeDouble(self.returnValue)
|
|
|
9370 |
oprot.writeFieldEnd()
|
| 13147 |
manish.sha |
9371 |
oprot.writeFieldStop()
|
|
|
9372 |
oprot.writeStructEnd()
|
|
|
9373 |
|
|
|
9374 |
def validate(self):
|
|
|
9375 |
return
|
|
|
9376 |
|
|
|
9377 |
|
|
|
9378 |
def __repr__(self):
|
|
|
9379 |
L = ['%s=%r' % (key, value)
|
|
|
9380 |
for key, value in self.__dict__.iteritems()]
|
|
|
9381 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
9382 |
|
|
|
9383 |
def __eq__(self, other):
|
|
|
9384 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
9385 |
|
|
|
9386 |
def __ne__(self, other):
|
|
|
9387 |
return not (self == other)
|
|
|
9388 |
|
| 13113 |
kshitij.so |
9389 |
class AmazonHourlySaleSnapshot:
|
|
|
9390 |
"""
|
|
|
9391 |
Attributes:
|
|
|
9392 |
- snapshotTime
|
|
|
9393 |
- item_id
|
|
|
9394 |
- totalOrderCount
|
|
|
9395 |
- amazonFbaInventory
|
|
|
9396 |
- isOutOfStock
|
|
|
9397 |
- totalSale
|
|
|
9398 |
- promotionSale
|
|
|
9399 |
- promotionOrderCount
|
|
|
9400 |
- fcLocation
|
|
|
9401 |
"""
|
|
|
9402 |
|
|
|
9403 |
thrift_spec = (
|
|
|
9404 |
None, # 0
|
|
|
9405 |
(1, TType.I64, 'snapshotTime', None, None, ), # 1
|
|
|
9406 |
(2, TType.I64, 'item_id', None, None, ), # 2
|
|
|
9407 |
(3, TType.I32, 'totalOrderCount', None, None, ), # 3
|
|
|
9408 |
(4, TType.I64, 'amazonFbaInventory', None, None, ), # 4
|
|
|
9409 |
(5, TType.BOOL, 'isOutOfStock', None, None, ), # 5
|
|
|
9410 |
(6, TType.DOUBLE, 'totalSale', None, None, ), # 6
|
|
|
9411 |
(7, TType.DOUBLE, 'promotionSale', None, None, ), # 7
|
|
|
9412 |
(8, TType.I32, 'promotionOrderCount', None, None, ), # 8
|
|
|
9413 |
(9, TType.I32, 'fcLocation', None, None, ), # 9
|
|
|
9414 |
)
|
|
|
9415 |
|
|
|
9416 |
def __init__(self, snapshotTime=None, item_id=None, totalOrderCount=None, amazonFbaInventory=None, isOutOfStock=None, totalSale=None, promotionSale=None, promotionOrderCount=None, fcLocation=None,):
|
|
|
9417 |
self.snapshotTime = snapshotTime
|
|
|
9418 |
self.item_id = item_id
|
|
|
9419 |
self.totalOrderCount = totalOrderCount
|
|
|
9420 |
self.amazonFbaInventory = amazonFbaInventory
|
|
|
9421 |
self.isOutOfStock = isOutOfStock
|
|
|
9422 |
self.totalSale = totalSale
|
|
|
9423 |
self.promotionSale = promotionSale
|
|
|
9424 |
self.promotionOrderCount = promotionOrderCount
|
|
|
9425 |
self.fcLocation = fcLocation
|
|
|
9426 |
|
|
|
9427 |
def read(self, iprot):
|
|
|
9428 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9429 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
9430 |
return
|
|
|
9431 |
iprot.readStructBegin()
|
|
|
9432 |
while True:
|
|
|
9433 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
9434 |
if ftype == TType.STOP:
|
|
|
9435 |
break
|
|
|
9436 |
if fid == 1:
|
|
|
9437 |
if ftype == TType.I64:
|
|
|
9438 |
self.snapshotTime = iprot.readI64();
|
|
|
9439 |
else:
|
|
|
9440 |
iprot.skip(ftype)
|
|
|
9441 |
elif fid == 2:
|
|
|
9442 |
if ftype == TType.I64:
|
|
|
9443 |
self.item_id = iprot.readI64();
|
|
|
9444 |
else:
|
|
|
9445 |
iprot.skip(ftype)
|
|
|
9446 |
elif fid == 3:
|
|
|
9447 |
if ftype == TType.I32:
|
|
|
9448 |
self.totalOrderCount = iprot.readI32();
|
|
|
9449 |
else:
|
|
|
9450 |
iprot.skip(ftype)
|
|
|
9451 |
elif fid == 4:
|
|
|
9452 |
if ftype == TType.I64:
|
|
|
9453 |
self.amazonFbaInventory = iprot.readI64();
|
|
|
9454 |
else:
|
|
|
9455 |
iprot.skip(ftype)
|
|
|
9456 |
elif fid == 5:
|
|
|
9457 |
if ftype == TType.BOOL:
|
|
|
9458 |
self.isOutOfStock = iprot.readBool();
|
|
|
9459 |
else:
|
|
|
9460 |
iprot.skip(ftype)
|
|
|
9461 |
elif fid == 6:
|
|
|
9462 |
if ftype == TType.DOUBLE:
|
|
|
9463 |
self.totalSale = iprot.readDouble();
|
|
|
9464 |
else:
|
|
|
9465 |
iprot.skip(ftype)
|
|
|
9466 |
elif fid == 7:
|
|
|
9467 |
if ftype == TType.DOUBLE:
|
|
|
9468 |
self.promotionSale = iprot.readDouble();
|
|
|
9469 |
else:
|
|
|
9470 |
iprot.skip(ftype)
|
|
|
9471 |
elif fid == 8:
|
|
|
9472 |
if ftype == TType.I32:
|
|
|
9473 |
self.promotionOrderCount = iprot.readI32();
|
|
|
9474 |
else:
|
|
|
9475 |
iprot.skip(ftype)
|
|
|
9476 |
elif fid == 9:
|
|
|
9477 |
if ftype == TType.I32:
|
|
|
9478 |
self.fcLocation = iprot.readI32();
|
|
|
9479 |
else:
|
|
|
9480 |
iprot.skip(ftype)
|
|
|
9481 |
else:
|
|
|
9482 |
iprot.skip(ftype)
|
|
|
9483 |
iprot.readFieldEnd()
|
|
|
9484 |
iprot.readStructEnd()
|
|
|
9485 |
|
|
|
9486 |
def write(self, oprot):
|
|
|
9487 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9488 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
9489 |
return
|
|
|
9490 |
oprot.writeStructBegin('AmazonHourlySaleSnapshot')
|
|
|
9491 |
if self.snapshotTime is not None:
|
|
|
9492 |
oprot.writeFieldBegin('snapshotTime', TType.I64, 1)
|
|
|
9493 |
oprot.writeI64(self.snapshotTime)
|
|
|
9494 |
oprot.writeFieldEnd()
|
|
|
9495 |
if self.item_id is not None:
|
|
|
9496 |
oprot.writeFieldBegin('item_id', TType.I64, 2)
|
|
|
9497 |
oprot.writeI64(self.item_id)
|
|
|
9498 |
oprot.writeFieldEnd()
|
|
|
9499 |
if self.totalOrderCount is not None:
|
|
|
9500 |
oprot.writeFieldBegin('totalOrderCount', TType.I32, 3)
|
|
|
9501 |
oprot.writeI32(self.totalOrderCount)
|
|
|
9502 |
oprot.writeFieldEnd()
|
|
|
9503 |
if self.amazonFbaInventory is not None:
|
|
|
9504 |
oprot.writeFieldBegin('amazonFbaInventory', TType.I64, 4)
|
|
|
9505 |
oprot.writeI64(self.amazonFbaInventory)
|
|
|
9506 |
oprot.writeFieldEnd()
|
|
|
9507 |
if self.isOutOfStock is not None:
|
|
|
9508 |
oprot.writeFieldBegin('isOutOfStock', TType.BOOL, 5)
|
|
|
9509 |
oprot.writeBool(self.isOutOfStock)
|
|
|
9510 |
oprot.writeFieldEnd()
|
|
|
9511 |
if self.totalSale is not None:
|
|
|
9512 |
oprot.writeFieldBegin('totalSale', TType.DOUBLE, 6)
|
|
|
9513 |
oprot.writeDouble(self.totalSale)
|
|
|
9514 |
oprot.writeFieldEnd()
|
|
|
9515 |
if self.promotionSale is not None:
|
|
|
9516 |
oprot.writeFieldBegin('promotionSale', TType.DOUBLE, 7)
|
|
|
9517 |
oprot.writeDouble(self.promotionSale)
|
|
|
9518 |
oprot.writeFieldEnd()
|
|
|
9519 |
if self.promotionOrderCount is not None:
|
|
|
9520 |
oprot.writeFieldBegin('promotionOrderCount', TType.I32, 8)
|
|
|
9521 |
oprot.writeI32(self.promotionOrderCount)
|
|
|
9522 |
oprot.writeFieldEnd()
|
|
|
9523 |
if self.fcLocation is not None:
|
|
|
9524 |
oprot.writeFieldBegin('fcLocation', TType.I32, 9)
|
|
|
9525 |
oprot.writeI32(self.fcLocation)
|
|
|
9526 |
oprot.writeFieldEnd()
|
|
|
9527 |
oprot.writeFieldStop()
|
|
|
9528 |
oprot.writeStructEnd()
|
|
|
9529 |
|
|
|
9530 |
def validate(self):
|
|
|
9531 |
return
|
|
|
9532 |
|
|
|
9533 |
|
|
|
9534 |
def __repr__(self):
|
|
|
9535 |
L = ['%s=%r' % (key, value)
|
|
|
9536 |
for key, value in self.__dict__.iteritems()]
|
|
|
9537 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
9538 |
|
|
|
9539 |
def __eq__(self, other):
|
|
|
9540 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
9541 |
|
|
|
9542 |
def __ne__(self, other):
|
|
|
9543 |
return not (self == other)
|
| 13691 |
manish.sha |
9544 |
|
|
|
9545 |
class AmazonFbaOrderItem:
|
|
|
9546 |
"""
|
|
|
9547 |
Attributes:
|
|
|
9548 |
- amazonOrderId
|
|
|
9549 |
- purchaseDate
|
|
|
9550 |
- orderStatus
|
|
|
9551 |
- item_id
|
|
|
9552 |
- fcLocation
|
|
|
9553 |
- totalAmount
|
|
|
9554 |
- promotionDiscount
|
|
|
9555 |
- quantity
|
|
|
9556 |
"""
|
|
|
9557 |
|
|
|
9558 |
thrift_spec = (
|
|
|
9559 |
None, # 0
|
|
|
9560 |
(1, TType.STRING, 'amazonOrderId', None, None, ), # 1
|
|
|
9561 |
(2, TType.I64, 'purchaseDate', None, None, ), # 2
|
|
|
9562 |
(3, TType.STRING, 'orderStatus', None, None, ), # 3
|
|
|
9563 |
(4, TType.I64, 'item_id', None, None, ), # 4
|
|
|
9564 |
(5, TType.I32, 'fcLocation', None, None, ), # 5
|
|
|
9565 |
(6, TType.DOUBLE, 'totalAmount', None, None, ), # 6
|
|
|
9566 |
(7, TType.DOUBLE, 'promotionDiscount', None, None, ), # 7
|
|
|
9567 |
(8, TType.I64, 'quantity', None, None, ), # 8
|
|
|
9568 |
)
|
|
|
9569 |
|
|
|
9570 |
def __init__(self, amazonOrderId=None, purchaseDate=None, orderStatus=None, item_id=None, fcLocation=None, totalAmount=None, promotionDiscount=None, quantity=None,):
|
|
|
9571 |
self.amazonOrderId = amazonOrderId
|
|
|
9572 |
self.purchaseDate = purchaseDate
|
|
|
9573 |
self.orderStatus = orderStatus
|
|
|
9574 |
self.item_id = item_id
|
|
|
9575 |
self.fcLocation = fcLocation
|
|
|
9576 |
self.totalAmount = totalAmount
|
|
|
9577 |
self.promotionDiscount = promotionDiscount
|
|
|
9578 |
self.quantity = quantity
|
|
|
9579 |
|
|
|
9580 |
def read(self, iprot):
|
|
|
9581 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9582 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
9583 |
return
|
|
|
9584 |
iprot.readStructBegin()
|
|
|
9585 |
while True:
|
|
|
9586 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
9587 |
if ftype == TType.STOP:
|
|
|
9588 |
break
|
|
|
9589 |
if fid == 1:
|
|
|
9590 |
if ftype == TType.STRING:
|
|
|
9591 |
self.amazonOrderId = iprot.readString();
|
|
|
9592 |
else:
|
|
|
9593 |
iprot.skip(ftype)
|
|
|
9594 |
elif fid == 2:
|
|
|
9595 |
if ftype == TType.I64:
|
|
|
9596 |
self.purchaseDate = iprot.readI64();
|
|
|
9597 |
else:
|
|
|
9598 |
iprot.skip(ftype)
|
|
|
9599 |
elif fid == 3:
|
|
|
9600 |
if ftype == TType.STRING:
|
|
|
9601 |
self.orderStatus = iprot.readString();
|
|
|
9602 |
else:
|
|
|
9603 |
iprot.skip(ftype)
|
|
|
9604 |
elif fid == 4:
|
|
|
9605 |
if ftype == TType.I64:
|
|
|
9606 |
self.item_id = iprot.readI64();
|
|
|
9607 |
else:
|
|
|
9608 |
iprot.skip(ftype)
|
|
|
9609 |
elif fid == 5:
|
|
|
9610 |
if ftype == TType.I32:
|
|
|
9611 |
self.fcLocation = iprot.readI32();
|
|
|
9612 |
else:
|
|
|
9613 |
iprot.skip(ftype)
|
|
|
9614 |
elif fid == 6:
|
|
|
9615 |
if ftype == TType.DOUBLE:
|
|
|
9616 |
self.totalAmount = iprot.readDouble();
|
|
|
9617 |
else:
|
|
|
9618 |
iprot.skip(ftype)
|
|
|
9619 |
elif fid == 7:
|
|
|
9620 |
if ftype == TType.DOUBLE:
|
|
|
9621 |
self.promotionDiscount = iprot.readDouble();
|
|
|
9622 |
else:
|
|
|
9623 |
iprot.skip(ftype)
|
|
|
9624 |
elif fid == 8:
|
|
|
9625 |
if ftype == TType.I64:
|
|
|
9626 |
self.quantity = iprot.readI64();
|
|
|
9627 |
else:
|
|
|
9628 |
iprot.skip(ftype)
|
|
|
9629 |
else:
|
|
|
9630 |
iprot.skip(ftype)
|
|
|
9631 |
iprot.readFieldEnd()
|
|
|
9632 |
iprot.readStructEnd()
|
|
|
9633 |
|
|
|
9634 |
def write(self, oprot):
|
|
|
9635 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9636 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
9637 |
return
|
|
|
9638 |
oprot.writeStructBegin('AmazonFbaOrderItem')
|
|
|
9639 |
if self.amazonOrderId is not None:
|
|
|
9640 |
oprot.writeFieldBegin('amazonOrderId', TType.STRING, 1)
|
|
|
9641 |
oprot.writeString(self.amazonOrderId)
|
|
|
9642 |
oprot.writeFieldEnd()
|
|
|
9643 |
if self.purchaseDate is not None:
|
|
|
9644 |
oprot.writeFieldBegin('purchaseDate', TType.I64, 2)
|
|
|
9645 |
oprot.writeI64(self.purchaseDate)
|
|
|
9646 |
oprot.writeFieldEnd()
|
|
|
9647 |
if self.orderStatus is not None:
|
|
|
9648 |
oprot.writeFieldBegin('orderStatus', TType.STRING, 3)
|
|
|
9649 |
oprot.writeString(self.orderStatus)
|
|
|
9650 |
oprot.writeFieldEnd()
|
|
|
9651 |
if self.item_id is not None:
|
|
|
9652 |
oprot.writeFieldBegin('item_id', TType.I64, 4)
|
|
|
9653 |
oprot.writeI64(self.item_id)
|
|
|
9654 |
oprot.writeFieldEnd()
|
|
|
9655 |
if self.fcLocation is not None:
|
|
|
9656 |
oprot.writeFieldBegin('fcLocation', TType.I32, 5)
|
|
|
9657 |
oprot.writeI32(self.fcLocation)
|
|
|
9658 |
oprot.writeFieldEnd()
|
|
|
9659 |
if self.totalAmount is not None:
|
|
|
9660 |
oprot.writeFieldBegin('totalAmount', TType.DOUBLE, 6)
|
|
|
9661 |
oprot.writeDouble(self.totalAmount)
|
|
|
9662 |
oprot.writeFieldEnd()
|
|
|
9663 |
if self.promotionDiscount is not None:
|
|
|
9664 |
oprot.writeFieldBegin('promotionDiscount', TType.DOUBLE, 7)
|
|
|
9665 |
oprot.writeDouble(self.promotionDiscount)
|
|
|
9666 |
oprot.writeFieldEnd()
|
|
|
9667 |
if self.quantity is not None:
|
|
|
9668 |
oprot.writeFieldBegin('quantity', TType.I64, 8)
|
|
|
9669 |
oprot.writeI64(self.quantity)
|
|
|
9670 |
oprot.writeFieldEnd()
|
|
|
9671 |
oprot.writeFieldStop()
|
|
|
9672 |
oprot.writeStructEnd()
|
|
|
9673 |
|
|
|
9674 |
def validate(self):
|
|
|
9675 |
return
|
|
|
9676 |
|
|
|
9677 |
|
|
|
9678 |
def __repr__(self):
|
|
|
9679 |
L = ['%s=%r' % (key, value)
|
|
|
9680 |
for key, value in self.__dict__.iteritems()]
|
|
|
9681 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
9682 |
|
|
|
9683 |
def __eq__(self, other):
|
|
|
9684 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
9685 |
|
|
|
9686 |
def __ne__(self, other):
|
|
|
9687 |
return not (self == other)
|
|
|
9688 |
|
|
|
9689 |
class HsOrder:
|
|
|
9690 |
"""
|
|
|
9691 |
Attributes:
|
|
|
9692 |
- orderId
|
|
|
9693 |
- hsOrderNo
|
|
|
9694 |
- hsSubOrderNo
|
|
|
9695 |
- catalogueName
|
|
|
9696 |
- hsOrderDate
|
|
|
9697 |
- hsProductId
|
|
|
9698 |
- hsItemId
|
|
|
9699 |
- sellerSku
|
|
|
9700 |
- paymentMode
|
|
|
9701 |
- courierName
|
|
|
9702 |
- slaDays
|
| 13734 |
manish.sha |
9703 |
- shippingName
|
| 13691 |
manish.sha |
9704 |
"""
|
|
|
9705 |
|
|
|
9706 |
thrift_spec = (
|
|
|
9707 |
None, # 0
|
|
|
9708 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
|
|
9709 |
(2, TType.STRING, 'hsOrderNo', None, None, ), # 2
|
|
|
9710 |
(3, TType.STRING, 'hsSubOrderNo', None, None, ), # 3
|
|
|
9711 |
(4, TType.STRING, 'catalogueName', None, None, ), # 4
|
|
|
9712 |
(5, TType.I64, 'hsOrderDate', None, None, ), # 5
|
|
|
9713 |
(6, TType.STRING, 'hsProductId', None, None, ), # 6
|
|
|
9714 |
(7, TType.STRING, 'hsItemId', None, None, ), # 7
|
|
|
9715 |
(8, TType.STRING, 'sellerSku', None, None, ), # 8
|
|
|
9716 |
(9, TType.STRING, 'paymentMode', None, None, ), # 9
|
|
|
9717 |
(10, TType.STRING, 'courierName', None, None, ), # 10
|
|
|
9718 |
(11, TType.I64, 'slaDays', None, None, ), # 11
|
| 13734 |
manish.sha |
9719 |
(12, TType.STRING, 'shippingName', None, None, ), # 12
|
| 13691 |
manish.sha |
9720 |
)
|
|
|
9721 |
|
| 13734 |
manish.sha |
9722 |
def __init__(self, orderId=None, hsOrderNo=None, hsSubOrderNo=None, catalogueName=None, hsOrderDate=None, hsProductId=None, hsItemId=None, sellerSku=None, paymentMode=None, courierName=None, slaDays=None, shippingName=None,):
|
| 13691 |
manish.sha |
9723 |
self.orderId = orderId
|
|
|
9724 |
self.hsOrderNo = hsOrderNo
|
|
|
9725 |
self.hsSubOrderNo = hsSubOrderNo
|
|
|
9726 |
self.catalogueName = catalogueName
|
|
|
9727 |
self.hsOrderDate = hsOrderDate
|
|
|
9728 |
self.hsProductId = hsProductId
|
|
|
9729 |
self.hsItemId = hsItemId
|
|
|
9730 |
self.sellerSku = sellerSku
|
|
|
9731 |
self.paymentMode = paymentMode
|
|
|
9732 |
self.courierName = courierName
|
|
|
9733 |
self.slaDays = slaDays
|
| 13734 |
manish.sha |
9734 |
self.shippingName = shippingName
|
| 13691 |
manish.sha |
9735 |
|
|
|
9736 |
def read(self, iprot):
|
|
|
9737 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9738 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
9739 |
return
|
|
|
9740 |
iprot.readStructBegin()
|
|
|
9741 |
while True:
|
|
|
9742 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
9743 |
if ftype == TType.STOP:
|
|
|
9744 |
break
|
|
|
9745 |
if fid == 1:
|
|
|
9746 |
if ftype == TType.I64:
|
|
|
9747 |
self.orderId = iprot.readI64();
|
|
|
9748 |
else:
|
|
|
9749 |
iprot.skip(ftype)
|
|
|
9750 |
elif fid == 2:
|
|
|
9751 |
if ftype == TType.STRING:
|
|
|
9752 |
self.hsOrderNo = iprot.readString();
|
|
|
9753 |
else:
|
|
|
9754 |
iprot.skip(ftype)
|
|
|
9755 |
elif fid == 3:
|
|
|
9756 |
if ftype == TType.STRING:
|
|
|
9757 |
self.hsSubOrderNo = iprot.readString();
|
|
|
9758 |
else:
|
|
|
9759 |
iprot.skip(ftype)
|
|
|
9760 |
elif fid == 4:
|
|
|
9761 |
if ftype == TType.STRING:
|
|
|
9762 |
self.catalogueName = iprot.readString();
|
|
|
9763 |
else:
|
|
|
9764 |
iprot.skip(ftype)
|
|
|
9765 |
elif fid == 5:
|
|
|
9766 |
if ftype == TType.I64:
|
|
|
9767 |
self.hsOrderDate = iprot.readI64();
|
|
|
9768 |
else:
|
|
|
9769 |
iprot.skip(ftype)
|
|
|
9770 |
elif fid == 6:
|
|
|
9771 |
if ftype == TType.STRING:
|
|
|
9772 |
self.hsProductId = iprot.readString();
|
|
|
9773 |
else:
|
|
|
9774 |
iprot.skip(ftype)
|
|
|
9775 |
elif fid == 7:
|
|
|
9776 |
if ftype == TType.STRING:
|
|
|
9777 |
self.hsItemId = iprot.readString();
|
|
|
9778 |
else:
|
|
|
9779 |
iprot.skip(ftype)
|
|
|
9780 |
elif fid == 8:
|
|
|
9781 |
if ftype == TType.STRING:
|
|
|
9782 |
self.sellerSku = iprot.readString();
|
|
|
9783 |
else:
|
|
|
9784 |
iprot.skip(ftype)
|
|
|
9785 |
elif fid == 9:
|
|
|
9786 |
if ftype == TType.STRING:
|
|
|
9787 |
self.paymentMode = iprot.readString();
|
|
|
9788 |
else:
|
|
|
9789 |
iprot.skip(ftype)
|
|
|
9790 |
elif fid == 10:
|
|
|
9791 |
if ftype == TType.STRING:
|
|
|
9792 |
self.courierName = iprot.readString();
|
|
|
9793 |
else:
|
|
|
9794 |
iprot.skip(ftype)
|
|
|
9795 |
elif fid == 11:
|
|
|
9796 |
if ftype == TType.I64:
|
|
|
9797 |
self.slaDays = iprot.readI64();
|
|
|
9798 |
else:
|
|
|
9799 |
iprot.skip(ftype)
|
| 13734 |
manish.sha |
9800 |
elif fid == 12:
|
|
|
9801 |
if ftype == TType.STRING:
|
|
|
9802 |
self.shippingName = iprot.readString();
|
|
|
9803 |
else:
|
|
|
9804 |
iprot.skip(ftype)
|
| 13691 |
manish.sha |
9805 |
else:
|
|
|
9806 |
iprot.skip(ftype)
|
|
|
9807 |
iprot.readFieldEnd()
|
|
|
9808 |
iprot.readStructEnd()
|
|
|
9809 |
|
|
|
9810 |
def write(self, oprot):
|
|
|
9811 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9812 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
9813 |
return
|
|
|
9814 |
oprot.writeStructBegin('HsOrder')
|
|
|
9815 |
if self.orderId is not None:
|
|
|
9816 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
9817 |
oprot.writeI64(self.orderId)
|
|
|
9818 |
oprot.writeFieldEnd()
|
|
|
9819 |
if self.hsOrderNo is not None:
|
|
|
9820 |
oprot.writeFieldBegin('hsOrderNo', TType.STRING, 2)
|
|
|
9821 |
oprot.writeString(self.hsOrderNo)
|
|
|
9822 |
oprot.writeFieldEnd()
|
|
|
9823 |
if self.hsSubOrderNo is not None:
|
|
|
9824 |
oprot.writeFieldBegin('hsSubOrderNo', TType.STRING, 3)
|
|
|
9825 |
oprot.writeString(self.hsSubOrderNo)
|
|
|
9826 |
oprot.writeFieldEnd()
|
|
|
9827 |
if self.catalogueName is not None:
|
|
|
9828 |
oprot.writeFieldBegin('catalogueName', TType.STRING, 4)
|
|
|
9829 |
oprot.writeString(self.catalogueName)
|
|
|
9830 |
oprot.writeFieldEnd()
|
|
|
9831 |
if self.hsOrderDate is not None:
|
|
|
9832 |
oprot.writeFieldBegin('hsOrderDate', TType.I64, 5)
|
|
|
9833 |
oprot.writeI64(self.hsOrderDate)
|
|
|
9834 |
oprot.writeFieldEnd()
|
|
|
9835 |
if self.hsProductId is not None:
|
|
|
9836 |
oprot.writeFieldBegin('hsProductId', TType.STRING, 6)
|
|
|
9837 |
oprot.writeString(self.hsProductId)
|
|
|
9838 |
oprot.writeFieldEnd()
|
|
|
9839 |
if self.hsItemId is not None:
|
|
|
9840 |
oprot.writeFieldBegin('hsItemId', TType.STRING, 7)
|
|
|
9841 |
oprot.writeString(self.hsItemId)
|
|
|
9842 |
oprot.writeFieldEnd()
|
|
|
9843 |
if self.sellerSku is not None:
|
|
|
9844 |
oprot.writeFieldBegin('sellerSku', TType.STRING, 8)
|
|
|
9845 |
oprot.writeString(self.sellerSku)
|
|
|
9846 |
oprot.writeFieldEnd()
|
|
|
9847 |
if self.paymentMode is not None:
|
|
|
9848 |
oprot.writeFieldBegin('paymentMode', TType.STRING, 9)
|
|
|
9849 |
oprot.writeString(self.paymentMode)
|
|
|
9850 |
oprot.writeFieldEnd()
|
|
|
9851 |
if self.courierName is not None:
|
|
|
9852 |
oprot.writeFieldBegin('courierName', TType.STRING, 10)
|
|
|
9853 |
oprot.writeString(self.courierName)
|
|
|
9854 |
oprot.writeFieldEnd()
|
|
|
9855 |
if self.slaDays is not None:
|
|
|
9856 |
oprot.writeFieldBegin('slaDays', TType.I64, 11)
|
|
|
9857 |
oprot.writeI64(self.slaDays)
|
|
|
9858 |
oprot.writeFieldEnd()
|
| 13734 |
manish.sha |
9859 |
if self.shippingName is not None:
|
|
|
9860 |
oprot.writeFieldBegin('shippingName', TType.STRING, 12)
|
|
|
9861 |
oprot.writeString(self.shippingName)
|
|
|
9862 |
oprot.writeFieldEnd()
|
| 13691 |
manish.sha |
9863 |
oprot.writeFieldStop()
|
|
|
9864 |
oprot.writeStructEnd()
|
|
|
9865 |
|
|
|
9866 |
def validate(self):
|
|
|
9867 |
return
|
|
|
9868 |
|
|
|
9869 |
|
|
|
9870 |
def __repr__(self):
|
|
|
9871 |
L = ['%s=%r' % (key, value)
|
|
|
9872 |
for key, value in self.__dict__.iteritems()]
|
|
|
9873 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
9874 |
|
|
|
9875 |
def __eq__(self, other):
|
|
|
9876 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
9877 |
|
|
|
9878 |
def __ne__(self, other):
|
|
|
9879 |
return not (self == other)
|
| 18578 |
manish.sha |
9880 |
|
|
|
9881 |
class Creditor:
|
|
|
9882 |
"""
|
|
|
9883 |
Attributes:
|
|
|
9884 |
- id
|
|
|
9885 |
- name
|
|
|
9886 |
- active
|
| 18674 |
amit.gupta |
9887 |
- ticket_size
|
|
|
9888 |
- credit_due_days
|
| 18578 |
manish.sha |
9889 |
- created
|
|
|
9890 |
- updated
|
|
|
9891 |
"""
|
|
|
9892 |
|
|
|
9893 |
thrift_spec = (
|
|
|
9894 |
None, # 0
|
|
|
9895 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
9896 |
(2, TType.STRING, 'name', None, None, ), # 2
|
|
|
9897 |
(3, TType.BOOL, 'active', None, None, ), # 3
|
| 18674 |
amit.gupta |
9898 |
(4, TType.DOUBLE, 'ticket_size', None, None, ), # 4
|
|
|
9899 |
(5, TType.I64, 'credit_due_days', None, None, ), # 5
|
|
|
9900 |
(6, TType.I64, 'created', None, None, ), # 6
|
|
|
9901 |
(7, TType.I64, 'updated', None, None, ), # 7
|
| 18578 |
manish.sha |
9902 |
)
|
|
|
9903 |
|
| 18674 |
amit.gupta |
9904 |
def __init__(self, id=None, name=None, active=None, ticket_size=None, credit_due_days=None, created=None, updated=None,):
|
| 18578 |
manish.sha |
9905 |
self.id = id
|
|
|
9906 |
self.name = name
|
|
|
9907 |
self.active = active
|
| 18674 |
amit.gupta |
9908 |
self.ticket_size = ticket_size
|
|
|
9909 |
self.credit_due_days = credit_due_days
|
| 18578 |
manish.sha |
9910 |
self.created = created
|
|
|
9911 |
self.updated = updated
|
|
|
9912 |
|
|
|
9913 |
def read(self, iprot):
|
|
|
9914 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9915 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
9916 |
return
|
|
|
9917 |
iprot.readStructBegin()
|
|
|
9918 |
while True:
|
|
|
9919 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
9920 |
if ftype == TType.STOP:
|
|
|
9921 |
break
|
|
|
9922 |
if fid == 1:
|
|
|
9923 |
if ftype == TType.I64:
|
|
|
9924 |
self.id = iprot.readI64();
|
|
|
9925 |
else:
|
|
|
9926 |
iprot.skip(ftype)
|
|
|
9927 |
elif fid == 2:
|
|
|
9928 |
if ftype == TType.STRING:
|
|
|
9929 |
self.name = iprot.readString();
|
|
|
9930 |
else:
|
|
|
9931 |
iprot.skip(ftype)
|
|
|
9932 |
elif fid == 3:
|
|
|
9933 |
if ftype == TType.BOOL:
|
|
|
9934 |
self.active = iprot.readBool();
|
|
|
9935 |
else:
|
|
|
9936 |
iprot.skip(ftype)
|
|
|
9937 |
elif fid == 4:
|
| 18674 |
amit.gupta |
9938 |
if ftype == TType.DOUBLE:
|
|
|
9939 |
self.ticket_size = iprot.readDouble();
|
|
|
9940 |
else:
|
|
|
9941 |
iprot.skip(ftype)
|
|
|
9942 |
elif fid == 5:
|
| 18578 |
manish.sha |
9943 |
if ftype == TType.I64:
|
| 18674 |
amit.gupta |
9944 |
self.credit_due_days = iprot.readI64();
|
|
|
9945 |
else:
|
|
|
9946 |
iprot.skip(ftype)
|
|
|
9947 |
elif fid == 6:
|
|
|
9948 |
if ftype == TType.I64:
|
| 18578 |
manish.sha |
9949 |
self.created = iprot.readI64();
|
|
|
9950 |
else:
|
|
|
9951 |
iprot.skip(ftype)
|
| 18674 |
amit.gupta |
9952 |
elif fid == 7:
|
| 18578 |
manish.sha |
9953 |
if ftype == TType.I64:
|
|
|
9954 |
self.updated = iprot.readI64();
|
|
|
9955 |
else:
|
|
|
9956 |
iprot.skip(ftype)
|
|
|
9957 |
else:
|
|
|
9958 |
iprot.skip(ftype)
|
|
|
9959 |
iprot.readFieldEnd()
|
|
|
9960 |
iprot.readStructEnd()
|
|
|
9961 |
|
|
|
9962 |
def write(self, oprot):
|
|
|
9963 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
9964 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
9965 |
return
|
|
|
9966 |
oprot.writeStructBegin('Creditor')
|
|
|
9967 |
if self.id is not None:
|
|
|
9968 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
9969 |
oprot.writeI64(self.id)
|
|
|
9970 |
oprot.writeFieldEnd()
|
|
|
9971 |
if self.name is not None:
|
|
|
9972 |
oprot.writeFieldBegin('name', TType.STRING, 2)
|
|
|
9973 |
oprot.writeString(self.name)
|
|
|
9974 |
oprot.writeFieldEnd()
|
|
|
9975 |
if self.active is not None:
|
|
|
9976 |
oprot.writeFieldBegin('active', TType.BOOL, 3)
|
|
|
9977 |
oprot.writeBool(self.active)
|
|
|
9978 |
oprot.writeFieldEnd()
|
| 18674 |
amit.gupta |
9979 |
if self.ticket_size is not None:
|
|
|
9980 |
oprot.writeFieldBegin('ticket_size', TType.DOUBLE, 4)
|
|
|
9981 |
oprot.writeDouble(self.ticket_size)
|
|
|
9982 |
oprot.writeFieldEnd()
|
|
|
9983 |
if self.credit_due_days is not None:
|
|
|
9984 |
oprot.writeFieldBegin('credit_due_days', TType.I64, 5)
|
|
|
9985 |
oprot.writeI64(self.credit_due_days)
|
|
|
9986 |
oprot.writeFieldEnd()
|
| 18578 |
manish.sha |
9987 |
if self.created is not None:
|
| 18674 |
amit.gupta |
9988 |
oprot.writeFieldBegin('created', TType.I64, 6)
|
| 18578 |
manish.sha |
9989 |
oprot.writeI64(self.created)
|
|
|
9990 |
oprot.writeFieldEnd()
|
|
|
9991 |
if self.updated is not None:
|
| 18674 |
amit.gupta |
9992 |
oprot.writeFieldBegin('updated', TType.I64, 7)
|
| 18578 |
manish.sha |
9993 |
oprot.writeI64(self.updated)
|
|
|
9994 |
oprot.writeFieldEnd()
|
|
|
9995 |
oprot.writeFieldStop()
|
|
|
9996 |
oprot.writeStructEnd()
|
|
|
9997 |
|
|
|
9998 |
def validate(self):
|
|
|
9999 |
return
|
|
|
10000 |
|
|
|
10001 |
|
|
|
10002 |
def __repr__(self):
|
|
|
10003 |
L = ['%s=%r' % (key, value)
|
|
|
10004 |
for key, value in self.__dict__.iteritems()]
|
|
|
10005 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
10006 |
|
|
|
10007 |
def __eq__(self, other):
|
|
|
10008 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
10009 |
|
|
|
10010 |
def __ne__(self, other):
|
|
|
10011 |
return not (self == other)
|
|
|
10012 |
|
|
|
10013 |
class UserSanction:
|
|
|
10014 |
"""
|
|
|
10015 |
Attributes:
|
| 18634 |
manish.sha |
10016 |
- id
|
| 18578 |
manish.sha |
10017 |
- user_id
|
|
|
10018 |
- creditor_id
|
|
|
10019 |
- user_ref_id
|
|
|
10020 |
- credit_limit
|
|
|
10021 |
- credit_blocked
|
|
|
10022 |
- loan
|
|
|
10023 |
- active
|
|
|
10024 |
- created
|
|
|
10025 |
- updated
|
| 18674 |
amit.gupta |
10026 |
- ticket_size
|
|
|
10027 |
- credit_due_days
|
| 18578 |
manish.sha |
10028 |
"""
|
|
|
10029 |
|
|
|
10030 |
thrift_spec = (
|
|
|
10031 |
None, # 0
|
| 18634 |
manish.sha |
10032 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
10033 |
(2, TType.I64, 'user_id', None, None, ), # 2
|
|
|
10034 |
(3, TType.I64, 'creditor_id', None, None, ), # 3
|
|
|
10035 |
(4, TType.STRING, 'user_ref_id', None, None, ), # 4
|
|
|
10036 |
(5, TType.DOUBLE, 'credit_limit', None, None, ), # 5
|
|
|
10037 |
(6, TType.DOUBLE, 'credit_blocked', None, None, ), # 6
|
|
|
10038 |
(7, TType.DOUBLE, 'loan', None, None, ), # 7
|
|
|
10039 |
(8, TType.BOOL, 'active', None, None, ), # 8
|
|
|
10040 |
(9, TType.I64, 'created', None, None, ), # 9
|
|
|
10041 |
(10, TType.I64, 'updated', None, None, ), # 10
|
| 18674 |
amit.gupta |
10042 |
(11, TType.DOUBLE, 'ticket_size', None, None, ), # 11
|
|
|
10043 |
(12, TType.I64, 'credit_due_days', None, None, ), # 12
|
| 18578 |
manish.sha |
10044 |
)
|
|
|
10045 |
|
| 18674 |
amit.gupta |
10046 |
def __init__(self, id=None, user_id=None, creditor_id=None, user_ref_id=None, credit_limit=None, credit_blocked=None, loan=None, active=None, created=None, updated=None, ticket_size=None, credit_due_days=None,):
|
| 18634 |
manish.sha |
10047 |
self.id = id
|
| 18578 |
manish.sha |
10048 |
self.user_id = user_id
|
|
|
10049 |
self.creditor_id = creditor_id
|
|
|
10050 |
self.user_ref_id = user_ref_id
|
|
|
10051 |
self.credit_limit = credit_limit
|
|
|
10052 |
self.credit_blocked = credit_blocked
|
|
|
10053 |
self.loan = loan
|
|
|
10054 |
self.active = active
|
|
|
10055 |
self.created = created
|
|
|
10056 |
self.updated = updated
|
| 18674 |
amit.gupta |
10057 |
self.ticket_size = ticket_size
|
|
|
10058 |
self.credit_due_days = credit_due_days
|
| 18578 |
manish.sha |
10059 |
|
|
|
10060 |
def read(self, iprot):
|
|
|
10061 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
10062 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
10063 |
return
|
|
|
10064 |
iprot.readStructBegin()
|
|
|
10065 |
while True:
|
|
|
10066 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
10067 |
if ftype == TType.STOP:
|
|
|
10068 |
break
|
|
|
10069 |
if fid == 1:
|
|
|
10070 |
if ftype == TType.I64:
|
| 18634 |
manish.sha |
10071 |
self.id = iprot.readI64();
|
| 18578 |
manish.sha |
10072 |
else:
|
|
|
10073 |
iprot.skip(ftype)
|
|
|
10074 |
elif fid == 2:
|
|
|
10075 |
if ftype == TType.I64:
|
| 18634 |
manish.sha |
10076 |
self.user_id = iprot.readI64();
|
|
|
10077 |
else:
|
|
|
10078 |
iprot.skip(ftype)
|
|
|
10079 |
elif fid == 3:
|
|
|
10080 |
if ftype == TType.I64:
|
| 18578 |
manish.sha |
10081 |
self.creditor_id = iprot.readI64();
|
|
|
10082 |
else:
|
|
|
10083 |
iprot.skip(ftype)
|
| 18634 |
manish.sha |
10084 |
elif fid == 4:
|
| 18578 |
manish.sha |
10085 |
if ftype == TType.STRING:
|
|
|
10086 |
self.user_ref_id = iprot.readString();
|
|
|
10087 |
else:
|
|
|
10088 |
iprot.skip(ftype)
|
| 18634 |
manish.sha |
10089 |
elif fid == 5:
|
| 18578 |
manish.sha |
10090 |
if ftype == TType.DOUBLE:
|
|
|
10091 |
self.credit_limit = iprot.readDouble();
|
|
|
10092 |
else:
|
|
|
10093 |
iprot.skip(ftype)
|
| 18634 |
manish.sha |
10094 |
elif fid == 6:
|
| 18578 |
manish.sha |
10095 |
if ftype == TType.DOUBLE:
|
|
|
10096 |
self.credit_blocked = iprot.readDouble();
|
|
|
10097 |
else:
|
|
|
10098 |
iprot.skip(ftype)
|
| 18634 |
manish.sha |
10099 |
elif fid == 7:
|
| 18578 |
manish.sha |
10100 |
if ftype == TType.DOUBLE:
|
|
|
10101 |
self.loan = iprot.readDouble();
|
|
|
10102 |
else:
|
|
|
10103 |
iprot.skip(ftype)
|
| 18634 |
manish.sha |
10104 |
elif fid == 8:
|
| 18578 |
manish.sha |
10105 |
if ftype == TType.BOOL:
|
|
|
10106 |
self.active = iprot.readBool();
|
|
|
10107 |
else:
|
|
|
10108 |
iprot.skip(ftype)
|
| 18634 |
manish.sha |
10109 |
elif fid == 9:
|
| 18578 |
manish.sha |
10110 |
if ftype == TType.I64:
|
|
|
10111 |
self.created = iprot.readI64();
|
|
|
10112 |
else:
|
|
|
10113 |
iprot.skip(ftype)
|
| 18634 |
manish.sha |
10114 |
elif fid == 10:
|
| 18578 |
manish.sha |
10115 |
if ftype == TType.I64:
|
|
|
10116 |
self.updated = iprot.readI64();
|
|
|
10117 |
else:
|
|
|
10118 |
iprot.skip(ftype)
|
| 18674 |
amit.gupta |
10119 |
elif fid == 11:
|
|
|
10120 |
if ftype == TType.DOUBLE:
|
|
|
10121 |
self.ticket_size = iprot.readDouble();
|
|
|
10122 |
else:
|
|
|
10123 |
iprot.skip(ftype)
|
|
|
10124 |
elif fid == 12:
|
|
|
10125 |
if ftype == TType.I64:
|
|
|
10126 |
self.credit_due_days = iprot.readI64();
|
|
|
10127 |
else:
|
|
|
10128 |
iprot.skip(ftype)
|
| 18578 |
manish.sha |
10129 |
else:
|
|
|
10130 |
iprot.skip(ftype)
|
|
|
10131 |
iprot.readFieldEnd()
|
|
|
10132 |
iprot.readStructEnd()
|
|
|
10133 |
|
|
|
10134 |
def write(self, oprot):
|
|
|
10135 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
10136 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
10137 |
return
|
|
|
10138 |
oprot.writeStructBegin('UserSanction')
|
| 18634 |
manish.sha |
10139 |
if self.id is not None:
|
|
|
10140 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
10141 |
oprot.writeI64(self.id)
|
|
|
10142 |
oprot.writeFieldEnd()
|
| 18578 |
manish.sha |
10143 |
if self.user_id is not None:
|
| 18634 |
manish.sha |
10144 |
oprot.writeFieldBegin('user_id', TType.I64, 2)
|
| 18578 |
manish.sha |
10145 |
oprot.writeI64(self.user_id)
|
|
|
10146 |
oprot.writeFieldEnd()
|
|
|
10147 |
if self.creditor_id is not None:
|
| 18634 |
manish.sha |
10148 |
oprot.writeFieldBegin('creditor_id', TType.I64, 3)
|
| 18578 |
manish.sha |
10149 |
oprot.writeI64(self.creditor_id)
|
|
|
10150 |
oprot.writeFieldEnd()
|
|
|
10151 |
if self.user_ref_id is not None:
|
| 18634 |
manish.sha |
10152 |
oprot.writeFieldBegin('user_ref_id', TType.STRING, 4)
|
| 18578 |
manish.sha |
10153 |
oprot.writeString(self.user_ref_id)
|
|
|
10154 |
oprot.writeFieldEnd()
|
|
|
10155 |
if self.credit_limit is not None:
|
| 18634 |
manish.sha |
10156 |
oprot.writeFieldBegin('credit_limit', TType.DOUBLE, 5)
|
| 18578 |
manish.sha |
10157 |
oprot.writeDouble(self.credit_limit)
|
|
|
10158 |
oprot.writeFieldEnd()
|
|
|
10159 |
if self.credit_blocked is not None:
|
| 18634 |
manish.sha |
10160 |
oprot.writeFieldBegin('credit_blocked', TType.DOUBLE, 6)
|
| 18578 |
manish.sha |
10161 |
oprot.writeDouble(self.credit_blocked)
|
|
|
10162 |
oprot.writeFieldEnd()
|
|
|
10163 |
if self.loan is not None:
|
| 18634 |
manish.sha |
10164 |
oprot.writeFieldBegin('loan', TType.DOUBLE, 7)
|
| 18578 |
manish.sha |
10165 |
oprot.writeDouble(self.loan)
|
|
|
10166 |
oprot.writeFieldEnd()
|
|
|
10167 |
if self.active is not None:
|
| 18634 |
manish.sha |
10168 |
oprot.writeFieldBegin('active', TType.BOOL, 8)
|
| 18578 |
manish.sha |
10169 |
oprot.writeBool(self.active)
|
|
|
10170 |
oprot.writeFieldEnd()
|
|
|
10171 |
if self.created is not None:
|
| 18634 |
manish.sha |
10172 |
oprot.writeFieldBegin('created', TType.I64, 9)
|
| 18578 |
manish.sha |
10173 |
oprot.writeI64(self.created)
|
|
|
10174 |
oprot.writeFieldEnd()
|
|
|
10175 |
if self.updated is not None:
|
| 18634 |
manish.sha |
10176 |
oprot.writeFieldBegin('updated', TType.I64, 10)
|
| 18578 |
manish.sha |
10177 |
oprot.writeI64(self.updated)
|
|
|
10178 |
oprot.writeFieldEnd()
|
| 18674 |
amit.gupta |
10179 |
if self.ticket_size is not None:
|
|
|
10180 |
oprot.writeFieldBegin('ticket_size', TType.DOUBLE, 11)
|
|
|
10181 |
oprot.writeDouble(self.ticket_size)
|
|
|
10182 |
oprot.writeFieldEnd()
|
|
|
10183 |
if self.credit_due_days is not None:
|
|
|
10184 |
oprot.writeFieldBegin('credit_due_days', TType.I64, 12)
|
|
|
10185 |
oprot.writeI64(self.credit_due_days)
|
|
|
10186 |
oprot.writeFieldEnd()
|
| 18578 |
manish.sha |
10187 |
oprot.writeFieldStop()
|
|
|
10188 |
oprot.writeStructEnd()
|
|
|
10189 |
|
|
|
10190 |
def validate(self):
|
|
|
10191 |
return
|
|
|
10192 |
|
|
|
10193 |
|
|
|
10194 |
def __repr__(self):
|
|
|
10195 |
L = ['%s=%r' % (key, value)
|
|
|
10196 |
for key, value in self.__dict__.iteritems()]
|
|
|
10197 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
10198 |
|
|
|
10199 |
def __eq__(self, other):
|
|
|
10200 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
10201 |
|
|
|
10202 |
def __ne__(self, other):
|
|
|
10203 |
return not (self == other)
|
|
|
10204 |
|
| 18794 |
manish.sha |
10205 |
class PaginatedUserSanction:
|
|
|
10206 |
"""
|
|
|
10207 |
Attributes:
|
|
|
10208 |
- hasMore
|
|
|
10209 |
- totalCount
|
|
|
10210 |
- userSanctions
|
|
|
10211 |
"""
|
|
|
10212 |
|
|
|
10213 |
thrift_spec = (
|
|
|
10214 |
None, # 0
|
|
|
10215 |
(1, TType.BOOL, 'hasMore', None, None, ), # 1
|
|
|
10216 |
(2, TType.I64, 'totalCount', None, None, ), # 2
|
|
|
10217 |
(3, TType.LIST, 'userSanctions', (TType.STRUCT,(UserSanction, UserSanction.thrift_spec)), None, ), # 3
|
|
|
10218 |
)
|
|
|
10219 |
|
|
|
10220 |
def __init__(self, hasMore=None, totalCount=None, userSanctions=None,):
|
|
|
10221 |
self.hasMore = hasMore
|
|
|
10222 |
self.totalCount = totalCount
|
|
|
10223 |
self.userSanctions = userSanctions
|
|
|
10224 |
|
|
|
10225 |
def read(self, iprot):
|
|
|
10226 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
10227 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
10228 |
return
|
|
|
10229 |
iprot.readStructBegin()
|
|
|
10230 |
while True:
|
|
|
10231 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
10232 |
if ftype == TType.STOP:
|
|
|
10233 |
break
|
|
|
10234 |
if fid == 1:
|
|
|
10235 |
if ftype == TType.BOOL:
|
|
|
10236 |
self.hasMore = iprot.readBool();
|
|
|
10237 |
else:
|
|
|
10238 |
iprot.skip(ftype)
|
|
|
10239 |
elif fid == 2:
|
|
|
10240 |
if ftype == TType.I64:
|
|
|
10241 |
self.totalCount = iprot.readI64();
|
|
|
10242 |
else:
|
|
|
10243 |
iprot.skip(ftype)
|
|
|
10244 |
elif fid == 3:
|
|
|
10245 |
if ftype == TType.LIST:
|
|
|
10246 |
self.userSanctions = []
|
|
|
10247 |
(_etype109, _size106) = iprot.readListBegin()
|
|
|
10248 |
for _i110 in xrange(_size106):
|
|
|
10249 |
_elem111 = UserSanction()
|
|
|
10250 |
_elem111.read(iprot)
|
|
|
10251 |
self.userSanctions.append(_elem111)
|
|
|
10252 |
iprot.readListEnd()
|
|
|
10253 |
else:
|
|
|
10254 |
iprot.skip(ftype)
|
|
|
10255 |
else:
|
|
|
10256 |
iprot.skip(ftype)
|
|
|
10257 |
iprot.readFieldEnd()
|
|
|
10258 |
iprot.readStructEnd()
|
|
|
10259 |
|
|
|
10260 |
def write(self, oprot):
|
|
|
10261 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
10262 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
10263 |
return
|
|
|
10264 |
oprot.writeStructBegin('PaginatedUserSanction')
|
|
|
10265 |
if self.hasMore is not None:
|
|
|
10266 |
oprot.writeFieldBegin('hasMore', TType.BOOL, 1)
|
|
|
10267 |
oprot.writeBool(self.hasMore)
|
|
|
10268 |
oprot.writeFieldEnd()
|
|
|
10269 |
if self.totalCount is not None:
|
|
|
10270 |
oprot.writeFieldBegin('totalCount', TType.I64, 2)
|
|
|
10271 |
oprot.writeI64(self.totalCount)
|
|
|
10272 |
oprot.writeFieldEnd()
|
|
|
10273 |
if self.userSanctions is not None:
|
|
|
10274 |
oprot.writeFieldBegin('userSanctions', TType.LIST, 3)
|
|
|
10275 |
oprot.writeListBegin(TType.STRUCT, len(self.userSanctions))
|
|
|
10276 |
for iter112 in self.userSanctions:
|
|
|
10277 |
iter112.write(oprot)
|
|
|
10278 |
oprot.writeListEnd()
|
|
|
10279 |
oprot.writeFieldEnd()
|
|
|
10280 |
oprot.writeFieldStop()
|
|
|
10281 |
oprot.writeStructEnd()
|
|
|
10282 |
|
|
|
10283 |
def validate(self):
|
|
|
10284 |
return
|
|
|
10285 |
|
|
|
10286 |
|
|
|
10287 |
def __repr__(self):
|
|
|
10288 |
L = ['%s=%r' % (key, value)
|
|
|
10289 |
for key, value in self.__dict__.iteritems()]
|
|
|
10290 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
10291 |
|
|
|
10292 |
def __eq__(self, other):
|
|
|
10293 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
10294 |
|
|
|
10295 |
def __ne__(self, other):
|
|
|
10296 |
return not (self == other)
|
|
|
10297 |
|
| 18578 |
manish.sha |
10298 |
class CreditHistory:
|
|
|
10299 |
"""
|
|
|
10300 |
Attributes:
|
| 18634 |
manish.sha |
10301 |
- id
|
| 18578 |
manish.sha |
10302 |
- user_id
|
|
|
10303 |
- creditor_id
|
|
|
10304 |
- payment_id
|
|
|
10305 |
- amount
|
| 18585 |
amit.gupta |
10306 |
- credit_type
|
| 18578 |
manish.sha |
10307 |
- created
|
| 18634 |
manish.sha |
10308 |
- shipping_id
|
|
|
10309 |
"""
|
|
|
10310 |
|
|
|
10311 |
thrift_spec = (
|
|
|
10312 |
None, # 0
|
|
|
10313 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
10314 |
(2, TType.I64, 'user_id', None, None, ), # 2
|
|
|
10315 |
(3, TType.I64, 'creditor_id', None, None, ), # 3
|
|
|
10316 |
(4, TType.I64, 'payment_id', None, None, ), # 4
|
|
|
10317 |
(5, TType.DOUBLE, 'amount', None, None, ), # 5
|
|
|
10318 |
(6, TType.I32, 'credit_type', None, None, ), # 6
|
|
|
10319 |
(7, TType.I64, 'created', None, None, ), # 7
|
|
|
10320 |
(8, TType.STRING, 'shipping_id', None, None, ), # 8
|
|
|
10321 |
)
|
|
|
10322 |
|
|
|
10323 |
def __init__(self, id=None, user_id=None, creditor_id=None, payment_id=None, amount=None, credit_type=None, created=None, shipping_id=None,):
|
|
|
10324 |
self.id = id
|
|
|
10325 |
self.user_id = user_id
|
|
|
10326 |
self.creditor_id = creditor_id
|
|
|
10327 |
self.payment_id = payment_id
|
|
|
10328 |
self.amount = amount
|
|
|
10329 |
self.credit_type = credit_type
|
|
|
10330 |
self.created = created
|
|
|
10331 |
self.shipping_id = shipping_id
|
|
|
10332 |
|
|
|
10333 |
def read(self, iprot):
|
|
|
10334 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
10335 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
10336 |
return
|
|
|
10337 |
iprot.readStructBegin()
|
|
|
10338 |
while True:
|
|
|
10339 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
10340 |
if ftype == TType.STOP:
|
|
|
10341 |
break
|
|
|
10342 |
if fid == 1:
|
|
|
10343 |
if ftype == TType.I64:
|
|
|
10344 |
self.id = iprot.readI64();
|
|
|
10345 |
else:
|
|
|
10346 |
iprot.skip(ftype)
|
|
|
10347 |
elif fid == 2:
|
|
|
10348 |
if ftype == TType.I64:
|
|
|
10349 |
self.user_id = iprot.readI64();
|
|
|
10350 |
else:
|
|
|
10351 |
iprot.skip(ftype)
|
|
|
10352 |
elif fid == 3:
|
|
|
10353 |
if ftype == TType.I64:
|
|
|
10354 |
self.creditor_id = iprot.readI64();
|
|
|
10355 |
else:
|
|
|
10356 |
iprot.skip(ftype)
|
|
|
10357 |
elif fid == 4:
|
|
|
10358 |
if ftype == TType.I64:
|
|
|
10359 |
self.payment_id = iprot.readI64();
|
|
|
10360 |
else:
|
|
|
10361 |
iprot.skip(ftype)
|
|
|
10362 |
elif fid == 5:
|
|
|
10363 |
if ftype == TType.DOUBLE:
|
|
|
10364 |
self.amount = iprot.readDouble();
|
|
|
10365 |
else:
|
|
|
10366 |
iprot.skip(ftype)
|
|
|
10367 |
elif fid == 6:
|
|
|
10368 |
if ftype == TType.I32:
|
|
|
10369 |
self.credit_type = iprot.readI32();
|
|
|
10370 |
else:
|
|
|
10371 |
iprot.skip(ftype)
|
|
|
10372 |
elif fid == 7:
|
|
|
10373 |
if ftype == TType.I64:
|
|
|
10374 |
self.created = iprot.readI64();
|
|
|
10375 |
else:
|
|
|
10376 |
iprot.skip(ftype)
|
|
|
10377 |
elif fid == 8:
|
|
|
10378 |
if ftype == TType.STRING:
|
|
|
10379 |
self.shipping_id = iprot.readString();
|
|
|
10380 |
else:
|
|
|
10381 |
iprot.skip(ftype)
|
|
|
10382 |
else:
|
|
|
10383 |
iprot.skip(ftype)
|
|
|
10384 |
iprot.readFieldEnd()
|
|
|
10385 |
iprot.readStructEnd()
|
|
|
10386 |
|
|
|
10387 |
def write(self, oprot):
|
|
|
10388 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
10389 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
10390 |
return
|
|
|
10391 |
oprot.writeStructBegin('CreditHistory')
|
|
|
10392 |
if self.id is not None:
|
|
|
10393 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
10394 |
oprot.writeI64(self.id)
|
|
|
10395 |
oprot.writeFieldEnd()
|
|
|
10396 |
if self.user_id is not None:
|
|
|
10397 |
oprot.writeFieldBegin('user_id', TType.I64, 2)
|
|
|
10398 |
oprot.writeI64(self.user_id)
|
|
|
10399 |
oprot.writeFieldEnd()
|
|
|
10400 |
if self.creditor_id is not None:
|
|
|
10401 |
oprot.writeFieldBegin('creditor_id', TType.I64, 3)
|
|
|
10402 |
oprot.writeI64(self.creditor_id)
|
|
|
10403 |
oprot.writeFieldEnd()
|
|
|
10404 |
if self.payment_id is not None:
|
|
|
10405 |
oprot.writeFieldBegin('payment_id', TType.I64, 4)
|
|
|
10406 |
oprot.writeI64(self.payment_id)
|
|
|
10407 |
oprot.writeFieldEnd()
|
|
|
10408 |
if self.amount is not None:
|
|
|
10409 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 5)
|
|
|
10410 |
oprot.writeDouble(self.amount)
|
|
|
10411 |
oprot.writeFieldEnd()
|
|
|
10412 |
if self.credit_type is not None:
|
|
|
10413 |
oprot.writeFieldBegin('credit_type', TType.I32, 6)
|
|
|
10414 |
oprot.writeI32(self.credit_type)
|
|
|
10415 |
oprot.writeFieldEnd()
|
|
|
10416 |
if self.created is not None:
|
|
|
10417 |
oprot.writeFieldBegin('created', TType.I64, 7)
|
|
|
10418 |
oprot.writeI64(self.created)
|
|
|
10419 |
oprot.writeFieldEnd()
|
|
|
10420 |
if self.shipping_id is not None:
|
|
|
10421 |
oprot.writeFieldBegin('shipping_id', TType.STRING, 8)
|
|
|
10422 |
oprot.writeString(self.shipping_id)
|
|
|
10423 |
oprot.writeFieldEnd()
|
|
|
10424 |
oprot.writeFieldStop()
|
|
|
10425 |
oprot.writeStructEnd()
|
|
|
10426 |
|
|
|
10427 |
def validate(self):
|
|
|
10428 |
return
|
|
|
10429 |
|
|
|
10430 |
|
|
|
10431 |
def __repr__(self):
|
|
|
10432 |
L = ['%s=%r' % (key, value)
|
|
|
10433 |
for key, value in self.__dict__.iteritems()]
|
|
|
10434 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
10435 |
|
|
|
10436 |
def __eq__(self, other):
|
|
|
10437 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
10438 |
|
|
|
10439 |
def __ne__(self, other):
|
|
|
10440 |
return not (self == other)
|
|
|
10441 |
|
| 18794 |
manish.sha |
10442 |
class PaginatedCreditHistory:
|
|
|
10443 |
"""
|
|
|
10444 |
Attributes:
|
|
|
10445 |
- hasMore
|
|
|
10446 |
- totalCount
|
|
|
10447 |
- creditHistoryList
|
|
|
10448 |
"""
|
|
|
10449 |
|
|
|
10450 |
thrift_spec = (
|
|
|
10451 |
None, # 0
|
|
|
10452 |
(1, TType.BOOL, 'hasMore', None, None, ), # 1
|
|
|
10453 |
(2, TType.I64, 'totalCount', None, None, ), # 2
|
|
|
10454 |
(3, TType.LIST, 'creditHistoryList', (TType.STRUCT,(CreditHistory, CreditHistory.thrift_spec)), None, ), # 3
|
|
|
10455 |
)
|
|
|
10456 |
|
|
|
10457 |
def __init__(self, hasMore=None, totalCount=None, creditHistoryList=None,):
|
|
|
10458 |
self.hasMore = hasMore
|
|
|
10459 |
self.totalCount = totalCount
|
|
|
10460 |
self.creditHistoryList = creditHistoryList
|
|
|
10461 |
|
|
|
10462 |
def read(self, iprot):
|
|
|
10463 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
10464 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
10465 |
return
|
|
|
10466 |
iprot.readStructBegin()
|
|
|
10467 |
while True:
|
|
|
10468 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
10469 |
if ftype == TType.STOP:
|
|
|
10470 |
break
|
|
|
10471 |
if fid == 1:
|
|
|
10472 |
if ftype == TType.BOOL:
|
|
|
10473 |
self.hasMore = iprot.readBool();
|
|
|
10474 |
else:
|
|
|
10475 |
iprot.skip(ftype)
|
|
|
10476 |
elif fid == 2:
|
|
|
10477 |
if ftype == TType.I64:
|
|
|
10478 |
self.totalCount = iprot.readI64();
|
|
|
10479 |
else:
|
|
|
10480 |
iprot.skip(ftype)
|
|
|
10481 |
elif fid == 3:
|
|
|
10482 |
if ftype == TType.LIST:
|
|
|
10483 |
self.creditHistoryList = []
|
|
|
10484 |
(_etype116, _size113) = iprot.readListBegin()
|
|
|
10485 |
for _i117 in xrange(_size113):
|
|
|
10486 |
_elem118 = CreditHistory()
|
|
|
10487 |
_elem118.read(iprot)
|
|
|
10488 |
self.creditHistoryList.append(_elem118)
|
|
|
10489 |
iprot.readListEnd()
|
|
|
10490 |
else:
|
|
|
10491 |
iprot.skip(ftype)
|
|
|
10492 |
else:
|
|
|
10493 |
iprot.skip(ftype)
|
|
|
10494 |
iprot.readFieldEnd()
|
|
|
10495 |
iprot.readStructEnd()
|
|
|
10496 |
|
|
|
10497 |
def write(self, oprot):
|
|
|
10498 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
10499 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
10500 |
return
|
|
|
10501 |
oprot.writeStructBegin('PaginatedCreditHistory')
|
|
|
10502 |
if self.hasMore is not None:
|
|
|
10503 |
oprot.writeFieldBegin('hasMore', TType.BOOL, 1)
|
|
|
10504 |
oprot.writeBool(self.hasMore)
|
|
|
10505 |
oprot.writeFieldEnd()
|
|
|
10506 |
if self.totalCount is not None:
|
|
|
10507 |
oprot.writeFieldBegin('totalCount', TType.I64, 2)
|
|
|
10508 |
oprot.writeI64(self.totalCount)
|
|
|
10509 |
oprot.writeFieldEnd()
|
|
|
10510 |
if self.creditHistoryList is not None:
|
|
|
10511 |
oprot.writeFieldBegin('creditHistoryList', TType.LIST, 3)
|
|
|
10512 |
oprot.writeListBegin(TType.STRUCT, len(self.creditHistoryList))
|
|
|
10513 |
for iter119 in self.creditHistoryList:
|
|
|
10514 |
iter119.write(oprot)
|
|
|
10515 |
oprot.writeListEnd()
|
|
|
10516 |
oprot.writeFieldEnd()
|
|
|
10517 |
oprot.writeFieldStop()
|
|
|
10518 |
oprot.writeStructEnd()
|
|
|
10519 |
|
|
|
10520 |
def validate(self):
|
|
|
10521 |
return
|
|
|
10522 |
|
|
|
10523 |
|
|
|
10524 |
def __repr__(self):
|
|
|
10525 |
L = ['%s=%r' % (key, value)
|
|
|
10526 |
for key, value in self.__dict__.iteritems()]
|
|
|
10527 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
10528 |
|
|
|
10529 |
def __eq__(self, other):
|
|
|
10530 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
10531 |
|
|
|
10532 |
def __ne__(self, other):
|
|
|
10533 |
return not (self == other)
|
|
|
10534 |
|
| 18634 |
manish.sha |
10535 |
class LoanHistory:
|
|
|
10536 |
"""
|
|
|
10537 |
Attributes:
|
|
|
10538 |
- id
|
|
|
10539 |
- user_id
|
|
|
10540 |
- creditor_id
|
|
|
10541 |
- payment_id
|
|
|
10542 |
- amount
|
|
|
10543 |
- credit_type
|
|
|
10544 |
- created
|
| 18578 |
manish.sha |
10545 |
- updated
|
|
|
10546 |
- loan_id
|
| 18585 |
amit.gupta |
10547 |
- due_date
|
| 18634 |
manish.sha |
10548 |
- value_date
|
| 18769 |
manish.sha |
10549 |
- invoiceNumber
|
| 18578 |
manish.sha |
10550 |
"""
|
|
|
10551 |
|
|
|
10552 |
thrift_spec = (
|
|
|
10553 |
None, # 0
|
| 18634 |
manish.sha |
10554 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
10555 |
(2, TType.I64, 'user_id', None, None, ), # 2
|
|
|
10556 |
(3, TType.I64, 'creditor_id', None, None, ), # 3
|
|
|
10557 |
(4, TType.I64, 'payment_id', None, None, ), # 4
|
|
|
10558 |
(5, TType.DOUBLE, 'amount', None, None, ), # 5
|
|
|
10559 |
(6, TType.I32, 'credit_type', None, None, ), # 6
|
|
|
10560 |
(7, TType.I64, 'created', None, None, ), # 7
|
|
|
10561 |
(8, TType.I64, 'updated', None, None, ), # 8
|
|
|
10562 |
(9, TType.STRING, 'loan_id', None, None, ), # 9
|
| 18585 |
amit.gupta |
10563 |
(10, TType.I64, 'due_date', None, None, ), # 10
|
| 18634 |
manish.sha |
10564 |
(11, TType.I64, 'value_date', None, None, ), # 11
|
| 18769 |
manish.sha |
10565 |
(12, TType.STRING, 'invoiceNumber', None, None, ), # 12
|
| 18578 |
manish.sha |
10566 |
)
|
|
|
10567 |
|
| 18769 |
manish.sha |
10568 |
def __init__(self, id=None, user_id=None, creditor_id=None, payment_id=None, amount=None, credit_type=None, created=None, updated=None, loan_id=None, due_date=None, value_date=None, invoiceNumber=None,):
|
| 18634 |
manish.sha |
10569 |
self.id = id
|
| 18578 |
manish.sha |
10570 |
self.user_id = user_id
|
|
|
10571 |
self.creditor_id = creditor_id
|
|
|
10572 |
self.payment_id = payment_id
|
|
|
10573 |
self.amount = amount
|
| 18585 |
amit.gupta |
10574 |
self.credit_type = credit_type
|
| 18578 |
manish.sha |
10575 |
self.created = created
|
|
|
10576 |
self.updated = updated
|
|
|
10577 |
self.loan_id = loan_id
|
| 18585 |
amit.gupta |
10578 |
self.due_date = due_date
|
| 18634 |
manish.sha |
10579 |
self.value_date = value_date
|
| 18769 |
manish.sha |
10580 |
self.invoiceNumber = invoiceNumber
|
| 18578 |
manish.sha |
10581 |
|
|
|
10582 |
def read(self, iprot):
|
|
|
10583 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
10584 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
10585 |
return
|
|
|
10586 |
iprot.readStructBegin()
|
|
|
10587 |
while True:
|
|
|
10588 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
10589 |
if ftype == TType.STOP:
|
|
|
10590 |
break
|
|
|
10591 |
if fid == 1:
|
|
|
10592 |
if ftype == TType.I64:
|
| 18634 |
manish.sha |
10593 |
self.id = iprot.readI64();
|
| 18578 |
manish.sha |
10594 |
else:
|
|
|
10595 |
iprot.skip(ftype)
|
|
|
10596 |
elif fid == 2:
|
|
|
10597 |
if ftype == TType.I64:
|
| 18634 |
manish.sha |
10598 |
self.user_id = iprot.readI64();
|
| 18578 |
manish.sha |
10599 |
else:
|
|
|
10600 |
iprot.skip(ftype)
|
|
|
10601 |
elif fid == 3:
|
|
|
10602 |
if ftype == TType.I64:
|
| 18634 |
manish.sha |
10603 |
self.creditor_id = iprot.readI64();
|
|
|
10604 |
else:
|
|
|
10605 |
iprot.skip(ftype)
|
|
|
10606 |
elif fid == 4:
|
|
|
10607 |
if ftype == TType.I64:
|
| 18578 |
manish.sha |
10608 |
self.payment_id = iprot.readI64();
|
|
|
10609 |
else:
|
|
|
10610 |
iprot.skip(ftype)
|
| 18634 |
manish.sha |
10611 |
elif fid == 5:
|
| 18578 |
manish.sha |
10612 |
if ftype == TType.DOUBLE:
|
|
|
10613 |
self.amount = iprot.readDouble();
|
|
|
10614 |
else:
|
|
|
10615 |
iprot.skip(ftype)
|
| 18634 |
manish.sha |
10616 |
elif fid == 6:
|
| 18578 |
manish.sha |
10617 |
if ftype == TType.I32:
|
| 18585 |
amit.gupta |
10618 |
self.credit_type = iprot.readI32();
|
| 18578 |
manish.sha |
10619 |
else:
|
|
|
10620 |
iprot.skip(ftype)
|
| 18634 |
manish.sha |
10621 |
elif fid == 7:
|
| 18578 |
manish.sha |
10622 |
if ftype == TType.I64:
|
|
|
10623 |
self.created = iprot.readI64();
|
|
|
10624 |
else:
|
|
|
10625 |
iprot.skip(ftype)
|
| 18634 |
manish.sha |
10626 |
elif fid == 8:
|
| 18578 |
manish.sha |
10627 |
if ftype == TType.I64:
|
|
|
10628 |
self.updated = iprot.readI64();
|
|
|
10629 |
else:
|
|
|
10630 |
iprot.skip(ftype)
|
| 18634 |
manish.sha |
10631 |
elif fid == 9:
|
| 18578 |
manish.sha |
10632 |
if ftype == TType.STRING:
|
|
|
10633 |
self.loan_id = iprot.readString();
|
|
|
10634 |
else:
|
|
|
10635 |
iprot.skip(ftype)
|
|
|
10636 |
elif fid == 10:
|
|
|
10637 |
if ftype == TType.I64:
|
| 18585 |
amit.gupta |
10638 |
self.due_date = iprot.readI64();
|
| 18578 |
manish.sha |
10639 |
else:
|
|
|
10640 |
iprot.skip(ftype)
|
| 18634 |
manish.sha |
10641 |
elif fid == 11:
|
|
|
10642 |
if ftype == TType.I64:
|
|
|
10643 |
self.value_date = iprot.readI64();
|
|
|
10644 |
else:
|
|
|
10645 |
iprot.skip(ftype)
|
| 18769 |
manish.sha |
10646 |
elif fid == 12:
|
|
|
10647 |
if ftype == TType.STRING:
|
|
|
10648 |
self.invoiceNumber = iprot.readString();
|
|
|
10649 |
else:
|
|
|
10650 |
iprot.skip(ftype)
|
| 18578 |
manish.sha |
10651 |
else:
|
|
|
10652 |
iprot.skip(ftype)
|
|
|
10653 |
iprot.readFieldEnd()
|
|
|
10654 |
iprot.readStructEnd()
|
|
|
10655 |
|
|
|
10656 |
def write(self, oprot):
|
|
|
10657 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
10658 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
10659 |
return
|
| 18634 |
manish.sha |
10660 |
oprot.writeStructBegin('LoanHistory')
|
|
|
10661 |
if self.id is not None:
|
|
|
10662 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
10663 |
oprot.writeI64(self.id)
|
|
|
10664 |
oprot.writeFieldEnd()
|
| 18578 |
manish.sha |
10665 |
if self.user_id is not None:
|
| 18634 |
manish.sha |
10666 |
oprot.writeFieldBegin('user_id', TType.I64, 2)
|
| 18578 |
manish.sha |
10667 |
oprot.writeI64(self.user_id)
|
|
|
10668 |
oprot.writeFieldEnd()
|
|
|
10669 |
if self.creditor_id is not None:
|
| 18634 |
manish.sha |
10670 |
oprot.writeFieldBegin('creditor_id', TType.I64, 3)
|
| 18578 |
manish.sha |
10671 |
oprot.writeI64(self.creditor_id)
|
|
|
10672 |
oprot.writeFieldEnd()
|
|
|
10673 |
if self.payment_id is not None:
|
| 18634 |
manish.sha |
10674 |
oprot.writeFieldBegin('payment_id', TType.I64, 4)
|
| 18578 |
manish.sha |
10675 |
oprot.writeI64(self.payment_id)
|
|
|
10676 |
oprot.writeFieldEnd()
|
|
|
10677 |
if self.amount is not None:
|
| 18634 |
manish.sha |
10678 |
oprot.writeFieldBegin('amount', TType.DOUBLE, 5)
|
| 18578 |
manish.sha |
10679 |
oprot.writeDouble(self.amount)
|
|
|
10680 |
oprot.writeFieldEnd()
|
| 18585 |
amit.gupta |
10681 |
if self.credit_type is not None:
|
| 18634 |
manish.sha |
10682 |
oprot.writeFieldBegin('credit_type', TType.I32, 6)
|
| 18585 |
amit.gupta |
10683 |
oprot.writeI32(self.credit_type)
|
| 18578 |
manish.sha |
10684 |
oprot.writeFieldEnd()
|
|
|
10685 |
if self.created is not None:
|
| 18634 |
manish.sha |
10686 |
oprot.writeFieldBegin('created', TType.I64, 7)
|
| 18578 |
manish.sha |
10687 |
oprot.writeI64(self.created)
|
|
|
10688 |
oprot.writeFieldEnd()
|
|
|
10689 |
if self.updated is not None:
|
| 18634 |
manish.sha |
10690 |
oprot.writeFieldBegin('updated', TType.I64, 8)
|
| 18578 |
manish.sha |
10691 |
oprot.writeI64(self.updated)
|
|
|
10692 |
oprot.writeFieldEnd()
|
|
|
10693 |
if self.loan_id is not None:
|
| 18634 |
manish.sha |
10694 |
oprot.writeFieldBegin('loan_id', TType.STRING, 9)
|
| 18578 |
manish.sha |
10695 |
oprot.writeString(self.loan_id)
|
|
|
10696 |
oprot.writeFieldEnd()
|
| 18585 |
amit.gupta |
10697 |
if self.due_date is not None:
|
|
|
10698 |
oprot.writeFieldBegin('due_date', TType.I64, 10)
|
|
|
10699 |
oprot.writeI64(self.due_date)
|
| 18578 |
manish.sha |
10700 |
oprot.writeFieldEnd()
|
| 18634 |
manish.sha |
10701 |
if self.value_date is not None:
|
|
|
10702 |
oprot.writeFieldBegin('value_date', TType.I64, 11)
|
|
|
10703 |
oprot.writeI64(self.value_date)
|
|
|
10704 |
oprot.writeFieldEnd()
|
| 18769 |
manish.sha |
10705 |
if self.invoiceNumber is not None:
|
|
|
10706 |
oprot.writeFieldBegin('invoiceNumber', TType.STRING, 12)
|
|
|
10707 |
oprot.writeString(self.invoiceNumber)
|
|
|
10708 |
oprot.writeFieldEnd()
|
| 18578 |
manish.sha |
10709 |
oprot.writeFieldStop()
|
|
|
10710 |
oprot.writeStructEnd()
|
|
|
10711 |
|
|
|
10712 |
def validate(self):
|
|
|
10713 |
return
|
|
|
10714 |
|
|
|
10715 |
|
|
|
10716 |
def __repr__(self):
|
|
|
10717 |
L = ['%s=%r' % (key, value)
|
|
|
10718 |
for key, value in self.__dict__.iteritems()]
|
|
|
10719 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
10720 |
|
|
|
10721 |
def __eq__(self, other):
|
|
|
10722 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
10723 |
|
|
|
10724 |
def __ne__(self, other):
|
|
|
10725 |
return not (self == other)
|
|
|
10726 |
|
| 18794 |
manish.sha |
10727 |
class PaginatedLoanHistory:
|
|
|
10728 |
"""
|
|
|
10729 |
Attributes:
|
|
|
10730 |
- hasMore
|
|
|
10731 |
- totalCount
|
|
|
10732 |
- loanHistoryList
|
|
|
10733 |
"""
|
|
|
10734 |
|
|
|
10735 |
thrift_spec = (
|
|
|
10736 |
None, # 0
|
|
|
10737 |
(1, TType.BOOL, 'hasMore', None, None, ), # 1
|
|
|
10738 |
(2, TType.I64, 'totalCount', None, None, ), # 2
|
|
|
10739 |
(3, TType.LIST, 'loanHistoryList', (TType.STRUCT,(LoanHistory, LoanHistory.thrift_spec)), None, ), # 3
|
|
|
10740 |
)
|
|
|
10741 |
|
|
|
10742 |
def __init__(self, hasMore=None, totalCount=None, loanHistoryList=None,):
|
|
|
10743 |
self.hasMore = hasMore
|
|
|
10744 |
self.totalCount = totalCount
|
|
|
10745 |
self.loanHistoryList = loanHistoryList
|
|
|
10746 |
|
|
|
10747 |
def read(self, iprot):
|
|
|
10748 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
10749 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
10750 |
return
|
|
|
10751 |
iprot.readStructBegin()
|
|
|
10752 |
while True:
|
|
|
10753 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
10754 |
if ftype == TType.STOP:
|
|
|
10755 |
break
|
|
|
10756 |
if fid == 1:
|
|
|
10757 |
if ftype == TType.BOOL:
|
|
|
10758 |
self.hasMore = iprot.readBool();
|
|
|
10759 |
else:
|
|
|
10760 |
iprot.skip(ftype)
|
|
|
10761 |
elif fid == 2:
|
|
|
10762 |
if ftype == TType.I64:
|
|
|
10763 |
self.totalCount = iprot.readI64();
|
|
|
10764 |
else:
|
|
|
10765 |
iprot.skip(ftype)
|
|
|
10766 |
elif fid == 3:
|
|
|
10767 |
if ftype == TType.LIST:
|
|
|
10768 |
self.loanHistoryList = []
|
|
|
10769 |
(_etype123, _size120) = iprot.readListBegin()
|
|
|
10770 |
for _i124 in xrange(_size120):
|
|
|
10771 |
_elem125 = LoanHistory()
|
|
|
10772 |
_elem125.read(iprot)
|
|
|
10773 |
self.loanHistoryList.append(_elem125)
|
|
|
10774 |
iprot.readListEnd()
|
|
|
10775 |
else:
|
|
|
10776 |
iprot.skip(ftype)
|
|
|
10777 |
else:
|
|
|
10778 |
iprot.skip(ftype)
|
|
|
10779 |
iprot.readFieldEnd()
|
|
|
10780 |
iprot.readStructEnd()
|
|
|
10781 |
|
|
|
10782 |
def write(self, oprot):
|
|
|
10783 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
10784 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
10785 |
return
|
|
|
10786 |
oprot.writeStructBegin('PaginatedLoanHistory')
|
|
|
10787 |
if self.hasMore is not None:
|
|
|
10788 |
oprot.writeFieldBegin('hasMore', TType.BOOL, 1)
|
|
|
10789 |
oprot.writeBool(self.hasMore)
|
|
|
10790 |
oprot.writeFieldEnd()
|
|
|
10791 |
if self.totalCount is not None:
|
|
|
10792 |
oprot.writeFieldBegin('totalCount', TType.I64, 2)
|
|
|
10793 |
oprot.writeI64(self.totalCount)
|
|
|
10794 |
oprot.writeFieldEnd()
|
|
|
10795 |
if self.loanHistoryList is not None:
|
|
|
10796 |
oprot.writeFieldBegin('loanHistoryList', TType.LIST, 3)
|
|
|
10797 |
oprot.writeListBegin(TType.STRUCT, len(self.loanHistoryList))
|
|
|
10798 |
for iter126 in self.loanHistoryList:
|
|
|
10799 |
iter126.write(oprot)
|
|
|
10800 |
oprot.writeListEnd()
|
|
|
10801 |
oprot.writeFieldEnd()
|
|
|
10802 |
oprot.writeFieldStop()
|
|
|
10803 |
oprot.writeStructEnd()
|
|
|
10804 |
|
|
|
10805 |
def validate(self):
|
|
|
10806 |
return
|
|
|
10807 |
|
|
|
10808 |
|
|
|
10809 |
def __repr__(self):
|
|
|
10810 |
L = ['%s=%r' % (key, value)
|
|
|
10811 |
for key, value in self.__dict__.iteritems()]
|
|
|
10812 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
10813 |
|
|
|
10814 |
def __eq__(self, other):
|
|
|
10815 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
10816 |
|
|
|
10817 |
def __ne__(self, other):
|
|
|
10818 |
return not (self == other)
|
|
|
10819 |
|
| 19889 |
manas |
10820 |
class OutstandingPayments:
|
|
|
10821 |
"""
|
|
|
10822 |
Attributes:
|
|
|
10823 |
- user_id
|
|
|
10824 |
- counter_name
|
|
|
10825 |
- creditor_id
|
|
|
10826 |
- payment_id
|
|
|
10827 |
- totalAmount
|
|
|
10828 |
- created
|
|
|
10829 |
"""
|
|
|
10830 |
|
|
|
10831 |
thrift_spec = (
|
|
|
10832 |
None, # 0
|
|
|
10833 |
(1, TType.I64, 'user_id', None, None, ), # 1
|
|
|
10834 |
(2, TType.STRING, 'counter_name', None, None, ), # 2
|
|
|
10835 |
(3, TType.I64, 'creditor_id', None, None, ), # 3
|
|
|
10836 |
(4, TType.I64, 'payment_id', None, None, ), # 4
|
|
|
10837 |
(5, TType.DOUBLE, 'totalAmount', None, None, ), # 5
|
|
|
10838 |
(6, TType.I64, 'created', None, None, ), # 6
|
|
|
10839 |
)
|
|
|
10840 |
|
|
|
10841 |
def __init__(self, user_id=None, counter_name=None, creditor_id=None, payment_id=None, totalAmount=None, created=None,):
|
|
|
10842 |
self.user_id = user_id
|
|
|
10843 |
self.counter_name = counter_name
|
|
|
10844 |
self.creditor_id = creditor_id
|
|
|
10845 |
self.payment_id = payment_id
|
|
|
10846 |
self.totalAmount = totalAmount
|
|
|
10847 |
self.created = created
|
|
|
10848 |
|
|
|
10849 |
def read(self, iprot):
|
|
|
10850 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
10851 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
10852 |
return
|
|
|
10853 |
iprot.readStructBegin()
|
|
|
10854 |
while True:
|
|
|
10855 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
10856 |
if ftype == TType.STOP:
|
|
|
10857 |
break
|
|
|
10858 |
if fid == 1:
|
|
|
10859 |
if ftype == TType.I64:
|
|
|
10860 |
self.user_id = iprot.readI64();
|
|
|
10861 |
else:
|
|
|
10862 |
iprot.skip(ftype)
|
|
|
10863 |
elif fid == 2:
|
|
|
10864 |
if ftype == TType.STRING:
|
|
|
10865 |
self.counter_name = iprot.readString();
|
|
|
10866 |
else:
|
|
|
10867 |
iprot.skip(ftype)
|
|
|
10868 |
elif fid == 3:
|
|
|
10869 |
if ftype == TType.I64:
|
|
|
10870 |
self.creditor_id = iprot.readI64();
|
|
|
10871 |
else:
|
|
|
10872 |
iprot.skip(ftype)
|
|
|
10873 |
elif fid == 4:
|
|
|
10874 |
if ftype == TType.I64:
|
|
|
10875 |
self.payment_id = iprot.readI64();
|
|
|
10876 |
else:
|
|
|
10877 |
iprot.skip(ftype)
|
|
|
10878 |
elif fid == 5:
|
|
|
10879 |
if ftype == TType.DOUBLE:
|
|
|
10880 |
self.totalAmount = iprot.readDouble();
|
|
|
10881 |
else:
|
|
|
10882 |
iprot.skip(ftype)
|
|
|
10883 |
elif fid == 6:
|
|
|
10884 |
if ftype == TType.I64:
|
|
|
10885 |
self.created = iprot.readI64();
|
|
|
10886 |
else:
|
|
|
10887 |
iprot.skip(ftype)
|
|
|
10888 |
else:
|
|
|
10889 |
iprot.skip(ftype)
|
|
|
10890 |
iprot.readFieldEnd()
|
|
|
10891 |
iprot.readStructEnd()
|
|
|
10892 |
|
|
|
10893 |
def write(self, oprot):
|
|
|
10894 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
10895 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
10896 |
return
|
|
|
10897 |
oprot.writeStructBegin('OutstandingPayments')
|
|
|
10898 |
if self.user_id is not None:
|
|
|
10899 |
oprot.writeFieldBegin('user_id', TType.I64, 1)
|
|
|
10900 |
oprot.writeI64(self.user_id)
|
|
|
10901 |
oprot.writeFieldEnd()
|
|
|
10902 |
if self.counter_name is not None:
|
|
|
10903 |
oprot.writeFieldBegin('counter_name', TType.STRING, 2)
|
|
|
10904 |
oprot.writeString(self.counter_name)
|
|
|
10905 |
oprot.writeFieldEnd()
|
|
|
10906 |
if self.creditor_id is not None:
|
|
|
10907 |
oprot.writeFieldBegin('creditor_id', TType.I64, 3)
|
|
|
10908 |
oprot.writeI64(self.creditor_id)
|
|
|
10909 |
oprot.writeFieldEnd()
|
|
|
10910 |
if self.payment_id is not None:
|
|
|
10911 |
oprot.writeFieldBegin('payment_id', TType.I64, 4)
|
|
|
10912 |
oprot.writeI64(self.payment_id)
|
|
|
10913 |
oprot.writeFieldEnd()
|
|
|
10914 |
if self.totalAmount is not None:
|
|
|
10915 |
oprot.writeFieldBegin('totalAmount', TType.DOUBLE, 5)
|
|
|
10916 |
oprot.writeDouble(self.totalAmount)
|
|
|
10917 |
oprot.writeFieldEnd()
|
|
|
10918 |
if self.created is not None:
|
|
|
10919 |
oprot.writeFieldBegin('created', TType.I64, 6)
|
|
|
10920 |
oprot.writeI64(self.created)
|
|
|
10921 |
oprot.writeFieldEnd()
|
|
|
10922 |
oprot.writeFieldStop()
|
|
|
10923 |
oprot.writeStructEnd()
|
|
|
10924 |
|
|
|
10925 |
def validate(self):
|
|
|
10926 |
return
|
|
|
10927 |
|
|
|
10928 |
|
|
|
10929 |
def __repr__(self):
|
|
|
10930 |
L = ['%s=%r' % (key, value)
|
|
|
10931 |
for key, value in self.__dict__.iteritems()]
|
|
|
10932 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
10933 |
|
|
|
10934 |
def __eq__(self, other):
|
|
|
10935 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
10936 |
|
|
|
10937 |
def __ne__(self, other):
|
|
|
10938 |
return not (self == other)
|
|
|
10939 |
|
| 18578 |
manish.sha |
10940 |
class ReturnPickupRequest:
|
|
|
10941 |
"""
|
|
|
10942 |
Attributes:
|
|
|
10943 |
- id
|
|
|
10944 |
- logisticsProviderId
|
|
|
10945 |
- pickupRequestNo
|
|
|
10946 |
- confirmedAt
|
|
|
10947 |
- promised_pickup_timestamp
|
|
|
10948 |
- pickedUpAt
|
|
|
10949 |
- pickupStatus
|
|
|
10950 |
"""
|
|
|
10951 |
|
|
|
10952 |
thrift_spec = (
|
|
|
10953 |
None, # 0
|
|
|
10954 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
10955 |
(2, TType.I64, 'logisticsProviderId', None, None, ), # 2
|
|
|
10956 |
(3, TType.STRING, 'pickupRequestNo', None, None, ), # 3
|
|
|
10957 |
(4, TType.I64, 'confirmedAt', None, None, ), # 4
|
|
|
10958 |
(5, TType.I64, 'promised_pickup_timestamp', None, None, ), # 5
|
|
|
10959 |
(6, TType.I64, 'pickedUpAt', None, None, ), # 6
|
|
|
10960 |
(7, TType.I32, 'pickupStatus', None, None, ), # 7
|
|
|
10961 |
)
|
|
|
10962 |
|
|
|
10963 |
def __init__(self, id=None, logisticsProviderId=None, pickupRequestNo=None, confirmedAt=None, promised_pickup_timestamp=None, pickedUpAt=None, pickupStatus=None,):
|
|
|
10964 |
self.id = id
|
|
|
10965 |
self.logisticsProviderId = logisticsProviderId
|
|
|
10966 |
self.pickupRequestNo = pickupRequestNo
|
|
|
10967 |
self.confirmedAt = confirmedAt
|
|
|
10968 |
self.promised_pickup_timestamp = promised_pickup_timestamp
|
|
|
10969 |
self.pickedUpAt = pickedUpAt
|
|
|
10970 |
self.pickupStatus = pickupStatus
|
|
|
10971 |
|
|
|
10972 |
def read(self, iprot):
|
|
|
10973 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
10974 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
10975 |
return
|
|
|
10976 |
iprot.readStructBegin()
|
|
|
10977 |
while True:
|
|
|
10978 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
10979 |
if ftype == TType.STOP:
|
|
|
10980 |
break
|
|
|
10981 |
if fid == 1:
|
|
|
10982 |
if ftype == TType.I64:
|
|
|
10983 |
self.id = iprot.readI64();
|
|
|
10984 |
else:
|
|
|
10985 |
iprot.skip(ftype)
|
|
|
10986 |
elif fid == 2:
|
|
|
10987 |
if ftype == TType.I64:
|
|
|
10988 |
self.logisticsProviderId = iprot.readI64();
|
|
|
10989 |
else:
|
|
|
10990 |
iprot.skip(ftype)
|
|
|
10991 |
elif fid == 3:
|
|
|
10992 |
if ftype == TType.STRING:
|
|
|
10993 |
self.pickupRequestNo = iprot.readString();
|
|
|
10994 |
else:
|
|
|
10995 |
iprot.skip(ftype)
|
|
|
10996 |
elif fid == 4:
|
|
|
10997 |
if ftype == TType.I64:
|
|
|
10998 |
self.confirmedAt = iprot.readI64();
|
|
|
10999 |
else:
|
|
|
11000 |
iprot.skip(ftype)
|
|
|
11001 |
elif fid == 5:
|
|
|
11002 |
if ftype == TType.I64:
|
|
|
11003 |
self.promised_pickup_timestamp = iprot.readI64();
|
|
|
11004 |
else:
|
|
|
11005 |
iprot.skip(ftype)
|
|
|
11006 |
elif fid == 6:
|
|
|
11007 |
if ftype == TType.I64:
|
|
|
11008 |
self.pickedUpAt = iprot.readI64();
|
|
|
11009 |
else:
|
|
|
11010 |
iprot.skip(ftype)
|
|
|
11011 |
elif fid == 7:
|
|
|
11012 |
if ftype == TType.I32:
|
|
|
11013 |
self.pickupStatus = iprot.readI32();
|
|
|
11014 |
else:
|
|
|
11015 |
iprot.skip(ftype)
|
|
|
11016 |
else:
|
|
|
11017 |
iprot.skip(ftype)
|
|
|
11018 |
iprot.readFieldEnd()
|
|
|
11019 |
iprot.readStructEnd()
|
|
|
11020 |
|
|
|
11021 |
def write(self, oprot):
|
|
|
11022 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
11023 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
11024 |
return
|
|
|
11025 |
oprot.writeStructBegin('ReturnPickupRequest')
|
|
|
11026 |
if self.id is not None:
|
|
|
11027 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
11028 |
oprot.writeI64(self.id)
|
|
|
11029 |
oprot.writeFieldEnd()
|
|
|
11030 |
if self.logisticsProviderId is not None:
|
|
|
11031 |
oprot.writeFieldBegin('logisticsProviderId', TType.I64, 2)
|
|
|
11032 |
oprot.writeI64(self.logisticsProviderId)
|
|
|
11033 |
oprot.writeFieldEnd()
|
|
|
11034 |
if self.pickupRequestNo is not None:
|
|
|
11035 |
oprot.writeFieldBegin('pickupRequestNo', TType.STRING, 3)
|
|
|
11036 |
oprot.writeString(self.pickupRequestNo)
|
|
|
11037 |
oprot.writeFieldEnd()
|
|
|
11038 |
if self.confirmedAt is not None:
|
|
|
11039 |
oprot.writeFieldBegin('confirmedAt', TType.I64, 4)
|
|
|
11040 |
oprot.writeI64(self.confirmedAt)
|
|
|
11041 |
oprot.writeFieldEnd()
|
|
|
11042 |
if self.promised_pickup_timestamp is not None:
|
|
|
11043 |
oprot.writeFieldBegin('promised_pickup_timestamp', TType.I64, 5)
|
|
|
11044 |
oprot.writeI64(self.promised_pickup_timestamp)
|
|
|
11045 |
oprot.writeFieldEnd()
|
|
|
11046 |
if self.pickedUpAt is not None:
|
|
|
11047 |
oprot.writeFieldBegin('pickedUpAt', TType.I64, 6)
|
|
|
11048 |
oprot.writeI64(self.pickedUpAt)
|
|
|
11049 |
oprot.writeFieldEnd()
|
|
|
11050 |
if self.pickupStatus is not None:
|
|
|
11051 |
oprot.writeFieldBegin('pickupStatus', TType.I32, 7)
|
|
|
11052 |
oprot.writeI32(self.pickupStatus)
|
|
|
11053 |
oprot.writeFieldEnd()
|
|
|
11054 |
oprot.writeFieldStop()
|
|
|
11055 |
oprot.writeStructEnd()
|
|
|
11056 |
|
|
|
11057 |
def validate(self):
|
|
|
11058 |
return
|
|
|
11059 |
|
|
|
11060 |
|
|
|
11061 |
def __repr__(self):
|
|
|
11062 |
L = ['%s=%r' % (key, value)
|
|
|
11063 |
for key, value in self.__dict__.iteritems()]
|
|
|
11064 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
11065 |
|
|
|
11066 |
def __eq__(self, other):
|
|
|
11067 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
11068 |
|
|
|
11069 |
def __ne__(self, other):
|
|
|
11070 |
return not (self == other)
|
|
|
11071 |
|
|
|
11072 |
class ReturnOrderInfo:
|
|
|
11073 |
"""
|
|
|
11074 |
Attributes:
|
|
|
11075 |
- id
|
|
|
11076 |
- returnTransactionId
|
|
|
11077 |
- masterOrderId
|
|
|
11078 |
- orderId
|
|
|
11079 |
- lineItemId
|
|
|
11080 |
- logisticsRequestId
|
|
|
11081 |
- returnQuantity
|
|
|
11082 |
- receivedQuantity
|
|
|
11083 |
- createdAt
|
|
|
11084 |
- processedAt
|
|
|
11085 |
- returnStatus
|
|
|
11086 |
- reshippedAt
|
|
|
11087 |
- receivedAt
|
|
|
11088 |
- refundReason
|
|
|
11089 |
- refundedBy
|
|
|
11090 |
- refundedAt
|
|
|
11091 |
- warehouse_id
|
|
|
11092 |
- refundAmount
|
|
|
11093 |
- refundType
|
|
|
11094 |
- refundDescription
|
|
|
11095 |
- returnPickupType
|
|
|
11096 |
- shippingType
|
|
|
11097 |
- replacementOrderId
|
|
|
11098 |
- receivedReturnType
|
|
|
11099 |
- freebieItemId
|
|
|
11100 |
- returnAction
|
|
|
11101 |
- returnTxnResolutionStatus
|
|
|
11102 |
- lineitem
|
|
|
11103 |
- returnPickUpRequest
|
|
|
11104 |
"""
|
|
|
11105 |
|
|
|
11106 |
thrift_spec = (
|
|
|
11107 |
None, # 0
|
|
|
11108 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
11109 |
(2, TType.I64, 'returnTransactionId', None, None, ), # 2
|
|
|
11110 |
(3, TType.STRING, 'masterOrderId', None, None, ), # 3
|
|
|
11111 |
(4, TType.I64, 'orderId', None, None, ), # 4
|
|
|
11112 |
(5, TType.I64, 'lineItemId', None, None, ), # 5
|
|
|
11113 |
(6, TType.I64, 'logisticsRequestId', None, None, ), # 6
|
|
|
11114 |
(7, TType.I64, 'returnQuantity', None, None, ), # 7
|
|
|
11115 |
(8, TType.I64, 'receivedQuantity', None, None, ), # 8
|
|
|
11116 |
(9, TType.I64, 'createdAt', None, None, ), # 9
|
|
|
11117 |
(10, TType.I64, 'processedAt', None, None, ), # 10
|
|
|
11118 |
(11, TType.STRING, 'returnStatus', None, None, ), # 11
|
|
|
11119 |
(12, TType.I64, 'reshippedAt', None, None, ), # 12
|
|
|
11120 |
(13, TType.I64, 'receivedAt', None, None, ), # 13
|
|
|
11121 |
(14, TType.STRING, 'refundReason', None, None, ), # 14
|
|
|
11122 |
(15, TType.STRING, 'refundedBy', None, None, ), # 15
|
|
|
11123 |
(16, TType.I64, 'refundedAt', None, None, ), # 16
|
|
|
11124 |
(17, TType.I64, 'warehouse_id', None, None, ), # 17
|
|
|
11125 |
(18, TType.DOUBLE, 'refundAmount', None, None, ), # 18
|
|
|
11126 |
(19, TType.I32, 'refundType', None, None, ), # 19
|
|
|
11127 |
(20, TType.STRING, 'refundDescription', None, None, ), # 20
|
|
|
11128 |
(21, TType.I32, 'returnPickupType', None, None, ), # 21
|
|
|
11129 |
(22, TType.I32, 'shippingType', None, None, ), # 22
|
|
|
11130 |
(23, TType.I64, 'replacementOrderId', None, None, ), # 23
|
|
|
11131 |
(24, TType.I32, 'receivedReturnType', None, None, ), # 24
|
|
|
11132 |
(25, TType.I64, 'freebieItemId', None, None, ), # 25
|
|
|
11133 |
(26, TType.I32, 'returnAction', None, None, ), # 26
|
|
|
11134 |
(27, TType.I32, 'returnTxnResolutionStatus', None, None, ), # 27
|
|
|
11135 |
(28, TType.STRUCT, 'lineitem', (LineItem, LineItem.thrift_spec), None, ), # 28
|
|
|
11136 |
(29, TType.STRUCT, 'returnPickUpRequest', (ReturnPickupRequest, ReturnPickupRequest.thrift_spec), None, ), # 29
|
|
|
11137 |
)
|
|
|
11138 |
|
|
|
11139 |
def __init__(self, id=None, returnTransactionId=None, masterOrderId=None, orderId=None, lineItemId=None, logisticsRequestId=None, returnQuantity=None, receivedQuantity=None, createdAt=None, processedAt=None, returnStatus=None, reshippedAt=None, receivedAt=None, refundReason=None, refundedBy=None, refundedAt=None, warehouse_id=None, refundAmount=None, refundType=None, refundDescription=None, returnPickupType=None, shippingType=None, replacementOrderId=None, receivedReturnType=None, freebieItemId=None, returnAction=None, returnTxnResolutionStatus=None, lineitem=None, returnPickUpRequest=None,):
|
|
|
11140 |
self.id = id
|
|
|
11141 |
self.returnTransactionId = returnTransactionId
|
|
|
11142 |
self.masterOrderId = masterOrderId
|
|
|
11143 |
self.orderId = orderId
|
|
|
11144 |
self.lineItemId = lineItemId
|
|
|
11145 |
self.logisticsRequestId = logisticsRequestId
|
|
|
11146 |
self.returnQuantity = returnQuantity
|
|
|
11147 |
self.receivedQuantity = receivedQuantity
|
|
|
11148 |
self.createdAt = createdAt
|
|
|
11149 |
self.processedAt = processedAt
|
|
|
11150 |
self.returnStatus = returnStatus
|
|
|
11151 |
self.reshippedAt = reshippedAt
|
|
|
11152 |
self.receivedAt = receivedAt
|
|
|
11153 |
self.refundReason = refundReason
|
|
|
11154 |
self.refundedBy = refundedBy
|
|
|
11155 |
self.refundedAt = refundedAt
|
|
|
11156 |
self.warehouse_id = warehouse_id
|
|
|
11157 |
self.refundAmount = refundAmount
|
|
|
11158 |
self.refundType = refundType
|
|
|
11159 |
self.refundDescription = refundDescription
|
|
|
11160 |
self.returnPickupType = returnPickupType
|
|
|
11161 |
self.shippingType = shippingType
|
|
|
11162 |
self.replacementOrderId = replacementOrderId
|
|
|
11163 |
self.receivedReturnType = receivedReturnType
|
|
|
11164 |
self.freebieItemId = freebieItemId
|
|
|
11165 |
self.returnAction = returnAction
|
|
|
11166 |
self.returnTxnResolutionStatus = returnTxnResolutionStatus
|
|
|
11167 |
self.lineitem = lineitem
|
|
|
11168 |
self.returnPickUpRequest = returnPickUpRequest
|
|
|
11169 |
|
|
|
11170 |
def read(self, iprot):
|
|
|
11171 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
11172 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
11173 |
return
|
|
|
11174 |
iprot.readStructBegin()
|
|
|
11175 |
while True:
|
|
|
11176 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
11177 |
if ftype == TType.STOP:
|
|
|
11178 |
break
|
|
|
11179 |
if fid == 1:
|
|
|
11180 |
if ftype == TType.I64:
|
|
|
11181 |
self.id = iprot.readI64();
|
|
|
11182 |
else:
|
|
|
11183 |
iprot.skip(ftype)
|
|
|
11184 |
elif fid == 2:
|
|
|
11185 |
if ftype == TType.I64:
|
|
|
11186 |
self.returnTransactionId = iprot.readI64();
|
|
|
11187 |
else:
|
|
|
11188 |
iprot.skip(ftype)
|
|
|
11189 |
elif fid == 3:
|
|
|
11190 |
if ftype == TType.STRING:
|
|
|
11191 |
self.masterOrderId = iprot.readString();
|
|
|
11192 |
else:
|
|
|
11193 |
iprot.skip(ftype)
|
|
|
11194 |
elif fid == 4:
|
|
|
11195 |
if ftype == TType.I64:
|
|
|
11196 |
self.orderId = iprot.readI64();
|
|
|
11197 |
else:
|
|
|
11198 |
iprot.skip(ftype)
|
|
|
11199 |
elif fid == 5:
|
|
|
11200 |
if ftype == TType.I64:
|
|
|
11201 |
self.lineItemId = iprot.readI64();
|
|
|
11202 |
else:
|
|
|
11203 |
iprot.skip(ftype)
|
|
|
11204 |
elif fid == 6:
|
|
|
11205 |
if ftype == TType.I64:
|
|
|
11206 |
self.logisticsRequestId = iprot.readI64();
|
|
|
11207 |
else:
|
|
|
11208 |
iprot.skip(ftype)
|
|
|
11209 |
elif fid == 7:
|
|
|
11210 |
if ftype == TType.I64:
|
|
|
11211 |
self.returnQuantity = iprot.readI64();
|
|
|
11212 |
else:
|
|
|
11213 |
iprot.skip(ftype)
|
|
|
11214 |
elif fid == 8:
|
|
|
11215 |
if ftype == TType.I64:
|
|
|
11216 |
self.receivedQuantity = iprot.readI64();
|
|
|
11217 |
else:
|
|
|
11218 |
iprot.skip(ftype)
|
|
|
11219 |
elif fid == 9:
|
|
|
11220 |
if ftype == TType.I64:
|
|
|
11221 |
self.createdAt = iprot.readI64();
|
|
|
11222 |
else:
|
|
|
11223 |
iprot.skip(ftype)
|
|
|
11224 |
elif fid == 10:
|
|
|
11225 |
if ftype == TType.I64:
|
|
|
11226 |
self.processedAt = iprot.readI64();
|
|
|
11227 |
else:
|
|
|
11228 |
iprot.skip(ftype)
|
|
|
11229 |
elif fid == 11:
|
|
|
11230 |
if ftype == TType.STRING:
|
|
|
11231 |
self.returnStatus = iprot.readString();
|
|
|
11232 |
else:
|
|
|
11233 |
iprot.skip(ftype)
|
|
|
11234 |
elif fid == 12:
|
|
|
11235 |
if ftype == TType.I64:
|
|
|
11236 |
self.reshippedAt = iprot.readI64();
|
|
|
11237 |
else:
|
|
|
11238 |
iprot.skip(ftype)
|
|
|
11239 |
elif fid == 13:
|
|
|
11240 |
if ftype == TType.I64:
|
|
|
11241 |
self.receivedAt = iprot.readI64();
|
|
|
11242 |
else:
|
|
|
11243 |
iprot.skip(ftype)
|
|
|
11244 |
elif fid == 14:
|
|
|
11245 |
if ftype == TType.STRING:
|
|
|
11246 |
self.refundReason = iprot.readString();
|
|
|
11247 |
else:
|
|
|
11248 |
iprot.skip(ftype)
|
|
|
11249 |
elif fid == 15:
|
|
|
11250 |
if ftype == TType.STRING:
|
|
|
11251 |
self.refundedBy = iprot.readString();
|
|
|
11252 |
else:
|
|
|
11253 |
iprot.skip(ftype)
|
|
|
11254 |
elif fid == 16:
|
|
|
11255 |
if ftype == TType.I64:
|
|
|
11256 |
self.refundedAt = iprot.readI64();
|
|
|
11257 |
else:
|
|
|
11258 |
iprot.skip(ftype)
|
|
|
11259 |
elif fid == 17:
|
|
|
11260 |
if ftype == TType.I64:
|
|
|
11261 |
self.warehouse_id = iprot.readI64();
|
|
|
11262 |
else:
|
|
|
11263 |
iprot.skip(ftype)
|
|
|
11264 |
elif fid == 18:
|
|
|
11265 |
if ftype == TType.DOUBLE:
|
|
|
11266 |
self.refundAmount = iprot.readDouble();
|
|
|
11267 |
else:
|
|
|
11268 |
iprot.skip(ftype)
|
|
|
11269 |
elif fid == 19:
|
|
|
11270 |
if ftype == TType.I32:
|
|
|
11271 |
self.refundType = iprot.readI32();
|
|
|
11272 |
else:
|
|
|
11273 |
iprot.skip(ftype)
|
|
|
11274 |
elif fid == 20:
|
|
|
11275 |
if ftype == TType.STRING:
|
|
|
11276 |
self.refundDescription = iprot.readString();
|
|
|
11277 |
else:
|
|
|
11278 |
iprot.skip(ftype)
|
|
|
11279 |
elif fid == 21:
|
|
|
11280 |
if ftype == TType.I32:
|
|
|
11281 |
self.returnPickupType = iprot.readI32();
|
|
|
11282 |
else:
|
|
|
11283 |
iprot.skip(ftype)
|
|
|
11284 |
elif fid == 22:
|
|
|
11285 |
if ftype == TType.I32:
|
|
|
11286 |
self.shippingType = iprot.readI32();
|
|
|
11287 |
else:
|
|
|
11288 |
iprot.skip(ftype)
|
|
|
11289 |
elif fid == 23:
|
|
|
11290 |
if ftype == TType.I64:
|
|
|
11291 |
self.replacementOrderId = iprot.readI64();
|
|
|
11292 |
else:
|
|
|
11293 |
iprot.skip(ftype)
|
|
|
11294 |
elif fid == 24:
|
|
|
11295 |
if ftype == TType.I32:
|
|
|
11296 |
self.receivedReturnType = iprot.readI32();
|
|
|
11297 |
else:
|
|
|
11298 |
iprot.skip(ftype)
|
|
|
11299 |
elif fid == 25:
|
|
|
11300 |
if ftype == TType.I64:
|
|
|
11301 |
self.freebieItemId = iprot.readI64();
|
|
|
11302 |
else:
|
|
|
11303 |
iprot.skip(ftype)
|
|
|
11304 |
elif fid == 26:
|
|
|
11305 |
if ftype == TType.I32:
|
|
|
11306 |
self.returnAction = iprot.readI32();
|
|
|
11307 |
else:
|
|
|
11308 |
iprot.skip(ftype)
|
|
|
11309 |
elif fid == 27:
|
|
|
11310 |
if ftype == TType.I32:
|
|
|
11311 |
self.returnTxnResolutionStatus = iprot.readI32();
|
|
|
11312 |
else:
|
|
|
11313 |
iprot.skip(ftype)
|
|
|
11314 |
elif fid == 28:
|
|
|
11315 |
if ftype == TType.STRUCT:
|
|
|
11316 |
self.lineitem = LineItem()
|
|
|
11317 |
self.lineitem.read(iprot)
|
|
|
11318 |
else:
|
|
|
11319 |
iprot.skip(ftype)
|
|
|
11320 |
elif fid == 29:
|
|
|
11321 |
if ftype == TType.STRUCT:
|
|
|
11322 |
self.returnPickUpRequest = ReturnPickupRequest()
|
|
|
11323 |
self.returnPickUpRequest.read(iprot)
|
|
|
11324 |
else:
|
|
|
11325 |
iprot.skip(ftype)
|
|
|
11326 |
else:
|
|
|
11327 |
iprot.skip(ftype)
|
|
|
11328 |
iprot.readFieldEnd()
|
|
|
11329 |
iprot.readStructEnd()
|
|
|
11330 |
|
|
|
11331 |
def write(self, oprot):
|
|
|
11332 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
11333 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
11334 |
return
|
|
|
11335 |
oprot.writeStructBegin('ReturnOrderInfo')
|
|
|
11336 |
if self.id is not None:
|
|
|
11337 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
11338 |
oprot.writeI64(self.id)
|
|
|
11339 |
oprot.writeFieldEnd()
|
|
|
11340 |
if self.returnTransactionId is not None:
|
|
|
11341 |
oprot.writeFieldBegin('returnTransactionId', TType.I64, 2)
|
|
|
11342 |
oprot.writeI64(self.returnTransactionId)
|
|
|
11343 |
oprot.writeFieldEnd()
|
|
|
11344 |
if self.masterOrderId is not None:
|
|
|
11345 |
oprot.writeFieldBegin('masterOrderId', TType.STRING, 3)
|
|
|
11346 |
oprot.writeString(self.masterOrderId)
|
|
|
11347 |
oprot.writeFieldEnd()
|
|
|
11348 |
if self.orderId is not None:
|
|
|
11349 |
oprot.writeFieldBegin('orderId', TType.I64, 4)
|
|
|
11350 |
oprot.writeI64(self.orderId)
|
|
|
11351 |
oprot.writeFieldEnd()
|
|
|
11352 |
if self.lineItemId is not None:
|
|
|
11353 |
oprot.writeFieldBegin('lineItemId', TType.I64, 5)
|
|
|
11354 |
oprot.writeI64(self.lineItemId)
|
|
|
11355 |
oprot.writeFieldEnd()
|
|
|
11356 |
if self.logisticsRequestId is not None:
|
|
|
11357 |
oprot.writeFieldBegin('logisticsRequestId', TType.I64, 6)
|
|
|
11358 |
oprot.writeI64(self.logisticsRequestId)
|
|
|
11359 |
oprot.writeFieldEnd()
|
|
|
11360 |
if self.returnQuantity is not None:
|
|
|
11361 |
oprot.writeFieldBegin('returnQuantity', TType.I64, 7)
|
|
|
11362 |
oprot.writeI64(self.returnQuantity)
|
|
|
11363 |
oprot.writeFieldEnd()
|
|
|
11364 |
if self.receivedQuantity is not None:
|
|
|
11365 |
oprot.writeFieldBegin('receivedQuantity', TType.I64, 8)
|
|
|
11366 |
oprot.writeI64(self.receivedQuantity)
|
|
|
11367 |
oprot.writeFieldEnd()
|
|
|
11368 |
if self.createdAt is not None:
|
|
|
11369 |
oprot.writeFieldBegin('createdAt', TType.I64, 9)
|
|
|
11370 |
oprot.writeI64(self.createdAt)
|
|
|
11371 |
oprot.writeFieldEnd()
|
|
|
11372 |
if self.processedAt is not None:
|
|
|
11373 |
oprot.writeFieldBegin('processedAt', TType.I64, 10)
|
|
|
11374 |
oprot.writeI64(self.processedAt)
|
|
|
11375 |
oprot.writeFieldEnd()
|
|
|
11376 |
if self.returnStatus is not None:
|
|
|
11377 |
oprot.writeFieldBegin('returnStatus', TType.STRING, 11)
|
|
|
11378 |
oprot.writeString(self.returnStatus)
|
|
|
11379 |
oprot.writeFieldEnd()
|
|
|
11380 |
if self.reshippedAt is not None:
|
|
|
11381 |
oprot.writeFieldBegin('reshippedAt', TType.I64, 12)
|
|
|
11382 |
oprot.writeI64(self.reshippedAt)
|
|
|
11383 |
oprot.writeFieldEnd()
|
|
|
11384 |
if self.receivedAt is not None:
|
|
|
11385 |
oprot.writeFieldBegin('receivedAt', TType.I64, 13)
|
|
|
11386 |
oprot.writeI64(self.receivedAt)
|
|
|
11387 |
oprot.writeFieldEnd()
|
|
|
11388 |
if self.refundReason is not None:
|
|
|
11389 |
oprot.writeFieldBegin('refundReason', TType.STRING, 14)
|
|
|
11390 |
oprot.writeString(self.refundReason)
|
|
|
11391 |
oprot.writeFieldEnd()
|
|
|
11392 |
if self.refundedBy is not None:
|
|
|
11393 |
oprot.writeFieldBegin('refundedBy', TType.STRING, 15)
|
|
|
11394 |
oprot.writeString(self.refundedBy)
|
|
|
11395 |
oprot.writeFieldEnd()
|
|
|
11396 |
if self.refundedAt is not None:
|
|
|
11397 |
oprot.writeFieldBegin('refundedAt', TType.I64, 16)
|
|
|
11398 |
oprot.writeI64(self.refundedAt)
|
|
|
11399 |
oprot.writeFieldEnd()
|
|
|
11400 |
if self.warehouse_id is not None:
|
|
|
11401 |
oprot.writeFieldBegin('warehouse_id', TType.I64, 17)
|
|
|
11402 |
oprot.writeI64(self.warehouse_id)
|
|
|
11403 |
oprot.writeFieldEnd()
|
|
|
11404 |
if self.refundAmount is not None:
|
|
|
11405 |
oprot.writeFieldBegin('refundAmount', TType.DOUBLE, 18)
|
|
|
11406 |
oprot.writeDouble(self.refundAmount)
|
|
|
11407 |
oprot.writeFieldEnd()
|
|
|
11408 |
if self.refundType is not None:
|
|
|
11409 |
oprot.writeFieldBegin('refundType', TType.I32, 19)
|
|
|
11410 |
oprot.writeI32(self.refundType)
|
|
|
11411 |
oprot.writeFieldEnd()
|
|
|
11412 |
if self.refundDescription is not None:
|
|
|
11413 |
oprot.writeFieldBegin('refundDescription', TType.STRING, 20)
|
|
|
11414 |
oprot.writeString(self.refundDescription)
|
|
|
11415 |
oprot.writeFieldEnd()
|
|
|
11416 |
if self.returnPickupType is not None:
|
|
|
11417 |
oprot.writeFieldBegin('returnPickupType', TType.I32, 21)
|
|
|
11418 |
oprot.writeI32(self.returnPickupType)
|
|
|
11419 |
oprot.writeFieldEnd()
|
|
|
11420 |
if self.shippingType is not None:
|
|
|
11421 |
oprot.writeFieldBegin('shippingType', TType.I32, 22)
|
|
|
11422 |
oprot.writeI32(self.shippingType)
|
|
|
11423 |
oprot.writeFieldEnd()
|
|
|
11424 |
if self.replacementOrderId is not None:
|
|
|
11425 |
oprot.writeFieldBegin('replacementOrderId', TType.I64, 23)
|
|
|
11426 |
oprot.writeI64(self.replacementOrderId)
|
|
|
11427 |
oprot.writeFieldEnd()
|
|
|
11428 |
if self.receivedReturnType is not None:
|
|
|
11429 |
oprot.writeFieldBegin('receivedReturnType', TType.I32, 24)
|
|
|
11430 |
oprot.writeI32(self.receivedReturnType)
|
|
|
11431 |
oprot.writeFieldEnd()
|
|
|
11432 |
if self.freebieItemId is not None:
|
|
|
11433 |
oprot.writeFieldBegin('freebieItemId', TType.I64, 25)
|
|
|
11434 |
oprot.writeI64(self.freebieItemId)
|
|
|
11435 |
oprot.writeFieldEnd()
|
|
|
11436 |
if self.returnAction is not None:
|
|
|
11437 |
oprot.writeFieldBegin('returnAction', TType.I32, 26)
|
|
|
11438 |
oprot.writeI32(self.returnAction)
|
|
|
11439 |
oprot.writeFieldEnd()
|
|
|
11440 |
if self.returnTxnResolutionStatus is not None:
|
|
|
11441 |
oprot.writeFieldBegin('returnTxnResolutionStatus', TType.I32, 27)
|
|
|
11442 |
oprot.writeI32(self.returnTxnResolutionStatus)
|
|
|
11443 |
oprot.writeFieldEnd()
|
|
|
11444 |
if self.lineitem is not None:
|
|
|
11445 |
oprot.writeFieldBegin('lineitem', TType.STRUCT, 28)
|
|
|
11446 |
self.lineitem.write(oprot)
|
|
|
11447 |
oprot.writeFieldEnd()
|
|
|
11448 |
if self.returnPickUpRequest is not None:
|
|
|
11449 |
oprot.writeFieldBegin('returnPickUpRequest', TType.STRUCT, 29)
|
|
|
11450 |
self.returnPickUpRequest.write(oprot)
|
|
|
11451 |
oprot.writeFieldEnd()
|
|
|
11452 |
oprot.writeFieldStop()
|
|
|
11453 |
oprot.writeStructEnd()
|
|
|
11454 |
|
|
|
11455 |
def validate(self):
|
|
|
11456 |
return
|
|
|
11457 |
|
|
|
11458 |
|
|
|
11459 |
def __repr__(self):
|
|
|
11460 |
L = ['%s=%r' % (key, value)
|
|
|
11461 |
for key, value in self.__dict__.iteritems()]
|
|
|
11462 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
11463 |
|
|
|
11464 |
def __eq__(self, other):
|
|
|
11465 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
11466 |
|
|
|
11467 |
def __ne__(self, other):
|
|
|
11468 |
return not (self == other)
|
|
|
11469 |
|
|
|
11470 |
class ReturnTransaction:
|
|
|
11471 |
"""
|
|
|
11472 |
Attributes:
|
|
|
11473 |
- id
|
|
|
11474 |
- status
|
|
|
11475 |
- customer_email
|
|
|
11476 |
- customer_name
|
|
|
11477 |
- customer_id
|
|
|
11478 |
- address_id
|
|
|
11479 |
- ticketId
|
|
|
11480 |
- createdAt
|
|
|
11481 |
- processedAt
|
|
|
11482 |
- authorizedAt
|
|
|
11483 |
- closedAt
|
|
|
11484 |
- customerAddress
|
|
|
11485 |
- pincode
|
|
|
11486 |
- customerCity
|
|
|
11487 |
- customerState
|
|
|
11488 |
- customerPhone
|
|
|
11489 |
- returnOrders
|
|
|
11490 |
"""
|
|
|
11491 |
|
|
|
11492 |
thrift_spec = (
|
|
|
11493 |
None, # 0
|
|
|
11494 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
11495 |
(2, TType.I32, 'status', None, None, ), # 2
|
|
|
11496 |
(3, TType.STRING, 'customer_email', None, None, ), # 3
|
|
|
11497 |
(4, TType.STRING, 'customer_name', None, None, ), # 4
|
|
|
11498 |
(5, TType.I64, 'customer_id', None, None, ), # 5
|
|
|
11499 |
(6, TType.I64, 'address_id', None, None, ), # 6
|
|
|
11500 |
(7, TType.I64, 'ticketId', None, None, ), # 7
|
|
|
11501 |
(8, TType.I64, 'createdAt', None, None, ), # 8
|
|
|
11502 |
(9, TType.I64, 'processedAt', None, None, ), # 9
|
|
|
11503 |
(10, TType.I64, 'authorizedAt', None, None, ), # 10
|
|
|
11504 |
(11, TType.I64, 'closedAt', None, None, ), # 11
|
|
|
11505 |
(12, TType.STRING, 'customerAddress', None, None, ), # 12
|
|
|
11506 |
(13, TType.STRING, 'pincode', None, None, ), # 13
|
|
|
11507 |
(14, TType.STRING, 'customerCity', None, None, ), # 14
|
|
|
11508 |
(15, TType.STRING, 'customerState', None, None, ), # 15
|
|
|
11509 |
(16, TType.STRING, 'customerPhone', None, None, ), # 16
|
|
|
11510 |
(17, TType.LIST, 'returnOrders', (TType.STRUCT,(ReturnOrderInfo, ReturnOrderInfo.thrift_spec)), None, ), # 17
|
|
|
11511 |
)
|
|
|
11512 |
|
|
|
11513 |
def __init__(self, id=None, status=None, customer_email=None, customer_name=None, customer_id=None, address_id=None, ticketId=None, createdAt=None, processedAt=None, authorizedAt=None, closedAt=None, customerAddress=None, pincode=None, customerCity=None, customerState=None, customerPhone=None, returnOrders=None,):
|
|
|
11514 |
self.id = id
|
|
|
11515 |
self.status = status
|
|
|
11516 |
self.customer_email = customer_email
|
|
|
11517 |
self.customer_name = customer_name
|
|
|
11518 |
self.customer_id = customer_id
|
|
|
11519 |
self.address_id = address_id
|
|
|
11520 |
self.ticketId = ticketId
|
|
|
11521 |
self.createdAt = createdAt
|
|
|
11522 |
self.processedAt = processedAt
|
|
|
11523 |
self.authorizedAt = authorizedAt
|
|
|
11524 |
self.closedAt = closedAt
|
|
|
11525 |
self.customerAddress = customerAddress
|
|
|
11526 |
self.pincode = pincode
|
|
|
11527 |
self.customerCity = customerCity
|
|
|
11528 |
self.customerState = customerState
|
|
|
11529 |
self.customerPhone = customerPhone
|
|
|
11530 |
self.returnOrders = returnOrders
|
|
|
11531 |
|
|
|
11532 |
def read(self, iprot):
|
|
|
11533 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
11534 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
11535 |
return
|
|
|
11536 |
iprot.readStructBegin()
|
|
|
11537 |
while True:
|
|
|
11538 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
11539 |
if ftype == TType.STOP:
|
|
|
11540 |
break
|
|
|
11541 |
if fid == 1:
|
|
|
11542 |
if ftype == TType.I64:
|
|
|
11543 |
self.id = iprot.readI64();
|
|
|
11544 |
else:
|
|
|
11545 |
iprot.skip(ftype)
|
|
|
11546 |
elif fid == 2:
|
|
|
11547 |
if ftype == TType.I32:
|
|
|
11548 |
self.status = iprot.readI32();
|
|
|
11549 |
else:
|
|
|
11550 |
iprot.skip(ftype)
|
|
|
11551 |
elif fid == 3:
|
|
|
11552 |
if ftype == TType.STRING:
|
|
|
11553 |
self.customer_email = iprot.readString();
|
|
|
11554 |
else:
|
|
|
11555 |
iprot.skip(ftype)
|
|
|
11556 |
elif fid == 4:
|
|
|
11557 |
if ftype == TType.STRING:
|
|
|
11558 |
self.customer_name = iprot.readString();
|
|
|
11559 |
else:
|
|
|
11560 |
iprot.skip(ftype)
|
|
|
11561 |
elif fid == 5:
|
|
|
11562 |
if ftype == TType.I64:
|
|
|
11563 |
self.customer_id = iprot.readI64();
|
|
|
11564 |
else:
|
|
|
11565 |
iprot.skip(ftype)
|
|
|
11566 |
elif fid == 6:
|
|
|
11567 |
if ftype == TType.I64:
|
|
|
11568 |
self.address_id = iprot.readI64();
|
|
|
11569 |
else:
|
|
|
11570 |
iprot.skip(ftype)
|
|
|
11571 |
elif fid == 7:
|
|
|
11572 |
if ftype == TType.I64:
|
|
|
11573 |
self.ticketId = iprot.readI64();
|
|
|
11574 |
else:
|
|
|
11575 |
iprot.skip(ftype)
|
|
|
11576 |
elif fid == 8:
|
|
|
11577 |
if ftype == TType.I64:
|
|
|
11578 |
self.createdAt = iprot.readI64();
|
|
|
11579 |
else:
|
|
|
11580 |
iprot.skip(ftype)
|
|
|
11581 |
elif fid == 9:
|
|
|
11582 |
if ftype == TType.I64:
|
|
|
11583 |
self.processedAt = iprot.readI64();
|
|
|
11584 |
else:
|
|
|
11585 |
iprot.skip(ftype)
|
|
|
11586 |
elif fid == 10:
|
|
|
11587 |
if ftype == TType.I64:
|
|
|
11588 |
self.authorizedAt = iprot.readI64();
|
|
|
11589 |
else:
|
|
|
11590 |
iprot.skip(ftype)
|
|
|
11591 |
elif fid == 11:
|
|
|
11592 |
if ftype == TType.I64:
|
|
|
11593 |
self.closedAt = iprot.readI64();
|
|
|
11594 |
else:
|
|
|
11595 |
iprot.skip(ftype)
|
|
|
11596 |
elif fid == 12:
|
|
|
11597 |
if ftype == TType.STRING:
|
|
|
11598 |
self.customerAddress = iprot.readString();
|
|
|
11599 |
else:
|
|
|
11600 |
iprot.skip(ftype)
|
|
|
11601 |
elif fid == 13:
|
|
|
11602 |
if ftype == TType.STRING:
|
|
|
11603 |
self.pincode = iprot.readString();
|
|
|
11604 |
else:
|
|
|
11605 |
iprot.skip(ftype)
|
|
|
11606 |
elif fid == 14:
|
|
|
11607 |
if ftype == TType.STRING:
|
|
|
11608 |
self.customerCity = iprot.readString();
|
|
|
11609 |
else:
|
|
|
11610 |
iprot.skip(ftype)
|
|
|
11611 |
elif fid == 15:
|
|
|
11612 |
if ftype == TType.STRING:
|
|
|
11613 |
self.customerState = iprot.readString();
|
|
|
11614 |
else:
|
|
|
11615 |
iprot.skip(ftype)
|
|
|
11616 |
elif fid == 16:
|
|
|
11617 |
if ftype == TType.STRING:
|
|
|
11618 |
self.customerPhone = iprot.readString();
|
|
|
11619 |
else:
|
|
|
11620 |
iprot.skip(ftype)
|
|
|
11621 |
elif fid == 17:
|
|
|
11622 |
if ftype == TType.LIST:
|
|
|
11623 |
self.returnOrders = []
|
| 18794 |
manish.sha |
11624 |
(_etype130, _size127) = iprot.readListBegin()
|
|
|
11625 |
for _i131 in xrange(_size127):
|
|
|
11626 |
_elem132 = ReturnOrderInfo()
|
|
|
11627 |
_elem132.read(iprot)
|
|
|
11628 |
self.returnOrders.append(_elem132)
|
| 18578 |
manish.sha |
11629 |
iprot.readListEnd()
|
|
|
11630 |
else:
|
|
|
11631 |
iprot.skip(ftype)
|
|
|
11632 |
else:
|
|
|
11633 |
iprot.skip(ftype)
|
|
|
11634 |
iprot.readFieldEnd()
|
|
|
11635 |
iprot.readStructEnd()
|
|
|
11636 |
|
|
|
11637 |
def write(self, oprot):
|
|
|
11638 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
11639 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
11640 |
return
|
|
|
11641 |
oprot.writeStructBegin('ReturnTransaction')
|
|
|
11642 |
if self.id is not None:
|
|
|
11643 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
11644 |
oprot.writeI64(self.id)
|
|
|
11645 |
oprot.writeFieldEnd()
|
|
|
11646 |
if self.status is not None:
|
|
|
11647 |
oprot.writeFieldBegin('status', TType.I32, 2)
|
|
|
11648 |
oprot.writeI32(self.status)
|
|
|
11649 |
oprot.writeFieldEnd()
|
|
|
11650 |
if self.customer_email is not None:
|
|
|
11651 |
oprot.writeFieldBegin('customer_email', TType.STRING, 3)
|
|
|
11652 |
oprot.writeString(self.customer_email)
|
|
|
11653 |
oprot.writeFieldEnd()
|
|
|
11654 |
if self.customer_name is not None:
|
|
|
11655 |
oprot.writeFieldBegin('customer_name', TType.STRING, 4)
|
|
|
11656 |
oprot.writeString(self.customer_name)
|
|
|
11657 |
oprot.writeFieldEnd()
|
|
|
11658 |
if self.customer_id is not None:
|
|
|
11659 |
oprot.writeFieldBegin('customer_id', TType.I64, 5)
|
|
|
11660 |
oprot.writeI64(self.customer_id)
|
|
|
11661 |
oprot.writeFieldEnd()
|
|
|
11662 |
if self.address_id is not None:
|
|
|
11663 |
oprot.writeFieldBegin('address_id', TType.I64, 6)
|
|
|
11664 |
oprot.writeI64(self.address_id)
|
|
|
11665 |
oprot.writeFieldEnd()
|
|
|
11666 |
if self.ticketId is not None:
|
|
|
11667 |
oprot.writeFieldBegin('ticketId', TType.I64, 7)
|
|
|
11668 |
oprot.writeI64(self.ticketId)
|
|
|
11669 |
oprot.writeFieldEnd()
|
|
|
11670 |
if self.createdAt is not None:
|
|
|
11671 |
oprot.writeFieldBegin('createdAt', TType.I64, 8)
|
|
|
11672 |
oprot.writeI64(self.createdAt)
|
|
|
11673 |
oprot.writeFieldEnd()
|
|
|
11674 |
if self.processedAt is not None:
|
|
|
11675 |
oprot.writeFieldBegin('processedAt', TType.I64, 9)
|
|
|
11676 |
oprot.writeI64(self.processedAt)
|
|
|
11677 |
oprot.writeFieldEnd()
|
|
|
11678 |
if self.authorizedAt is not None:
|
|
|
11679 |
oprot.writeFieldBegin('authorizedAt', TType.I64, 10)
|
|
|
11680 |
oprot.writeI64(self.authorizedAt)
|
|
|
11681 |
oprot.writeFieldEnd()
|
|
|
11682 |
if self.closedAt is not None:
|
|
|
11683 |
oprot.writeFieldBegin('closedAt', TType.I64, 11)
|
|
|
11684 |
oprot.writeI64(self.closedAt)
|
|
|
11685 |
oprot.writeFieldEnd()
|
|
|
11686 |
if self.customerAddress is not None:
|
|
|
11687 |
oprot.writeFieldBegin('customerAddress', TType.STRING, 12)
|
|
|
11688 |
oprot.writeString(self.customerAddress)
|
|
|
11689 |
oprot.writeFieldEnd()
|
|
|
11690 |
if self.pincode is not None:
|
|
|
11691 |
oprot.writeFieldBegin('pincode', TType.STRING, 13)
|
|
|
11692 |
oprot.writeString(self.pincode)
|
|
|
11693 |
oprot.writeFieldEnd()
|
|
|
11694 |
if self.customerCity is not None:
|
|
|
11695 |
oprot.writeFieldBegin('customerCity', TType.STRING, 14)
|
|
|
11696 |
oprot.writeString(self.customerCity)
|
|
|
11697 |
oprot.writeFieldEnd()
|
|
|
11698 |
if self.customerState is not None:
|
|
|
11699 |
oprot.writeFieldBegin('customerState', TType.STRING, 15)
|
|
|
11700 |
oprot.writeString(self.customerState)
|
|
|
11701 |
oprot.writeFieldEnd()
|
|
|
11702 |
if self.customerPhone is not None:
|
|
|
11703 |
oprot.writeFieldBegin('customerPhone', TType.STRING, 16)
|
|
|
11704 |
oprot.writeString(self.customerPhone)
|
|
|
11705 |
oprot.writeFieldEnd()
|
|
|
11706 |
if self.returnOrders is not None:
|
|
|
11707 |
oprot.writeFieldBegin('returnOrders', TType.LIST, 17)
|
|
|
11708 |
oprot.writeListBegin(TType.STRUCT, len(self.returnOrders))
|
| 18794 |
manish.sha |
11709 |
for iter133 in self.returnOrders:
|
|
|
11710 |
iter133.write(oprot)
|
| 18578 |
manish.sha |
11711 |
oprot.writeListEnd()
|
|
|
11712 |
oprot.writeFieldEnd()
|
|
|
11713 |
oprot.writeFieldStop()
|
|
|
11714 |
oprot.writeStructEnd()
|
|
|
11715 |
|
|
|
11716 |
def validate(self):
|
|
|
11717 |
return
|
|
|
11718 |
|
|
|
11719 |
|
|
|
11720 |
def __repr__(self):
|
|
|
11721 |
L = ['%s=%r' % (key, value)
|
|
|
11722 |
for key, value in self.__dict__.iteritems()]
|
|
|
11723 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
11724 |
|
|
|
11725 |
def __eq__(self, other):
|
|
|
11726 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
11727 |
|
|
|
11728 |
def __ne__(self, other):
|
|
|
11729 |
return not (self == other)
|
| 19474 |
manish.sha |
11730 |
|
|
|
11731 |
class ShipmentLogisticsCostDetail:
|
|
|
11732 |
"""
|
|
|
11733 |
Attributes:
|
|
|
11734 |
- logisticsTransactionId
|
|
|
11735 |
- airwayBillNo
|
|
|
11736 |
- shipmentAmount
|
|
|
11737 |
- shipmentWeight
|
|
|
11738 |
- shipmentLogsiticsCost
|
|
|
11739 |
- shipmentCodCollectionCharges
|
|
|
11740 |
- createdAt
|
|
|
11741 |
- updatedAt
|
| 20744 |
kshitij.so |
11742 |
- packageDimensions
|
| 19474 |
manish.sha |
11743 |
"""
|
|
|
11744 |
|
|
|
11745 |
thrift_spec = (
|
|
|
11746 |
None, # 0
|
|
|
11747 |
(1, TType.STRING, 'logisticsTransactionId', None, None, ), # 1
|
|
|
11748 |
(2, TType.STRING, 'airwayBillNo', None, None, ), # 2
|
|
|
11749 |
(3, TType.DOUBLE, 'shipmentAmount', None, None, ), # 3
|
|
|
11750 |
(4, TType.DOUBLE, 'shipmentWeight', None, None, ), # 4
|
|
|
11751 |
(5, TType.DOUBLE, 'shipmentLogsiticsCost', None, None, ), # 5
|
|
|
11752 |
(6, TType.DOUBLE, 'shipmentCodCollectionCharges', None, None, ), # 6
|
|
|
11753 |
(7, TType.I64, 'createdAt', None, None, ), # 7
|
|
|
11754 |
(8, TType.I64, 'updatedAt', None, None, ), # 8
|
| 20744 |
kshitij.so |
11755 |
(9, TType.STRING, 'packageDimensions', None, None, ), # 9
|
| 19474 |
manish.sha |
11756 |
)
|
|
|
11757 |
|
| 20744 |
kshitij.so |
11758 |
def __init__(self, logisticsTransactionId=None, airwayBillNo=None, shipmentAmount=None, shipmentWeight=None, shipmentLogsiticsCost=None, shipmentCodCollectionCharges=None, createdAt=None, updatedAt=None, packageDimensions=None,):
|
| 19474 |
manish.sha |
11759 |
self.logisticsTransactionId = logisticsTransactionId
|
|
|
11760 |
self.airwayBillNo = airwayBillNo
|
|
|
11761 |
self.shipmentAmount = shipmentAmount
|
|
|
11762 |
self.shipmentWeight = shipmentWeight
|
|
|
11763 |
self.shipmentLogsiticsCost = shipmentLogsiticsCost
|
|
|
11764 |
self.shipmentCodCollectionCharges = shipmentCodCollectionCharges
|
|
|
11765 |
self.createdAt = createdAt
|
|
|
11766 |
self.updatedAt = updatedAt
|
| 20744 |
kshitij.so |
11767 |
self.packageDimensions = packageDimensions
|
| 19474 |
manish.sha |
11768 |
|
|
|
11769 |
def read(self, iprot):
|
|
|
11770 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
11771 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
11772 |
return
|
|
|
11773 |
iprot.readStructBegin()
|
|
|
11774 |
while True:
|
|
|
11775 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
11776 |
if ftype == TType.STOP:
|
|
|
11777 |
break
|
|
|
11778 |
if fid == 1:
|
|
|
11779 |
if ftype == TType.STRING:
|
|
|
11780 |
self.logisticsTransactionId = iprot.readString();
|
|
|
11781 |
else:
|
|
|
11782 |
iprot.skip(ftype)
|
|
|
11783 |
elif fid == 2:
|
|
|
11784 |
if ftype == TType.STRING:
|
|
|
11785 |
self.airwayBillNo = iprot.readString();
|
|
|
11786 |
else:
|
|
|
11787 |
iprot.skip(ftype)
|
|
|
11788 |
elif fid == 3:
|
|
|
11789 |
if ftype == TType.DOUBLE:
|
|
|
11790 |
self.shipmentAmount = iprot.readDouble();
|
|
|
11791 |
else:
|
|
|
11792 |
iprot.skip(ftype)
|
|
|
11793 |
elif fid == 4:
|
|
|
11794 |
if ftype == TType.DOUBLE:
|
|
|
11795 |
self.shipmentWeight = iprot.readDouble();
|
|
|
11796 |
else:
|
|
|
11797 |
iprot.skip(ftype)
|
|
|
11798 |
elif fid == 5:
|
|
|
11799 |
if ftype == TType.DOUBLE:
|
|
|
11800 |
self.shipmentLogsiticsCost = iprot.readDouble();
|
|
|
11801 |
else:
|
|
|
11802 |
iprot.skip(ftype)
|
|
|
11803 |
elif fid == 6:
|
|
|
11804 |
if ftype == TType.DOUBLE:
|
|
|
11805 |
self.shipmentCodCollectionCharges = iprot.readDouble();
|
|
|
11806 |
else:
|
|
|
11807 |
iprot.skip(ftype)
|
|
|
11808 |
elif fid == 7:
|
|
|
11809 |
if ftype == TType.I64:
|
|
|
11810 |
self.createdAt = iprot.readI64();
|
|
|
11811 |
else:
|
|
|
11812 |
iprot.skip(ftype)
|
|
|
11813 |
elif fid == 8:
|
|
|
11814 |
if ftype == TType.I64:
|
|
|
11815 |
self.updatedAt = iprot.readI64();
|
|
|
11816 |
else:
|
|
|
11817 |
iprot.skip(ftype)
|
| 20744 |
kshitij.so |
11818 |
elif fid == 9:
|
|
|
11819 |
if ftype == TType.STRING:
|
|
|
11820 |
self.packageDimensions = iprot.readString();
|
|
|
11821 |
else:
|
|
|
11822 |
iprot.skip(ftype)
|
| 19474 |
manish.sha |
11823 |
else:
|
|
|
11824 |
iprot.skip(ftype)
|
|
|
11825 |
iprot.readFieldEnd()
|
|
|
11826 |
iprot.readStructEnd()
|
|
|
11827 |
|
|
|
11828 |
def write(self, oprot):
|
|
|
11829 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
11830 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
11831 |
return
|
|
|
11832 |
oprot.writeStructBegin('ShipmentLogisticsCostDetail')
|
|
|
11833 |
if self.logisticsTransactionId is not None:
|
|
|
11834 |
oprot.writeFieldBegin('logisticsTransactionId', TType.STRING, 1)
|
|
|
11835 |
oprot.writeString(self.logisticsTransactionId)
|
|
|
11836 |
oprot.writeFieldEnd()
|
|
|
11837 |
if self.airwayBillNo is not None:
|
|
|
11838 |
oprot.writeFieldBegin('airwayBillNo', TType.STRING, 2)
|
|
|
11839 |
oprot.writeString(self.airwayBillNo)
|
|
|
11840 |
oprot.writeFieldEnd()
|
|
|
11841 |
if self.shipmentAmount is not None:
|
|
|
11842 |
oprot.writeFieldBegin('shipmentAmount', TType.DOUBLE, 3)
|
|
|
11843 |
oprot.writeDouble(self.shipmentAmount)
|
|
|
11844 |
oprot.writeFieldEnd()
|
|
|
11845 |
if self.shipmentWeight is not None:
|
|
|
11846 |
oprot.writeFieldBegin('shipmentWeight', TType.DOUBLE, 4)
|
|
|
11847 |
oprot.writeDouble(self.shipmentWeight)
|
|
|
11848 |
oprot.writeFieldEnd()
|
|
|
11849 |
if self.shipmentLogsiticsCost is not None:
|
|
|
11850 |
oprot.writeFieldBegin('shipmentLogsiticsCost', TType.DOUBLE, 5)
|
|
|
11851 |
oprot.writeDouble(self.shipmentLogsiticsCost)
|
|
|
11852 |
oprot.writeFieldEnd()
|
|
|
11853 |
if self.shipmentCodCollectionCharges is not None:
|
|
|
11854 |
oprot.writeFieldBegin('shipmentCodCollectionCharges', TType.DOUBLE, 6)
|
|
|
11855 |
oprot.writeDouble(self.shipmentCodCollectionCharges)
|
|
|
11856 |
oprot.writeFieldEnd()
|
|
|
11857 |
if self.createdAt is not None:
|
|
|
11858 |
oprot.writeFieldBegin('createdAt', TType.I64, 7)
|
|
|
11859 |
oprot.writeI64(self.createdAt)
|
|
|
11860 |
oprot.writeFieldEnd()
|
|
|
11861 |
if self.updatedAt is not None:
|
|
|
11862 |
oprot.writeFieldBegin('updatedAt', TType.I64, 8)
|
|
|
11863 |
oprot.writeI64(self.updatedAt)
|
|
|
11864 |
oprot.writeFieldEnd()
|
| 20744 |
kshitij.so |
11865 |
if self.packageDimensions is not None:
|
|
|
11866 |
oprot.writeFieldBegin('packageDimensions', TType.STRING, 9)
|
|
|
11867 |
oprot.writeString(self.packageDimensions)
|
|
|
11868 |
oprot.writeFieldEnd()
|
| 19474 |
manish.sha |
11869 |
oprot.writeFieldStop()
|
|
|
11870 |
oprot.writeStructEnd()
|
|
|
11871 |
|
|
|
11872 |
def validate(self):
|
|
|
11873 |
return
|
|
|
11874 |
|
|
|
11875 |
|
|
|
11876 |
def __repr__(self):
|
|
|
11877 |
L = ['%s=%r' % (key, value)
|
|
|
11878 |
for key, value in self.__dict__.iteritems()]
|
|
|
11879 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
11880 |
|
|
|
11881 |
def __eq__(self, other):
|
|
|
11882 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
11883 |
|
|
|
11884 |
def __ne__(self, other):
|
|
|
11885 |
return not (self == other)
|
| 20028 |
kshitij.so |
11886 |
|
|
|
11887 |
class ShipmentDelayDetail:
|
|
|
11888 |
"""
|
|
|
11889 |
Attributes:
|
|
|
11890 |
- orderId
|
|
|
11891 |
- delayReason
|
|
|
11892 |
- delayReasonText
|
|
|
11893 |
- delay
|
|
|
11894 |
"""
|
|
|
11895 |
|
|
|
11896 |
thrift_spec = (
|
|
|
11897 |
None, # 0
|
|
|
11898 |
(1, TType.I64, 'orderId', None, None, ), # 1
|
|
|
11899 |
(2, TType.I32, 'delayReason', None, None, ), # 2
|
|
|
11900 |
(3, TType.STRING, 'delayReasonText', None, None, ), # 3
|
|
|
11901 |
(4, TType.I64, 'delay', None, None, ), # 4
|
|
|
11902 |
)
|
|
|
11903 |
|
|
|
11904 |
def __init__(self, orderId=None, delayReason=None, delayReasonText=None, delay=None,):
|
|
|
11905 |
self.orderId = orderId
|
|
|
11906 |
self.delayReason = delayReason
|
|
|
11907 |
self.delayReasonText = delayReasonText
|
|
|
11908 |
self.delay = delay
|
|
|
11909 |
|
|
|
11910 |
def read(self, iprot):
|
|
|
11911 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
11912 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
11913 |
return
|
|
|
11914 |
iprot.readStructBegin()
|
|
|
11915 |
while True:
|
|
|
11916 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
11917 |
if ftype == TType.STOP:
|
|
|
11918 |
break
|
|
|
11919 |
if fid == 1:
|
|
|
11920 |
if ftype == TType.I64:
|
|
|
11921 |
self.orderId = iprot.readI64();
|
|
|
11922 |
else:
|
|
|
11923 |
iprot.skip(ftype)
|
|
|
11924 |
elif fid == 2:
|
|
|
11925 |
if ftype == TType.I32:
|
|
|
11926 |
self.delayReason = iprot.readI32();
|
|
|
11927 |
else:
|
|
|
11928 |
iprot.skip(ftype)
|
|
|
11929 |
elif fid == 3:
|
|
|
11930 |
if ftype == TType.STRING:
|
|
|
11931 |
self.delayReasonText = iprot.readString();
|
|
|
11932 |
else:
|
|
|
11933 |
iprot.skip(ftype)
|
|
|
11934 |
elif fid == 4:
|
|
|
11935 |
if ftype == TType.I64:
|
|
|
11936 |
self.delay = iprot.readI64();
|
|
|
11937 |
else:
|
|
|
11938 |
iprot.skip(ftype)
|
|
|
11939 |
else:
|
|
|
11940 |
iprot.skip(ftype)
|
|
|
11941 |
iprot.readFieldEnd()
|
|
|
11942 |
iprot.readStructEnd()
|
|
|
11943 |
|
|
|
11944 |
def write(self, oprot):
|
|
|
11945 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
11946 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
11947 |
return
|
|
|
11948 |
oprot.writeStructBegin('ShipmentDelayDetail')
|
|
|
11949 |
if self.orderId is not None:
|
|
|
11950 |
oprot.writeFieldBegin('orderId', TType.I64, 1)
|
|
|
11951 |
oprot.writeI64(self.orderId)
|
|
|
11952 |
oprot.writeFieldEnd()
|
|
|
11953 |
if self.delayReason is not None:
|
|
|
11954 |
oprot.writeFieldBegin('delayReason', TType.I32, 2)
|
|
|
11955 |
oprot.writeI32(self.delayReason)
|
|
|
11956 |
oprot.writeFieldEnd()
|
|
|
11957 |
if self.delayReasonText is not None:
|
|
|
11958 |
oprot.writeFieldBegin('delayReasonText', TType.STRING, 3)
|
|
|
11959 |
oprot.writeString(self.delayReasonText)
|
|
|
11960 |
oprot.writeFieldEnd()
|
|
|
11961 |
if self.delay is not None:
|
|
|
11962 |
oprot.writeFieldBegin('delay', TType.I64, 4)
|
|
|
11963 |
oprot.writeI64(self.delay)
|
|
|
11964 |
oprot.writeFieldEnd()
|
|
|
11965 |
oprot.writeFieldStop()
|
|
|
11966 |
oprot.writeStructEnd()
|
|
|
11967 |
|
|
|
11968 |
def validate(self):
|
|
|
11969 |
return
|
|
|
11970 |
|
|
|
11971 |
|
|
|
11972 |
def __repr__(self):
|
|
|
11973 |
L = ['%s=%r' % (key, value)
|
|
|
11974 |
for key, value in self.__dict__.iteritems()]
|
|
|
11975 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
11976 |
|
|
|
11977 |
def __eq__(self, other):
|
|
|
11978 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
11979 |
|
|
|
11980 |
def __ne__(self, other):
|
|
|
11981 |
return not (self == other)
|
| 21090 |
kshitij.so |
11982 |
|
|
|
11983 |
class Pmsa:
|
|
|
11984 |
"""
|
|
|
11985 |
Attributes:
|
|
|
11986 |
- id
|
|
|
11987 |
- name
|
|
|
11988 |
- phone
|
|
|
11989 |
- emailId
|
|
|
11990 |
- address
|
|
|
11991 |
- state
|
|
|
11992 |
- level
|
|
|
11993 |
- l1_email
|
|
|
11994 |
- l2_email
|
|
|
11995 |
- activated
|
|
|
11996 |
- pin
|
|
|
11997 |
- code
|
|
|
11998 |
- createdAt
|
|
|
11999 |
"""
|
|
|
12000 |
|
|
|
12001 |
thrift_spec = (
|
|
|
12002 |
None, # 0
|
|
|
12003 |
(1, TType.I64, 'id', None, None, ), # 1
|
|
|
12004 |
(2, TType.STRING, 'name', None, None, ), # 2
|
|
|
12005 |
(3, TType.STRING, 'phone', None, None, ), # 3
|
|
|
12006 |
(4, TType.STRING, 'emailId', None, None, ), # 4
|
|
|
12007 |
(5, TType.STRING, 'address', None, None, ), # 5
|
|
|
12008 |
(6, TType.STRING, 'state', None, None, ), # 6
|
|
|
12009 |
(7, TType.STRING, 'level', None, None, ), # 7
|
|
|
12010 |
(8, TType.STRING, 'l1_email', None, None, ), # 8
|
|
|
12011 |
(9, TType.STRING, 'l2_email', None, None, ), # 9
|
|
|
12012 |
(10, TType.BOOL, 'activated', None, None, ), # 10
|
|
|
12013 |
(11, TType.STRING, 'pin', None, None, ), # 11
|
|
|
12014 |
(12, TType.STRING, 'code', None, None, ), # 12
|
|
|
12015 |
(13, TType.I64, 'createdAt', None, None, ), # 13
|
|
|
12016 |
)
|
|
|
12017 |
|
|
|
12018 |
def __init__(self, id=None, name=None, phone=None, emailId=None, address=None, state=None, level=None, l1_email=None, l2_email=None, activated=None, pin=None, code=None, createdAt=None,):
|
|
|
12019 |
self.id = id
|
|
|
12020 |
self.name = name
|
|
|
12021 |
self.phone = phone
|
|
|
12022 |
self.emailId = emailId
|
|
|
12023 |
self.address = address
|
|
|
12024 |
self.state = state
|
|
|
12025 |
self.level = level
|
|
|
12026 |
self.l1_email = l1_email
|
|
|
12027 |
self.l2_email = l2_email
|
|
|
12028 |
self.activated = activated
|
|
|
12029 |
self.pin = pin
|
|
|
12030 |
self.code = code
|
|
|
12031 |
self.createdAt = createdAt
|
|
|
12032 |
|
|
|
12033 |
def read(self, iprot):
|
|
|
12034 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
12035 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
12036 |
return
|
|
|
12037 |
iprot.readStructBegin()
|
|
|
12038 |
while True:
|
|
|
12039 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
12040 |
if ftype == TType.STOP:
|
|
|
12041 |
break
|
|
|
12042 |
if fid == 1:
|
|
|
12043 |
if ftype == TType.I64:
|
|
|
12044 |
self.id = iprot.readI64();
|
|
|
12045 |
else:
|
|
|
12046 |
iprot.skip(ftype)
|
|
|
12047 |
elif fid == 2:
|
|
|
12048 |
if ftype == TType.STRING:
|
|
|
12049 |
self.name = iprot.readString();
|
|
|
12050 |
else:
|
|
|
12051 |
iprot.skip(ftype)
|
|
|
12052 |
elif fid == 3:
|
|
|
12053 |
if ftype == TType.STRING:
|
|
|
12054 |
self.phone = iprot.readString();
|
|
|
12055 |
else:
|
|
|
12056 |
iprot.skip(ftype)
|
|
|
12057 |
elif fid == 4:
|
|
|
12058 |
if ftype == TType.STRING:
|
|
|
12059 |
self.emailId = iprot.readString();
|
|
|
12060 |
else:
|
|
|
12061 |
iprot.skip(ftype)
|
|
|
12062 |
elif fid == 5:
|
|
|
12063 |
if ftype == TType.STRING:
|
|
|
12064 |
self.address = iprot.readString();
|
|
|
12065 |
else:
|
|
|
12066 |
iprot.skip(ftype)
|
|
|
12067 |
elif fid == 6:
|
|
|
12068 |
if ftype == TType.STRING:
|
|
|
12069 |
self.state = iprot.readString();
|
|
|
12070 |
else:
|
|
|
12071 |
iprot.skip(ftype)
|
|
|
12072 |
elif fid == 7:
|
|
|
12073 |
if ftype == TType.STRING:
|
|
|
12074 |
self.level = iprot.readString();
|
|
|
12075 |
else:
|
|
|
12076 |
iprot.skip(ftype)
|
|
|
12077 |
elif fid == 8:
|
|
|
12078 |
if ftype == TType.STRING:
|
|
|
12079 |
self.l1_email = iprot.readString();
|
|
|
12080 |
else:
|
|
|
12081 |
iprot.skip(ftype)
|
|
|
12082 |
elif fid == 9:
|
|
|
12083 |
if ftype == TType.STRING:
|
|
|
12084 |
self.l2_email = iprot.readString();
|
|
|
12085 |
else:
|
|
|
12086 |
iprot.skip(ftype)
|
|
|
12087 |
elif fid == 10:
|
|
|
12088 |
if ftype == TType.BOOL:
|
|
|
12089 |
self.activated = iprot.readBool();
|
|
|
12090 |
else:
|
|
|
12091 |
iprot.skip(ftype)
|
|
|
12092 |
elif fid == 11:
|
|
|
12093 |
if ftype == TType.STRING:
|
|
|
12094 |
self.pin = iprot.readString();
|
|
|
12095 |
else:
|
|
|
12096 |
iprot.skip(ftype)
|
|
|
12097 |
elif fid == 12:
|
|
|
12098 |
if ftype == TType.STRING:
|
|
|
12099 |
self.code = iprot.readString();
|
|
|
12100 |
else:
|
|
|
12101 |
iprot.skip(ftype)
|
|
|
12102 |
elif fid == 13:
|
|
|
12103 |
if ftype == TType.I64:
|
|
|
12104 |
self.createdAt = iprot.readI64();
|
|
|
12105 |
else:
|
|
|
12106 |
iprot.skip(ftype)
|
|
|
12107 |
else:
|
|
|
12108 |
iprot.skip(ftype)
|
|
|
12109 |
iprot.readFieldEnd()
|
|
|
12110 |
iprot.readStructEnd()
|
|
|
12111 |
|
|
|
12112 |
def write(self, oprot):
|
|
|
12113 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
12114 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
12115 |
return
|
|
|
12116 |
oprot.writeStructBegin('Pmsa')
|
|
|
12117 |
if self.id is not None:
|
|
|
12118 |
oprot.writeFieldBegin('id', TType.I64, 1)
|
|
|
12119 |
oprot.writeI64(self.id)
|
|
|
12120 |
oprot.writeFieldEnd()
|
|
|
12121 |
if self.name is not None:
|
|
|
12122 |
oprot.writeFieldBegin('name', TType.STRING, 2)
|
|
|
12123 |
oprot.writeString(self.name)
|
|
|
12124 |
oprot.writeFieldEnd()
|
|
|
12125 |
if self.phone is not None:
|
|
|
12126 |
oprot.writeFieldBegin('phone', TType.STRING, 3)
|
|
|
12127 |
oprot.writeString(self.phone)
|
|
|
12128 |
oprot.writeFieldEnd()
|
|
|
12129 |
if self.emailId is not None:
|
|
|
12130 |
oprot.writeFieldBegin('emailId', TType.STRING, 4)
|
|
|
12131 |
oprot.writeString(self.emailId)
|
|
|
12132 |
oprot.writeFieldEnd()
|
|
|
12133 |
if self.address is not None:
|
|
|
12134 |
oprot.writeFieldBegin('address', TType.STRING, 5)
|
|
|
12135 |
oprot.writeString(self.address)
|
|
|
12136 |
oprot.writeFieldEnd()
|
|
|
12137 |
if self.state is not None:
|
|
|
12138 |
oprot.writeFieldBegin('state', TType.STRING, 6)
|
|
|
12139 |
oprot.writeString(self.state)
|
|
|
12140 |
oprot.writeFieldEnd()
|
|
|
12141 |
if self.level is not None:
|
|
|
12142 |
oprot.writeFieldBegin('level', TType.STRING, 7)
|
|
|
12143 |
oprot.writeString(self.level)
|
|
|
12144 |
oprot.writeFieldEnd()
|
|
|
12145 |
if self.l1_email is not None:
|
|
|
12146 |
oprot.writeFieldBegin('l1_email', TType.STRING, 8)
|
|
|
12147 |
oprot.writeString(self.l1_email)
|
|
|
12148 |
oprot.writeFieldEnd()
|
|
|
12149 |
if self.l2_email is not None:
|
|
|
12150 |
oprot.writeFieldBegin('l2_email', TType.STRING, 9)
|
|
|
12151 |
oprot.writeString(self.l2_email)
|
|
|
12152 |
oprot.writeFieldEnd()
|
|
|
12153 |
if self.activated is not None:
|
|
|
12154 |
oprot.writeFieldBegin('activated', TType.BOOL, 10)
|
|
|
12155 |
oprot.writeBool(self.activated)
|
|
|
12156 |
oprot.writeFieldEnd()
|
|
|
12157 |
if self.pin is not None:
|
|
|
12158 |
oprot.writeFieldBegin('pin', TType.STRING, 11)
|
|
|
12159 |
oprot.writeString(self.pin)
|
|
|
12160 |
oprot.writeFieldEnd()
|
|
|
12161 |
if self.code is not None:
|
|
|
12162 |
oprot.writeFieldBegin('code', TType.STRING, 12)
|
|
|
12163 |
oprot.writeString(self.code)
|
|
|
12164 |
oprot.writeFieldEnd()
|
|
|
12165 |
if self.createdAt is not None:
|
|
|
12166 |
oprot.writeFieldBegin('createdAt', TType.I64, 13)
|
|
|
12167 |
oprot.writeI64(self.createdAt)
|
|
|
12168 |
oprot.writeFieldEnd()
|
|
|
12169 |
oprot.writeFieldStop()
|
|
|
12170 |
oprot.writeStructEnd()
|
|
|
12171 |
|
|
|
12172 |
def validate(self):
|
|
|
12173 |
return
|
|
|
12174 |
|
|
|
12175 |
|
|
|
12176 |
def __repr__(self):
|
|
|
12177 |
L = ['%s=%r' % (key, value)
|
|
|
12178 |
for key, value in self.__dict__.iteritems()]
|
|
|
12179 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
12180 |
|
|
|
12181 |
def __eq__(self, other):
|
|
|
12182 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
12183 |
|
|
|
12184 |
def __ne__(self, other):
|
|
|
12185 |
return not (self == other)
|
|
|
12186 |
|
|
|
12187 |
class PmsaSearchFilter:
|
|
|
12188 |
"""
|
|
|
12189 |
Attributes:
|
|
|
12190 |
- name
|
|
|
12191 |
- phone
|
|
|
12192 |
- emailId
|
|
|
12193 |
- code
|
|
|
12194 |
- activated
|
|
|
12195 |
- l1_email
|
|
|
12196 |
- l2_email
|
|
|
12197 |
"""
|
|
|
12198 |
|
|
|
12199 |
thrift_spec = (
|
|
|
12200 |
None, # 0
|
|
|
12201 |
(1, TType.STRING, 'name', None, None, ), # 1
|
|
|
12202 |
(2, TType.STRING, 'phone', None, None, ), # 2
|
|
|
12203 |
(3, TType.STRING, 'emailId', None, None, ), # 3
|
|
|
12204 |
(4, TType.STRING, 'code', None, None, ), # 4
|
|
|
12205 |
(5, TType.BOOL, 'activated', None, None, ), # 5
|
|
|
12206 |
(6, TType.STRING, 'l1_email', None, None, ), # 6
|
|
|
12207 |
(7, TType.STRING, 'l2_email', None, None, ), # 7
|
|
|
12208 |
)
|
|
|
12209 |
|
|
|
12210 |
def __init__(self, name=None, phone=None, emailId=None, code=None, activated=None, l1_email=None, l2_email=None,):
|
|
|
12211 |
self.name = name
|
|
|
12212 |
self.phone = phone
|
|
|
12213 |
self.emailId = emailId
|
|
|
12214 |
self.code = code
|
|
|
12215 |
self.activated = activated
|
|
|
12216 |
self.l1_email = l1_email
|
|
|
12217 |
self.l2_email = l2_email
|
|
|
12218 |
|
|
|
12219 |
def read(self, iprot):
|
|
|
12220 |
if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
|
|
|
12221 |
fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
|
|
|
12222 |
return
|
|
|
12223 |
iprot.readStructBegin()
|
|
|
12224 |
while True:
|
|
|
12225 |
(fname, ftype, fid) = iprot.readFieldBegin()
|
|
|
12226 |
if ftype == TType.STOP:
|
|
|
12227 |
break
|
|
|
12228 |
if fid == 1:
|
|
|
12229 |
if ftype == TType.STRING:
|
|
|
12230 |
self.name = iprot.readString();
|
|
|
12231 |
else:
|
|
|
12232 |
iprot.skip(ftype)
|
|
|
12233 |
elif fid == 2:
|
|
|
12234 |
if ftype == TType.STRING:
|
|
|
12235 |
self.phone = iprot.readString();
|
|
|
12236 |
else:
|
|
|
12237 |
iprot.skip(ftype)
|
|
|
12238 |
elif fid == 3:
|
|
|
12239 |
if ftype == TType.STRING:
|
|
|
12240 |
self.emailId = iprot.readString();
|
|
|
12241 |
else:
|
|
|
12242 |
iprot.skip(ftype)
|
|
|
12243 |
elif fid == 4:
|
|
|
12244 |
if ftype == TType.STRING:
|
|
|
12245 |
self.code = iprot.readString();
|
|
|
12246 |
else:
|
|
|
12247 |
iprot.skip(ftype)
|
|
|
12248 |
elif fid == 5:
|
|
|
12249 |
if ftype == TType.BOOL:
|
|
|
12250 |
self.activated = iprot.readBool();
|
|
|
12251 |
else:
|
|
|
12252 |
iprot.skip(ftype)
|
|
|
12253 |
elif fid == 6:
|
|
|
12254 |
if ftype == TType.STRING:
|
|
|
12255 |
self.l1_email = iprot.readString();
|
|
|
12256 |
else:
|
|
|
12257 |
iprot.skip(ftype)
|
|
|
12258 |
elif fid == 7:
|
|
|
12259 |
if ftype == TType.STRING:
|
|
|
12260 |
self.l2_email = iprot.readString();
|
|
|
12261 |
else:
|
|
|
12262 |
iprot.skip(ftype)
|
|
|
12263 |
else:
|
|
|
12264 |
iprot.skip(ftype)
|
|
|
12265 |
iprot.readFieldEnd()
|
|
|
12266 |
iprot.readStructEnd()
|
|
|
12267 |
|
|
|
12268 |
def write(self, oprot):
|
|
|
12269 |
if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
|
|
|
12270 |
oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
|
|
|
12271 |
return
|
|
|
12272 |
oprot.writeStructBegin('PmsaSearchFilter')
|
|
|
12273 |
if self.name is not None:
|
|
|
12274 |
oprot.writeFieldBegin('name', TType.STRING, 1)
|
|
|
12275 |
oprot.writeString(self.name)
|
|
|
12276 |
oprot.writeFieldEnd()
|
|
|
12277 |
if self.phone is not None:
|
|
|
12278 |
oprot.writeFieldBegin('phone', TType.STRING, 2)
|
|
|
12279 |
oprot.writeString(self.phone)
|
|
|
12280 |
oprot.writeFieldEnd()
|
|
|
12281 |
if self.emailId is not None:
|
|
|
12282 |
oprot.writeFieldBegin('emailId', TType.STRING, 3)
|
|
|
12283 |
oprot.writeString(self.emailId)
|
|
|
12284 |
oprot.writeFieldEnd()
|
|
|
12285 |
if self.code is not None:
|
|
|
12286 |
oprot.writeFieldBegin('code', TType.STRING, 4)
|
|
|
12287 |
oprot.writeString(self.code)
|
|
|
12288 |
oprot.writeFieldEnd()
|
|
|
12289 |
if self.activated is not None:
|
|
|
12290 |
oprot.writeFieldBegin('activated', TType.BOOL, 5)
|
|
|
12291 |
oprot.writeBool(self.activated)
|
|
|
12292 |
oprot.writeFieldEnd()
|
|
|
12293 |
if self.l1_email is not None:
|
|
|
12294 |
oprot.writeFieldBegin('l1_email', TType.STRING, 6)
|
|
|
12295 |
oprot.writeString(self.l1_email)
|
|
|
12296 |
oprot.writeFieldEnd()
|
|
|
12297 |
if self.l2_email is not None:
|
|
|
12298 |
oprot.writeFieldBegin('l2_email', TType.STRING, 7)
|
|
|
12299 |
oprot.writeString(self.l2_email)
|
|
|
12300 |
oprot.writeFieldEnd()
|
|
|
12301 |
oprot.writeFieldStop()
|
|
|
12302 |
oprot.writeStructEnd()
|
|
|
12303 |
|
|
|
12304 |
def validate(self):
|
|
|
12305 |
return
|
|
|
12306 |
|
|
|
12307 |
|
|
|
12308 |
def __repr__(self):
|
|
|
12309 |
L = ['%s=%r' % (key, value)
|
|
|
12310 |
for key, value in self.__dict__.iteritems()]
|
|
|
12311 |
return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
|
|
|
12312 |
|
|
|
12313 |
def __eq__(self, other):
|
|
|
12314 |
return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
|
|
|
12315 |
|
|
|
12316 |
def __ne__(self, other):
|
|
|
12317 |
return not (self == other)
|