Subversion Repositories SmartDukaan

Rev

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

Rev 3014 Rev 3064
Line 125... Line 125...
125
     - status
125
     - status
126
     - description
126
     - description
127
    """
127
    """
128
    pass
128
    pass
129
 
129
 
130
  def addBillingDetails(self, orderId, invoice_number, billed_by):
-
 
131
    """
-
 
132
    Add billing details such as the bill number and the biller to the Order.
-
 
133
    
-
 
134
    Parameters:
-
 
135
     - orderId
-
 
136
     - invoice_number
-
 
137
     - billed_by
-
 
138
    """
-
 
139
    pass
-
 
140
 
-
 
141
  def addJacketNumber(self, orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType):
-
 
142
    """
-
 
143
    Adds jacket number and IMEI no. to the order. Doesn't update the IMEI no. if a -1 is supplied.
-
 
144
    Also marks the order as billed and sets the billing timestamp.
-
 
145
    Return false if it doesn't find the order with the given ID.
-
 
146
    
-
 
147
    Parameters:
-
 
148
     - orderId
-
 
149
     - jacketNumber
-
 
150
     - imeiNumber
-
 
151
     - itemNumber
-
 
152
     - billedBy
-
 
153
     - billingType
-
 
154
    """
-
 
155
    pass
-
 
156
 
-
 
157
  def acceptOrder(self, orderId):
-
 
158
    """
-
 
159
    Parameters:
-
 
160
     - orderId
-
 
161
    """
-
 
162
    pass
-
 
163
 
-
 
164
  def billOrder(self, orderId):
-
 
165
    """
-
 
166
    Parameters:
-
 
167
     - orderId
-
 
168
    """
-
 
169
    pass
-
 
170
 
-
 
171
  def getOrdersForTransaction(self, transactionId, customerId):
130
  def getOrdersForTransaction(self, transactionId, customerId):
172
    """
131
    """
173
    Returns list of orders for given transaction Id. Also filters based on customer Id so that
132
    Returns list of orders for given transaction Id. Also filters based on customer Id so that
174
    only user who owns the transaction can view its order details.
133
    only user who owns the transaction can view its order details.
175
    
134
    
Line 222... Line 181...
222
     - orderId
181
     - orderId
223
     - customerId
182
     - customerId
224
    """
183
    """
225
    pass
184
    pass
226
 
185
 
-
 
186
  def getAlerts(self, orderId, valid):
-
 
187
    """
-
 
188
    Parameters:
-
 
189
     - orderId
-
 
190
     - valid
-
 
191
    """
-
 
192
    pass
-
 
193
 
-
 
194
  def setAlert(self, orderId, unset, type, comment):
-
 
195
    """
-
 
196
    Parameters:
-
 
197
     - orderId
-
 
198
     - unset
-
 
199
     - type
-
 
200
     - comment
-
 
201
    """
-
 
202
    pass
-
 
203
 
-
 
204
  def getValidOrderCount(self, ):
-
 
205
    """
-
 
206
    Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
207
    """
-
 
208
    pass
-
 
209
 
-
 
210
  def getNoOfCustomersWithSuccessfulTransaction(self, ):
-
 
211
    """
-
 
212
    Returns the number of distinct customers who have done successful transactions
-
 
213
    """
-
 
214
    pass
-
 
215
 
-
 
216
  def getValidOrdersAmountRange(self, ):
-
 
217
    """
-
 
218
    Returns the minimum and maximum amounts of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
219
    List contains two values, first minimum amount and second maximum amount.
-
 
220
    """
-
 
221
    pass
-
 
222
 
-
 
223
  def getValidOrders(self, limit):
-
 
224
    """
-
 
225
    Returns list of Orders in descending order by Order creation date. List is restricted to limit Orders.
-
 
226
    If limit is passed as 0, then all valid Orders are returned.
-
 
227
    
-
 
228
    Parameters:
-
 
229
     - limit
-
 
230
    """
-
 
231
    pass
-
 
232
 
227
  def batchOrders(self, warehouseId):
233
  def batchOrders(self, warehouseId):
228
    """
234
    """
229
    Create a batch of all the pending orders for the given warehouse.
235
    Create a batch of all the pending orders for the given warehouse.
230
    The returned list is orderd by created_timestamp.
236
    The returned list is orderd by created_timestamp.
231
    If there are no pending orders, an empty list is returned.
237
    If there are no pending orders, an empty list is returned.
Line 242... Line 248...
242
    Parameters:
248
    Parameters:
243
     - orderId
249
     - orderId
244
    """
250
    """
245
    pass
251
    pass
246
 
252
 
247
  def markOrdersAsManifested(self, warehouseId, providerId):
253
  def verifyOrder(self, orderId):
248
    """
254
    """
-
 
255
    Marks the given order as SUBMITTED_FOR_PROCESSING and updates the verified
-
 
256
    timestamp. It is intended to be used for COD orders but can be harmlessly
-
 
257
    used for all other orders as well.
-
 
258
    Throws an exception if no such order exists.
-
 
259
    
-
 
260
    Parameters:
-
 
261
     - orderId
-
 
262
    """
-
 
263
    pass
-
 
264
 
-
 
265
  def acceptOrder(self, orderId):
-
 
266
    """
-
 
267
    Marks the given order as ACCEPTED and updates the accepted timestamp. If the
-
 
268
    given order is not a COD order, it also captures the payment if the same has
-
 
269
    not been captured.
-
 
270
    Throws an exception if no such order exists.
-
 
271
    
-
 
272
    Parameters:
-
 
273
     - orderId
-
 
274
    """
-
 
275
    pass
-
 
276
 
-
 
277
  def billOrder(self, orderId):
-
 
278
    """
-
 
279
    Parameters:
-
 
280
     - orderId
-
 
281
    """
-
 
282
    pass
-
 
283
 
-
 
284
  def addBillingDetails(self, orderId, invoice_number, billed_by):
-
 
285
    """
-
 
286
    Add billing details such as the bill number and the biller to the Order.
-
 
287
    Should be used when the bill is issued by a 3rd party and we've to feed
-
 
288
    the information into our system.
-
 
289
    
-
 
290
    Parameters:
-
 
291
     - orderId
-
 
292
     - invoice_number
-
 
293
     - billed_by
-
 
294
    """
-
 
295
    pass
-
 
296
 
-
 
297
  def addJacketNumber(self, orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType):
-
 
298
    """
-
 
299
    Adds jacket number, item number and IMEI no. to the order. Doesn't update
-
 
300
    the IMEI no. if a -1 is supplied.
-
 
301
    Also, it generates an invoice number for the order, marks the order as
-
 
302
    BILLED and sets the billing timestamp.
-
 
303
    It should be used when we are billing the orders ourselves.
-
 
304
    
-
 
305
    Returns false if it doesn't find the order with the given ID.
-
 
306
    
-
 
307
    Parameters:
-
 
308
     - orderId
-
 
309
     - jacketNumber
-
 
310
     - imeiNumber
-
 
311
     - itemNumber
-
 
312
     - billedBy
-
 
313
     - billingType
-
 
314
    """
-
 
315
    pass
-
 
316
 
-
 
317
  def markOrdersAsManifested(self, warehouseId, providerId, cod):
-
 
318
    """
-
 
319
    Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
249
    Marks all BILLED orders for a warehouse and a provider as SHIPPED_FROM_WH
320
    given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
250
    
321
    
251
    Parameters:
322
    Parameters:
252
     - warehouseId
323
     - warehouseId
253
     - providerId
324
     - providerId
-
 
325
     - cod
254
    """
326
    """
255
    pass
327
    pass
256
 
328
 
257
  def markOrdersAsPickedUp(self, providerId, pickupDetails):
329
  def markOrdersAsPickedUp(self, providerId, pickupDetails):
258
    """
330
    """
Line 310... Line 382...
310
     - providerId
382
     - providerId
311
     - warehouseId
383
     - warehouseId
312
    """
384
    """
313
    pass
385
    pass
314
 
386
 
315
  def getAlerts(self, orderId, valid):
-
 
316
    """
-
 
317
    Parameters:
-
 
318
     - orderId
-
 
319
     - valid
-
 
320
    """
-
 
321
    pass
-
 
322
 
-
 
323
  def setAlert(self, orderId, unset, type, comment):
-
 
324
    """
-
 
325
    Parameters:
-
 
326
     - orderId
-
 
327
     - unset
-
 
328
     - type
-
 
329
     - comment
-
 
330
    """
-
 
331
    pass
-
 
332
 
-
 
333
  def getValidOrderCount(self, ):
-
 
334
    """
-
 
335
    Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
336
    """
-
 
337
    pass
-
 
338
 
-
 
339
  def getNoOfCustomersWithSuccessfulTransaction(self, ):
-
 
340
    """
-
 
341
    Returns the number of distinct customers who have done successful transactions
-
 
342
    """
-
 
343
    pass
-
 
344
 
-
 
345
  def getValidOrdersAmountRange(self, ):
-
 
346
    """
-
 
347
    Returns the minimum and maximum amounts of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
348
    List contains two values, first minimum amount and second maximum amount.
-
 
349
    """
-
 
350
    pass
-
 
351
 
-
 
352
  def getValidOrders(self, limit):
-
 
353
    """
-
 
354
    Returns list of Orders in descending order by Order creation date. List is restricted to limit Orders.
-
 
355
    If limit is passed as 0, then all valid Orders are returned.
-
 
356
    
-
 
357
    Parameters:
-
 
358
     - limit
-
 
359
    """
-
 
360
    pass
-
 
361
 
-
 
362
  def toggleDOAFlag(self, orderId):
387
  def toggleDOAFlag(self, orderId):
363
    """
388
    """
364
    Toggle the DOA flag of an order. This should be used to flag an order for follow-up and unflag it when the follow-up is complete.
389
    Toggle the DOA flag of an order. This should be used to flag an order for follow-up and unflag it when the follow-up is complete.
365
    Returns the final flag status.
390
    Returns the final flag status.
366
    Throws an exception if the order with the given id couldn't be found or if the order status is not DELVIERY_SUCCESS.
391
    Throws an exception if the order with the given id couldn't be found or if the order status is not DELVIERY_SUCCESS.
Line 967... Line 992...
967
      return result.success
992
      return result.success
968
    if result.ex != None:
993
    if result.ex != None:
969
      raise result.ex
994
      raise result.ex
970
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeOrderStatus failed: unknown result");
995
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeOrderStatus failed: unknown result");
971
 
996
 
972
  def addBillingDetails(self, orderId, invoice_number, billed_by):
-
 
973
    """
-
 
974
    Add billing details such as the bill number and the biller to the Order.
-
 
975
    
-
 
976
    Parameters:
-
 
977
     - orderId
-
 
978
     - invoice_number
-
 
979
     - billed_by
-
 
980
    """
-
 
981
    self.send_addBillingDetails(orderId, invoice_number, billed_by)
-
 
982
    return self.recv_addBillingDetails()
-
 
983
 
-
 
984
  def send_addBillingDetails(self, orderId, invoice_number, billed_by):
-
 
985
    self._oprot.writeMessageBegin('addBillingDetails', TMessageType.CALL, self._seqid)
-
 
986
    args = addBillingDetails_args()
-
 
987
    args.orderId = orderId
-
 
988
    args.invoice_number = invoice_number
-
 
989
    args.billed_by = billed_by
-
 
990
    args.write(self._oprot)
-
 
991
    self._oprot.writeMessageEnd()
-
 
992
    self._oprot.trans.flush()
-
 
993
 
-
 
994
  def recv_addBillingDetails(self, ):
-
 
995
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
996
    if mtype == TMessageType.EXCEPTION:
-
 
997
      x = TApplicationException()
-
 
998
      x.read(self._iprot)
-
 
999
      self._iprot.readMessageEnd()
-
 
1000
      raise x
-
 
1001
    result = addBillingDetails_result()
-
 
1002
    result.read(self._iprot)
-
 
1003
    self._iprot.readMessageEnd()
-
 
1004
    if result.success != None:
-
 
1005
      return result.success
-
 
1006
    if result.ex != None:
-
 
1007
      raise result.ex
-
 
1008
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBillingDetails failed: unknown result");
-
 
1009
 
-
 
1010
  def addJacketNumber(self, orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType):
-
 
1011
    """
-
 
1012
    Adds jacket number and IMEI no. to the order. Doesn't update the IMEI no. if a -1 is supplied.
-
 
1013
    Also marks the order as billed and sets the billing timestamp.
-
 
1014
    Return false if it doesn't find the order with the given ID.
-
 
1015
    
-
 
1016
    Parameters:
-
 
1017
     - orderId
-
 
1018
     - jacketNumber
-
 
1019
     - imeiNumber
-
 
1020
     - itemNumber
-
 
1021
     - billedBy
-
 
1022
     - billingType
-
 
1023
    """
-
 
1024
    self.send_addJacketNumber(orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType)
-
 
1025
    return self.recv_addJacketNumber()
-
 
1026
 
-
 
1027
  def send_addJacketNumber(self, orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType):
-
 
1028
    self._oprot.writeMessageBegin('addJacketNumber', TMessageType.CALL, self._seqid)
-
 
1029
    args = addJacketNumber_args()
-
 
1030
    args.orderId = orderId
-
 
1031
    args.jacketNumber = jacketNumber
-
 
1032
    args.imeiNumber = imeiNumber
-
 
1033
    args.itemNumber = itemNumber
-
 
1034
    args.billedBy = billedBy
-
 
1035
    args.billingType = billingType
-
 
1036
    args.write(self._oprot)
-
 
1037
    self._oprot.writeMessageEnd()
-
 
1038
    self._oprot.trans.flush()
-
 
1039
 
-
 
1040
  def recv_addJacketNumber(self, ):
-
 
1041
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1042
    if mtype == TMessageType.EXCEPTION:
-
 
1043
      x = TApplicationException()
-
 
1044
      x.read(self._iprot)
-
 
1045
      self._iprot.readMessageEnd()
-
 
1046
      raise x
-
 
1047
    result = addJacketNumber_result()
-
 
1048
    result.read(self._iprot)
-
 
1049
    self._iprot.readMessageEnd()
-
 
1050
    if result.success != None:
-
 
1051
      return result.success
-
 
1052
    if result.ex != None:
-
 
1053
      raise result.ex
-
 
1054
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addJacketNumber failed: unknown result");
-
 
1055
 
-
 
1056
  def acceptOrder(self, orderId):
-
 
1057
    """
-
 
1058
    Parameters:
-
 
1059
     - orderId
-
 
1060
    """
-
 
1061
    self.send_acceptOrder(orderId)
-
 
1062
    return self.recv_acceptOrder()
-
 
1063
 
-
 
1064
  def send_acceptOrder(self, orderId):
-
 
1065
    self._oprot.writeMessageBegin('acceptOrder', TMessageType.CALL, self._seqid)
-
 
1066
    args = acceptOrder_args()
-
 
1067
    args.orderId = orderId
-
 
1068
    args.write(self._oprot)
-
 
1069
    self._oprot.writeMessageEnd()
-
 
1070
    self._oprot.trans.flush()
-
 
1071
 
-
 
1072
  def recv_acceptOrder(self, ):
-
 
1073
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1074
    if mtype == TMessageType.EXCEPTION:
-
 
1075
      x = TApplicationException()
-
 
1076
      x.read(self._iprot)
-
 
1077
      self._iprot.readMessageEnd()
-
 
1078
      raise x
-
 
1079
    result = acceptOrder_result()
-
 
1080
    result.read(self._iprot)
-
 
1081
    self._iprot.readMessageEnd()
-
 
1082
    if result.success != None:
-
 
1083
      return result.success
-
 
1084
    if result.ex != None:
-
 
1085
      raise result.ex
-
 
1086
    raise TApplicationException(TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
-
 
1087
 
-
 
1088
  def billOrder(self, orderId):
-
 
1089
    """
-
 
1090
    Parameters:
-
 
1091
     - orderId
-
 
1092
    """
-
 
1093
    self.send_billOrder(orderId)
-
 
1094
    return self.recv_billOrder()
-
 
1095
 
-
 
1096
  def send_billOrder(self, orderId):
-
 
1097
    self._oprot.writeMessageBegin('billOrder', TMessageType.CALL, self._seqid)
-
 
1098
    args = billOrder_args()
-
 
1099
    args.orderId = orderId
-
 
1100
    args.write(self._oprot)
-
 
1101
    self._oprot.writeMessageEnd()
-
 
1102
    self._oprot.trans.flush()
-
 
1103
 
-
 
1104
  def recv_billOrder(self, ):
-
 
1105
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1106
    if mtype == TMessageType.EXCEPTION:
-
 
1107
      x = TApplicationException()
-
 
1108
      x.read(self._iprot)
-
 
1109
      self._iprot.readMessageEnd()
-
 
1110
      raise x
-
 
1111
    result = billOrder_result()
-
 
1112
    result.read(self._iprot)
-
 
1113
    self._iprot.readMessageEnd()
-
 
1114
    if result.success != None:
-
 
1115
      return result.success
-
 
1116
    if result.ex != None:
-
 
1117
      raise result.ex
-
 
1118
    raise TApplicationException(TApplicationException.MISSING_RESULT, "billOrder failed: unknown result");
-
 
1119
 
-
 
1120
  def getOrdersForTransaction(self, transactionId, customerId):
997
  def getOrdersForTransaction(self, transactionId, customerId):
1121
    """
998
    """
1122
    Returns list of orders for given transaction Id. Also filters based on customer Id so that
999
    Returns list of orders for given transaction Id. Also filters based on customer Id so that
1123
    only user who owns the transaction can view its order details.
1000
    only user who owns the transaction can view its order details.
1124
    
1001
    
Line 1326... Line 1203...
1326
      return result.success
1203
      return result.success
1327
    if result.ex != None:
1204
    if result.ex != None:
1328
      raise result.ex
1205
      raise result.ex
1329
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
1206
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
1330
 
1207
 
-
 
1208
  def getAlerts(self, orderId, valid):
-
 
1209
    """
-
 
1210
    Parameters:
-
 
1211
     - orderId
-
 
1212
     - valid
-
 
1213
    """
-
 
1214
    self.send_getAlerts(orderId, valid)
-
 
1215
    return self.recv_getAlerts()
-
 
1216
 
-
 
1217
  def send_getAlerts(self, orderId, valid):
-
 
1218
    self._oprot.writeMessageBegin('getAlerts', TMessageType.CALL, self._seqid)
-
 
1219
    args = getAlerts_args()
-
 
1220
    args.orderId = orderId
-
 
1221
    args.valid = valid
-
 
1222
    args.write(self._oprot)
-
 
1223
    self._oprot.writeMessageEnd()
-
 
1224
    self._oprot.trans.flush()
-
 
1225
 
-
 
1226
  def recv_getAlerts(self, ):
-
 
1227
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1228
    if mtype == TMessageType.EXCEPTION:
-
 
1229
      x = TApplicationException()
-
 
1230
      x.read(self._iprot)
-
 
1231
      self._iprot.readMessageEnd()
-
 
1232
      raise x
-
 
1233
    result = getAlerts_result()
-
 
1234
    result.read(self._iprot)
-
 
1235
    self._iprot.readMessageEnd()
-
 
1236
    if result.success != None:
-
 
1237
      return result.success
-
 
1238
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
-
 
1239
 
-
 
1240
  def setAlert(self, orderId, unset, type, comment):
-
 
1241
    """
-
 
1242
    Parameters:
-
 
1243
     - orderId
-
 
1244
     - unset
-
 
1245
     - type
-
 
1246
     - comment
-
 
1247
    """
-
 
1248
    self.send_setAlert(orderId, unset, type, comment)
-
 
1249
    self.recv_setAlert()
-
 
1250
 
-
 
1251
  def send_setAlert(self, orderId, unset, type, comment):
-
 
1252
    self._oprot.writeMessageBegin('setAlert', TMessageType.CALL, self._seqid)
-
 
1253
    args = setAlert_args()
-
 
1254
    args.orderId = orderId
-
 
1255
    args.unset = unset
-
 
1256
    args.type = type
-
 
1257
    args.comment = comment
-
 
1258
    args.write(self._oprot)
-
 
1259
    self._oprot.writeMessageEnd()
-
 
1260
    self._oprot.trans.flush()
-
 
1261
 
-
 
1262
  def recv_setAlert(self, ):
-
 
1263
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1264
    if mtype == TMessageType.EXCEPTION:
-
 
1265
      x = TApplicationException()
-
 
1266
      x.read(self._iprot)
-
 
1267
      self._iprot.readMessageEnd()
-
 
1268
      raise x
-
 
1269
    result = setAlert_result()
-
 
1270
    result.read(self._iprot)
-
 
1271
    self._iprot.readMessageEnd()
-
 
1272
    return
-
 
1273
 
-
 
1274
  def getValidOrderCount(self, ):
-
 
1275
    """
-
 
1276
    Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
1277
    """
-
 
1278
    self.send_getValidOrderCount()
-
 
1279
    return self.recv_getValidOrderCount()
-
 
1280
 
-
 
1281
  def send_getValidOrderCount(self, ):
-
 
1282
    self._oprot.writeMessageBegin('getValidOrderCount', TMessageType.CALL, self._seqid)
-
 
1283
    args = getValidOrderCount_args()
-
 
1284
    args.write(self._oprot)
-
 
1285
    self._oprot.writeMessageEnd()
-
 
1286
    self._oprot.trans.flush()
-
 
1287
 
-
 
1288
  def recv_getValidOrderCount(self, ):
-
 
1289
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1290
    if mtype == TMessageType.EXCEPTION:
-
 
1291
      x = TApplicationException()
-
 
1292
      x.read(self._iprot)
-
 
1293
      self._iprot.readMessageEnd()
-
 
1294
      raise x
-
 
1295
    result = getValidOrderCount_result()
-
 
1296
    result.read(self._iprot)
-
 
1297
    self._iprot.readMessageEnd()
-
 
1298
    if result.success != None:
-
 
1299
      return result.success
-
 
1300
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");
-
 
1301
 
-
 
1302
  def getNoOfCustomersWithSuccessfulTransaction(self, ):
-
 
1303
    """
-
 
1304
    Returns the number of distinct customers who have done successful transactions
-
 
1305
    """
-
 
1306
    self.send_getNoOfCustomersWithSuccessfulTransaction()
-
 
1307
    return self.recv_getNoOfCustomersWithSuccessfulTransaction()
-
 
1308
 
-
 
1309
  def send_getNoOfCustomersWithSuccessfulTransaction(self, ):
-
 
1310
    self._oprot.writeMessageBegin('getNoOfCustomersWithSuccessfulTransaction', TMessageType.CALL, self._seqid)
-
 
1311
    args = getNoOfCustomersWithSuccessfulTransaction_args()
-
 
1312
    args.write(self._oprot)
-
 
1313
    self._oprot.writeMessageEnd()
-
 
1314
    self._oprot.trans.flush()
-
 
1315
 
-
 
1316
  def recv_getNoOfCustomersWithSuccessfulTransaction(self, ):
-
 
1317
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1318
    if mtype == TMessageType.EXCEPTION:
-
 
1319
      x = TApplicationException()
-
 
1320
      x.read(self._iprot)
-
 
1321
      self._iprot.readMessageEnd()
-
 
1322
      raise x
-
 
1323
    result = getNoOfCustomersWithSuccessfulTransaction_result()
-
 
1324
    result.read(self._iprot)
-
 
1325
    self._iprot.readMessageEnd()
-
 
1326
    if result.success != None:
-
 
1327
      return result.success
-
 
1328
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNoOfCustomersWithSuccessfulTransaction failed: unknown result");
-
 
1329
 
-
 
1330
  def getValidOrdersAmountRange(self, ):
-
 
1331
    """
-
 
1332
    Returns the minimum and maximum amounts of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
1333
    List contains two values, first minimum amount and second maximum amount.
-
 
1334
    """
-
 
1335
    self.send_getValidOrdersAmountRange()
-
 
1336
    return self.recv_getValidOrdersAmountRange()
-
 
1337
 
-
 
1338
  def send_getValidOrdersAmountRange(self, ):
-
 
1339
    self._oprot.writeMessageBegin('getValidOrdersAmountRange', TMessageType.CALL, self._seqid)
-
 
1340
    args = getValidOrdersAmountRange_args()
-
 
1341
    args.write(self._oprot)
-
 
1342
    self._oprot.writeMessageEnd()
-
 
1343
    self._oprot.trans.flush()
-
 
1344
 
-
 
1345
  def recv_getValidOrdersAmountRange(self, ):
-
 
1346
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1347
    if mtype == TMessageType.EXCEPTION:
-
 
1348
      x = TApplicationException()
-
 
1349
      x.read(self._iprot)
-
 
1350
      self._iprot.readMessageEnd()
-
 
1351
      raise x
-
 
1352
    result = getValidOrdersAmountRange_result()
-
 
1353
    result.read(self._iprot)
-
 
1354
    self._iprot.readMessageEnd()
-
 
1355
    if result.success != None:
-
 
1356
      return result.success
-
 
1357
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrdersAmountRange failed: unknown result");
-
 
1358
 
-
 
1359
  def getValidOrders(self, limit):
-
 
1360
    """
-
 
1361
    Returns list of Orders in descending order by Order creation date. List is restricted to limit Orders.
-
 
1362
    If limit is passed as 0, then all valid Orders are returned.
-
 
1363
    
-
 
1364
    Parameters:
-
 
1365
     - limit
-
 
1366
    """
-
 
1367
    self.send_getValidOrders(limit)
-
 
1368
    return self.recv_getValidOrders()
-
 
1369
 
-
 
1370
  def send_getValidOrders(self, limit):
-
 
1371
    self._oprot.writeMessageBegin('getValidOrders', TMessageType.CALL, self._seqid)
-
 
1372
    args = getValidOrders_args()
-
 
1373
    args.limit = limit
-
 
1374
    args.write(self._oprot)
-
 
1375
    self._oprot.writeMessageEnd()
-
 
1376
    self._oprot.trans.flush()
-
 
1377
 
-
 
1378
  def recv_getValidOrders(self, ):
-
 
1379
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
1380
    if mtype == TMessageType.EXCEPTION:
-
 
1381
      x = TApplicationException()
-
 
1382
      x.read(self._iprot)
-
 
1383
      self._iprot.readMessageEnd()
-
 
1384
      raise x
-
 
1385
    result = getValidOrders_result()
-
 
1386
    result.read(self._iprot)
-
 
1387
    self._iprot.readMessageEnd()
-
 
1388
    if result.success != None:
-
 
1389
      return result.success
-
 
1390
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrders failed: unknown result");
-
 
1391
 
1331
  def batchOrders(self, warehouseId):
1392
  def batchOrders(self, warehouseId):
1332
    """
1393
    """
1333
    Create a batch of all the pending orders for the given warehouse.
1394
    Create a batch of all the pending orders for the given warehouse.
1334
    The returned list is orderd by created_timestamp.
1395
    The returned list is orderd by created_timestamp.
1335
    If there are no pending orders, an empty list is returned.
1396
    If there are no pending orders, an empty list is returned.
Line 1396... Line 1457...
1396
      return result.success
1457
      return result.success
1397
    if result.ex != None:
1458
    if result.ex != None:
1398
      raise result.ex
1459
      raise result.ex
1399
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderAsOutOfStock failed: unknown result");
1460
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderAsOutOfStock failed: unknown result");
1400
 
1461
 
1401
  def markOrdersAsManifested(self, warehouseId, providerId):
1462
  def verifyOrder(self, orderId):
1402
    """
1463
    """
1403
    Marks all BILLED orders for a warehouse and a provider as SHIPPED_FROM_WH
1464
    Marks the given order as SUBMITTED_FOR_PROCESSING and updates the verified
-
 
1465
    timestamp. It is intended to be used for COD orders but can be harmlessly
-
 
1466
    used for all other orders as well.
-
 
1467
    Throws an exception if no such order exists.
1404
    
1468
    
1405
    Parameters:
1469
    Parameters:
1406
     - warehouseId
-
 
1407
     - providerId
1470
     - orderId
1408
    """
1471
    """
1409
    self.send_markOrdersAsManifested(warehouseId, providerId)
1472
    self.send_verifyOrder(orderId)
1410
    return self.recv_markOrdersAsManifested()
1473
    return self.recv_verifyOrder()
1411
 
1474
 
1412
  def send_markOrdersAsManifested(self, warehouseId, providerId):
1475
  def send_verifyOrder(self, orderId):
1413
    self._oprot.writeMessageBegin('markOrdersAsManifested', TMessageType.CALL, self._seqid)
1476
    self._oprot.writeMessageBegin('verifyOrder', TMessageType.CALL, self._seqid)
1414
    args = markOrdersAsManifested_args()
1477
    args = verifyOrder_args()
1415
    args.warehouseId = warehouseId
-
 
1416
    args.providerId = providerId
1478
    args.orderId = orderId
1417
    args.write(self._oprot)
1479
    args.write(self._oprot)
1418
    self._oprot.writeMessageEnd()
1480
    self._oprot.writeMessageEnd()
1419
    self._oprot.trans.flush()
1481
    self._oprot.trans.flush()
1420
 
1482
 
1421
  def recv_markOrdersAsManifested(self, ):
1483
  def recv_verifyOrder(self, ):
1422
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1484
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1423
    if mtype == TMessageType.EXCEPTION:
1485
    if mtype == TMessageType.EXCEPTION:
1424
      x = TApplicationException()
1486
      x = TApplicationException()
1425
      x.read(self._iprot)
1487
      x.read(self._iprot)
1426
      self._iprot.readMessageEnd()
1488
      self._iprot.readMessageEnd()
1427
      raise x
1489
      raise x
1428
    result = markOrdersAsManifested_result()
1490
    result = verifyOrder_result()
1429
    result.read(self._iprot)
1491
    result.read(self._iprot)
1430
    self._iprot.readMessageEnd()
1492
    self._iprot.readMessageEnd()
1431
    if result.success != None:
1493
    if result.success != None:
1432
      return result.success
1494
      return result.success
1433
    if result.ex != None:
1495
    if result.ex != None:
1434
      raise result.ex
1496
      raise result.ex
1435
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsManifested failed: unknown result");
1497
    raise TApplicationException(TApplicationException.MISSING_RESULT, "verifyOrder failed: unknown result");
1436
 
1498
 
1437
  def markOrdersAsPickedUp(self, providerId, pickupDetails):
1499
  def acceptOrder(self, orderId):
1438
    """
1500
    """
1439
    Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
1501
    Marks the given order as ACCEPTED and updates the accepted timestamp. If the
1440
    Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.
1502
    given order is not a COD order, it also captures the payment if the same has
-
 
1503
    not been captured.
1441
    Raises an exception if we encounter report for an AWB number that we did not ship.
1504
    Throws an exception if no such order exists.
1442
    
1505
    
1443
    Parameters:
1506
    Parameters:
1444
     - providerId
1507
     - orderId
1445
     - pickupDetails
-
 
1446
    """
1508
    """
1447
    self.send_markOrdersAsPickedUp(providerId, pickupDetails)
1509
    self.send_acceptOrder(orderId)
1448
    return self.recv_markOrdersAsPickedUp()
1510
    return self.recv_acceptOrder()
1449
 
1511
 
1450
  def send_markOrdersAsPickedUp(self, providerId, pickupDetails):
1512
  def send_acceptOrder(self, orderId):
1451
    self._oprot.writeMessageBegin('markOrdersAsPickedUp', TMessageType.CALL, self._seqid)
1513
    self._oprot.writeMessageBegin('acceptOrder', TMessageType.CALL, self._seqid)
1452
    args = markOrdersAsPickedUp_args()
1514
    args = acceptOrder_args()
1453
    args.providerId = providerId
1515
    args.orderId = orderId
1454
    args.pickupDetails = pickupDetails
-
 
1455
    args.write(self._oprot)
1516
    args.write(self._oprot)
1456
    self._oprot.writeMessageEnd()
1517
    self._oprot.writeMessageEnd()
1457
    self._oprot.trans.flush()
1518
    self._oprot.trans.flush()
1458
 
1519
 
1459
  def recv_markOrdersAsPickedUp(self, ):
1520
  def recv_acceptOrder(self, ):
1460
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1521
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1461
    if mtype == TMessageType.EXCEPTION:
1522
    if mtype == TMessageType.EXCEPTION:
1462
      x = TApplicationException()
1523
      x = TApplicationException()
1463
      x.read(self._iprot)
1524
      x.read(self._iprot)
1464
      self._iprot.readMessageEnd()
1525
      self._iprot.readMessageEnd()
1465
      raise x
1526
      raise x
1466
    result = markOrdersAsPickedUp_result()
1527
    result = acceptOrder_result()
1467
    result.read(self._iprot)
1528
    result.read(self._iprot)
1468
    self._iprot.readMessageEnd()
1529
    self._iprot.readMessageEnd()
1469
    if result.success != None:
1530
    if result.success != None:
1470
      return result.success
1531
      return result.success
1471
    if result.ex != None:
1532
    if result.ex != None:
1472
      raise result.ex
1533
      raise result.ex
1473
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsPickedUp failed: unknown result");
1534
    raise TApplicationException(TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
1474
 
1535
 
1475
  def markOrdersAsDelivered(self, providerId, deliveredOrders):
1536
  def billOrder(self, orderId):
1476
    """
1537
    """
1477
    Marks all orders with AWBs in the given map as delivered. Also sets the delivery timestamp and
-
 
1478
    the name of the receiver.
-
 
1479
    Raises an exception if we encounter report for an AWB number that we did not ship.
-
 
1480
    
-
 
1481
    Parameters:
1538
    Parameters:
1482
     - providerId
1539
     - orderId
1483
     - deliveredOrders
-
 
1484
    """
1540
    """
1485
    self.send_markOrdersAsDelivered(providerId, deliveredOrders)
1541
    self.send_billOrder(orderId)
1486
    self.recv_markOrdersAsDelivered()
1542
    return self.recv_billOrder()
1487
 
1543
 
1488
  def send_markOrdersAsDelivered(self, providerId, deliveredOrders):
1544
  def send_billOrder(self, orderId):
1489
    self._oprot.writeMessageBegin('markOrdersAsDelivered', TMessageType.CALL, self._seqid)
1545
    self._oprot.writeMessageBegin('billOrder', TMessageType.CALL, self._seqid)
1490
    args = markOrdersAsDelivered_args()
1546
    args = billOrder_args()
1491
    args.providerId = providerId
1547
    args.orderId = orderId
1492
    args.deliveredOrders = deliveredOrders
-
 
1493
    args.write(self._oprot)
1548
    args.write(self._oprot)
1494
    self._oprot.writeMessageEnd()
1549
    self._oprot.writeMessageEnd()
1495
    self._oprot.trans.flush()
1550
    self._oprot.trans.flush()
1496
 
1551
 
1497
  def recv_markOrdersAsDelivered(self, ):
1552
  def recv_billOrder(self, ):
1498
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1553
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1499
    if mtype == TMessageType.EXCEPTION:
1554
    if mtype == TMessageType.EXCEPTION:
1500
      x = TApplicationException()
1555
      x = TApplicationException()
1501
      x.read(self._iprot)
1556
      x.read(self._iprot)
1502
      self._iprot.readMessageEnd()
1557
      self._iprot.readMessageEnd()
1503
      raise x
1558
      raise x
1504
    result = markOrdersAsDelivered_result()
1559
    result = billOrder_result()
1505
    result.read(self._iprot)
1560
    result.read(self._iprot)
1506
    self._iprot.readMessageEnd()
1561
    self._iprot.readMessageEnd()
-
 
1562
    if result.success != None:
-
 
1563
      return result.success
1507
    if result.ex != None:
1564
    if result.ex != None:
1508
      raise result.ex
1565
      raise result.ex
1509
    return
-
 
-
 
1566
    raise TApplicationException(TApplicationException.MISSING_RESULT, "billOrder failed: unknown result");
1510
 
1567
 
1511
  def markOrdersAsFailed(self, providerId, returnedOrders):
1568
  def addBillingDetails(self, orderId, invoice_number, billed_by):
1512
    """
1569
    """
1513
    Mark all orders with AWBs in the given map as failed. Also sets the delivery timestamp.
1570
    Add billing details such as the bill number and the biller to the Order.
1514
    Raises an exception if we encounter report for an AWB number that we did not ship.
1571
    Should be used when the bill is issued by a 3rd party and we've to feed
-
 
1572
    the information into our system.
1515
    
1573
    
1516
    Parameters:
1574
    Parameters:
1517
     - providerId
1575
     - orderId
1518
     - returnedOrders
1576
     - invoice_number
-
 
1577
     - billed_by
1519
    """
1578
    """
1520
    self.send_markOrdersAsFailed(providerId, returnedOrders)
1579
    self.send_addBillingDetails(orderId, invoice_number, billed_by)
1521
    self.recv_markOrdersAsFailed()
1580
    return self.recv_addBillingDetails()
1522
 
1581
 
1523
  def send_markOrdersAsFailed(self, providerId, returnedOrders):
1582
  def send_addBillingDetails(self, orderId, invoice_number, billed_by):
1524
    self._oprot.writeMessageBegin('markOrdersAsFailed', TMessageType.CALL, self._seqid)
1583
    self._oprot.writeMessageBegin('addBillingDetails', TMessageType.CALL, self._seqid)
1525
    args = markOrdersAsFailed_args()
1584
    args = addBillingDetails_args()
1526
    args.providerId = providerId
1585
    args.orderId = orderId
1527
    args.returnedOrders = returnedOrders
1586
    args.invoice_number = invoice_number
-
 
1587
    args.billed_by = billed_by
1528
    args.write(self._oprot)
1588
    args.write(self._oprot)
1529
    self._oprot.writeMessageEnd()
1589
    self._oprot.writeMessageEnd()
1530
    self._oprot.trans.flush()
1590
    self._oprot.trans.flush()
1531
 
1591
 
1532
  def recv_markOrdersAsFailed(self, ):
1592
  def recv_addBillingDetails(self, ):
1533
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1593
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1534
    if mtype == TMessageType.EXCEPTION:
1594
    if mtype == TMessageType.EXCEPTION:
1535
      x = TApplicationException()
1595
      x = TApplicationException()
1536
      x.read(self._iprot)
1596
      x.read(self._iprot)
1537
      self._iprot.readMessageEnd()
1597
      self._iprot.readMessageEnd()
1538
      raise x
1598
      raise x
1539
    result = markOrdersAsFailed_result()
1599
    result = addBillingDetails_result()
1540
    result.read(self._iprot)
1600
    result.read(self._iprot)
1541
    self._iprot.readMessageEnd()
1601
    self._iprot.readMessageEnd()
-
 
1602
    if result.success != None:
-
 
1603
      return result.success
1542
    if result.ex != None:
1604
    if result.ex != None:
1543
      raise result.ex
1605
      raise result.ex
1544
    return
-
 
-
 
1606
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBillingDetails failed: unknown result");
1545
 
1607
 
1546
  def updateNonDeliveryReason(self, providerId, undeliveredOrders):
1608
  def addJacketNumber(self, orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType):
1547
    """
1609
    """
-
 
1610
    Adds jacket number, item number and IMEI no. to the order. Doesn't update
-
 
1611
    the IMEI no. if a -1 is supplied.
1548
    Update the status description of orders whose AWB numbers are keys of the Map.
1612
    Also, it generates an invoice number for the order, marks the order as
-
 
1613
    BILLED and sets the billing timestamp.
-
 
1614
    It should be used when we are billing the orders ourselves.
-
 
1615
    
-
 
1616
    Returns false if it doesn't find the order with the given ID.
1549
    
1617
    
1550
    Parameters:
1618
    Parameters:
1551
     - providerId
1619
     - orderId
-
 
1620
     - jacketNumber
1552
     - undeliveredOrders
1621
     - imeiNumber
-
 
1622
     - itemNumber
-
 
1623
     - billedBy
-
 
1624
     - billingType
1553
    """
1625
    """
1554
    self.send_updateNonDeliveryReason(providerId, undeliveredOrders)
1626
    self.send_addJacketNumber(orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType)
1555
    self.recv_updateNonDeliveryReason()
1627
    return self.recv_addJacketNumber()
1556
 
1628
 
1557
  def send_updateNonDeliveryReason(self, providerId, undeliveredOrders):
1629
  def send_addJacketNumber(self, orderId, jacketNumber, imeiNumber, itemNumber, billedBy, billingType):
1558
    self._oprot.writeMessageBegin('updateNonDeliveryReason', TMessageType.CALL, self._seqid)
1630
    self._oprot.writeMessageBegin('addJacketNumber', TMessageType.CALL, self._seqid)
1559
    args = updateNonDeliveryReason_args()
1631
    args = addJacketNumber_args()
1560
    args.providerId = providerId
1632
    args.orderId = orderId
-
 
1633
    args.jacketNumber = jacketNumber
-
 
1634
    args.imeiNumber = imeiNumber
1561
    args.undeliveredOrders = undeliveredOrders
1635
    args.itemNumber = itemNumber
-
 
1636
    args.billedBy = billedBy
-
 
1637
    args.billingType = billingType
1562
    args.write(self._oprot)
1638
    args.write(self._oprot)
1563
    self._oprot.writeMessageEnd()
1639
    self._oprot.writeMessageEnd()
1564
    self._oprot.trans.flush()
1640
    self._oprot.trans.flush()
1565
 
1641
 
1566
  def recv_updateNonDeliveryReason(self, ):
1642
  def recv_addJacketNumber(self, ):
1567
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1643
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1568
    if mtype == TMessageType.EXCEPTION:
1644
    if mtype == TMessageType.EXCEPTION:
1569
      x = TApplicationException()
1645
      x = TApplicationException()
1570
      x.read(self._iprot)
1646
      x.read(self._iprot)
1571
      self._iprot.readMessageEnd()
1647
      self._iprot.readMessageEnd()
1572
      raise x
1648
      raise x
1573
    result = updateNonDeliveryReason_result()
1649
    result = addJacketNumber_result()
1574
    result.read(self._iprot)
1650
    result.read(self._iprot)
1575
    self._iprot.readMessageEnd()
1651
    self._iprot.readMessageEnd()
-
 
1652
    if result.success != None:
-
 
1653
      return result.success
1576
    if result.ex != None:
1654
    if result.ex != None:
1577
      raise result.ex
1655
      raise result.ex
1578
    return
-
 
-
 
1656
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addJacketNumber failed: unknown result");
1579
 
1657
 
1580
  def getUndeliveredOrders(self, providerId, warehouseId):
1658
  def markOrdersAsManifested(self, warehouseId, providerId, cod):
1581
    """
1659
    """
1582
    Returns the list of orders whose delivery time has passed but have not been
1660
    Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
1583
    delivered yet for the given provider and warehouse. To get a complete list of
1661
    given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
1584
    undelivered orders, pass them as -1.
-
 
1585
    Returns an empty list if no such orders exist.
-
 
1586
    
1662
    
1587
    Parameters:
1663
    Parameters:
1588
     - providerId
-
 
1589
     - warehouseId
1664
     - warehouseId
-
 
1665
     - providerId
-
 
1666
     - cod
1590
    """
1667
    """
1591
    self.send_getUndeliveredOrders(providerId, warehouseId)
1668
    self.send_markOrdersAsManifested(warehouseId, providerId, cod)
1592
    return self.recv_getUndeliveredOrders()
1669
    return self.recv_markOrdersAsManifested()
1593
 
1670
 
1594
  def send_getUndeliveredOrders(self, providerId, warehouseId):
1671
  def send_markOrdersAsManifested(self, warehouseId, providerId, cod):
1595
    self._oprot.writeMessageBegin('getUndeliveredOrders', TMessageType.CALL, self._seqid)
1672
    self._oprot.writeMessageBegin('markOrdersAsManifested', TMessageType.CALL, self._seqid)
1596
    args = getUndeliveredOrders_args()
1673
    args = markOrdersAsManifested_args()
1597
    args.providerId = providerId
-
 
1598
    args.warehouseId = warehouseId
1674
    args.warehouseId = warehouseId
-
 
1675
    args.providerId = providerId
-
 
1676
    args.cod = cod
1599
    args.write(self._oprot)
1677
    args.write(self._oprot)
1600
    self._oprot.writeMessageEnd()
1678
    self._oprot.writeMessageEnd()
1601
    self._oprot.trans.flush()
1679
    self._oprot.trans.flush()
1602
 
1680
 
1603
  def recv_getUndeliveredOrders(self, ):
1681
  def recv_markOrdersAsManifested(self, ):
1604
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1682
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1605
    if mtype == TMessageType.EXCEPTION:
1683
    if mtype == TMessageType.EXCEPTION:
1606
      x = TApplicationException()
1684
      x = TApplicationException()
1607
      x.read(self._iprot)
1685
      x.read(self._iprot)
1608
      self._iprot.readMessageEnd()
1686
      self._iprot.readMessageEnd()
1609
      raise x
1687
      raise x
1610
    result = getUndeliveredOrders_result()
1688
    result = markOrdersAsManifested_result()
1611
    result.read(self._iprot)
1689
    result.read(self._iprot)
1612
    self._iprot.readMessageEnd()
1690
    self._iprot.readMessageEnd()
1613
    if result.success != None:
1691
    if result.success != None:
1614
      return result.success
1692
      return result.success
-
 
1693
    if result.ex != None:
-
 
1694
      raise result.ex
1615
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUndeliveredOrders failed: unknown result");
1695
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsManifested failed: unknown result");
1616
 
1696
 
1617
  def getAlerts(self, orderId, valid):
1697
  def markOrdersAsPickedUp(self, providerId, pickupDetails):
1618
    """
1698
    """
-
 
1699
    Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
-
 
1700
    Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.
-
 
1701
    Raises an exception if we encounter report for an AWB number that we did not ship.
-
 
1702
    
1619
    Parameters:
1703
    Parameters:
1620
     - orderId
1704
     - providerId
1621
     - valid
1705
     - pickupDetails
1622
    """
1706
    """
1623
    self.send_getAlerts(orderId, valid)
1707
    self.send_markOrdersAsPickedUp(providerId, pickupDetails)
1624
    return self.recv_getAlerts()
1708
    return self.recv_markOrdersAsPickedUp()
1625
 
1709
 
1626
  def send_getAlerts(self, orderId, valid):
1710
  def send_markOrdersAsPickedUp(self, providerId, pickupDetails):
1627
    self._oprot.writeMessageBegin('getAlerts', TMessageType.CALL, self._seqid)
1711
    self._oprot.writeMessageBegin('markOrdersAsPickedUp', TMessageType.CALL, self._seqid)
1628
    args = getAlerts_args()
1712
    args = markOrdersAsPickedUp_args()
1629
    args.orderId = orderId
1713
    args.providerId = providerId
1630
    args.valid = valid
1714
    args.pickupDetails = pickupDetails
1631
    args.write(self._oprot)
1715
    args.write(self._oprot)
1632
    self._oprot.writeMessageEnd()
1716
    self._oprot.writeMessageEnd()
1633
    self._oprot.trans.flush()
1717
    self._oprot.trans.flush()
1634
 
1718
 
1635
  def recv_getAlerts(self, ):
1719
  def recv_markOrdersAsPickedUp(self, ):
1636
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1720
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1637
    if mtype == TMessageType.EXCEPTION:
1721
    if mtype == TMessageType.EXCEPTION:
1638
      x = TApplicationException()
1722
      x = TApplicationException()
1639
      x.read(self._iprot)
1723
      x.read(self._iprot)
1640
      self._iprot.readMessageEnd()
1724
      self._iprot.readMessageEnd()
1641
      raise x
1725
      raise x
1642
    result = getAlerts_result()
1726
    result = markOrdersAsPickedUp_result()
1643
    result.read(self._iprot)
1727
    result.read(self._iprot)
1644
    self._iprot.readMessageEnd()
1728
    self._iprot.readMessageEnd()
1645
    if result.success != None:
1729
    if result.success != None:
1646
      return result.success
1730
      return result.success
-
 
1731
    if result.ex != None:
-
 
1732
      raise result.ex
1647
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
1733
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsPickedUp failed: unknown result");
1648
 
1734
 
1649
  def setAlert(self, orderId, unset, type, comment):
1735
  def markOrdersAsDelivered(self, providerId, deliveredOrders):
1650
    """
1736
    """
-
 
1737
    Marks all orders with AWBs in the given map as delivered. Also sets the delivery timestamp and
-
 
1738
    the name of the receiver.
-
 
1739
    Raises an exception if we encounter report for an AWB number that we did not ship.
-
 
1740
    
1651
    Parameters:
1741
    Parameters:
1652
     - orderId
1742
     - providerId
1653
     - unset
-
 
1654
     - type
-
 
1655
     - comment
1743
     - deliveredOrders
1656
    """
1744
    """
1657
    self.send_setAlert(orderId, unset, type, comment)
1745
    self.send_markOrdersAsDelivered(providerId, deliveredOrders)
1658
    self.recv_setAlert()
1746
    self.recv_markOrdersAsDelivered()
1659
 
1747
 
1660
  def send_setAlert(self, orderId, unset, type, comment):
1748
  def send_markOrdersAsDelivered(self, providerId, deliveredOrders):
1661
    self._oprot.writeMessageBegin('setAlert', TMessageType.CALL, self._seqid)
1749
    self._oprot.writeMessageBegin('markOrdersAsDelivered', TMessageType.CALL, self._seqid)
1662
    args = setAlert_args()
1750
    args = markOrdersAsDelivered_args()
1663
    args.orderId = orderId
1751
    args.providerId = providerId
1664
    args.unset = unset
-
 
1665
    args.type = type
-
 
1666
    args.comment = comment
1752
    args.deliveredOrders = deliveredOrders
1667
    args.write(self._oprot)
1753
    args.write(self._oprot)
1668
    self._oprot.writeMessageEnd()
1754
    self._oprot.writeMessageEnd()
1669
    self._oprot.trans.flush()
1755
    self._oprot.trans.flush()
1670
 
1756
 
1671
  def recv_setAlert(self, ):
1757
  def recv_markOrdersAsDelivered(self, ):
1672
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1758
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1673
    if mtype == TMessageType.EXCEPTION:
1759
    if mtype == TMessageType.EXCEPTION:
1674
      x = TApplicationException()
1760
      x = TApplicationException()
1675
      x.read(self._iprot)
1761
      x.read(self._iprot)
1676
      self._iprot.readMessageEnd()
1762
      self._iprot.readMessageEnd()
1677
      raise x
1763
      raise x
1678
    result = setAlert_result()
1764
    result = markOrdersAsDelivered_result()
1679
    result.read(self._iprot)
1765
    result.read(self._iprot)
1680
    self._iprot.readMessageEnd()
1766
    self._iprot.readMessageEnd()
-
 
1767
    if result.ex != None:
-
 
1768
      raise result.ex
1681
    return
1769
    return
1682
 
1770
 
1683
  def getValidOrderCount(self, ):
-
 
1684
    """
-
 
1685
    Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
-
 
1686
    """
-
 
1687
    self.send_getValidOrderCount()
-
 
1688
    return self.recv_getValidOrderCount()
-
 
1689
 
-
 
1690
  def send_getValidOrderCount(self, ):
-
 
1691
    self._oprot.writeMessageBegin('getValidOrderCount', TMessageType.CALL, self._seqid)
-
 
1692
    args = getValidOrderCount_args()
-
 
1693
    args.write(self._oprot)
-
 
1694
    self._oprot.writeMessageEnd()
-
 
1695
    self._oprot.trans.flush()
-
 
1696
 
-
 
1697
  def recv_getValidOrderCount(self, ):
-
 
1698
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1771
  def markOrdersAsFailed(self, providerId, returnedOrders):
1699
    if mtype == TMessageType.EXCEPTION:
-
 
1700
      x = TApplicationException()
-
 
1701
      x.read(self._iprot)
-
 
1702
      self._iprot.readMessageEnd()
-
 
1703
      raise x
-
 
1704
    result = getValidOrderCount_result()
-
 
1705
    result.read(self._iprot)
-
 
1706
    self._iprot.readMessageEnd()
-
 
1707
    if result.success != None:
-
 
1708
      return result.success
-
 
1709
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");
-
 
1710
 
-
 
1711
  def getNoOfCustomersWithSuccessfulTransaction(self, ):
-
 
1712
    """
1772
    """
-
 
1773
    Mark all orders with AWBs in the given map as failed. Also sets the delivery timestamp.
1713
    Returns the number of distinct customers who have done successful transactions
1774
    Raises an exception if we encounter report for an AWB number that we did not ship.
-
 
1775
    
-
 
1776
    Parameters:
-
 
1777
     - providerId
-
 
1778
     - returnedOrders
1714
    """
1779
    """
1715
    self.send_getNoOfCustomersWithSuccessfulTransaction()
1780
    self.send_markOrdersAsFailed(providerId, returnedOrders)
1716
    return self.recv_getNoOfCustomersWithSuccessfulTransaction()
1781
    self.recv_markOrdersAsFailed()
1717
 
1782
 
1718
  def send_getNoOfCustomersWithSuccessfulTransaction(self, ):
1783
  def send_markOrdersAsFailed(self, providerId, returnedOrders):
1719
    self._oprot.writeMessageBegin('getNoOfCustomersWithSuccessfulTransaction', TMessageType.CALL, self._seqid)
1784
    self._oprot.writeMessageBegin('markOrdersAsFailed', TMessageType.CALL, self._seqid)
1720
    args = getNoOfCustomersWithSuccessfulTransaction_args()
1785
    args = markOrdersAsFailed_args()
-
 
1786
    args.providerId = providerId
-
 
1787
    args.returnedOrders = returnedOrders
1721
    args.write(self._oprot)
1788
    args.write(self._oprot)
1722
    self._oprot.writeMessageEnd()
1789
    self._oprot.writeMessageEnd()
1723
    self._oprot.trans.flush()
1790
    self._oprot.trans.flush()
1724
 
1791
 
1725
  def recv_getNoOfCustomersWithSuccessfulTransaction(self, ):
1792
  def recv_markOrdersAsFailed(self, ):
1726
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1793
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1727
    if mtype == TMessageType.EXCEPTION:
1794
    if mtype == TMessageType.EXCEPTION:
1728
      x = TApplicationException()
1795
      x = TApplicationException()
1729
      x.read(self._iprot)
1796
      x.read(self._iprot)
1730
      self._iprot.readMessageEnd()
1797
      self._iprot.readMessageEnd()
1731
      raise x
1798
      raise x
1732
    result = getNoOfCustomersWithSuccessfulTransaction_result()
1799
    result = markOrdersAsFailed_result()
1733
    result.read(self._iprot)
1800
    result.read(self._iprot)
1734
    self._iprot.readMessageEnd()
1801
    self._iprot.readMessageEnd()
1735
    if result.success != None:
1802
    if result.ex != None:
1736
      return result.success
1803
      raise result.ex
1737
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNoOfCustomersWithSuccessfulTransaction failed: unknown result");
-
 
-
 
1804
    return
1738
 
1805
 
1739
  def getValidOrdersAmountRange(self, ):
1806
  def updateNonDeliveryReason(self, providerId, undeliveredOrders):
1740
    """
1807
    """
1741
    Returns the minimum and maximum amounts of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
1808
    Update the status description of orders whose AWB numbers are keys of the Map.
-
 
1809
    
-
 
1810
    Parameters:
-
 
1811
     - providerId
1742
    List contains two values, first minimum amount and second maximum amount.
1812
     - undeliveredOrders
1743
    """
1813
    """
1744
    self.send_getValidOrdersAmountRange()
1814
    self.send_updateNonDeliveryReason(providerId, undeliveredOrders)
1745
    return self.recv_getValidOrdersAmountRange()
1815
    self.recv_updateNonDeliveryReason()
1746
 
1816
 
1747
  def send_getValidOrdersAmountRange(self, ):
1817
  def send_updateNonDeliveryReason(self, providerId, undeliveredOrders):
1748
    self._oprot.writeMessageBegin('getValidOrdersAmountRange', TMessageType.CALL, self._seqid)
1818
    self._oprot.writeMessageBegin('updateNonDeliveryReason', TMessageType.CALL, self._seqid)
1749
    args = getValidOrdersAmountRange_args()
1819
    args = updateNonDeliveryReason_args()
-
 
1820
    args.providerId = providerId
-
 
1821
    args.undeliveredOrders = undeliveredOrders
1750
    args.write(self._oprot)
1822
    args.write(self._oprot)
1751
    self._oprot.writeMessageEnd()
1823
    self._oprot.writeMessageEnd()
1752
    self._oprot.trans.flush()
1824
    self._oprot.trans.flush()
1753
 
1825
 
1754
  def recv_getValidOrdersAmountRange(self, ):
1826
  def recv_updateNonDeliveryReason(self, ):
1755
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1827
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1756
    if mtype == TMessageType.EXCEPTION:
1828
    if mtype == TMessageType.EXCEPTION:
1757
      x = TApplicationException()
1829
      x = TApplicationException()
1758
      x.read(self._iprot)
1830
      x.read(self._iprot)
1759
      self._iprot.readMessageEnd()
1831
      self._iprot.readMessageEnd()
1760
      raise x
1832
      raise x
1761
    result = getValidOrdersAmountRange_result()
1833
    result = updateNonDeliveryReason_result()
1762
    result.read(self._iprot)
1834
    result.read(self._iprot)
1763
    self._iprot.readMessageEnd()
1835
    self._iprot.readMessageEnd()
1764
    if result.success != None:
1836
    if result.ex != None:
1765
      return result.success
1837
      raise result.ex
1766
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrdersAmountRange failed: unknown result");
-
 
-
 
1838
    return
1767
 
1839
 
1768
  def getValidOrders(self, limit):
1840
  def getUndeliveredOrders(self, providerId, warehouseId):
1769
    """
1841
    """
1770
    Returns list of Orders in descending order by Order creation date. List is restricted to limit Orders.
1842
    Returns the list of orders whose delivery time has passed but have not been
-
 
1843
    delivered yet for the given provider and warehouse. To get a complete list of
-
 
1844
    undelivered orders, pass them as -1.
1771
    If limit is passed as 0, then all valid Orders are returned.
1845
    Returns an empty list if no such orders exist.
1772
    
1846
    
1773
    Parameters:
1847
    Parameters:
1774
     - limit
1848
     - providerId
-
 
1849
     - warehouseId
1775
    """
1850
    """
1776
    self.send_getValidOrders(limit)
1851
    self.send_getUndeliveredOrders(providerId, warehouseId)
1777
    return self.recv_getValidOrders()
1852
    return self.recv_getUndeliveredOrders()
1778
 
1853
 
1779
  def send_getValidOrders(self, limit):
1854
  def send_getUndeliveredOrders(self, providerId, warehouseId):
1780
    self._oprot.writeMessageBegin('getValidOrders', TMessageType.CALL, self._seqid)
1855
    self._oprot.writeMessageBegin('getUndeliveredOrders', TMessageType.CALL, self._seqid)
1781
    args = getValidOrders_args()
1856
    args = getUndeliveredOrders_args()
1782
    args.limit = limit
1857
    args.providerId = providerId
-
 
1858
    args.warehouseId = warehouseId
1783
    args.write(self._oprot)
1859
    args.write(self._oprot)
1784
    self._oprot.writeMessageEnd()
1860
    self._oprot.writeMessageEnd()
1785
    self._oprot.trans.flush()
1861
    self._oprot.trans.flush()
1786
 
1862
 
1787
  def recv_getValidOrders(self, ):
1863
  def recv_getUndeliveredOrders(self, ):
1788
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1864
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1789
    if mtype == TMessageType.EXCEPTION:
1865
    if mtype == TMessageType.EXCEPTION:
1790
      x = TApplicationException()
1866
      x = TApplicationException()
1791
      x.read(self._iprot)
1867
      x.read(self._iprot)
1792
      self._iprot.readMessageEnd()
1868
      self._iprot.readMessageEnd()
1793
      raise x
1869
      raise x
1794
    result = getValidOrders_result()
1870
    result = getUndeliveredOrders_result()
1795
    result.read(self._iprot)
1871
    result.read(self._iprot)
1796
    self._iprot.readMessageEnd()
1872
    self._iprot.readMessageEnd()
1797
    if result.success != None:
1873
    if result.success != None:
1798
      return result.success
1874
      return result.success
1799
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrders failed: unknown result");
1875
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUndeliveredOrders failed: unknown result");
1800
 
1876
 
1801
  def toggleDOAFlag(self, orderId):
1877
  def toggleDOAFlag(self, orderId):
1802
    """
1878
    """
1803
    Toggle the DOA flag of an order. This should be used to flag an order for follow-up and unflag it when the follow-up is complete.
1879
    Toggle the DOA flag of an order. This should be used to flag an order for follow-up and unflag it when the follow-up is complete.
1804
    Returns the final flag status.
1880
    Returns the final flag status.
Line 2269... Line 2345...
2269
    self._processMap["getAllOrders"] = Processor.process_getAllOrders
2345
    self._processMap["getAllOrders"] = Processor.process_getAllOrders
2270
    self._processMap["getOrdersByBillingDate"] = Processor.process_getOrdersByBillingDate
2346
    self._processMap["getOrdersByBillingDate"] = Processor.process_getOrdersByBillingDate
2271
    self._processMap["getReturnableOrdersForCustomer"] = Processor.process_getReturnableOrdersForCustomer
2347
    self._processMap["getReturnableOrdersForCustomer"] = Processor.process_getReturnableOrdersForCustomer
2272
    self._processMap["getCancellableOrdersForCustomer"] = Processor.process_getCancellableOrdersForCustomer
2348
    self._processMap["getCancellableOrdersForCustomer"] = Processor.process_getCancellableOrdersForCustomer
2273
    self._processMap["changeOrderStatus"] = Processor.process_changeOrderStatus
2349
    self._processMap["changeOrderStatus"] = Processor.process_changeOrderStatus
2274
    self._processMap["addBillingDetails"] = Processor.process_addBillingDetails
-
 
2275
    self._processMap["addJacketNumber"] = Processor.process_addJacketNumber
-
 
2276
    self._processMap["acceptOrder"] = Processor.process_acceptOrder
-
 
2277
    self._processMap["billOrder"] = Processor.process_billOrder
-
 
2278
    self._processMap["getOrdersForTransaction"] = Processor.process_getOrdersForTransaction
2350
    self._processMap["getOrdersForTransaction"] = Processor.process_getOrdersForTransaction
2279
    self._processMap["getOrdersForCustomer"] = Processor.process_getOrdersForCustomer
2351
    self._processMap["getOrdersForCustomer"] = Processor.process_getOrdersForCustomer
2280
    self._processMap["createOrder"] = Processor.process_createOrder
2352
    self._processMap["createOrder"] = Processor.process_createOrder
2281
    self._processMap["getOrder"] = Processor.process_getOrder
2353
    self._processMap["getOrder"] = Processor.process_getOrder
2282
    self._processMap["getLineItemsForOrder"] = Processor.process_getLineItemsForOrder
2354
    self._processMap["getLineItemsForOrder"] = Processor.process_getLineItemsForOrder
2283
    self._processMap["getOrderForCustomer"] = Processor.process_getOrderForCustomer
2355
    self._processMap["getOrderForCustomer"] = Processor.process_getOrderForCustomer
-
 
2356
    self._processMap["getAlerts"] = Processor.process_getAlerts
-
 
2357
    self._processMap["setAlert"] = Processor.process_setAlert
-
 
2358
    self._processMap["getValidOrderCount"] = Processor.process_getValidOrderCount
-
 
2359
    self._processMap["getNoOfCustomersWithSuccessfulTransaction"] = Processor.process_getNoOfCustomersWithSuccessfulTransaction
-
 
2360
    self._processMap["getValidOrdersAmountRange"] = Processor.process_getValidOrdersAmountRange
-
 
2361
    self._processMap["getValidOrders"] = Processor.process_getValidOrders
2284
    self._processMap["batchOrders"] = Processor.process_batchOrders
2362
    self._processMap["batchOrders"] = Processor.process_batchOrders
2285
    self._processMap["markOrderAsOutOfStock"] = Processor.process_markOrderAsOutOfStock
2363
    self._processMap["markOrderAsOutOfStock"] = Processor.process_markOrderAsOutOfStock
-
 
2364
    self._processMap["verifyOrder"] = Processor.process_verifyOrder
-
 
2365
    self._processMap["acceptOrder"] = Processor.process_acceptOrder
-
 
2366
    self._processMap["billOrder"] = Processor.process_billOrder
-
 
2367
    self._processMap["addBillingDetails"] = Processor.process_addBillingDetails
-
 
2368
    self._processMap["addJacketNumber"] = Processor.process_addJacketNumber
2286
    self._processMap["markOrdersAsManifested"] = Processor.process_markOrdersAsManifested
2369
    self._processMap["markOrdersAsManifested"] = Processor.process_markOrdersAsManifested
2287
    self._processMap["markOrdersAsPickedUp"] = Processor.process_markOrdersAsPickedUp
2370
    self._processMap["markOrdersAsPickedUp"] = Processor.process_markOrdersAsPickedUp
2288
    self._processMap["markOrdersAsDelivered"] = Processor.process_markOrdersAsDelivered
2371
    self._processMap["markOrdersAsDelivered"] = Processor.process_markOrdersAsDelivered
2289
    self._processMap["markOrdersAsFailed"] = Processor.process_markOrdersAsFailed
2372
    self._processMap["markOrdersAsFailed"] = Processor.process_markOrdersAsFailed
2290
    self._processMap["updateNonDeliveryReason"] = Processor.process_updateNonDeliveryReason
2373
    self._processMap["updateNonDeliveryReason"] = Processor.process_updateNonDeliveryReason
2291
    self._processMap["getUndeliveredOrders"] = Processor.process_getUndeliveredOrders
2374
    self._processMap["getUndeliveredOrders"] = Processor.process_getUndeliveredOrders
2292
    self._processMap["getAlerts"] = Processor.process_getAlerts
-
 
2293
    self._processMap["setAlert"] = Processor.process_setAlert
-
 
2294
    self._processMap["getValidOrderCount"] = Processor.process_getValidOrderCount
-
 
2295
    self._processMap["getNoOfCustomersWithSuccessfulTransaction"] = Processor.process_getNoOfCustomersWithSuccessfulTransaction
-
 
2296
    self._processMap["getValidOrdersAmountRange"] = Processor.process_getValidOrdersAmountRange
-
 
2297
    self._processMap["getValidOrders"] = Processor.process_getValidOrders
-
 
2298
    self._processMap["toggleDOAFlag"] = Processor.process_toggleDOAFlag
2375
    self._processMap["toggleDOAFlag"] = Processor.process_toggleDOAFlag
2299
    self._processMap["requestPickupNumber"] = Processor.process_requestPickupNumber
2376
    self._processMap["requestPickupNumber"] = Processor.process_requestPickupNumber
2300
    self._processMap["authorizePickup"] = Processor.process_authorizePickup
2377
    self._processMap["authorizePickup"] = Processor.process_authorizePickup
2301
    self._processMap["markDoasAsPickedUp"] = Processor.process_markDoasAsPickedUp
2378
    self._processMap["markDoasAsPickedUp"] = Processor.process_markDoasAsPickedUp
2302
    self._processMap["receiveReturn"] = Processor.process_receiveReturn
2379
    self._processMap["receiveReturn"] = Processor.process_receiveReturn
Line 2500... Line 2577...
2500
    oprot.writeMessageBegin("changeOrderStatus", TMessageType.REPLY, seqid)
2577
    oprot.writeMessageBegin("changeOrderStatus", TMessageType.REPLY, seqid)
2501
    result.write(oprot)
2578
    result.write(oprot)
2502
    oprot.writeMessageEnd()
2579
    oprot.writeMessageEnd()
2503
    oprot.trans.flush()
2580
    oprot.trans.flush()
2504
 
2581
 
2505
  def process_addBillingDetails(self, seqid, iprot, oprot):
-
 
2506
    args = addBillingDetails_args()
-
 
2507
    args.read(iprot)
-
 
2508
    iprot.readMessageEnd()
-
 
2509
    result = addBillingDetails_result()
-
 
2510
    try:
-
 
2511
      result.success = self._handler.addBillingDetails(args.orderId, args.invoice_number, args.billed_by)
-
 
2512
    except TransactionServiceException, ex:
-
 
2513
      result.ex = ex
-
 
2514
    oprot.writeMessageBegin("addBillingDetails", TMessageType.REPLY, seqid)
-
 
2515
    result.write(oprot)
-
 
2516
    oprot.writeMessageEnd()
-
 
2517
    oprot.trans.flush()
-
 
2518
 
-
 
2519
  def process_addJacketNumber(self, seqid, iprot, oprot):
-
 
2520
    args = addJacketNumber_args()
-
 
2521
    args.read(iprot)
-
 
2522
    iprot.readMessageEnd()
-
 
2523
    result = addJacketNumber_result()
-
 
2524
    try:
-
 
2525
      result.success = self._handler.addJacketNumber(args.orderId, args.jacketNumber, args.imeiNumber, args.itemNumber, args.billedBy, args.billingType)
-
 
2526
    except TransactionServiceException, ex:
-
 
2527
      result.ex = ex
-
 
2528
    oprot.writeMessageBegin("addJacketNumber", TMessageType.REPLY, seqid)
-
 
2529
    result.write(oprot)
-
 
2530
    oprot.writeMessageEnd()
-
 
2531
    oprot.trans.flush()
-
 
2532
 
-
 
2533
  def process_acceptOrder(self, seqid, iprot, oprot):
-
 
2534
    args = acceptOrder_args()
-
 
2535
    args.read(iprot)
-
 
2536
    iprot.readMessageEnd()
-
 
2537
    result = acceptOrder_result()
-
 
2538
    try:
-
 
2539
      result.success = self._handler.acceptOrder(args.orderId)
-
 
2540
    except TransactionServiceException, ex:
-
 
2541
      result.ex = ex
-
 
2542
    oprot.writeMessageBegin("acceptOrder", TMessageType.REPLY, seqid)
-
 
2543
    result.write(oprot)
-
 
2544
    oprot.writeMessageEnd()
-
 
2545
    oprot.trans.flush()
-
 
2546
 
-
 
2547
  def process_billOrder(self, seqid, iprot, oprot):
-
 
2548
    args = billOrder_args()
-
 
2549
    args.read(iprot)
-
 
2550
    iprot.readMessageEnd()
-
 
2551
    result = billOrder_result()
-
 
2552
    try:
-
 
2553
      result.success = self._handler.billOrder(args.orderId)
-
 
2554
    except TransactionServiceException, ex:
-
 
2555
      result.ex = ex
-
 
2556
    oprot.writeMessageBegin("billOrder", TMessageType.REPLY, seqid)
-
 
2557
    result.write(oprot)
-
 
2558
    oprot.writeMessageEnd()
-
 
2559
    oprot.trans.flush()
-
 
2560
 
-
 
2561
  def process_getOrdersForTransaction(self, seqid, iprot, oprot):
2582
  def process_getOrdersForTransaction(self, seqid, iprot, oprot):
2562
    args = getOrdersForTransaction_args()
2583
    args = getOrdersForTransaction_args()
2563
    args.read(iprot)
2584
    args.read(iprot)
2564
    iprot.readMessageEnd()
2585
    iprot.readMessageEnd()
2565
    result = getOrdersForTransaction_result()
2586
    result = getOrdersForTransaction_result()
Line 2640... Line 2661...
2640
    oprot.writeMessageBegin("getOrderForCustomer", TMessageType.REPLY, seqid)
2661
    oprot.writeMessageBegin("getOrderForCustomer", TMessageType.REPLY, seqid)
2641
    result.write(oprot)
2662
    result.write(oprot)
2642
    oprot.writeMessageEnd()
2663
    oprot.writeMessageEnd()
2643
    oprot.trans.flush()
2664
    oprot.trans.flush()
2644
 
2665
 
-
 
2666
  def process_getAlerts(self, seqid, iprot, oprot):
-
 
2667
    args = getAlerts_args()
-
 
2668
    args.read(iprot)
-
 
2669
    iprot.readMessageEnd()
-
 
2670
    result = getAlerts_result()
-
 
2671
    result.success = self._handler.getAlerts(args.orderId, args.valid)
-
 
2672
    oprot.writeMessageBegin("getAlerts", TMessageType.REPLY, seqid)
-
 
2673
    result.write(oprot)
-
 
2674
    oprot.writeMessageEnd()
-
 
2675
    oprot.trans.flush()
-
 
2676
 
-
 
2677
  def process_setAlert(self, seqid, iprot, oprot):
-
 
2678
    args = setAlert_args()
-
 
2679
    args.read(iprot)
-
 
2680
    iprot.readMessageEnd()
-
 
2681
    result = setAlert_result()
-
 
2682
    self._handler.setAlert(args.orderId, args.unset, args.type, args.comment)
-
 
2683
    oprot.writeMessageBegin("setAlert", TMessageType.REPLY, seqid)
-
 
2684
    result.write(oprot)
-
 
2685
    oprot.writeMessageEnd()
-
 
2686
    oprot.trans.flush()
-
 
2687
 
-
 
2688
  def process_getValidOrderCount(self, seqid, iprot, oprot):
-
 
2689
    args = getValidOrderCount_args()
-
 
2690
    args.read(iprot)
-
 
2691
    iprot.readMessageEnd()
-
 
2692
    result = getValidOrderCount_result()
-
 
2693
    result.success = self._handler.getValidOrderCount()
-
 
2694
    oprot.writeMessageBegin("getValidOrderCount", TMessageType.REPLY, seqid)
-
 
2695
    result.write(oprot)
-
 
2696
    oprot.writeMessageEnd()
-
 
2697
    oprot.trans.flush()
-
 
2698
 
-
 
2699
  def process_getNoOfCustomersWithSuccessfulTransaction(self, seqid, iprot, oprot):
-
 
2700
    args = getNoOfCustomersWithSuccessfulTransaction_args()
-
 
2701
    args.read(iprot)
-
 
2702
    iprot.readMessageEnd()
-
 
2703
    result = getNoOfCustomersWithSuccessfulTransaction_result()
-
 
2704
    result.success = self._handler.getNoOfCustomersWithSuccessfulTransaction()
-
 
2705
    oprot.writeMessageBegin("getNoOfCustomersWithSuccessfulTransaction", TMessageType.REPLY, seqid)
-
 
2706
    result.write(oprot)
-
 
2707
    oprot.writeMessageEnd()
-
 
2708
    oprot.trans.flush()
-
 
2709
 
-
 
2710
  def process_getValidOrdersAmountRange(self, seqid, iprot, oprot):
-
 
2711
    args = getValidOrdersAmountRange_args()
-
 
2712
    args.read(iprot)
-
 
2713
    iprot.readMessageEnd()
-
 
2714
    result = getValidOrdersAmountRange_result()
-
 
2715
    result.success = self._handler.getValidOrdersAmountRange()
-
 
2716
    oprot.writeMessageBegin("getValidOrdersAmountRange", TMessageType.REPLY, seqid)
-
 
2717
    result.write(oprot)
-
 
2718
    oprot.writeMessageEnd()
-
 
2719
    oprot.trans.flush()
-
 
2720
 
-
 
2721
  def process_getValidOrders(self, seqid, iprot, oprot):
-
 
2722
    args = getValidOrders_args()
-
 
2723
    args.read(iprot)
-
 
2724
    iprot.readMessageEnd()
-
 
2725
    result = getValidOrders_result()
-
 
2726
    result.success = self._handler.getValidOrders(args.limit)
-
 
2727
    oprot.writeMessageBegin("getValidOrders", TMessageType.REPLY, seqid)
-
 
2728
    result.write(oprot)
-
 
2729
    oprot.writeMessageEnd()
-
 
2730
    oprot.trans.flush()
-
 
2731
 
2645
  def process_batchOrders(self, seqid, iprot, oprot):
2732
  def process_batchOrders(self, seqid, iprot, oprot):
2646
    args = batchOrders_args()
2733
    args = batchOrders_args()
2647
    args.read(iprot)
2734
    args.read(iprot)
2648
    iprot.readMessageEnd()
2735
    iprot.readMessageEnd()
2649
    result = batchOrders_result()
2736
    result = batchOrders_result()
Line 2668... Line 2755...
2668
    oprot.writeMessageBegin("markOrderAsOutOfStock", TMessageType.REPLY, seqid)
2755
    oprot.writeMessageBegin("markOrderAsOutOfStock", TMessageType.REPLY, seqid)
2669
    result.write(oprot)
2756
    result.write(oprot)
2670
    oprot.writeMessageEnd()
2757
    oprot.writeMessageEnd()
2671
    oprot.trans.flush()
2758
    oprot.trans.flush()
2672
 
2759
 
2673
  def process_markOrdersAsManifested(self, seqid, iprot, oprot):
2760
  def process_verifyOrder(self, seqid, iprot, oprot):
2674
    args = markOrdersAsManifested_args()
2761
    args = verifyOrder_args()
2675
    args.read(iprot)
2762
    args.read(iprot)
2676
    iprot.readMessageEnd()
2763
    iprot.readMessageEnd()
2677
    result = markOrdersAsManifested_result()
2764
    result = verifyOrder_result()
2678
    try:
2765
    try:
2679
      result.success = self._handler.markOrdersAsManifested(args.warehouseId, args.providerId)
2766
      result.success = self._handler.verifyOrder(args.orderId)
2680
    except TransactionServiceException, ex:
2767
    except TransactionServiceException, ex:
2681
      result.ex = ex
2768
      result.ex = ex
2682
    oprot.writeMessageBegin("markOrdersAsManifested", TMessageType.REPLY, seqid)
2769
    oprot.writeMessageBegin("verifyOrder", TMessageType.REPLY, seqid)
2683
    result.write(oprot)
2770
    result.write(oprot)
2684
    oprot.writeMessageEnd()
2771
    oprot.writeMessageEnd()
2685
    oprot.trans.flush()
2772
    oprot.trans.flush()
2686
 
2773
 
2687
  def process_markOrdersAsPickedUp(self, seqid, iprot, oprot):
2774
  def process_acceptOrder(self, seqid, iprot, oprot):
2688
    args = markOrdersAsPickedUp_args()
2775
    args = acceptOrder_args()
2689
    args.read(iprot)
2776
    args.read(iprot)
2690
    iprot.readMessageEnd()
2777
    iprot.readMessageEnd()
2691
    result = markOrdersAsPickedUp_result()
2778
    result = acceptOrder_result()
2692
    try:
2779
    try:
2693
      result.success = self._handler.markOrdersAsPickedUp(args.providerId, args.pickupDetails)
2780
      result.success = self._handler.acceptOrder(args.orderId)
2694
    except TransactionServiceException, ex:
2781
    except TransactionServiceException, ex:
2695
      result.ex = ex
2782
      result.ex = ex
2696
    oprot.writeMessageBegin("markOrdersAsPickedUp", TMessageType.REPLY, seqid)
2783
    oprot.writeMessageBegin("acceptOrder", TMessageType.REPLY, seqid)
2697
    result.write(oprot)
2784
    result.write(oprot)
2698
    oprot.writeMessageEnd()
2785
    oprot.writeMessageEnd()
2699
    oprot.trans.flush()
2786
    oprot.trans.flush()
2700
 
2787
 
2701
  def process_markOrdersAsDelivered(self, seqid, iprot, oprot):
2788
  def process_billOrder(self, seqid, iprot, oprot):
2702
    args = markOrdersAsDelivered_args()
2789
    args = billOrder_args()
2703
    args.read(iprot)
2790
    args.read(iprot)
2704
    iprot.readMessageEnd()
2791
    iprot.readMessageEnd()
2705
    result = markOrdersAsDelivered_result()
2792
    result = billOrder_result()
2706
    try:
2793
    try:
2707
      self._handler.markOrdersAsDelivered(args.providerId, args.deliveredOrders)
2794
      result.success = self._handler.billOrder(args.orderId)
2708
    except TransactionServiceException, ex:
2795
    except TransactionServiceException, ex:
2709
      result.ex = ex
2796
      result.ex = ex
2710
    oprot.writeMessageBegin("markOrdersAsDelivered", TMessageType.REPLY, seqid)
2797
    oprot.writeMessageBegin("billOrder", TMessageType.REPLY, seqid)
2711
    result.write(oprot)
2798
    result.write(oprot)
2712
    oprot.writeMessageEnd()
2799
    oprot.writeMessageEnd()
2713
    oprot.trans.flush()
2800
    oprot.trans.flush()
2714
 
2801
 
2715
  def process_markOrdersAsFailed(self, seqid, iprot, oprot):
2802
  def process_addBillingDetails(self, seqid, iprot, oprot):
2716
    args = markOrdersAsFailed_args()
2803
    args = addBillingDetails_args()
2717
    args.read(iprot)
2804
    args.read(iprot)
2718
    iprot.readMessageEnd()
2805
    iprot.readMessageEnd()
2719
    result = markOrdersAsFailed_result()
2806
    result = addBillingDetails_result()
2720
    try:
2807
    try:
2721
      self._handler.markOrdersAsFailed(args.providerId, args.returnedOrders)
2808
      result.success = self._handler.addBillingDetails(args.orderId, args.invoice_number, args.billed_by)
2722
    except TransactionServiceException, ex:
2809
    except TransactionServiceException, ex:
2723
      result.ex = ex
2810
      result.ex = ex
2724
    oprot.writeMessageBegin("markOrdersAsFailed", TMessageType.REPLY, seqid)
2811
    oprot.writeMessageBegin("addBillingDetails", TMessageType.REPLY, seqid)
2725
    result.write(oprot)
2812
    result.write(oprot)
2726
    oprot.writeMessageEnd()
2813
    oprot.writeMessageEnd()
2727
    oprot.trans.flush()
2814
    oprot.trans.flush()
2728
 
2815
 
2729
  def process_updateNonDeliveryReason(self, seqid, iprot, oprot):
2816
  def process_addJacketNumber(self, seqid, iprot, oprot):
2730
    args = updateNonDeliveryReason_args()
2817
    args = addJacketNumber_args()
2731
    args.read(iprot)
2818
    args.read(iprot)
2732
    iprot.readMessageEnd()
2819
    iprot.readMessageEnd()
2733
    result = updateNonDeliveryReason_result()
2820
    result = addJacketNumber_result()
2734
    try:
2821
    try:
2735
      self._handler.updateNonDeliveryReason(args.providerId, args.undeliveredOrders)
2822
      result.success = self._handler.addJacketNumber(args.orderId, args.jacketNumber, args.imeiNumber, args.itemNumber, args.billedBy, args.billingType)
2736
    except TransactionServiceException, ex:
2823
    except TransactionServiceException, ex:
2737
      result.ex = ex
2824
      result.ex = ex
2738
    oprot.writeMessageBegin("updateNonDeliveryReason", TMessageType.REPLY, seqid)
-
 
2739
    result.write(oprot)
-
 
2740
    oprot.writeMessageEnd()
-
 
2741
    oprot.trans.flush()
-
 
2742
 
-
 
2743
  def process_getUndeliveredOrders(self, seqid, iprot, oprot):
-
 
2744
    args = getUndeliveredOrders_args()
-
 
2745
    args.read(iprot)
-
 
2746
    iprot.readMessageEnd()
-
 
2747
    result = getUndeliveredOrders_result()
-
 
2748
    result.success = self._handler.getUndeliveredOrders(args.providerId, args.warehouseId)
-
 
2749
    oprot.writeMessageBegin("getUndeliveredOrders", TMessageType.REPLY, seqid)
2825
    oprot.writeMessageBegin("addJacketNumber", TMessageType.REPLY, seqid)
2750
    result.write(oprot)
2826
    result.write(oprot)
2751
    oprot.writeMessageEnd()
2827
    oprot.writeMessageEnd()
2752
    oprot.trans.flush()
2828
    oprot.trans.flush()
2753
 
2829
 
2754
  def process_getAlerts(self, seqid, iprot, oprot):
2830
  def process_markOrdersAsManifested(self, seqid, iprot, oprot):
2755
    args = getAlerts_args()
2831
    args = markOrdersAsManifested_args()
2756
    args.read(iprot)
2832
    args.read(iprot)
2757
    iprot.readMessageEnd()
2833
    iprot.readMessageEnd()
2758
    result = getAlerts_result()
2834
    result = markOrdersAsManifested_result()
-
 
2835
    try:
2759
    result.success = self._handler.getAlerts(args.orderId, args.valid)
2836
      result.success = self._handler.markOrdersAsManifested(args.warehouseId, args.providerId, args.cod)
-
 
2837
    except TransactionServiceException, ex:
-
 
2838
      result.ex = ex
2760
    oprot.writeMessageBegin("getAlerts", TMessageType.REPLY, seqid)
2839
    oprot.writeMessageBegin("markOrdersAsManifested", TMessageType.REPLY, seqid)
2761
    result.write(oprot)
2840
    result.write(oprot)
2762
    oprot.writeMessageEnd()
2841
    oprot.writeMessageEnd()
2763
    oprot.trans.flush()
2842
    oprot.trans.flush()
2764
 
2843
 
2765
  def process_setAlert(self, seqid, iprot, oprot):
2844
  def process_markOrdersAsPickedUp(self, seqid, iprot, oprot):
2766
    args = setAlert_args()
2845
    args = markOrdersAsPickedUp_args()
2767
    args.read(iprot)
2846
    args.read(iprot)
2768
    iprot.readMessageEnd()
2847
    iprot.readMessageEnd()
2769
    result = setAlert_result()
2848
    result = markOrdersAsPickedUp_result()
-
 
2849
    try:
2770
    self._handler.setAlert(args.orderId, args.unset, args.type, args.comment)
2850
      result.success = self._handler.markOrdersAsPickedUp(args.providerId, args.pickupDetails)
-
 
2851
    except TransactionServiceException, ex:
-
 
2852
      result.ex = ex
2771
    oprot.writeMessageBegin("setAlert", TMessageType.REPLY, seqid)
2853
    oprot.writeMessageBegin("markOrdersAsPickedUp", TMessageType.REPLY, seqid)
2772
    result.write(oprot)
2854
    result.write(oprot)
2773
    oprot.writeMessageEnd()
2855
    oprot.writeMessageEnd()
2774
    oprot.trans.flush()
2856
    oprot.trans.flush()
2775
 
2857
 
2776
  def process_getValidOrderCount(self, seqid, iprot, oprot):
2858
  def process_markOrdersAsDelivered(self, seqid, iprot, oprot):
2777
    args = getValidOrderCount_args()
2859
    args = markOrdersAsDelivered_args()
2778
    args.read(iprot)
2860
    args.read(iprot)
2779
    iprot.readMessageEnd()
2861
    iprot.readMessageEnd()
2780
    result = getValidOrderCount_result()
2862
    result = markOrdersAsDelivered_result()
-
 
2863
    try:
-
 
2864
      self._handler.markOrdersAsDelivered(args.providerId, args.deliveredOrders)
2781
    result.success = self._handler.getValidOrderCount()
2865
    except TransactionServiceException, ex:
-
 
2866
      result.ex = ex
2782
    oprot.writeMessageBegin("getValidOrderCount", TMessageType.REPLY, seqid)
2867
    oprot.writeMessageBegin("markOrdersAsDelivered", TMessageType.REPLY, seqid)
2783
    result.write(oprot)
2868
    result.write(oprot)
2784
    oprot.writeMessageEnd()
2869
    oprot.writeMessageEnd()
2785
    oprot.trans.flush()
2870
    oprot.trans.flush()
2786
 
2871
 
2787
  def process_getNoOfCustomersWithSuccessfulTransaction(self, seqid, iprot, oprot):
2872
  def process_markOrdersAsFailed(self, seqid, iprot, oprot):
2788
    args = getNoOfCustomersWithSuccessfulTransaction_args()
2873
    args = markOrdersAsFailed_args()
2789
    args.read(iprot)
2874
    args.read(iprot)
2790
    iprot.readMessageEnd()
2875
    iprot.readMessageEnd()
2791
    result = getNoOfCustomersWithSuccessfulTransaction_result()
2876
    result = markOrdersAsFailed_result()
-
 
2877
    try:
2792
    result.success = self._handler.getNoOfCustomersWithSuccessfulTransaction()
2878
      self._handler.markOrdersAsFailed(args.providerId, args.returnedOrders)
-
 
2879
    except TransactionServiceException, ex:
-
 
2880
      result.ex = ex
2793
    oprot.writeMessageBegin("getNoOfCustomersWithSuccessfulTransaction", TMessageType.REPLY, seqid)
2881
    oprot.writeMessageBegin("markOrdersAsFailed", TMessageType.REPLY, seqid)
2794
    result.write(oprot)
2882
    result.write(oprot)
2795
    oprot.writeMessageEnd()
2883
    oprot.writeMessageEnd()
2796
    oprot.trans.flush()
2884
    oprot.trans.flush()
2797
 
2885
 
2798
  def process_getValidOrdersAmountRange(self, seqid, iprot, oprot):
2886
  def process_updateNonDeliveryReason(self, seqid, iprot, oprot):
2799
    args = getValidOrdersAmountRange_args()
2887
    args = updateNonDeliveryReason_args()
2800
    args.read(iprot)
2888
    args.read(iprot)
2801
    iprot.readMessageEnd()
2889
    iprot.readMessageEnd()
2802
    result = getValidOrdersAmountRange_result()
2890
    result = updateNonDeliveryReason_result()
-
 
2891
    try:
2803
    result.success = self._handler.getValidOrdersAmountRange()
2892
      self._handler.updateNonDeliveryReason(args.providerId, args.undeliveredOrders)
-
 
2893
    except TransactionServiceException, ex:
-
 
2894
      result.ex = ex
2804
    oprot.writeMessageBegin("getValidOrdersAmountRange", TMessageType.REPLY, seqid)
2895
    oprot.writeMessageBegin("updateNonDeliveryReason", TMessageType.REPLY, seqid)
2805
    result.write(oprot)
2896
    result.write(oprot)
2806
    oprot.writeMessageEnd()
2897
    oprot.writeMessageEnd()
2807
    oprot.trans.flush()
2898
    oprot.trans.flush()
2808
 
2899
 
2809
  def process_getValidOrders(self, seqid, iprot, oprot):
2900
  def process_getUndeliveredOrders(self, seqid, iprot, oprot):
2810
    args = getValidOrders_args()
2901
    args = getUndeliveredOrders_args()
2811
    args.read(iprot)
2902
    args.read(iprot)
2812
    iprot.readMessageEnd()
2903
    iprot.readMessageEnd()
2813
    result = getValidOrders_result()
2904
    result = getUndeliveredOrders_result()
2814
    result.success = self._handler.getValidOrders(args.limit)
2905
    result.success = self._handler.getUndeliveredOrders(args.providerId, args.warehouseId)
2815
    oprot.writeMessageBegin("getValidOrders", TMessageType.REPLY, seqid)
2906
    oprot.writeMessageBegin("getUndeliveredOrders", TMessageType.REPLY, seqid)
2816
    result.write(oprot)
2907
    result.write(oprot)
2817
    oprot.writeMessageEnd()
2908
    oprot.writeMessageEnd()
2818
    oprot.trans.flush()
2909
    oprot.trans.flush()
2819
 
2910
 
2820
  def process_toggleDOAFlag(self, seqid, iprot, oprot):
2911
  def process_toggleDOAFlag(self, seqid, iprot, oprot):
Line 4778... Line 4869...
4778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4869
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4779
 
4870
 
4780
  def __ne__(self, other):
4871
  def __ne__(self, other):
4781
    return not (self == other)
4872
    return not (self == other)
4782
 
4873
 
4783
class addBillingDetails_args:
4874
class getOrdersForTransaction_args:
4784
  """
4875
  """
4785
  Attributes:
4876
  Attributes:
4786
   - orderId
4877
   - transactionId
4787
   - invoice_number
-
 
4788
   - billed_by
4878
   - customerId
4789
  """
4879
  """
4790
 
4880
 
4791
  thrift_spec = (
4881
  thrift_spec = (
4792
    None, # 0
4882
    None, # 0
4793
    (1, TType.I64, 'orderId', None, None, ), # 1
4883
    (1, TType.I64, 'transactionId', None, None, ), # 1
4794
    (2, TType.STRING, 'invoice_number', None, None, ), # 2
4884
    (2, TType.I64, 'customerId', None, None, ), # 2
4795
    (3, TType.STRING, 'billed_by', None, None, ), # 3
-
 
4796
  )
4885
  )
4797
 
4886
 
4798
  def __init__(self, orderId=None, invoice_number=None, billed_by=None,):
4887
  def __init__(self, transactionId=None, customerId=None,):
4799
    self.orderId = orderId
4888
    self.transactionId = transactionId
4800
    self.invoice_number = invoice_number
-
 
4801
    self.billed_by = billed_by
4889
    self.customerId = customerId
4802
 
4890
 
4803
  def read(self, iprot):
4891
  def read(self, iprot):
4804
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4892
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4805
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4893
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4806
      return
4894
      return
Line 4809... Line 4897...
4809
      (fname, ftype, fid) = iprot.readFieldBegin()
4897
      (fname, ftype, fid) = iprot.readFieldBegin()
4810
      if ftype == TType.STOP:
4898
      if ftype == TType.STOP:
4811
        break
4899
        break
4812
      if fid == 1:
4900
      if fid == 1:
4813
        if ftype == TType.I64:
4901
        if ftype == TType.I64:
4814
          self.orderId = iprot.readI64();
4902
          self.transactionId = iprot.readI64();
4815
        else:
4903
        else:
4816
          iprot.skip(ftype)
4904
          iprot.skip(ftype)
4817
      elif fid == 2:
4905
      elif fid == 2:
4818
        if ftype == TType.STRING:
4906
        if ftype == TType.I64:
4819
          self.invoice_number = iprot.readString();
-
 
4820
        else:
-
 
4821
          iprot.skip(ftype)
-
 
4822
      elif fid == 3:
-
 
4823
        if ftype == TType.STRING:
-
 
4824
          self.billed_by = iprot.readString();
4907
          self.customerId = iprot.readI64();
4825
        else:
4908
        else:
4826
          iprot.skip(ftype)
4909
          iprot.skip(ftype)
4827
      else:
4910
      else:
4828
        iprot.skip(ftype)
4911
        iprot.skip(ftype)
4829
      iprot.readFieldEnd()
4912
      iprot.readFieldEnd()
Line 4831... Line 4914...
4831
 
4914
 
4832
  def write(self, oprot):
4915
  def write(self, oprot):
4833
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4834
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4835
      return
4918
      return
4836
    oprot.writeStructBegin('addBillingDetails_args')
4919
    oprot.writeStructBegin('getOrdersForTransaction_args')
4837
    if self.orderId != None:
4920
    if self.transactionId != None:
4838
      oprot.writeFieldBegin('orderId', TType.I64, 1)
4921
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
4839
      oprot.writeI64(self.orderId)
4922
      oprot.writeI64(self.transactionId)
4840
      oprot.writeFieldEnd()
-
 
4841
    if self.invoice_number != None:
-
 
4842
      oprot.writeFieldBegin('invoice_number', TType.STRING, 2)
-
 
4843
      oprot.writeString(self.invoice_number)
-
 
4844
      oprot.writeFieldEnd()
4923
      oprot.writeFieldEnd()
4845
    if self.billed_by != None:
4924
    if self.customerId != None:
4846
      oprot.writeFieldBegin('billed_by', TType.STRING, 3)
4925
      oprot.writeFieldBegin('customerId', TType.I64, 2)
4847
      oprot.writeString(self.billed_by)
4926
      oprot.writeI64(self.customerId)
4848
      oprot.writeFieldEnd()
4927
      oprot.writeFieldEnd()
4849
    oprot.writeFieldStop()
4928
    oprot.writeFieldStop()
4850
    oprot.writeStructEnd()
4929
    oprot.writeStructEnd()
4851
 
4930
 
4852
  def __repr__(self):
4931
  def __repr__(self):
Line 4858... Line 4937...
4858
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4937
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4859
 
4938
 
4860
  def __ne__(self, other):
4939
  def __ne__(self, other):
4861
    return not (self == other)
4940
    return not (self == other)
4862
 
4941
 
4863
class addBillingDetails_result:
4942
class getOrdersForTransaction_result:
4864
  """
4943
  """
4865
  Attributes:
4944
  Attributes:
4866
   - success
4945
   - success
4867
   - ex
4946
   - ex
4868
  """
4947
  """
4869
 
4948
 
4870
  thrift_spec = (
4949
  thrift_spec = (
4871
    (0, TType.BOOL, 'success', None, None, ), # 0
4950
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
4872
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
4951
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
4873
  )
4952
  )
4874
 
4953
 
4875
  def __init__(self, success=None, ex=None,):
4954
  def __init__(self, success=None, ex=None,):
4876
    self.success = success
4955
    self.success = success
Line 4884... Line 4963...
4884
    while True:
4963
    while True:
4885
      (fname, ftype, fid) = iprot.readFieldBegin()
4964
      (fname, ftype, fid) = iprot.readFieldBegin()
4886
      if ftype == TType.STOP:
4965
      if ftype == TType.STOP:
4887
        break
4966
        break
4888
      if fid == 0:
4967
      if fid == 0:
4889
        if ftype == TType.BOOL:
4968
        if ftype == TType.LIST:
-
 
4969
          self.success = []
-
 
4970
          (_etype59, _size56) = iprot.readListBegin()
-
 
4971
          for _i60 in xrange(_size56):
-
 
4972
            _elem61 = Order()
-
 
4973
            _elem61.read(iprot)
4890
          self.success = iprot.readBool();
4974
            self.success.append(_elem61)
-
 
4975
          iprot.readListEnd()
4891
        else:
4976
        else:
4892
          iprot.skip(ftype)
4977
          iprot.skip(ftype)
4893
      elif fid == 1:
4978
      elif fid == 1:
4894
        if ftype == TType.STRUCT:
4979
        if ftype == TType.STRUCT:
4895
          self.ex = TransactionServiceException()
4980
          self.ex = TransactionServiceException()
Line 4903... Line 4988...
4903
 
4988
 
4904
  def write(self, oprot):
4989
  def write(self, oprot):
4905
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4990
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4906
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4991
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4907
      return
4992
      return
4908
    oprot.writeStructBegin('addBillingDetails_result')
4993
    oprot.writeStructBegin('getOrdersForTransaction_result')
4909
    if self.success != None:
4994
    if self.success != None:
4910
      oprot.writeFieldBegin('success', TType.BOOL, 0)
4995
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
4996
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4911
      oprot.writeBool(self.success)
4997
      for iter62 in self.success:
-
 
4998
        iter62.write(oprot)
-
 
4999
      oprot.writeListEnd()
4912
      oprot.writeFieldEnd()
5000
      oprot.writeFieldEnd()
4913
    if self.ex != None:
5001
    if self.ex != None:
4914
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5002
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
4915
      self.ex.write(oprot)
5003
      self.ex.write(oprot)
4916
      oprot.writeFieldEnd()
5004
      oprot.writeFieldEnd()
Line 4926... Line 5014...
4926
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5014
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4927
 
5015
 
4928
  def __ne__(self, other):
5016
  def __ne__(self, other):
4929
    return not (self == other)
5017
    return not (self == other)
4930
 
5018
 
4931
class addJacketNumber_args:
5019
class getOrdersForCustomer_args:
4932
  """
5020
  """
4933
  Attributes:
5021
  Attributes:
4934
   - orderId
5022
   - customerId
4935
   - jacketNumber
-
 
4936
   - imeiNumber
5023
   - from_date
4937
   - itemNumber
5024
   - to_date
4938
   - billedBy
5025
   - statuses
4939
   - billingType
-
 
4940
  """
5026
  """
4941
 
5027
 
4942
  thrift_spec = (
5028
  thrift_spec = (
4943
    None, # 0
5029
    None, # 0
4944
    (1, TType.I64, 'orderId', None, None, ), # 1
5030
    (1, TType.I64, 'customerId', None, None, ), # 1
4945
    (2, TType.I64, 'jacketNumber', None, None, ), # 2
5031
    (2, TType.I64, 'from_date', None, None, ), # 2
4946
    (3, TType.I64, 'imeiNumber', None, None, ), # 3
5032
    (3, TType.I64, 'to_date', None, None, ), # 3
4947
    (4, TType.STRING, 'itemNumber', None, None, ), # 4
5033
    (4, TType.LIST, 'statuses', (TType.I32,None), None, ), # 4
4948
    (5, TType.STRING, 'billedBy', None, None, ), # 5
-
 
4949
    (6, TType.I64, 'billingType', None, None, ), # 6
-
 
4950
  )
5034
  )
4951
 
5035
 
4952
  def __init__(self, orderId=None, jacketNumber=None, imeiNumber=None, itemNumber=None, billedBy=None, billingType=None,):
5036
  def __init__(self, customerId=None, from_date=None, to_date=None, statuses=None,):
4953
    self.orderId = orderId
5037
    self.customerId = customerId
4954
    self.jacketNumber = jacketNumber
-
 
4955
    self.imeiNumber = imeiNumber
5038
    self.from_date = from_date
4956
    self.itemNumber = itemNumber
5039
    self.to_date = to_date
4957
    self.billedBy = billedBy
5040
    self.statuses = statuses
4958
    self.billingType = billingType
-
 
4959
 
5041
 
4960
  def read(self, iprot):
5042
  def read(self, iprot):
4961
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4962
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4963
      return
5045
      return
Line 4966... Line 5048...
4966
      (fname, ftype, fid) = iprot.readFieldBegin()
5048
      (fname, ftype, fid) = iprot.readFieldBegin()
4967
      if ftype == TType.STOP:
5049
      if ftype == TType.STOP:
4968
        break
5050
        break
4969
      if fid == 1:
5051
      if fid == 1:
4970
        if ftype == TType.I64:
5052
        if ftype == TType.I64:
4971
          self.orderId = iprot.readI64();
5053
          self.customerId = iprot.readI64();
4972
        else:
5054
        else:
4973
          iprot.skip(ftype)
5055
          iprot.skip(ftype)
4974
      elif fid == 2:
5056
      elif fid == 2:
4975
        if ftype == TType.I64:
5057
        if ftype == TType.I64:
4976
          self.jacketNumber = iprot.readI64();
5058
          self.from_date = iprot.readI64();
4977
        else:
5059
        else:
4978
          iprot.skip(ftype)
5060
          iprot.skip(ftype)
4979
      elif fid == 3:
5061
      elif fid == 3:
4980
        if ftype == TType.I64:
5062
        if ftype == TType.I64:
4981
          self.imeiNumber = iprot.readI64();
5063
          self.to_date = iprot.readI64();
4982
        else:
5064
        else:
4983
          iprot.skip(ftype)
5065
          iprot.skip(ftype)
4984
      elif fid == 4:
5066
      elif fid == 4:
4985
        if ftype == TType.STRING:
5067
        if ftype == TType.LIST:
4986
          self.itemNumber = iprot.readString();
5068
          self.statuses = []
4987
        else:
-
 
4988
          iprot.skip(ftype)
5069
          (_etype66, _size63) = iprot.readListBegin()
4989
      elif fid == 5:
-
 
4990
        if ftype == TType.STRING:
5070
          for _i67 in xrange(_size63):
4991
          self.billedBy = iprot.readString();
5071
            _elem68 = iprot.readI32();
4992
        else:
5072
            self.statuses.append(_elem68)
4993
          iprot.skip(ftype)
5073
          iprot.readListEnd()
4994
      elif fid == 6:
-
 
4995
        if ftype == TType.I64:
-
 
4996
          self.billingType = iprot.readI64();
-
 
4997
        else:
5074
        else:
4998
          iprot.skip(ftype)
5075
          iprot.skip(ftype)
4999
      else:
5076
      else:
5000
        iprot.skip(ftype)
5077
        iprot.skip(ftype)
5001
      iprot.readFieldEnd()
5078
      iprot.readFieldEnd()
Line 5003... Line 5080...
5003
 
5080
 
5004
  def write(self, oprot):
5081
  def write(self, oprot):
5005
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5006
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5007
      return
5084
      return
5008
    oprot.writeStructBegin('addJacketNumber_args')
5085
    oprot.writeStructBegin('getOrdersForCustomer_args')
5009
    if self.orderId != None:
5086
    if self.customerId != None:
5010
      oprot.writeFieldBegin('orderId', TType.I64, 1)
5087
      oprot.writeFieldBegin('customerId', TType.I64, 1)
5011
      oprot.writeI64(self.orderId)
5088
      oprot.writeI64(self.customerId)
5012
      oprot.writeFieldEnd()
-
 
5013
    if self.jacketNumber != None:
-
 
5014
      oprot.writeFieldBegin('jacketNumber', TType.I64, 2)
-
 
5015
      oprot.writeI64(self.jacketNumber)
-
 
5016
      oprot.writeFieldEnd()
-
 
5017
    if self.imeiNumber != None:
-
 
5018
      oprot.writeFieldBegin('imeiNumber', TType.I64, 3)
-
 
5019
      oprot.writeI64(self.imeiNumber)
-
 
5020
      oprot.writeFieldEnd()
5089
      oprot.writeFieldEnd()
5021
    if self.itemNumber != None:
5090
    if self.from_date != None:
5022
      oprot.writeFieldBegin('itemNumber', TType.STRING, 4)
5091
      oprot.writeFieldBegin('from_date', TType.I64, 2)
5023
      oprot.writeString(self.itemNumber)
5092
      oprot.writeI64(self.from_date)
5024
      oprot.writeFieldEnd()
5093
      oprot.writeFieldEnd()
5025
    if self.billedBy != None:
5094
    if self.to_date != None:
5026
      oprot.writeFieldBegin('billedBy', TType.STRING, 5)
5095
      oprot.writeFieldBegin('to_date', TType.I64, 3)
5027
      oprot.writeString(self.billedBy)
5096
      oprot.writeI64(self.to_date)
5028
      oprot.writeFieldEnd()
5097
      oprot.writeFieldEnd()
5029
    if self.billingType != None:
5098
    if self.statuses != None:
5030
      oprot.writeFieldBegin('billingType', TType.I64, 6)
5099
      oprot.writeFieldBegin('statuses', TType.LIST, 4)
-
 
5100
      oprot.writeListBegin(TType.I32, len(self.statuses))
-
 
5101
      for iter69 in self.statuses:
5031
      oprot.writeI64(self.billingType)
5102
        oprot.writeI32(iter69)
-
 
5103
      oprot.writeListEnd()
5032
      oprot.writeFieldEnd()
5104
      oprot.writeFieldEnd()
5033
    oprot.writeFieldStop()
5105
    oprot.writeFieldStop()
5034
    oprot.writeStructEnd()
5106
    oprot.writeStructEnd()
5035
 
5107
 
5036
  def __repr__(self):
5108
  def __repr__(self):
Line 5042... Line 5114...
5042
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5114
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5043
 
5115
 
5044
  def __ne__(self, other):
5116
  def __ne__(self, other):
5045
    return not (self == other)
5117
    return not (self == other)
5046
 
5118
 
5047
class addJacketNumber_result:
5119
class getOrdersForCustomer_result:
5048
  """
5120
  """
5049
  Attributes:
5121
  Attributes:
5050
   - success
5122
   - success
5051
   - ex
5123
   - ex
5052
  """
5124
  """
5053
 
5125
 
5054
  thrift_spec = (
5126
  thrift_spec = (
5055
    (0, TType.BOOL, 'success', None, None, ), # 0
5127
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
5056
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
5128
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
5057
  )
5129
  )
5058
 
5130
 
5059
  def __init__(self, success=None, ex=None,):
5131
  def __init__(self, success=None, ex=None,):
5060
    self.success = success
5132
    self.success = success
Line 5068... Line 5140...
5068
    while True:
5140
    while True:
5069
      (fname, ftype, fid) = iprot.readFieldBegin()
5141
      (fname, ftype, fid) = iprot.readFieldBegin()
5070
      if ftype == TType.STOP:
5142
      if ftype == TType.STOP:
5071
        break
5143
        break
5072
      if fid == 0:
5144
      if fid == 0:
5073
        if ftype == TType.BOOL:
5145
        if ftype == TType.LIST:
-
 
5146
          self.success = []
-
 
5147
          (_etype73, _size70) = iprot.readListBegin()
-
 
5148
          for _i74 in xrange(_size70):
-
 
5149
            _elem75 = Order()
-
 
5150
            _elem75.read(iprot)
5074
          self.success = iprot.readBool();
5151
            self.success.append(_elem75)
-
 
5152
          iprot.readListEnd()
5075
        else:
5153
        else:
5076
          iprot.skip(ftype)
5154
          iprot.skip(ftype)
5077
      elif fid == 1:
5155
      elif fid == 1:
5078
        if ftype == TType.STRUCT:
5156
        if ftype == TType.STRUCT:
5079
          self.ex = TransactionServiceException()
5157
          self.ex = TransactionServiceException()
Line 5087... Line 5165...
5087
 
5165
 
5088
  def write(self, oprot):
5166
  def write(self, oprot):
5089
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5090
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5091
      return
5169
      return
5092
    oprot.writeStructBegin('addJacketNumber_result')
5170
    oprot.writeStructBegin('getOrdersForCustomer_result')
5093
    if self.success != None:
5171
    if self.success != None:
5094
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5172
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
5173
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5095
      oprot.writeBool(self.success)
5174
      for iter76 in self.success:
-
 
5175
        iter76.write(oprot)
-
 
5176
      oprot.writeListEnd()
5096
      oprot.writeFieldEnd()
5177
      oprot.writeFieldEnd()
5097
    if self.ex != None:
5178
    if self.ex != None:
5098
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5179
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5099
      self.ex.write(oprot)
5180
      self.ex.write(oprot)
5100
      oprot.writeFieldEnd()
5181
      oprot.writeFieldEnd()
Line 5110... Line 5191...
5110
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5191
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5111
 
5192
 
5112
  def __ne__(self, other):
5193
  def __ne__(self, other):
5113
    return not (self == other)
5194
    return not (self == other)
5114
 
5195
 
5115
class acceptOrder_args:
5196
class createOrder_args:
5116
  """
5197
  """
5117
  Attributes:
5198
  Attributes:
5118
   - orderId
5199
   - order
5119
  """
5200
  """
5120
 
5201
 
5121
  thrift_spec = (
5202
  thrift_spec = (
5122
    None, # 0
5203
    None, # 0
5123
    (1, TType.I64, 'orderId', None, None, ), # 1
5204
    (1, TType.STRUCT, 'order', (Order, Order.thrift_spec), None, ), # 1
5124
  )
5205
  )
5125
 
5206
 
5126
  def __init__(self, orderId=None,):
5207
  def __init__(self, order=None,):
5127
    self.orderId = orderId
5208
    self.order = order
5128
 
5209
 
5129
  def read(self, iprot):
5210
  def read(self, iprot):
5130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5211
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5212
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5132
      return
5213
      return
Line 5134... Line 5215...
5134
    while True:
5215
    while True:
5135
      (fname, ftype, fid) = iprot.readFieldBegin()
5216
      (fname, ftype, fid) = iprot.readFieldBegin()
5136
      if ftype == TType.STOP:
5217
      if ftype == TType.STOP:
5137
        break
5218
        break
5138
      if fid == 1:
5219
      if fid == 1:
5139
        if ftype == TType.I64:
5220
        if ftype == TType.STRUCT:
5140
          self.orderId = iprot.readI64();
5221
          self.order = Order()
-
 
5222
          self.order.read(iprot)
5141
        else:
5223
        else:
5142
          iprot.skip(ftype)
5224
          iprot.skip(ftype)
5143
      else:
5225
      else:
5144
        iprot.skip(ftype)
5226
        iprot.skip(ftype)
5145
      iprot.readFieldEnd()
5227
      iprot.readFieldEnd()
Line 5147... Line 5229...
5147
 
5229
 
5148
  def write(self, oprot):
5230
  def write(self, oprot):
5149
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5231
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5150
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5232
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5151
      return
5233
      return
5152
    oprot.writeStructBegin('acceptOrder_args')
5234
    oprot.writeStructBegin('createOrder_args')
5153
    if self.orderId != None:
5235
    if self.order != None:
5154
      oprot.writeFieldBegin('orderId', TType.I64, 1)
5236
      oprot.writeFieldBegin('order', TType.STRUCT, 1)
5155
      oprot.writeI64(self.orderId)
5237
      self.order.write(oprot)
5156
      oprot.writeFieldEnd()
5238
      oprot.writeFieldEnd()
5157
    oprot.writeFieldStop()
5239
    oprot.writeFieldStop()
5158
    oprot.writeStructEnd()
5240
    oprot.writeStructEnd()
5159
 
5241
 
5160
  def __repr__(self):
5242
  def __repr__(self):
Line 5166... Line 5248...
5166
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5248
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5167
 
5249
 
5168
  def __ne__(self, other):
5250
  def __ne__(self, other):
5169
    return not (self == other)
5251
    return not (self == other)
5170
 
5252
 
5171
class acceptOrder_result:
5253
class createOrder_result:
5172
  """
5254
  """
5173
  Attributes:
5255
  Attributes:
5174
   - success
5256
   - success
5175
   - ex
5257
   - ex
5176
  """
5258
  """
5177
 
5259
 
5178
  thrift_spec = (
5260
  thrift_spec = (
5179
    (0, TType.BOOL, 'success', None, None, ), # 0
5261
    (0, TType.I64, 'success', None, None, ), # 0
5180
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
5262
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
5181
  )
5263
  )
5182
 
5264
 
5183
  def __init__(self, success=None, ex=None,):
5265
  def __init__(self, success=None, ex=None,):
5184
    self.success = success
5266
    self.success = success
Line 5192... Line 5274...
5192
    while True:
5274
    while True:
5193
      (fname, ftype, fid) = iprot.readFieldBegin()
5275
      (fname, ftype, fid) = iprot.readFieldBegin()
5194
      if ftype == TType.STOP:
5276
      if ftype == TType.STOP:
5195
        break
5277
        break
5196
      if fid == 0:
5278
      if fid == 0:
5197
        if ftype == TType.BOOL:
5279
        if ftype == TType.I64:
5198
          self.success = iprot.readBool();
5280
          self.success = iprot.readI64();
5199
        else:
5281
        else:
5200
          iprot.skip(ftype)
5282
          iprot.skip(ftype)
5201
      elif fid == 1:
5283
      elif fid == 1:
5202
        if ftype == TType.STRUCT:
5284
        if ftype == TType.STRUCT:
5203
          self.ex = TransactionServiceException()
5285
          self.ex = TransactionServiceException()
Line 5211... Line 5293...
5211
 
5293
 
5212
  def write(self, oprot):
5294
  def write(self, oprot):
5213
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5295
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5214
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5296
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5215
      return
5297
      return
5216
    oprot.writeStructBegin('acceptOrder_result')
5298
    oprot.writeStructBegin('createOrder_result')
5217
    if self.success != None:
5299
    if self.success != None:
5218
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5300
      oprot.writeFieldBegin('success', TType.I64, 0)
5219
      oprot.writeBool(self.success)
5301
      oprot.writeI64(self.success)
5220
      oprot.writeFieldEnd()
5302
      oprot.writeFieldEnd()
5221
    if self.ex != None:
5303
    if self.ex != None:
5222
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5304
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5223
      self.ex.write(oprot)
5305
      self.ex.write(oprot)
5224
      oprot.writeFieldEnd()
5306
      oprot.writeFieldEnd()
Line 5234... Line 5316...
5234
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5235
 
5317
 
5236
  def __ne__(self, other):
5318
  def __ne__(self, other):
5237
    return not (self == other)
5319
    return not (self == other)
5238
 
5320
 
5239
class billOrder_args:
5321
class getOrder_args:
5240
  """
5322
  """
5241
  Attributes:
5323
  Attributes:
5242
   - orderId
5324
   - id
5243
  """
5325
  """
5244
 
5326
 
5245
  thrift_spec = (
5327
  thrift_spec = (
5246
    None, # 0
5328
    None, # 0
5247
    (1, TType.I64, 'orderId', None, None, ), # 1
5329
    (1, TType.I64, 'id', None, None, ), # 1
5248
  )
5330
  )
5249
 
5331
 
5250
  def __init__(self, orderId=None,):
5332
  def __init__(self, id=None,):
5251
    self.orderId = orderId
5333
    self.id = id
5252
 
5334
 
5253
  def read(self, iprot):
5335
  def read(self, iprot):
5254
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5336
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5255
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5337
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5256
      return
5338
      return
Line 5259... Line 5341...
5259
      (fname, ftype, fid) = iprot.readFieldBegin()
5341
      (fname, ftype, fid) = iprot.readFieldBegin()
5260
      if ftype == TType.STOP:
5342
      if ftype == TType.STOP:
5261
        break
5343
        break
5262
      if fid == 1:
5344
      if fid == 1:
5263
        if ftype == TType.I64:
5345
        if ftype == TType.I64:
5264
          self.orderId = iprot.readI64();
5346
          self.id = iprot.readI64();
5265
        else:
5347
        else:
5266
          iprot.skip(ftype)
5348
          iprot.skip(ftype)
5267
      else:
5349
      else:
5268
        iprot.skip(ftype)
5350
        iprot.skip(ftype)
5269
      iprot.readFieldEnd()
5351
      iprot.readFieldEnd()
Line 5271... Line 5353...
5271
 
5353
 
5272
  def write(self, oprot):
5354
  def write(self, oprot):
5273
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5355
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5274
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5356
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5275
      return
5357
      return
5276
    oprot.writeStructBegin('billOrder_args')
5358
    oprot.writeStructBegin('getOrder_args')
5277
    if self.orderId != None:
5359
    if self.id != None:
5278
      oprot.writeFieldBegin('orderId', TType.I64, 1)
5360
      oprot.writeFieldBegin('id', TType.I64, 1)
5279
      oprot.writeI64(self.orderId)
5361
      oprot.writeI64(self.id)
5280
      oprot.writeFieldEnd()
5362
      oprot.writeFieldEnd()
5281
    oprot.writeFieldStop()
5363
    oprot.writeFieldStop()
5282
    oprot.writeStructEnd()
5364
    oprot.writeStructEnd()
5283
 
5365
 
5284
  def __repr__(self):
5366
  def __repr__(self):
Line 5290... Line 5372...
5290
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5372
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5291
 
5373
 
5292
  def __ne__(self, other):
5374
  def __ne__(self, other):
5293
    return not (self == other)
5375
    return not (self == other)
5294
 
5376
 
5295
class billOrder_result:
5377
class getOrder_result:
5296
  """
5378
  """
5297
  Attributes:
5379
  Attributes:
5298
   - success
5380
   - success
5299
   - ex
5381
   - ex
5300
  """
5382
  """
5301
 
5383
 
5302
  thrift_spec = (
5384
  thrift_spec = (
5303
    (0, TType.BOOL, 'success', None, None, ), # 0
5385
    (0, TType.STRUCT, 'success', (Order, Order.thrift_spec), None, ), # 0
5304
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
5386
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
5305
  )
5387
  )
5306
 
5388
 
5307
  def __init__(self, success=None, ex=None,):
5389
  def __init__(self, success=None, ex=None,):
5308
    self.success = success
5390
    self.success = success
Line 5316... Line 5398...
5316
    while True:
5398
    while True:
5317
      (fname, ftype, fid) = iprot.readFieldBegin()
5399
      (fname, ftype, fid) = iprot.readFieldBegin()
5318
      if ftype == TType.STOP:
5400
      if ftype == TType.STOP:
5319
        break
5401
        break
5320
      if fid == 0:
5402
      if fid == 0:
5321
        if ftype == TType.BOOL:
5403
        if ftype == TType.STRUCT:
5322
          self.success = iprot.readBool();
5404
          self.success = Order()
-
 
5405
          self.success.read(iprot)
5323
        else:
5406
        else:
5324
          iprot.skip(ftype)
5407
          iprot.skip(ftype)
5325
      elif fid == 1:
5408
      elif fid == 1:
5326
        if ftype == TType.STRUCT:
5409
        if ftype == TType.STRUCT:
5327
          self.ex = TransactionServiceException()
5410
          self.ex = TransactionServiceException()
Line 5335... Line 5418...
5335
 
5418
 
5336
  def write(self, oprot):
5419
  def write(self, oprot):
5337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5420
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5421
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5339
      return
5422
      return
5340
    oprot.writeStructBegin('billOrder_result')
5423
    oprot.writeStructBegin('getOrder_result')
5341
    if self.success != None:
5424
    if self.success != None:
5342
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5425
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5343
      oprot.writeBool(self.success)
5426
      self.success.write(oprot)
5344
      oprot.writeFieldEnd()
5427
      oprot.writeFieldEnd()
5345
    if self.ex != None:
5428
    if self.ex != None:
5346
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5429
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5347
      self.ex.write(oprot)
5430
      self.ex.write(oprot)
5348
      oprot.writeFieldEnd()
5431
      oprot.writeFieldEnd()
Line 5358... Line 5441...
5358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5441
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5359
 
5442
 
5360
  def __ne__(self, other):
5443
  def __ne__(self, other):
5361
    return not (self == other)
5444
    return not (self == other)
5362
 
5445
 
5363
class getOrdersForTransaction_args:
5446
class getLineItemsForOrder_args:
5364
  """
5447
  """
5365
  Attributes:
5448
  Attributes:
5366
   - transactionId
-
 
5367
   - customerId
5449
   - orderId
5368
  """
5450
  """
5369
 
5451
 
5370
  thrift_spec = (
5452
  thrift_spec = (
5371
    None, # 0
5453
    None, # 0
5372
    (1, TType.I64, 'transactionId', None, None, ), # 1
-
 
5373
    (2, TType.I64, 'customerId', None, None, ), # 2
5454
    (1, TType.I64, 'orderId', None, None, ), # 1
5374
  )
5455
  )
5375
 
5456
 
5376
  def __init__(self, transactionId=None, customerId=None,):
5457
  def __init__(self, orderId=None,):
5377
    self.transactionId = transactionId
-
 
5378
    self.customerId = customerId
5458
    self.orderId = orderId
5379
 
5459
 
5380
  def read(self, iprot):
5460
  def read(self, iprot):
5381
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5461
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5382
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5462
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5383
      return
5463
      return
Line 5386... Line 5466...
5386
      (fname, ftype, fid) = iprot.readFieldBegin()
5466
      (fname, ftype, fid) = iprot.readFieldBegin()
5387
      if ftype == TType.STOP:
5467
      if ftype == TType.STOP:
5388
        break
5468
        break
5389
      if fid == 1:
5469
      if fid == 1:
5390
        if ftype == TType.I64:
5470
        if ftype == TType.I64:
5391
          self.transactionId = iprot.readI64();
-
 
5392
        else:
-
 
5393
          iprot.skip(ftype)
-
 
5394
      elif fid == 2:
-
 
5395
        if ftype == TType.I64:
-
 
5396
          self.customerId = iprot.readI64();
5471
          self.orderId = iprot.readI64();
5397
        else:
5472
        else:
5398
          iprot.skip(ftype)
5473
          iprot.skip(ftype)
5399
      else:
5474
      else:
5400
        iprot.skip(ftype)
5475
        iprot.skip(ftype)
5401
      iprot.readFieldEnd()
5476
      iprot.readFieldEnd()
Line 5403... Line 5478...
5403
 
5478
 
5404
  def write(self, oprot):
5479
  def write(self, oprot):
5405
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5406
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5407
      return
5482
      return
5408
    oprot.writeStructBegin('getOrdersForTransaction_args')
5483
    oprot.writeStructBegin('getLineItemsForOrder_args')
5409
    if self.transactionId != None:
-
 
5410
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
-
 
5411
      oprot.writeI64(self.transactionId)
-
 
5412
      oprot.writeFieldEnd()
-
 
5413
    if self.customerId != None:
5484
    if self.orderId != None:
5414
      oprot.writeFieldBegin('customerId', TType.I64, 2)
5485
      oprot.writeFieldBegin('orderId', TType.I64, 1)
5415
      oprot.writeI64(self.customerId)
5486
      oprot.writeI64(self.orderId)
5416
      oprot.writeFieldEnd()
5487
      oprot.writeFieldEnd()
5417
    oprot.writeFieldStop()
5488
    oprot.writeFieldStop()
5418
    oprot.writeStructEnd()
5489
    oprot.writeStructEnd()
5419
 
5490
 
5420
  def __repr__(self):
5491
  def __repr__(self):
Line 5426... Line 5497...
5426
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5497
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5427
 
5498
 
5428
  def __ne__(self, other):
5499
  def __ne__(self, other):
5429
    return not (self == other)
5500
    return not (self == other)
5430
 
5501
 
5431
class getOrdersForTransaction_result:
5502
class getLineItemsForOrder_result:
5432
  """
5503
  """
5433
  Attributes:
5504
  Attributes:
5434
   - success
5505
   - success
5435
   - ex
5506
   - ex
5436
  """
5507
  """
5437
 
5508
 
5438
  thrift_spec = (
5509
  thrift_spec = (
5439
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
5510
    (0, TType.LIST, 'success', (TType.STRUCT,(LineItem, LineItem.thrift_spec)), None, ), # 0
5440
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
5511
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
5441
  )
5512
  )
5442
 
5513
 
5443
  def __init__(self, success=None, ex=None,):
5514
  def __init__(self, success=None, ex=None,):
5444
    self.success = success
5515
    self.success = success
Line 5454... Line 5525...
5454
      if ftype == TType.STOP:
5525
      if ftype == TType.STOP:
5455
        break
5526
        break
5456
      if fid == 0:
5527
      if fid == 0:
5457
        if ftype == TType.LIST:
5528
        if ftype == TType.LIST:
5458
          self.success = []
5529
          self.success = []
5459
          (_etype59, _size56) = iprot.readListBegin()
5530
          (_etype80, _size77) = iprot.readListBegin()
5460
          for _i60 in xrange(_size56):
5531
          for _i81 in xrange(_size77):
5461
            _elem61 = Order()
5532
            _elem82 = LineItem()
5462
            _elem61.read(iprot)
5533
            _elem82.read(iprot)
5463
            self.success.append(_elem61)
5534
            self.success.append(_elem82)
5464
          iprot.readListEnd()
5535
          iprot.readListEnd()
5465
        else:
5536
        else:
5466
          iprot.skip(ftype)
5537
          iprot.skip(ftype)
5467
      elif fid == 1:
5538
      elif fid == 1:
5468
        if ftype == TType.STRUCT:
5539
        if ftype == TType.STRUCT:
Line 5477... Line 5548...
5477
 
5548
 
5478
  def write(self, oprot):
5549
  def write(self, oprot):
5479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5550
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5551
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5481
      return
5552
      return
5482
    oprot.writeStructBegin('getOrdersForTransaction_result')
5553
    oprot.writeStructBegin('getLineItemsForOrder_result')
5483
    if self.success != None:
5554
    if self.success != None:
5484
      oprot.writeFieldBegin('success', TType.LIST, 0)
5555
      oprot.writeFieldBegin('success', TType.LIST, 0)
5485
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5556
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5486
      for iter62 in self.success:
5557
      for iter83 in self.success:
5487
        iter62.write(oprot)
5558
        iter83.write(oprot)
5488
      oprot.writeListEnd()
5559
      oprot.writeListEnd()
5489
      oprot.writeFieldEnd()
5560
      oprot.writeFieldEnd()
5490
    if self.ex != None:
5561
    if self.ex != None:
5491
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5562
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5492
      self.ex.write(oprot)
5563
      self.ex.write(oprot)
Line 5503... Line 5574...
5503
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5504
 
5575
 
5505
  def __ne__(self, other):
5576
  def __ne__(self, other):
5506
    return not (self == other)
5577
    return not (self == other)
5507
 
5578
 
5508
class getOrdersForCustomer_args:
5579
class getOrderForCustomer_args:
5509
  """
5580
  """
5510
  Attributes:
5581
  Attributes:
-
 
5582
   - orderId
5511
   - customerId
5583
   - customerId
5512
   - from_date
-
 
5513
   - to_date
-
 
5514
   - statuses
-
 
5515
  """
5584
  """
5516
 
5585
 
5517
  thrift_spec = (
5586
  thrift_spec = (
5518
    None, # 0
5587
    None, # 0
5519
    (1, TType.I64, 'customerId', None, None, ), # 1
5588
    (1, TType.I64, 'orderId', None, None, ), # 1
5520
    (2, TType.I64, 'from_date', None, None, ), # 2
5589
    (2, TType.I64, 'customerId', None, None, ), # 2
5521
    (3, TType.I64, 'to_date', None, None, ), # 3
-
 
5522
    (4, TType.LIST, 'statuses', (TType.I32,None), None, ), # 4
-
 
5523
  )
5590
  )
5524
 
5591
 
5525
  def __init__(self, customerId=None, from_date=None, to_date=None, statuses=None,):
5592
  def __init__(self, orderId=None, customerId=None,):
-
 
5593
    self.orderId = orderId
5526
    self.customerId = customerId
5594
    self.customerId = customerId
5527
    self.from_date = from_date
-
 
5528
    self.to_date = to_date
-
 
5529
    self.statuses = statuses
-
 
5530
 
5595
 
5531
  def read(self, iprot):
5596
  def read(self, iprot):
5532
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5597
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5533
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5598
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5534
      return
5599
      return
Line 5537... Line 5602...
5537
      (fname, ftype, fid) = iprot.readFieldBegin()
5602
      (fname, ftype, fid) = iprot.readFieldBegin()
5538
      if ftype == TType.STOP:
5603
      if ftype == TType.STOP:
5539
        break
5604
        break
5540
      if fid == 1:
5605
      if fid == 1:
5541
        if ftype == TType.I64:
5606
        if ftype == TType.I64:
5542
          self.customerId = iprot.readI64();
5607
          self.orderId = iprot.readI64();
5543
        else:
5608
        else:
5544
          iprot.skip(ftype)
5609
          iprot.skip(ftype)
5545
      elif fid == 2:
5610
      elif fid == 2:
5546
        if ftype == TType.I64:
5611
        if ftype == TType.I64:
5547
          self.from_date = iprot.readI64();
-
 
5548
        else:
-
 
5549
          iprot.skip(ftype)
-
 
5550
      elif fid == 3:
-
 
5551
        if ftype == TType.I64:
-
 
5552
          self.to_date = iprot.readI64();
5612
          self.customerId = iprot.readI64();
5553
        else:
-
 
5554
          iprot.skip(ftype)
-
 
5555
      elif fid == 4:
-
 
5556
        if ftype == TType.LIST:
-
 
5557
          self.statuses = []
-
 
5558
          (_etype66, _size63) = iprot.readListBegin()
-
 
5559
          for _i67 in xrange(_size63):
-
 
5560
            _elem68 = iprot.readI32();
-
 
5561
            self.statuses.append(_elem68)
-
 
5562
          iprot.readListEnd()
-
 
5563
        else:
5613
        else:
5564
          iprot.skip(ftype)
5614
          iprot.skip(ftype)
5565
      else:
5615
      else:
5566
        iprot.skip(ftype)
5616
        iprot.skip(ftype)
5567
      iprot.readFieldEnd()
5617
      iprot.readFieldEnd()
Line 5569... Line 5619...
5569
 
5619
 
5570
  def write(self, oprot):
5620
  def write(self, oprot):
5571
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5621
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5572
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5622
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5573
      return
5623
      return
5574
    oprot.writeStructBegin('getOrdersForCustomer_args')
5624
    oprot.writeStructBegin('getOrderForCustomer_args')
-
 
5625
    if self.orderId != None:
-
 
5626
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
5627
      oprot.writeI64(self.orderId)
-
 
5628
      oprot.writeFieldEnd()
5575
    if self.customerId != None:
5629
    if self.customerId != None:
5576
      oprot.writeFieldBegin('customerId', TType.I64, 1)
5630
      oprot.writeFieldBegin('customerId', TType.I64, 2)
5577
      oprot.writeI64(self.customerId)
5631
      oprot.writeI64(self.customerId)
5578
      oprot.writeFieldEnd()
5632
      oprot.writeFieldEnd()
5579
    if self.from_date != None:
-
 
5580
      oprot.writeFieldBegin('from_date', TType.I64, 2)
-
 
5581
      oprot.writeI64(self.from_date)
-
 
5582
      oprot.writeFieldEnd()
-
 
5583
    if self.to_date != None:
-
 
5584
      oprot.writeFieldBegin('to_date', TType.I64, 3)
-
 
5585
      oprot.writeI64(self.to_date)
-
 
5586
      oprot.writeFieldEnd()
-
 
5587
    if self.statuses != None:
-
 
5588
      oprot.writeFieldBegin('statuses', TType.LIST, 4)
-
 
5589
      oprot.writeListBegin(TType.I32, len(self.statuses))
-
 
5590
      for iter69 in self.statuses:
-
 
5591
        oprot.writeI32(iter69)
-
 
5592
      oprot.writeListEnd()
-
 
5593
      oprot.writeFieldEnd()
-
 
5594
    oprot.writeFieldStop()
5633
    oprot.writeFieldStop()
5595
    oprot.writeStructEnd()
5634
    oprot.writeStructEnd()
5596
 
5635
 
5597
  def __repr__(self):
5636
  def __repr__(self):
5598
    L = ['%s=%r' % (key, value)
5637
    L = ['%s=%r' % (key, value)
Line 5603... Line 5642...
5603
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5642
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5604
 
5643
 
5605
  def __ne__(self, other):
5644
  def __ne__(self, other):
5606
    return not (self == other)
5645
    return not (self == other)
5607
 
5646
 
5608
class getOrdersForCustomer_result:
5647
class getOrderForCustomer_result:
5609
  """
5648
  """
5610
  Attributes:
5649
  Attributes:
5611
   - success
5650
   - success
5612
   - ex
5651
   - ex
5613
  """
5652
  """
5614
 
5653
 
5615
  thrift_spec = (
5654
  thrift_spec = (
5616
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
5655
    (0, TType.STRUCT, 'success', (Order, Order.thrift_spec), None, ), # 0
5617
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
5656
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
5618
  )
5657
  )
5619
 
5658
 
5620
  def __init__(self, success=None, ex=None,):
5659
  def __init__(self, success=None, ex=None,):
5621
    self.success = success
5660
    self.success = success
Line 5629... Line 5668...
5629
    while True:
5668
    while True:
5630
      (fname, ftype, fid) = iprot.readFieldBegin()
5669
      (fname, ftype, fid) = iprot.readFieldBegin()
5631
      if ftype == TType.STOP:
5670
      if ftype == TType.STOP:
5632
        break
5671
        break
5633
      if fid == 0:
5672
      if fid == 0:
5634
        if ftype == TType.LIST:
5673
        if ftype == TType.STRUCT:
5635
          self.success = []
5674
          self.success = Order()
5636
          (_etype73, _size70) = iprot.readListBegin()
-
 
5637
          for _i74 in xrange(_size70):
-
 
5638
            _elem75 = Order()
-
 
5639
            _elem75.read(iprot)
-
 
5640
            self.success.append(_elem75)
5675
          self.success.read(iprot)
5641
          iprot.readListEnd()
-
 
5642
        else:
5676
        else:
5643
          iprot.skip(ftype)
5677
          iprot.skip(ftype)
5644
      elif fid == 1:
5678
      elif fid == 1:
5645
        if ftype == TType.STRUCT:
5679
        if ftype == TType.STRUCT:
5646
          self.ex = TransactionServiceException()
5680
          self.ex = TransactionServiceException()
Line 5654... Line 5688...
5654
 
5688
 
5655
  def write(self, oprot):
5689
  def write(self, oprot):
5656
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5690
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5657
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5691
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5658
      return
5692
      return
5659
    oprot.writeStructBegin('getOrdersForCustomer_result')
5693
    oprot.writeStructBegin('getOrderForCustomer_result')
5660
    if self.success != None:
5694
    if self.success != None:
5661
      oprot.writeFieldBegin('success', TType.LIST, 0)
5695
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
5662
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
5663
      for iter76 in self.success:
-
 
5664
        iter76.write(oprot)
5696
      self.success.write(oprot)
5665
      oprot.writeListEnd()
-
 
5666
      oprot.writeFieldEnd()
5697
      oprot.writeFieldEnd()
5667
    if self.ex != None:
5698
    if self.ex != None:
5668
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5699
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
5669
      self.ex.write(oprot)
5700
      self.ex.write(oprot)
5670
      oprot.writeFieldEnd()
5701
      oprot.writeFieldEnd()
Line 5680... Line 5711...
5680
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5711
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5681
 
5712
 
5682
  def __ne__(self, other):
5713
  def __ne__(self, other):
5683
    return not (self == other)
5714
    return not (self == other)
5684
 
5715
 
5685
class createOrder_args:
5716
class getAlerts_args:
5686
  """
5717
  """
5687
  Attributes:
5718
  Attributes:
5688
   - order
5719
   - orderId
-
 
5720
   - valid
5689
  """
5721
  """
5690
 
5722
 
5691
  thrift_spec = (
5723
  thrift_spec = (
5692
    None, # 0
5724
    None, # 0
5693
    (1, TType.STRUCT, 'order', (Order, Order.thrift_spec), None, ), # 1
5725
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
5726
    (2, TType.BOOL, 'valid', None, None, ), # 2
5694
  )
5727
  )
5695
 
5728
 
5696
  def __init__(self, order=None,):
5729
  def __init__(self, orderId=None, valid=None,):
5697
    self.order = order
5730
    self.orderId = orderId
-
 
5731
    self.valid = valid
5698
 
5732
 
5699
  def read(self, iprot):
5733
  def read(self, iprot):
5700
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5734
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5701
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5735
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5702
      return
5736
      return
Line 5704... Line 5738...
5704
    while True:
5738
    while True:
5705
      (fname, ftype, fid) = iprot.readFieldBegin()
5739
      (fname, ftype, fid) = iprot.readFieldBegin()
5706
      if ftype == TType.STOP:
5740
      if ftype == TType.STOP:
5707
        break
5741
        break
5708
      if fid == 1:
5742
      if fid == 1:
5709
        if ftype == TType.STRUCT:
5743
        if ftype == TType.I64:
5710
          self.order = Order()
5744
          self.orderId = iprot.readI64();
-
 
5745
        else:
-
 
5746
          iprot.skip(ftype)
-
 
5747
      elif fid == 2:
-
 
5748
        if ftype == TType.BOOL:
5711
          self.order.read(iprot)
5749
          self.valid = iprot.readBool();
5712
        else:
5750
        else:
5713
          iprot.skip(ftype)
5751
          iprot.skip(ftype)
5714
      else:
5752
      else:
5715
        iprot.skip(ftype)
5753
        iprot.skip(ftype)
5716
      iprot.readFieldEnd()
5754
      iprot.readFieldEnd()
Line 5718... Line 5756...
5718
 
5756
 
5719
  def write(self, oprot):
5757
  def write(self, oprot):
5720
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5758
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5721
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5759
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5722
      return
5760
      return
5723
    oprot.writeStructBegin('createOrder_args')
5761
    oprot.writeStructBegin('getAlerts_args')
5724
    if self.order != None:
5762
    if self.orderId != None:
5725
      oprot.writeFieldBegin('order', TType.STRUCT, 1)
5763
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
5764
      oprot.writeI64(self.orderId)
5726
      self.order.write(oprot)
5765
      oprot.writeFieldEnd()
-
 
5766
    if self.valid != None:
-
 
5767
      oprot.writeFieldBegin('valid', TType.BOOL, 2)
-
 
5768
      oprot.writeBool(self.valid)
5727
      oprot.writeFieldEnd()
5769
      oprot.writeFieldEnd()
5728
    oprot.writeFieldStop()
5770
    oprot.writeFieldStop()
5729
    oprot.writeStructEnd()
5771
    oprot.writeStructEnd()
5730
 
5772
 
5731
  def __repr__(self):
5773
  def __repr__(self):
Line 5737... Line 5779...
5737
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5779
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5738
 
5780
 
5739
  def __ne__(self, other):
5781
  def __ne__(self, other):
5740
    return not (self == other)
5782
    return not (self == other)
5741
 
5783
 
5742
class createOrder_result:
5784
class getAlerts_result:
5743
  """
5785
  """
5744
  Attributes:
5786
  Attributes:
5745
   - success
5787
   - success
5746
   - ex
-
 
5747
  """
5788
  """
5748
 
5789
 
5749
  thrift_spec = (
5790
  thrift_spec = (
5750
    (0, TType.I64, 'success', None, None, ), # 0
-
 
5751
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
5791
    (0, TType.LIST, 'success', (TType.STRUCT,(Alert, Alert.thrift_spec)), None, ), # 0
5752
  )
5792
  )
5753
 
5793
 
5754
  def __init__(self, success=None, ex=None,):
5794
  def __init__(self, success=None,):
5755
    self.success = success
5795
    self.success = success
5756
    self.ex = ex
-
 
5757
 
5796
 
5758
  def read(self, iprot):
5797
  def read(self, iprot):
5759
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5760
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5761
      return
5800
      return
Line 5763... Line 5802...
5763
    while True:
5802
    while True:
5764
      (fname, ftype, fid) = iprot.readFieldBegin()
5803
      (fname, ftype, fid) = iprot.readFieldBegin()
5765
      if ftype == TType.STOP:
5804
      if ftype == TType.STOP:
5766
        break
5805
        break
5767
      if fid == 0:
5806
      if fid == 0:
5768
        if ftype == TType.I64:
5807
        if ftype == TType.LIST:
5769
          self.success = iprot.readI64();
5808
          self.success = []
5770
        else:
5809
          (_etype87, _size84) = iprot.readListBegin()
5771
          iprot.skip(ftype)
5810
          for _i88 in xrange(_size84):
5772
      elif fid == 1:
5811
            _elem89 = Alert()
5773
        if ftype == TType.STRUCT:
5812
            _elem89.read(iprot)
5774
          self.ex = TransactionServiceException()
5813
            self.success.append(_elem89)
5775
          self.ex.read(iprot)
5814
          iprot.readListEnd()
5776
        else:
5815
        else:
5777
          iprot.skip(ftype)
5816
          iprot.skip(ftype)
5778
      else:
5817
      else:
5779
        iprot.skip(ftype)
5818
        iprot.skip(ftype)
5780
      iprot.readFieldEnd()
5819
      iprot.readFieldEnd()
Line 5782... Line 5821...
5782
 
5821
 
5783
  def write(self, oprot):
5822
  def write(self, oprot):
5784
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5823
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5785
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5824
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5786
      return
5825
      return
5787
    oprot.writeStructBegin('createOrder_result')
5826
    oprot.writeStructBegin('getAlerts_result')
5788
    if self.success != None:
5827
    if self.success != None:
5789
      oprot.writeFieldBegin('success', TType.I64, 0)
5828
      oprot.writeFieldBegin('success', TType.LIST, 0)
5790
      oprot.writeI64(self.success)
5829
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5791
      oprot.writeFieldEnd()
5830
      for iter90 in self.success:
5792
    if self.ex != None:
5831
        iter90.write(oprot)
5793
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
5794
      self.ex.write(oprot)
5832
      oprot.writeListEnd()
5795
      oprot.writeFieldEnd()
5833
      oprot.writeFieldEnd()
5796
    oprot.writeFieldStop()
5834
    oprot.writeFieldStop()
5797
    oprot.writeStructEnd()
5835
    oprot.writeStructEnd()
5798
 
5836
 
5799
  def __repr__(self):
5837
  def __repr__(self):
Line 5805... Line 5843...
5805
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5843
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5806
 
5844
 
5807
  def __ne__(self, other):
5845
  def __ne__(self, other):
5808
    return not (self == other)
5846
    return not (self == other)
5809
 
5847
 
5810
class getOrder_args:
5848
class setAlert_args:
5811
  """
5849
  """
5812
  Attributes:
5850
  Attributes:
-
 
5851
   - orderId
-
 
5852
   - unset
5813
   - id
5853
   - type
-
 
5854
   - comment
5814
  """
5855
  """
5815
 
5856
 
5816
  thrift_spec = (
5857
  thrift_spec = (
5817
    None, # 0
5858
    None, # 0
5818
    (1, TType.I64, 'id', None, None, ), # 1
5859
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
5860
    (2, TType.BOOL, 'unset', None, None, ), # 2
-
 
5861
    (3, TType.I64, 'type', None, None, ), # 3
-
 
5862
    (4, TType.STRING, 'comment', None, None, ), # 4
5819
  )
5863
  )
5820
 
5864
 
-
 
5865
  def __init__(self, orderId=None, unset=None, type=None, comment=None,):
5821
  def __init__(self, id=None,):
5866
    self.orderId = orderId
-
 
5867
    self.unset = unset
5822
    self.id = id
5868
    self.type = type
-
 
5869
    self.comment = comment
5823
 
5870
 
5824
  def read(self, iprot):
5871
  def read(self, iprot):
5825
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5872
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5826
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5873
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5827
      return
5874
      return
Line 5830... Line 5877...
5830
      (fname, ftype, fid) = iprot.readFieldBegin()
5877
      (fname, ftype, fid) = iprot.readFieldBegin()
5831
      if ftype == TType.STOP:
5878
      if ftype == TType.STOP:
5832
        break
5879
        break
5833
      if fid == 1:
5880
      if fid == 1:
5834
        if ftype == TType.I64:
5881
        if ftype == TType.I64:
-
 
5882
          self.orderId = iprot.readI64();
-
 
5883
        else:
-
 
5884
          iprot.skip(ftype)
-
 
5885
      elif fid == 2:
-
 
5886
        if ftype == TType.BOOL:
-
 
5887
          self.unset = iprot.readBool();
-
 
5888
        else:
-
 
5889
          iprot.skip(ftype)
-
 
5890
      elif fid == 3:
-
 
5891
        if ftype == TType.I64:
5835
          self.id = iprot.readI64();
5892
          self.type = iprot.readI64();
-
 
5893
        else:
-
 
5894
          iprot.skip(ftype)
-
 
5895
      elif fid == 4:
-
 
5896
        if ftype == TType.STRING:
-
 
5897
          self.comment = iprot.readString();
5836
        else:
5898
        else:
5837
          iprot.skip(ftype)
5899
          iprot.skip(ftype)
5838
      else:
5900
      else:
5839
        iprot.skip(ftype)
5901
        iprot.skip(ftype)
5840
      iprot.readFieldEnd()
5902
      iprot.readFieldEnd()
Line 5842... Line 5904...
5842
 
5904
 
5843
  def write(self, oprot):
5905
  def write(self, oprot):
5844
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5906
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5845
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5907
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5846
      return
5908
      return
5847
    oprot.writeStructBegin('getOrder_args')
5909
    oprot.writeStructBegin('setAlert_args')
-
 
5910
    if self.orderId != None:
-
 
5911
      oprot.writeFieldBegin('orderId', TType.I64, 1)
-
 
5912
      oprot.writeI64(self.orderId)
-
 
5913
      oprot.writeFieldEnd()
-
 
5914
    if self.unset != None:
-
 
5915
      oprot.writeFieldBegin('unset', TType.BOOL, 2)
-
 
5916
      oprot.writeBool(self.unset)
-
 
5917
      oprot.writeFieldEnd()
5848
    if self.id != None:
5918
    if self.type != None:
5849
      oprot.writeFieldBegin('id', TType.I64, 1)
5919
      oprot.writeFieldBegin('type', TType.I64, 3)
5850
      oprot.writeI64(self.id)
5920
      oprot.writeI64(self.type)
-
 
5921
      oprot.writeFieldEnd()
-
 
5922
    if self.comment != None:
-
 
5923
      oprot.writeFieldBegin('comment', TType.STRING, 4)
-
 
5924
      oprot.writeString(self.comment)
5851
      oprot.writeFieldEnd()
5925
      oprot.writeFieldEnd()
5852
    oprot.writeFieldStop()
5926
    oprot.writeFieldStop()
5853
    oprot.writeStructEnd()
5927
    oprot.writeStructEnd()
5854
 
5928
 
5855
  def __repr__(self):
5929
  def __repr__(self):
Line 5861... Line 5935...
5861
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5935
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5862
 
5936
 
5863
  def __ne__(self, other):
5937
  def __ne__(self, other):
5864
    return not (self == other)
5938
    return not (self == other)
5865
 
5939
 
5866
class getOrder_result:
5940
class setAlert_result:
-
 
5941
 
-
 
5942
  thrift_spec = (
-
 
5943
  )
-
 
5944
 
-
 
5945
  def read(self, iprot):
-
 
5946
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5947
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5948
      return
-
 
5949
    iprot.readStructBegin()
-
 
5950
    while True:
-
 
5951
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5952
      if ftype == TType.STOP:
-
 
5953
        break
-
 
5954
      else:
-
 
5955
        iprot.skip(ftype)
-
 
5956
      iprot.readFieldEnd()
-
 
5957
    iprot.readStructEnd()
-
 
5958
 
-
 
5959
  def write(self, oprot):
-
 
5960
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5961
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
5962
      return
-
 
5963
    oprot.writeStructBegin('setAlert_result')
-
 
5964
    oprot.writeFieldStop()
-
 
5965
    oprot.writeStructEnd()
-
 
5966
 
-
 
5967
  def __repr__(self):
-
 
5968
    L = ['%s=%r' % (key, value)
-
 
5969
      for key, value in self.__dict__.iteritems()]
-
 
5970
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
5971
 
-
 
5972
  def __eq__(self, other):
-
 
5973
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
5974
 
-
 
5975
  def __ne__(self, other):
-
 
5976
    return not (self == other)
-
 
5977
 
-
 
5978
class getValidOrderCount_args:
-
 
5979
 
-
 
5980
  thrift_spec = (
-
 
5981
  )
-
 
5982
 
-
 
5983
  def read(self, iprot):
-
 
5984
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
5985
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
5986
      return
-
 
5987
    iprot.readStructBegin()
-
 
5988
    while True:
-
 
5989
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
5990
      if ftype == TType.STOP:
-
 
5991
        break
-
 
5992
      else:
-
 
5993
        iprot.skip(ftype)
-
 
5994
      iprot.readFieldEnd()
-
 
5995
    iprot.readStructEnd()
-
 
5996
 
-
 
5997
  def write(self, oprot):
-
 
5998
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
5999
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6000
      return
-
 
6001
    oprot.writeStructBegin('getValidOrderCount_args')
-
 
6002
    oprot.writeFieldStop()
-
 
6003
    oprot.writeStructEnd()
-
 
6004
 
-
 
6005
  def __repr__(self):
-
 
6006
    L = ['%s=%r' % (key, value)
-
 
6007
      for key, value in self.__dict__.iteritems()]
-
 
6008
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6009
 
-
 
6010
  def __eq__(self, other):
-
 
6011
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6012
 
-
 
6013
  def __ne__(self, other):
-
 
6014
    return not (self == other)
-
 
6015
 
-
 
6016
class getValidOrderCount_result:
5867
  """
6017
  """
5868
  Attributes:
6018
  Attributes:
5869
   - success
6019
   - success
5870
   - ex
-
 
5871
  """
6020
  """
5872
 
6021
 
5873
  thrift_spec = (
6022
  thrift_spec = (
5874
    (0, TType.STRUCT, 'success', (Order, Order.thrift_spec), None, ), # 0
6023
    (0, TType.I64, 'success', None, None, ), # 0
5875
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
5876
  )
6024
  )
5877
 
6025
 
5878
  def __init__(self, success=None, ex=None,):
6026
  def __init__(self, success=None,):
5879
    self.success = success
6027
    self.success = success
5880
    self.ex = ex
-
 
5881
 
6028
 
5882
  def read(self, iprot):
6029
  def read(self, iprot):
5883
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6030
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5884
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6031
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5885
      return
6032
      return
Line 5887... Line 6034...
5887
    while True:
6034
    while True:
5888
      (fname, ftype, fid) = iprot.readFieldBegin()
6035
      (fname, ftype, fid) = iprot.readFieldBegin()
5889
      if ftype == TType.STOP:
6036
      if ftype == TType.STOP:
5890
        break
6037
        break
5891
      if fid == 0:
6038
      if fid == 0:
5892
        if ftype == TType.STRUCT:
6039
        if ftype == TType.I64:
5893
          self.success = Order()
6040
          self.success = iprot.readI64();
5894
          self.success.read(iprot)
-
 
5895
        else:
-
 
5896
          iprot.skip(ftype)
-
 
5897
      elif fid == 1:
-
 
5898
        if ftype == TType.STRUCT:
-
 
5899
          self.ex = TransactionServiceException()
-
 
5900
          self.ex.read(iprot)
-
 
5901
        else:
6041
        else:
5902
          iprot.skip(ftype)
6042
          iprot.skip(ftype)
5903
      else:
6043
      else:
5904
        iprot.skip(ftype)
6044
        iprot.skip(ftype)
5905
      iprot.readFieldEnd()
6045
      iprot.readFieldEnd()
Line 5907... Line 6047...
5907
 
6047
 
5908
  def write(self, oprot):
6048
  def write(self, oprot):
5909
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6049
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5910
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6050
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5911
      return
6051
      return
5912
    oprot.writeStructBegin('getOrder_result')
6052
    oprot.writeStructBegin('getValidOrderCount_result')
5913
    if self.success != None:
6053
    if self.success != None:
5914
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6054
      oprot.writeFieldBegin('success', TType.I64, 0)
5915
      self.success.write(oprot)
-
 
5916
      oprot.writeFieldEnd()
6055
      oprot.writeI64(self.success)
5917
    if self.ex != None:
-
 
5918
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
5919
      self.ex.write(oprot)
-
 
5920
      oprot.writeFieldEnd()
6056
      oprot.writeFieldEnd()
5921
    oprot.writeFieldStop()
6057
    oprot.writeFieldStop()
5922
    oprot.writeStructEnd()
6058
    oprot.writeStructEnd()
5923
 
6059
 
5924
  def __repr__(self):
6060
  def __repr__(self):
Line 5930... Line 6066...
5930
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6066
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5931
 
6067
 
5932
  def __ne__(self, other):
6068
  def __ne__(self, other):
5933
    return not (self == other)
6069
    return not (self == other)
5934
 
6070
 
5935
class getLineItemsForOrder_args:
6071
class getNoOfCustomersWithSuccessfulTransaction_args:
-
 
6072
 
-
 
6073
  thrift_spec = (
-
 
6074
  )
-
 
6075
 
-
 
6076
  def read(self, iprot):
-
 
6077
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6078
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6079
      return
-
 
6080
    iprot.readStructBegin()
-
 
6081
    while True:
-
 
6082
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6083
      if ftype == TType.STOP:
-
 
6084
        break
-
 
6085
      else:
-
 
6086
        iprot.skip(ftype)
-
 
6087
      iprot.readFieldEnd()
-
 
6088
    iprot.readStructEnd()
-
 
6089
 
-
 
6090
  def write(self, oprot):
-
 
6091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6093
      return
-
 
6094
    oprot.writeStructBegin('getNoOfCustomersWithSuccessfulTransaction_args')
-
 
6095
    oprot.writeFieldStop()
-
 
6096
    oprot.writeStructEnd()
-
 
6097
 
-
 
6098
  def __repr__(self):
-
 
6099
    L = ['%s=%r' % (key, value)
-
 
6100
      for key, value in self.__dict__.iteritems()]
-
 
6101
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6102
 
-
 
6103
  def __eq__(self, other):
-
 
6104
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6105
 
-
 
6106
  def __ne__(self, other):
-
 
6107
    return not (self == other)
-
 
6108
 
-
 
6109
class getNoOfCustomersWithSuccessfulTransaction_result:
5936
  """
6110
  """
5937
  Attributes:
6111
  Attributes:
5938
   - orderId
6112
   - success
5939
  """
6113
  """
5940
 
6114
 
5941
  thrift_spec = (
6115
  thrift_spec = (
5942
    None, # 0
-
 
5943
    (1, TType.I64, 'orderId', None, None, ), # 1
6116
    (0, TType.I64, 'success', None, None, ), # 0
5944
  )
6117
  )
5945
 
6118
 
5946
  def __init__(self, orderId=None,):
6119
  def __init__(self, success=None,):
5947
    self.orderId = orderId
6120
    self.success = success
5948
 
6121
 
5949
  def read(self, iprot):
6122
  def read(self, iprot):
5950
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6123
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5951
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6124
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5952
      return
6125
      return
5953
    iprot.readStructBegin()
6126
    iprot.readStructBegin()
5954
    while True:
6127
    while True:
5955
      (fname, ftype, fid) = iprot.readFieldBegin()
6128
      (fname, ftype, fid) = iprot.readFieldBegin()
5956
      if ftype == TType.STOP:
6129
      if ftype == TType.STOP:
5957
        break
6130
        break
5958
      if fid == 1:
6131
      if fid == 0:
5959
        if ftype == TType.I64:
6132
        if ftype == TType.I64:
5960
          self.orderId = iprot.readI64();
6133
          self.success = iprot.readI64();
5961
        else:
6134
        else:
5962
          iprot.skip(ftype)
6135
          iprot.skip(ftype)
5963
      else:
6136
      else:
5964
        iprot.skip(ftype)
6137
        iprot.skip(ftype)
5965
      iprot.readFieldEnd()
6138
      iprot.readFieldEnd()
Line 5967... Line 6140...
5967
 
6140
 
5968
  def write(self, oprot):
6141
  def write(self, oprot):
5969
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6142
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5970
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6143
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5971
      return
6144
      return
5972
    oprot.writeStructBegin('getLineItemsForOrder_args')
6145
    oprot.writeStructBegin('getNoOfCustomersWithSuccessfulTransaction_result')
5973
    if self.orderId != None:
6146
    if self.success != None:
5974
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6147
      oprot.writeFieldBegin('success', TType.I64, 0)
5975
      oprot.writeI64(self.orderId)
6148
      oprot.writeI64(self.success)
5976
      oprot.writeFieldEnd()
6149
      oprot.writeFieldEnd()
5977
    oprot.writeFieldStop()
6150
    oprot.writeFieldStop()
5978
    oprot.writeStructEnd()
6151
    oprot.writeStructEnd()
5979
 
6152
 
5980
  def __repr__(self):
6153
  def __repr__(self):
Line 5986... Line 6159...
5986
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5987
 
6160
 
5988
  def __ne__(self, other):
6161
  def __ne__(self, other):
5989
    return not (self == other)
6162
    return not (self == other)
5990
 
6163
 
-
 
6164
class getValidOrdersAmountRange_args:
-
 
6165
 
-
 
6166
  thrift_spec = (
-
 
6167
  )
-
 
6168
 
-
 
6169
  def read(self, iprot):
-
 
6170
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
6171
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
6172
      return
-
 
6173
    iprot.readStructBegin()
-
 
6174
    while True:
-
 
6175
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
6176
      if ftype == TType.STOP:
-
 
6177
        break
-
 
6178
      else:
-
 
6179
        iprot.skip(ftype)
-
 
6180
      iprot.readFieldEnd()
-
 
6181
    iprot.readStructEnd()
-
 
6182
 
-
 
6183
  def write(self, oprot):
-
 
6184
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
6185
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
6186
      return
-
 
6187
    oprot.writeStructBegin('getValidOrdersAmountRange_args')
-
 
6188
    oprot.writeFieldStop()
-
 
6189
    oprot.writeStructEnd()
-
 
6190
 
-
 
6191
  def __repr__(self):
-
 
6192
    L = ['%s=%r' % (key, value)
-
 
6193
      for key, value in self.__dict__.iteritems()]
-
 
6194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
6195
 
-
 
6196
  def __eq__(self, other):
-
 
6197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
6198
 
-
 
6199
  def __ne__(self, other):
-
 
6200
    return not (self == other)
-
 
6201
 
5991
class getLineItemsForOrder_result:
6202
class getValidOrdersAmountRange_result:
5992
  """
6203
  """
5993
  Attributes:
6204
  Attributes:
5994
   - success
6205
   - success
5995
   - ex
-
 
5996
  """
6206
  """
5997
 
6207
 
5998
  thrift_spec = (
6208
  thrift_spec = (
5999
    (0, TType.LIST, 'success', (TType.STRUCT,(LineItem, LineItem.thrift_spec)), None, ), # 0
6209
    (0, TType.LIST, 'success', (TType.DOUBLE,None), None, ), # 0
6000
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
6001
  )
6210
  )
6002
 
6211
 
6003
  def __init__(self, success=None, ex=None,):
6212
  def __init__(self, success=None,):
6004
    self.success = success
6213
    self.success = success
6005
    self.ex = ex
-
 
6006
 
6214
 
6007
  def read(self, iprot):
6215
  def read(self, iprot):
6008
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6216
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6009
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6217
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6010
      return
6218
      return
Line 6014... Line 6222...
6014
      if ftype == TType.STOP:
6222
      if ftype == TType.STOP:
6015
        break
6223
        break
6016
      if fid == 0:
6224
      if fid == 0:
6017
        if ftype == TType.LIST:
6225
        if ftype == TType.LIST:
6018
          self.success = []
6226
          self.success = []
6019
          (_etype80, _size77) = iprot.readListBegin()
6227
          (_etype94, _size91) = iprot.readListBegin()
6020
          for _i81 in xrange(_size77):
6228
          for _i95 in xrange(_size91):
6021
            _elem82 = LineItem()
6229
            _elem96 = iprot.readDouble();
6022
            _elem82.read(iprot)
-
 
6023
            self.success.append(_elem82)
6230
            self.success.append(_elem96)
6024
          iprot.readListEnd()
6231
          iprot.readListEnd()
6025
        else:
6232
        else:
6026
          iprot.skip(ftype)
6233
          iprot.skip(ftype)
6027
      elif fid == 1:
-
 
6028
        if ftype == TType.STRUCT:
-
 
6029
          self.ex = TransactionServiceException()
-
 
6030
          self.ex.read(iprot)
-
 
6031
        else:
-
 
6032
          iprot.skip(ftype)
-
 
6033
      else:
6234
      else:
6034
        iprot.skip(ftype)
6235
        iprot.skip(ftype)
6035
      iprot.readFieldEnd()
6236
      iprot.readFieldEnd()
6036
    iprot.readStructEnd()
6237
    iprot.readStructEnd()
6037
 
6238
 
6038
  def write(self, oprot):
6239
  def write(self, oprot):
6039
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6240
    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)))
6241
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6041
      return
6242
      return
6042
    oprot.writeStructBegin('getLineItemsForOrder_result')
6243
    oprot.writeStructBegin('getValidOrdersAmountRange_result')
6043
    if self.success != None:
6244
    if self.success != None:
6044
      oprot.writeFieldBegin('success', TType.LIST, 0)
6245
      oprot.writeFieldBegin('success', TType.LIST, 0)
6045
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6246
      oprot.writeListBegin(TType.DOUBLE, len(self.success))
6046
      for iter83 in self.success:
6247
      for iter97 in self.success:
6047
        iter83.write(oprot)
6248
        oprot.writeDouble(iter97)
6048
      oprot.writeListEnd()
6249
      oprot.writeListEnd()
6049
      oprot.writeFieldEnd()
6250
      oprot.writeFieldEnd()
6050
    if self.ex != None:
-
 
6051
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
6052
      self.ex.write(oprot)
-
 
6053
      oprot.writeFieldEnd()
-
 
6054
    oprot.writeFieldStop()
6251
    oprot.writeFieldStop()
6055
    oprot.writeStructEnd()
6252
    oprot.writeStructEnd()
6056
 
6253
 
6057
  def __repr__(self):
6254
  def __repr__(self):
6058
    L = ['%s=%r' % (key, value)
6255
    L = ['%s=%r' % (key, value)
Line 6063... Line 6260...
6063
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6064
 
6261
 
6065
  def __ne__(self, other):
6262
  def __ne__(self, other):
6066
    return not (self == other)
6263
    return not (self == other)
6067
 
6264
 
6068
class getOrderForCustomer_args:
6265
class getValidOrders_args:
6069
  """
6266
  """
6070
  Attributes:
6267
  Attributes:
6071
   - orderId
6268
   - limit
6072
   - customerId
-
 
6073
  """
6269
  """
6074
 
6270
 
6075
  thrift_spec = (
6271
  thrift_spec = (
6076
    None, # 0
6272
    None, # 0
6077
    (1, TType.I64, 'orderId', None, None, ), # 1
6273
    (1, TType.I64, 'limit', None, None, ), # 1
6078
    (2, TType.I64, 'customerId', None, None, ), # 2
-
 
6079
  )
6274
  )
6080
 
6275
 
6081
  def __init__(self, orderId=None, customerId=None,):
6276
  def __init__(self, limit=None,):
6082
    self.orderId = orderId
6277
    self.limit = limit
6083
    self.customerId = customerId
-
 
6084
 
6278
 
6085
  def read(self, iprot):
6279
  def read(self, iprot):
6086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6280
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6281
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6088
      return
6282
      return
Line 6091... Line 6285...
6091
      (fname, ftype, fid) = iprot.readFieldBegin()
6285
      (fname, ftype, fid) = iprot.readFieldBegin()
6092
      if ftype == TType.STOP:
6286
      if ftype == TType.STOP:
6093
        break
6287
        break
6094
      if fid == 1:
6288
      if fid == 1:
6095
        if ftype == TType.I64:
6289
        if ftype == TType.I64:
6096
          self.orderId = iprot.readI64();
6290
          self.limit = iprot.readI64();
6097
        else:
-
 
6098
          iprot.skip(ftype)
-
 
6099
      elif fid == 2:
-
 
6100
        if ftype == TType.I64:
-
 
6101
          self.customerId = iprot.readI64();
-
 
6102
        else:
6291
        else:
6103
          iprot.skip(ftype)
6292
          iprot.skip(ftype)
6104
      else:
6293
      else:
6105
        iprot.skip(ftype)
6294
        iprot.skip(ftype)
6106
      iprot.readFieldEnd()
6295
      iprot.readFieldEnd()
Line 6108... Line 6297...
6108
 
6297
 
6109
  def write(self, oprot):
6298
  def write(self, oprot):
6110
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6299
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6111
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6300
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6112
      return
6301
      return
6113
    oprot.writeStructBegin('getOrderForCustomer_args')
6302
    oprot.writeStructBegin('getValidOrders_args')
6114
    if self.orderId != None:
6303
    if self.limit != None:
6115
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6304
      oprot.writeFieldBegin('limit', TType.I64, 1)
6116
      oprot.writeI64(self.orderId)
6305
      oprot.writeI64(self.limit)
6117
      oprot.writeFieldEnd()
-
 
6118
    if self.customerId != None:
-
 
6119
      oprot.writeFieldBegin('customerId', TType.I64, 2)
-
 
6120
      oprot.writeI64(self.customerId)
-
 
6121
      oprot.writeFieldEnd()
6306
      oprot.writeFieldEnd()
6122
    oprot.writeFieldStop()
6307
    oprot.writeFieldStop()
6123
    oprot.writeStructEnd()
6308
    oprot.writeStructEnd()
6124
 
6309
 
6125
  def __repr__(self):
6310
  def __repr__(self):
Line 6131... Line 6316...
6131
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6132
 
6317
 
6133
  def __ne__(self, other):
6318
  def __ne__(self, other):
6134
    return not (self == other)
6319
    return not (self == other)
6135
 
6320
 
6136
class getOrderForCustomer_result:
6321
class getValidOrders_result:
6137
  """
6322
  """
6138
  Attributes:
6323
  Attributes:
6139
   - success
6324
   - success
6140
   - ex
-
 
6141
  """
6325
  """
6142
 
6326
 
6143
  thrift_spec = (
6327
  thrift_spec = (
6144
    (0, TType.STRUCT, 'success', (Order, Order.thrift_spec), None, ), # 0
6328
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
6145
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
6146
  )
6329
  )
6147
 
6330
 
6148
  def __init__(self, success=None, ex=None,):
6331
  def __init__(self, success=None,):
6149
    self.success = success
6332
    self.success = success
6150
    self.ex = ex
-
 
6151
 
6333
 
6152
  def read(self, iprot):
6334
  def read(self, iprot):
6153
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6335
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6154
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6336
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6155
      return
6337
      return
Line 6157... Line 6339...
6157
    while True:
6339
    while True:
6158
      (fname, ftype, fid) = iprot.readFieldBegin()
6340
      (fname, ftype, fid) = iprot.readFieldBegin()
6159
      if ftype == TType.STOP:
6341
      if ftype == TType.STOP:
6160
        break
6342
        break
6161
      if fid == 0:
6343
      if fid == 0:
6162
        if ftype == TType.STRUCT:
6344
        if ftype == TType.LIST:
6163
          self.success = Order()
6345
          self.success = []
6164
          self.success.read(iprot)
6346
          (_etype101, _size98) = iprot.readListBegin()
6165
        else:
-
 
6166
          iprot.skip(ftype)
6347
          for _i102 in xrange(_size98):
6167
      elif fid == 1:
6348
            _elem103 = Order()
6168
        if ftype == TType.STRUCT:
6349
            _elem103.read(iprot)
6169
          self.ex = TransactionServiceException()
6350
            self.success.append(_elem103)
6170
          self.ex.read(iprot)
6351
          iprot.readListEnd()
6171
        else:
6352
        else:
6172
          iprot.skip(ftype)
6353
          iprot.skip(ftype)
6173
      else:
6354
      else:
6174
        iprot.skip(ftype)
6355
        iprot.skip(ftype)
6175
      iprot.readFieldEnd()
6356
      iprot.readFieldEnd()
Line 6177... Line 6358...
6177
 
6358
 
6178
  def write(self, oprot):
6359
  def write(self, oprot):
6179
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6360
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6180
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6361
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6181
      return
6362
      return
6182
    oprot.writeStructBegin('getOrderForCustomer_result')
6363
    oprot.writeStructBegin('getValidOrders_result')
6183
    if self.success != None:
6364
    if self.success != None:
6184
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6365
      oprot.writeFieldBegin('success', TType.LIST, 0)
6185
      self.success.write(oprot)
6366
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6186
      oprot.writeFieldEnd()
6367
      for iter104 in self.success:
6187
    if self.ex != None:
6368
        iter104.write(oprot)
6188
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
6189
      self.ex.write(oprot)
6369
      oprot.writeListEnd()
6190
      oprot.writeFieldEnd()
6370
      oprot.writeFieldEnd()
6191
    oprot.writeFieldStop()
6371
    oprot.writeFieldStop()
6192
    oprot.writeStructEnd()
6372
    oprot.writeStructEnd()
6193
 
6373
 
6194
  def __repr__(self):
6374
  def __repr__(self):
Line 6284... Line 6464...
6284
      if ftype == TType.STOP:
6464
      if ftype == TType.STOP:
6285
        break
6465
        break
6286
      if fid == 0:
6466
      if fid == 0:
6287
        if ftype == TType.LIST:
6467
        if ftype == TType.LIST:
6288
          self.success = []
6468
          self.success = []
6289
          (_etype87, _size84) = iprot.readListBegin()
6469
          (_etype108, _size105) = iprot.readListBegin()
6290
          for _i88 in xrange(_size84):
6470
          for _i109 in xrange(_size105):
6291
            _elem89 = Order()
6471
            _elem110 = Order()
6292
            _elem89.read(iprot)
6472
            _elem110.read(iprot)
6293
            self.success.append(_elem89)
6473
            self.success.append(_elem110)
6294
          iprot.readListEnd()
6474
          iprot.readListEnd()
6295
        else:
6475
        else:
6296
          iprot.skip(ftype)
6476
          iprot.skip(ftype)
6297
      elif fid == 1:
6477
      elif fid == 1:
6298
        if ftype == TType.STRUCT:
6478
        if ftype == TType.STRUCT:
Line 6311... Line 6491...
6311
      return
6491
      return
6312
    oprot.writeStructBegin('batchOrders_result')
6492
    oprot.writeStructBegin('batchOrders_result')
6313
    if self.success != None:
6493
    if self.success != None:
6314
      oprot.writeFieldBegin('success', TType.LIST, 0)
6494
      oprot.writeFieldBegin('success', TType.LIST, 0)
6315
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6495
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6316
      for iter90 in self.success:
6496
      for iter111 in self.success:
6317
        iter90.write(oprot)
6497
        iter111.write(oprot)
6318
      oprot.writeListEnd()
6498
      oprot.writeListEnd()
6319
      oprot.writeFieldEnd()
6499
      oprot.writeFieldEnd()
6320
    if self.ex != None:
6500
    if self.ex != None:
6321
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6501
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6322
      self.ex.write(oprot)
6502
      self.ex.write(oprot)
Line 6457... Line 6637...
6457
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6637
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6458
 
6638
 
6459
  def __ne__(self, other):
6639
  def __ne__(self, other):
6460
    return not (self == other)
6640
    return not (self == other)
6461
 
6641
 
6462
class markOrdersAsManifested_args:
6642
class verifyOrder_args:
6463
  """
6643
  """
6464
  Attributes:
6644
  Attributes:
6465
   - warehouseId
-
 
6466
   - providerId
6645
   - orderId
6467
  """
6646
  """
6468
 
6647
 
6469
  thrift_spec = (
6648
  thrift_spec = (
6470
    None, # 0
6649
    None, # 0
6471
    (1, TType.I64, 'warehouseId', None, None, ), # 1
-
 
6472
    (2, TType.I64, 'providerId', None, None, ), # 2
6650
    (1, TType.I64, 'orderId', None, None, ), # 1
6473
  )
6651
  )
6474
 
6652
 
6475
  def __init__(self, warehouseId=None, providerId=None,):
6653
  def __init__(self, orderId=None,):
6476
    self.warehouseId = warehouseId
-
 
6477
    self.providerId = providerId
6654
    self.orderId = orderId
6478
 
6655
 
6479
  def read(self, iprot):
6656
  def read(self, iprot):
6480
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6657
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6481
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6658
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6482
      return
6659
      return
Line 6485... Line 6662...
6485
      (fname, ftype, fid) = iprot.readFieldBegin()
6662
      (fname, ftype, fid) = iprot.readFieldBegin()
6486
      if ftype == TType.STOP:
6663
      if ftype == TType.STOP:
6487
        break
6664
        break
6488
      if fid == 1:
6665
      if fid == 1:
6489
        if ftype == TType.I64:
6666
        if ftype == TType.I64:
6490
          self.warehouseId = iprot.readI64();
-
 
6491
        else:
-
 
6492
          iprot.skip(ftype)
-
 
6493
      elif fid == 2:
-
 
6494
        if ftype == TType.I64:
-
 
6495
          self.providerId = iprot.readI64();
6667
          self.orderId = iprot.readI64();
6496
        else:
6668
        else:
6497
          iprot.skip(ftype)
6669
          iprot.skip(ftype)
6498
      else:
6670
      else:
6499
        iprot.skip(ftype)
6671
        iprot.skip(ftype)
6500
      iprot.readFieldEnd()
6672
      iprot.readFieldEnd()
Line 6502... Line 6674...
6502
 
6674
 
6503
  def write(self, oprot):
6675
  def write(self, oprot):
6504
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6676
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6505
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6677
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6506
      return
6678
      return
6507
    oprot.writeStructBegin('markOrdersAsManifested_args')
6679
    oprot.writeStructBegin('verifyOrder_args')
6508
    if self.warehouseId != None:
-
 
6509
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
-
 
6510
      oprot.writeI64(self.warehouseId)
-
 
6511
      oprot.writeFieldEnd()
-
 
6512
    if self.providerId != None:
6680
    if self.orderId != None:
6513
      oprot.writeFieldBegin('providerId', TType.I64, 2)
6681
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6514
      oprot.writeI64(self.providerId)
6682
      oprot.writeI64(self.orderId)
6515
      oprot.writeFieldEnd()
6683
      oprot.writeFieldEnd()
6516
    oprot.writeFieldStop()
6684
    oprot.writeFieldStop()
6517
    oprot.writeStructEnd()
6685
    oprot.writeStructEnd()
6518
 
6686
 
6519
  def __repr__(self):
6687
  def __repr__(self):
Line 6525... Line 6693...
6525
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6693
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6526
 
6694
 
6527
  def __ne__(self, other):
6695
  def __ne__(self, other):
6528
    return not (self == other)
6696
    return not (self == other)
6529
 
6697
 
6530
class markOrdersAsManifested_result:
6698
class verifyOrder_result:
6531
  """
6699
  """
6532
  Attributes:
6700
  Attributes:
6533
   - success
6701
   - success
6534
   - ex
6702
   - ex
6535
  """
6703
  """
Line 6570... Line 6738...
6570
 
6738
 
6571
  def write(self, oprot):
6739
  def write(self, oprot):
6572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6740
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6741
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6574
      return
6742
      return
6575
    oprot.writeStructBegin('markOrdersAsManifested_result')
6743
    oprot.writeStructBegin('verifyOrder_result')
6576
    if self.success != None:
6744
    if self.success != None:
6577
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6745
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6578
      oprot.writeBool(self.success)
6746
      oprot.writeBool(self.success)
6579
      oprot.writeFieldEnd()
6747
      oprot.writeFieldEnd()
6580
    if self.ex != None:
6748
    if self.ex != None:
Line 6593... Line 6761...
6593
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6761
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6594
 
6762
 
6595
  def __ne__(self, other):
6763
  def __ne__(self, other):
6596
    return not (self == other)
6764
    return not (self == other)
6597
 
6765
 
6598
class markOrdersAsPickedUp_args:
6766
class acceptOrder_args:
6599
  """
6767
  """
6600
  Attributes:
6768
  Attributes:
6601
   - providerId
6769
   - orderId
6602
   - pickupDetails
-
 
6603
  """
6770
  """
6604
 
6771
 
6605
  thrift_spec = (
6772
  thrift_spec = (
6606
    None, # 0
6773
    None, # 0
6607
    (1, TType.I64, 'providerId', None, None, ), # 1
6774
    (1, TType.I64, 'orderId', None, None, ), # 1
6608
    (2, TType.MAP, 'pickupDetails', (TType.STRING,None,TType.STRING,None), None, ), # 2
-
 
6609
  )
6775
  )
6610
 
6776
 
6611
  def __init__(self, providerId=None, pickupDetails=None,):
6777
  def __init__(self, orderId=None,):
6612
    self.providerId = providerId
6778
    self.orderId = orderId
6613
    self.pickupDetails = pickupDetails
-
 
6614
 
6779
 
6615
  def read(self, iprot):
6780
  def read(self, iprot):
6616
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6781
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6617
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6782
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6618
      return
6783
      return
Line 6621... Line 6786...
6621
      (fname, ftype, fid) = iprot.readFieldBegin()
6786
      (fname, ftype, fid) = iprot.readFieldBegin()
6622
      if ftype == TType.STOP:
6787
      if ftype == TType.STOP:
6623
        break
6788
        break
6624
      if fid == 1:
6789
      if fid == 1:
6625
        if ftype == TType.I64:
6790
        if ftype == TType.I64:
6626
          self.providerId = iprot.readI64();
6791
          self.orderId = iprot.readI64();
6627
        else:
-
 
6628
          iprot.skip(ftype)
-
 
6629
      elif fid == 2:
-
 
6630
        if ftype == TType.MAP:
-
 
6631
          self.pickupDetails = {}
-
 
6632
          (_ktype92, _vtype93, _size91 ) = iprot.readMapBegin() 
-
 
6633
          for _i95 in xrange(_size91):
-
 
6634
            _key96 = iprot.readString();
-
 
6635
            _val97 = iprot.readString();
-
 
6636
            self.pickupDetails[_key96] = _val97
-
 
6637
          iprot.readMapEnd()
-
 
6638
        else:
6792
        else:
6639
          iprot.skip(ftype)
6793
          iprot.skip(ftype)
6640
      else:
6794
      else:
6641
        iprot.skip(ftype)
6795
        iprot.skip(ftype)
6642
      iprot.readFieldEnd()
6796
      iprot.readFieldEnd()
Line 6644... Line 6798...
6644
 
6798
 
6645
  def write(self, oprot):
6799
  def write(self, oprot):
6646
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6800
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6647
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6801
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6648
      return
6802
      return
6649
    oprot.writeStructBegin('markOrdersAsPickedUp_args')
6803
    oprot.writeStructBegin('acceptOrder_args')
6650
    if self.providerId != None:
6804
    if self.orderId != None:
6651
      oprot.writeFieldBegin('providerId', TType.I64, 1)
6805
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6652
      oprot.writeI64(self.providerId)
6806
      oprot.writeI64(self.orderId)
6653
      oprot.writeFieldEnd()
-
 
6654
    if self.pickupDetails != None:
-
 
6655
      oprot.writeFieldBegin('pickupDetails', TType.MAP, 2)
-
 
6656
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.pickupDetails))
-
 
6657
      for kiter98,viter99 in self.pickupDetails.items():
-
 
6658
        oprot.writeString(kiter98)
-
 
6659
        oprot.writeString(viter99)
-
 
6660
      oprot.writeMapEnd()
-
 
6661
      oprot.writeFieldEnd()
6807
      oprot.writeFieldEnd()
6662
    oprot.writeFieldStop()
6808
    oprot.writeFieldStop()
6663
    oprot.writeStructEnd()
6809
    oprot.writeStructEnd()
6664
 
6810
 
6665
  def __repr__(self):
6811
  def __repr__(self):
Line 6671... Line 6817...
6671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6672
 
6818
 
6673
  def __ne__(self, other):
6819
  def __ne__(self, other):
6674
    return not (self == other)
6820
    return not (self == other)
6675
 
6821
 
6676
class markOrdersAsPickedUp_result:
6822
class acceptOrder_result:
6677
  """
6823
  """
6678
  Attributes:
6824
  Attributes:
6679
   - success
6825
   - success
6680
   - ex
6826
   - ex
6681
  """
6827
  """
6682
 
6828
 
6683
  thrift_spec = (
6829
  thrift_spec = (
6684
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
6830
    (0, TType.BOOL, 'success', None, None, ), # 0
6685
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
6831
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
6686
  )
6832
  )
6687
 
6833
 
6688
  def __init__(self, success=None, ex=None,):
6834
  def __init__(self, success=None, ex=None,):
6689
    self.success = success
6835
    self.success = success
Line 6697... Line 6843...
6697
    while True:
6843
    while True:
6698
      (fname, ftype, fid) = iprot.readFieldBegin()
6844
      (fname, ftype, fid) = iprot.readFieldBegin()
6699
      if ftype == TType.STOP:
6845
      if ftype == TType.STOP:
6700
        break
6846
        break
6701
      if fid == 0:
6847
      if fid == 0:
6702
        if ftype == TType.LIST:
6848
        if ftype == TType.BOOL:
6703
          self.success = []
-
 
6704
          (_etype103, _size100) = iprot.readListBegin()
-
 
6705
          for _i104 in xrange(_size100):
-
 
6706
            _elem105 = Order()
-
 
6707
            _elem105.read(iprot)
-
 
6708
            self.success.append(_elem105)
6849
          self.success = iprot.readBool();
6709
          iprot.readListEnd()
-
 
6710
        else:
6850
        else:
6711
          iprot.skip(ftype)
6851
          iprot.skip(ftype)
6712
      elif fid == 1:
6852
      elif fid == 1:
6713
        if ftype == TType.STRUCT:
6853
        if ftype == TType.STRUCT:
6714
          self.ex = TransactionServiceException()
6854
          self.ex = TransactionServiceException()
Line 6722... Line 6862...
6722
 
6862
 
6723
  def write(self, oprot):
6863
  def write(self, oprot):
6724
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6725
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6726
      return
6866
      return
6727
    oprot.writeStructBegin('markOrdersAsPickedUp_result')
6867
    oprot.writeStructBegin('acceptOrder_result')
6728
    if self.success != None:
6868
    if self.success != None:
6729
      oprot.writeFieldBegin('success', TType.LIST, 0)
6869
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6730
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
6731
      for iter106 in self.success:
6870
      oprot.writeBool(self.success)
6732
        iter106.write(oprot)
-
 
6733
      oprot.writeListEnd()
-
 
6734
      oprot.writeFieldEnd()
6871
      oprot.writeFieldEnd()
6735
    if self.ex != None:
6872
    if self.ex != None:
6736
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6873
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6737
      self.ex.write(oprot)
6874
      self.ex.write(oprot)
6738
      oprot.writeFieldEnd()
6875
      oprot.writeFieldEnd()
Line 6748... Line 6885...
6748
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6885
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6749
 
6886
 
6750
  def __ne__(self, other):
6887
  def __ne__(self, other):
6751
    return not (self == other)
6888
    return not (self == other)
6752
 
6889
 
6753
class markOrdersAsDelivered_args:
6890
class billOrder_args:
6754
  """
6891
  """
6755
  Attributes:
6892
  Attributes:
6756
   - providerId
6893
   - orderId
6757
   - deliveredOrders
-
 
6758
  """
6894
  """
6759
 
6895
 
6760
  thrift_spec = (
6896
  thrift_spec = (
6761
    None, # 0
6897
    None, # 0
6762
    (1, TType.I64, 'providerId', None, None, ), # 1
6898
    (1, TType.I64, 'orderId', None, None, ), # 1
6763
    (2, TType.MAP, 'deliveredOrders', (TType.STRING,None,TType.STRING,None), None, ), # 2
-
 
6764
  )
6899
  )
6765
 
6900
 
6766
  def __init__(self, providerId=None, deliveredOrders=None,):
6901
  def __init__(self, orderId=None,):
6767
    self.providerId = providerId
6902
    self.orderId = orderId
6768
    self.deliveredOrders = deliveredOrders
-
 
6769
 
6903
 
6770
  def read(self, iprot):
6904
  def read(self, iprot):
6771
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6905
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6772
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6906
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6773
      return
6907
      return
Line 6776... Line 6910...
6776
      (fname, ftype, fid) = iprot.readFieldBegin()
6910
      (fname, ftype, fid) = iprot.readFieldBegin()
6777
      if ftype == TType.STOP:
6911
      if ftype == TType.STOP:
6778
        break
6912
        break
6779
      if fid == 1:
6913
      if fid == 1:
6780
        if ftype == TType.I64:
6914
        if ftype == TType.I64:
6781
          self.providerId = iprot.readI64();
6915
          self.orderId = iprot.readI64();
6782
        else:
-
 
6783
          iprot.skip(ftype)
-
 
6784
      elif fid == 2:
-
 
6785
        if ftype == TType.MAP:
-
 
6786
          self.deliveredOrders = {}
-
 
6787
          (_ktype108, _vtype109, _size107 ) = iprot.readMapBegin() 
-
 
6788
          for _i111 in xrange(_size107):
-
 
6789
            _key112 = iprot.readString();
-
 
6790
            _val113 = iprot.readString();
-
 
6791
            self.deliveredOrders[_key112] = _val113
-
 
6792
          iprot.readMapEnd()
-
 
6793
        else:
6916
        else:
6794
          iprot.skip(ftype)
6917
          iprot.skip(ftype)
6795
      else:
6918
      else:
6796
        iprot.skip(ftype)
6919
        iprot.skip(ftype)
6797
      iprot.readFieldEnd()
6920
      iprot.readFieldEnd()
Line 6799... Line 6922...
6799
 
6922
 
6800
  def write(self, oprot):
6923
  def write(self, oprot):
6801
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6924
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6802
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6925
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6803
      return
6926
      return
6804
    oprot.writeStructBegin('markOrdersAsDelivered_args')
6927
    oprot.writeStructBegin('billOrder_args')
6805
    if self.providerId != None:
6928
    if self.orderId != None:
6806
      oprot.writeFieldBegin('providerId', TType.I64, 1)
6929
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6807
      oprot.writeI64(self.providerId)
6930
      oprot.writeI64(self.orderId)
6808
      oprot.writeFieldEnd()
-
 
6809
    if self.deliveredOrders != None:
-
 
6810
      oprot.writeFieldBegin('deliveredOrders', TType.MAP, 2)
-
 
6811
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.deliveredOrders))
-
 
6812
      for kiter114,viter115 in self.deliveredOrders.items():
-
 
6813
        oprot.writeString(kiter114)
-
 
6814
        oprot.writeString(viter115)
-
 
6815
      oprot.writeMapEnd()
-
 
6816
      oprot.writeFieldEnd()
6931
      oprot.writeFieldEnd()
6817
    oprot.writeFieldStop()
6932
    oprot.writeFieldStop()
6818
    oprot.writeStructEnd()
6933
    oprot.writeStructEnd()
6819
 
6934
 
6820
  def __repr__(self):
6935
  def __repr__(self):
Line 6826... Line 6941...
6826
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6941
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6827
 
6942
 
6828
  def __ne__(self, other):
6943
  def __ne__(self, other):
6829
    return not (self == other)
6944
    return not (self == other)
6830
 
6945
 
6831
class markOrdersAsDelivered_result:
6946
class billOrder_result:
6832
  """
6947
  """
6833
  Attributes:
6948
  Attributes:
-
 
6949
   - success
6834
   - ex
6950
   - ex
6835
  """
6951
  """
6836
 
6952
 
6837
  thrift_spec = (
6953
  thrift_spec = (
6838
    None, # 0
6954
    (0, TType.BOOL, 'success', None, None, ), # 0
6839
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
6955
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
6840
  )
6956
  )
6841
 
6957
 
6842
  def __init__(self, ex=None,):
6958
  def __init__(self, success=None, ex=None,):
-
 
6959
    self.success = success
6843
    self.ex = ex
6960
    self.ex = ex
6844
 
6961
 
6845
  def read(self, iprot):
6962
  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:
6963
    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))
6964
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
Line 6849... Line 6966...
6849
    iprot.readStructBegin()
6966
    iprot.readStructBegin()
6850
    while True:
6967
    while True:
6851
      (fname, ftype, fid) = iprot.readFieldBegin()
6968
      (fname, ftype, fid) = iprot.readFieldBegin()
6852
      if ftype == TType.STOP:
6969
      if ftype == TType.STOP:
6853
        break
6970
        break
6854
      if fid == 1:
6971
      if fid == 0:
-
 
6972
        if ftype == TType.BOOL:
-
 
6973
          self.success = iprot.readBool();
-
 
6974
        else:
-
 
6975
          iprot.skip(ftype)
-
 
6976
      elif fid == 1:
6855
        if ftype == TType.STRUCT:
6977
        if ftype == TType.STRUCT:
6856
          self.ex = TransactionServiceException()
6978
          self.ex = TransactionServiceException()
6857
          self.ex.read(iprot)
6979
          self.ex.read(iprot)
6858
        else:
6980
        else:
6859
          iprot.skip(ftype)
6981
          iprot.skip(ftype)
Line 6864... Line 6986...
6864
 
6986
 
6865
  def write(self, oprot):
6987
  def write(self, oprot):
6866
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6988
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6867
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6989
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6868
      return
6990
      return
6869
    oprot.writeStructBegin('markOrdersAsDelivered_result')
6991
    oprot.writeStructBegin('billOrder_result')
-
 
6992
    if self.success != None:
-
 
6993
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
6994
      oprot.writeBool(self.success)
-
 
6995
      oprot.writeFieldEnd()
6870
    if self.ex != None:
6996
    if self.ex != None:
6871
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6997
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6872
      self.ex.write(oprot)
6998
      self.ex.write(oprot)
6873
      oprot.writeFieldEnd()
6999
      oprot.writeFieldEnd()
6874
    oprot.writeFieldStop()
7000
    oprot.writeFieldStop()
Line 6883... Line 7009...
6883
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7009
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6884
 
7010
 
6885
  def __ne__(self, other):
7011
  def __ne__(self, other):
6886
    return not (self == other)
7012
    return not (self == other)
6887
 
7013
 
6888
class markOrdersAsFailed_args:
7014
class addBillingDetails_args:
6889
  """
7015
  """
6890
  Attributes:
7016
  Attributes:
6891
   - providerId
7017
   - orderId
6892
   - returnedOrders
7018
   - invoice_number
-
 
7019
   - billed_by
6893
  """
7020
  """
6894
 
7021
 
6895
  thrift_spec = (
7022
  thrift_spec = (
6896
    None, # 0
7023
    None, # 0
6897
    (1, TType.I64, 'providerId', None, None, ), # 1
7024
    (1, TType.I64, 'orderId', None, None, ), # 1
6898
    (2, TType.MAP, 'returnedOrders', (TType.STRING,None,TType.STRING,None), None, ), # 2
7025
    (2, TType.STRING, 'invoice_number', None, None, ), # 2
-
 
7026
    (3, TType.STRING, 'billed_by', None, None, ), # 3
6899
  )
7027
  )
6900
 
7028
 
6901
  def __init__(self, providerId=None, returnedOrders=None,):
7029
  def __init__(self, orderId=None, invoice_number=None, billed_by=None,):
6902
    self.providerId = providerId
7030
    self.orderId = orderId
6903
    self.returnedOrders = returnedOrders
7031
    self.invoice_number = invoice_number
-
 
7032
    self.billed_by = billed_by
6904
 
7033
 
6905
  def read(self, iprot):
7034
  def read(self, iprot):
6906
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7035
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6907
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7036
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6908
      return
7037
      return
Line 6911... Line 7040...
6911
      (fname, ftype, fid) = iprot.readFieldBegin()
7040
      (fname, ftype, fid) = iprot.readFieldBegin()
6912
      if ftype == TType.STOP:
7041
      if ftype == TType.STOP:
6913
        break
7042
        break
6914
      if fid == 1:
7043
      if fid == 1:
6915
        if ftype == TType.I64:
7044
        if ftype == TType.I64:
6916
          self.providerId = iprot.readI64();
7045
          self.orderId = iprot.readI64();
6917
        else:
7046
        else:
6918
          iprot.skip(ftype)
7047
          iprot.skip(ftype)
6919
      elif fid == 2:
7048
      elif fid == 2:
6920
        if ftype == TType.MAP:
7049
        if ftype == TType.STRING:
6921
          self.returnedOrders = {}
-
 
6922
          (_ktype117, _vtype118, _size116 ) = iprot.readMapBegin() 
7050
          self.invoice_number = iprot.readString();
6923
          for _i120 in xrange(_size116):
7051
        else:
6924
            _key121 = iprot.readString();
7052
          iprot.skip(ftype)
6925
            _val122 = iprot.readString();
7053
      elif fid == 3:
6926
            self.returnedOrders[_key121] = _val122
7054
        if ftype == TType.STRING:
6927
          iprot.readMapEnd()
7055
          self.billed_by = iprot.readString();
6928
        else:
7056
        else:
6929
          iprot.skip(ftype)
7057
          iprot.skip(ftype)
6930
      else:
7058
      else:
6931
        iprot.skip(ftype)
7059
        iprot.skip(ftype)
6932
      iprot.readFieldEnd()
7060
      iprot.readFieldEnd()
Line 6934... Line 7062...
6934
 
7062
 
6935
  def write(self, oprot):
7063
  def write(self, oprot):
6936
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7064
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6937
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7065
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6938
      return
7066
      return
6939
    oprot.writeStructBegin('markOrdersAsFailed_args')
7067
    oprot.writeStructBegin('addBillingDetails_args')
6940
    if self.providerId != None:
7068
    if self.orderId != None:
6941
      oprot.writeFieldBegin('providerId', TType.I64, 1)
7069
      oprot.writeFieldBegin('orderId', TType.I64, 1)
6942
      oprot.writeI64(self.providerId)
7070
      oprot.writeI64(self.orderId)
6943
      oprot.writeFieldEnd()
7071
      oprot.writeFieldEnd()
6944
    if self.returnedOrders != None:
7072
    if self.invoice_number != None:
6945
      oprot.writeFieldBegin('returnedOrders', TType.MAP, 2)
7073
      oprot.writeFieldBegin('invoice_number', TType.STRING, 2)
6946
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.returnedOrders))
7074
      oprot.writeString(self.invoice_number)
6947
      for kiter123,viter124 in self.returnedOrders.items():
7075
      oprot.writeFieldEnd()
6948
        oprot.writeString(kiter123)
7076
    if self.billed_by != None:
6949
        oprot.writeString(viter124)
7077
      oprot.writeFieldBegin('billed_by', TType.STRING, 3)
6950
      oprot.writeMapEnd()
7078
      oprot.writeString(self.billed_by)
6951
      oprot.writeFieldEnd()
7079
      oprot.writeFieldEnd()
6952
    oprot.writeFieldStop()
7080
    oprot.writeFieldStop()
6953
    oprot.writeStructEnd()
7081
    oprot.writeStructEnd()
6954
 
7082
 
6955
  def __repr__(self):
7083
  def __repr__(self):
Line 6961... Line 7089...
6961
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7089
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6962
 
7090
 
6963
  def __ne__(self, other):
7091
  def __ne__(self, other):
6964
    return not (self == other)
7092
    return not (self == other)
6965
 
7093
 
6966
class markOrdersAsFailed_result:
7094
class addBillingDetails_result:
6967
  """
7095
  """
6968
  Attributes:
7096
  Attributes:
-
 
7097
   - success
6969
   - ex
7098
   - ex
6970
  """
7099
  """
6971
 
7100
 
6972
  thrift_spec = (
7101
  thrift_spec = (
6973
    None, # 0
7102
    (0, TType.BOOL, 'success', None, None, ), # 0
6974
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
7103
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
6975
  )
7104
  )
6976
 
7105
 
6977
  def __init__(self, ex=None,):
7106
  def __init__(self, success=None, ex=None,):
-
 
7107
    self.success = success
6978
    self.ex = ex
7108
    self.ex = ex
6979
 
7109
 
6980
  def read(self, iprot):
7110
  def read(self, iprot):
6981
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7111
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6982
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7112
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
Line 6984... Line 7114...
6984
    iprot.readStructBegin()
7114
    iprot.readStructBegin()
6985
    while True:
7115
    while True:
6986
      (fname, ftype, fid) = iprot.readFieldBegin()
7116
      (fname, ftype, fid) = iprot.readFieldBegin()
6987
      if ftype == TType.STOP:
7117
      if ftype == TType.STOP:
6988
        break
7118
        break
6989
      if fid == 1:
7119
      if fid == 0:
-
 
7120
        if ftype == TType.BOOL:
-
 
7121
          self.success = iprot.readBool();
-
 
7122
        else:
-
 
7123
          iprot.skip(ftype)
-
 
7124
      elif fid == 1:
6990
        if ftype == TType.STRUCT:
7125
        if ftype == TType.STRUCT:
6991
          self.ex = TransactionServiceException()
7126
          self.ex = TransactionServiceException()
6992
          self.ex.read(iprot)
7127
          self.ex.read(iprot)
6993
        else:
7128
        else:
6994
          iprot.skip(ftype)
7129
          iprot.skip(ftype)
Line 6999... Line 7134...
6999
 
7134
 
7000
  def write(self, oprot):
7135
  def write(self, oprot):
7001
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7002
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7003
      return
7138
      return
7004
    oprot.writeStructBegin('markOrdersAsFailed_result')
7139
    oprot.writeStructBegin('addBillingDetails_result')
-
 
7140
    if self.success != None:
-
 
7141
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
7142
      oprot.writeBool(self.success)
-
 
7143
      oprot.writeFieldEnd()
7005
    if self.ex != None:
7144
    if self.ex != None:
7006
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7145
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7007
      self.ex.write(oprot)
7146
      self.ex.write(oprot)
7008
      oprot.writeFieldEnd()
7147
      oprot.writeFieldEnd()
7009
    oprot.writeFieldStop()
7148
    oprot.writeFieldStop()
Line 7018... Line 7157...
7018
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7019
 
7158
 
7020
  def __ne__(self, other):
7159
  def __ne__(self, other):
7021
    return not (self == other)
7160
    return not (self == other)
7022
 
7161
 
7023
class updateNonDeliveryReason_args:
7162
class addJacketNumber_args:
7024
  """
7163
  """
7025
  Attributes:
7164
  Attributes:
7026
   - providerId
7165
   - orderId
-
 
7166
   - jacketNumber
-
 
7167
   - imeiNumber
7027
   - undeliveredOrders
7168
   - itemNumber
-
 
7169
   - billedBy
-
 
7170
   - billingType
7028
  """
7171
  """
7029
 
7172
 
7030
  thrift_spec = (
7173
  thrift_spec = (
7031
    None, # 0
7174
    None, # 0
7032
    (1, TType.I64, 'providerId', None, None, ), # 1
7175
    (1, TType.I64, 'orderId', None, None, ), # 1
7033
    (2, TType.MAP, 'undeliveredOrders', (TType.STRING,None,TType.STRING,None), None, ), # 2
7176
    (2, TType.I64, 'jacketNumber', None, None, ), # 2
-
 
7177
    (3, TType.I64, 'imeiNumber', None, None, ), # 3
-
 
7178
    (4, TType.STRING, 'itemNumber', None, None, ), # 4
-
 
7179
    (5, TType.STRING, 'billedBy', None, None, ), # 5
-
 
7180
    (6, TType.I64, 'billingType', None, None, ), # 6
7034
  )
7181
  )
7035
 
7182
 
7036
  def __init__(self, providerId=None, undeliveredOrders=None,):
7183
  def __init__(self, orderId=None, jacketNumber=None, imeiNumber=None, itemNumber=None, billedBy=None, billingType=None,):
7037
    self.providerId = providerId
7184
    self.orderId = orderId
-
 
7185
    self.jacketNumber = jacketNumber
7038
    self.undeliveredOrders = undeliveredOrders
7186
    self.imeiNumber = imeiNumber
-
 
7187
    self.itemNumber = itemNumber
-
 
7188
    self.billedBy = billedBy
-
 
7189
    self.billingType = billingType
7039
 
7190
 
7040
  def read(self, iprot):
7191
  def read(self, iprot):
7041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7192
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7193
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7043
      return
7194
      return
Line 7046... Line 7197...
7046
      (fname, ftype, fid) = iprot.readFieldBegin()
7197
      (fname, ftype, fid) = iprot.readFieldBegin()
7047
      if ftype == TType.STOP:
7198
      if ftype == TType.STOP:
7048
        break
7199
        break
7049
      if fid == 1:
7200
      if fid == 1:
7050
        if ftype == TType.I64:
7201
        if ftype == TType.I64:
7051
          self.providerId = iprot.readI64();
7202
          self.orderId = iprot.readI64();
7052
        else:
7203
        else:
7053
          iprot.skip(ftype)
7204
          iprot.skip(ftype)
7054
      elif fid == 2:
7205
      elif fid == 2:
7055
        if ftype == TType.MAP:
7206
        if ftype == TType.I64:
7056
          self.undeliveredOrders = {}
7207
          self.jacketNumber = iprot.readI64();
-
 
7208
        else:
-
 
7209
          iprot.skip(ftype)
-
 
7210
      elif fid == 3:
-
 
7211
        if ftype == TType.I64:
7057
          (_ktype126, _vtype127, _size125 ) = iprot.readMapBegin() 
7212
          self.imeiNumber = iprot.readI64();
-
 
7213
        else:
-
 
7214
          iprot.skip(ftype)
-
 
7215
      elif fid == 4:
7058
          for _i129 in xrange(_size125):
7216
        if ftype == TType.STRING:
7059
            _key130 = iprot.readString();
7217
          self.itemNumber = iprot.readString();
-
 
7218
        else:
7060
            _val131 = iprot.readString();
7219
          iprot.skip(ftype)
-
 
7220
      elif fid == 5:
-
 
7221
        if ftype == TType.STRING:
7061
            self.undeliveredOrders[_key130] = _val131
7222
          self.billedBy = iprot.readString();
-
 
7223
        else:
7062
          iprot.readMapEnd()
7224
          iprot.skip(ftype)
-
 
7225
      elif fid == 6:
-
 
7226
        if ftype == TType.I64:
-
 
7227
          self.billingType = iprot.readI64();
7063
        else:
7228
        else:
7064
          iprot.skip(ftype)
7229
          iprot.skip(ftype)
7065
      else:
7230
      else:
7066
        iprot.skip(ftype)
7231
        iprot.skip(ftype)
7067
      iprot.readFieldEnd()
7232
      iprot.readFieldEnd()
Line 7069... Line 7234...
7069
 
7234
 
7070
  def write(self, oprot):
7235
  def write(self, oprot):
7071
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7236
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7072
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7237
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7073
      return
7238
      return
7074
    oprot.writeStructBegin('updateNonDeliveryReason_args')
7239
    oprot.writeStructBegin('addJacketNumber_args')
7075
    if self.providerId != None:
7240
    if self.orderId != None:
7076
      oprot.writeFieldBegin('providerId', TType.I64, 1)
7241
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7077
      oprot.writeI64(self.providerId)
7242
      oprot.writeI64(self.orderId)
7078
      oprot.writeFieldEnd()
7243
      oprot.writeFieldEnd()
7079
    if self.undeliveredOrders != None:
7244
    if self.jacketNumber != None:
7080
      oprot.writeFieldBegin('undeliveredOrders', TType.MAP, 2)
7245
      oprot.writeFieldBegin('jacketNumber', TType.I64, 2)
-
 
7246
      oprot.writeI64(self.jacketNumber)
-
 
7247
      oprot.writeFieldEnd()
-
 
7248
    if self.imeiNumber != None:
7081
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.undeliveredOrders))
7249
      oprot.writeFieldBegin('imeiNumber', TType.I64, 3)
-
 
7250
      oprot.writeI64(self.imeiNumber)
-
 
7251
      oprot.writeFieldEnd()
-
 
7252
    if self.itemNumber != None:
7082
      for kiter132,viter133 in self.undeliveredOrders.items():
7253
      oprot.writeFieldBegin('itemNumber', TType.STRING, 4)
7083
        oprot.writeString(kiter132)
7254
      oprot.writeString(self.itemNumber)
-
 
7255
      oprot.writeFieldEnd()
-
 
7256
    if self.billedBy != None:
-
 
7257
      oprot.writeFieldBegin('billedBy', TType.STRING, 5)
7084
        oprot.writeString(viter133)
7258
      oprot.writeString(self.billedBy)
7085
      oprot.writeMapEnd()
7259
      oprot.writeFieldEnd()
-
 
7260
    if self.billingType != None:
-
 
7261
      oprot.writeFieldBegin('billingType', TType.I64, 6)
-
 
7262
      oprot.writeI64(self.billingType)
7086
      oprot.writeFieldEnd()
7263
      oprot.writeFieldEnd()
7087
    oprot.writeFieldStop()
7264
    oprot.writeFieldStop()
7088
    oprot.writeStructEnd()
7265
    oprot.writeStructEnd()
7089
 
7266
 
7090
  def __repr__(self):
7267
  def __repr__(self):
Line 7096... Line 7273...
7096
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7097
 
7274
 
7098
  def __ne__(self, other):
7275
  def __ne__(self, other):
7099
    return not (self == other)
7276
    return not (self == other)
7100
 
7277
 
7101
class updateNonDeliveryReason_result:
7278
class addJacketNumber_result:
7102
  """
7279
  """
7103
  Attributes:
7280
  Attributes:
-
 
7281
   - success
7104
   - ex
7282
   - ex
7105
  """
7283
  """
7106
 
7284
 
7107
  thrift_spec = (
7285
  thrift_spec = (
7108
    None, # 0
7286
    (0, TType.BOOL, 'success', None, None, ), # 0
7109
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
7287
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
7110
  )
7288
  )
7111
 
7289
 
7112
  def __init__(self, ex=None,):
7290
  def __init__(self, success=None, ex=None,):
-
 
7291
    self.success = success
7113
    self.ex = ex
7292
    self.ex = ex
7114
 
7293
 
7115
  def read(self, iprot):
7294
  def read(self, iprot):
7116
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7295
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7117
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7296
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
Line 7119... Line 7298...
7119
    iprot.readStructBegin()
7298
    iprot.readStructBegin()
7120
    while True:
7299
    while True:
7121
      (fname, ftype, fid) = iprot.readFieldBegin()
7300
      (fname, ftype, fid) = iprot.readFieldBegin()
7122
      if ftype == TType.STOP:
7301
      if ftype == TType.STOP:
7123
        break
7302
        break
7124
      if fid == 1:
7303
      if fid == 0:
-
 
7304
        if ftype == TType.BOOL:
-
 
7305
          self.success = iprot.readBool();
-
 
7306
        else:
-
 
7307
          iprot.skip(ftype)
-
 
7308
      elif fid == 1:
7125
        if ftype == TType.STRUCT:
7309
        if ftype == TType.STRUCT:
7126
          self.ex = TransactionServiceException()
7310
          self.ex = TransactionServiceException()
7127
          self.ex.read(iprot)
7311
          self.ex.read(iprot)
7128
        else:
7312
        else:
7129
          iprot.skip(ftype)
7313
          iprot.skip(ftype)
Line 7134... Line 7318...
7134
 
7318
 
7135
  def write(self, oprot):
7319
  def write(self, oprot):
7136
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7320
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7137
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7321
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7138
      return
7322
      return
7139
    oprot.writeStructBegin('updateNonDeliveryReason_result')
7323
    oprot.writeStructBegin('addJacketNumber_result')
-
 
7324
    if self.success != None:
-
 
7325
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
7326
      oprot.writeBool(self.success)
-
 
7327
      oprot.writeFieldEnd()
7140
    if self.ex != None:
7328
    if self.ex != None:
7141
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7329
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7142
      self.ex.write(oprot)
7330
      self.ex.write(oprot)
7143
      oprot.writeFieldEnd()
7331
      oprot.writeFieldEnd()
7144
    oprot.writeFieldStop()
7332
    oprot.writeFieldStop()
Line 7153... Line 7341...
7153
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7341
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7154
 
7342
 
7155
  def __ne__(self, other):
7343
  def __ne__(self, other):
7156
    return not (self == other)
7344
    return not (self == other)
7157
 
7345
 
7158
class getUndeliveredOrders_args:
7346
class markOrdersAsManifested_args:
7159
  """
7347
  """
7160
  Attributes:
7348
  Attributes:
7161
   - providerId
-
 
7162
   - warehouseId
7349
   - warehouseId
-
 
7350
   - providerId
-
 
7351
   - cod
7163
  """
7352
  """
7164
 
7353
 
7165
  thrift_spec = (
7354
  thrift_spec = (
7166
    None, # 0
7355
    None, # 0
7167
    (1, TType.I64, 'providerId', None, None, ), # 1
7356
    (1, TType.I64, 'warehouseId', None, None, ), # 1
7168
    (2, TType.I64, 'warehouseId', None, None, ), # 2
7357
    (2, TType.I64, 'providerId', None, None, ), # 2
-
 
7358
    (3, TType.BOOL, 'cod', None, None, ), # 3
7169
  )
7359
  )
7170
 
7360
 
7171
  def __init__(self, providerId=None, warehouseId=None,):
7361
  def __init__(self, warehouseId=None, providerId=None, cod=None,):
7172
    self.providerId = providerId
-
 
7173
    self.warehouseId = warehouseId
7362
    self.warehouseId = warehouseId
-
 
7363
    self.providerId = providerId
-
 
7364
    self.cod = cod
7174
 
7365
 
7175
  def read(self, iprot):
7366
  def read(self, iprot):
7176
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7367
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7177
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7368
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7178
      return
7369
      return
Line 7181... Line 7372...
7181
      (fname, ftype, fid) = iprot.readFieldBegin()
7372
      (fname, ftype, fid) = iprot.readFieldBegin()
7182
      if ftype == TType.STOP:
7373
      if ftype == TType.STOP:
7183
        break
7374
        break
7184
      if fid == 1:
7375
      if fid == 1:
7185
        if ftype == TType.I64:
7376
        if ftype == TType.I64:
7186
          self.providerId = iprot.readI64();
7377
          self.warehouseId = iprot.readI64();
7187
        else:
7378
        else:
7188
          iprot.skip(ftype)
7379
          iprot.skip(ftype)
7189
      elif fid == 2:
7380
      elif fid == 2:
7190
        if ftype == TType.I64:
7381
        if ftype == TType.I64:
7191
          self.warehouseId = iprot.readI64();
7382
          self.providerId = iprot.readI64();
-
 
7383
        else:
-
 
7384
          iprot.skip(ftype)
-
 
7385
      elif fid == 3:
-
 
7386
        if ftype == TType.BOOL:
-
 
7387
          self.cod = iprot.readBool();
7192
        else:
7388
        else:
7193
          iprot.skip(ftype)
7389
          iprot.skip(ftype)
7194
      else:
7390
      else:
7195
        iprot.skip(ftype)
7391
        iprot.skip(ftype)
7196
      iprot.readFieldEnd()
7392
      iprot.readFieldEnd()
Line 7198... Line 7394...
7198
 
7394
 
7199
  def write(self, oprot):
7395
  def write(self, oprot):
7200
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7396
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7201
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7397
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7202
      return
7398
      return
7203
    oprot.writeStructBegin('getUndeliveredOrders_args')
7399
    oprot.writeStructBegin('markOrdersAsManifested_args')
-
 
7400
    if self.warehouseId != None:
-
 
7401
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
-
 
7402
      oprot.writeI64(self.warehouseId)
-
 
7403
      oprot.writeFieldEnd()
7204
    if self.providerId != None:
7404
    if self.providerId != None:
7205
      oprot.writeFieldBegin('providerId', TType.I64, 1)
7405
      oprot.writeFieldBegin('providerId', TType.I64, 2)
7206
      oprot.writeI64(self.providerId)
7406
      oprot.writeI64(self.providerId)
7207
      oprot.writeFieldEnd()
7407
      oprot.writeFieldEnd()
7208
    if self.warehouseId != None:
7408
    if self.cod != None:
7209
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
7409
      oprot.writeFieldBegin('cod', TType.BOOL, 3)
7210
      oprot.writeI64(self.warehouseId)
7410
      oprot.writeBool(self.cod)
7211
      oprot.writeFieldEnd()
7411
      oprot.writeFieldEnd()
7212
    oprot.writeFieldStop()
7412
    oprot.writeFieldStop()
7213
    oprot.writeStructEnd()
7413
    oprot.writeStructEnd()
7214
 
7414
 
7215
  def __repr__(self):
7415
  def __repr__(self):
Line 7221... Line 7421...
7221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7421
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7222
 
7422
 
7223
  def __ne__(self, other):
7423
  def __ne__(self, other):
7224
    return not (self == other)
7424
    return not (self == other)
7225
 
7425
 
7226
class getUndeliveredOrders_result:
7426
class markOrdersAsManifested_result:
7227
  """
7427
  """
7228
  Attributes:
7428
  Attributes:
7229
   - success
7429
   - success
-
 
7430
   - ex
7230
  """
7431
  """
7231
 
7432
 
7232
  thrift_spec = (
7433
  thrift_spec = (
-
 
7434
    (0, TType.BOOL, 'success', None, None, ), # 0
7233
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
7435
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
7234
  )
7436
  )
7235
 
7437
 
7236
  def __init__(self, success=None,):
7438
  def __init__(self, success=None, ex=None,):
7237
    self.success = success
7439
    self.success = success
-
 
7440
    self.ex = ex
7238
 
7441
 
7239
  def read(self, iprot):
7442
  def read(self, iprot):
7240
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7241
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7242
      return
7445
      return
Line 7244... Line 7447...
7244
    while True:
7447
    while True:
7245
      (fname, ftype, fid) = iprot.readFieldBegin()
7448
      (fname, ftype, fid) = iprot.readFieldBegin()
7246
      if ftype == TType.STOP:
7449
      if ftype == TType.STOP:
7247
        break
7450
        break
7248
      if fid == 0:
7451
      if fid == 0:
7249
        if ftype == TType.LIST:
7452
        if ftype == TType.BOOL:
7250
          self.success = []
7453
          self.success = iprot.readBool();
7251
          (_etype137, _size134) = iprot.readListBegin()
7454
        else:
7252
          for _i138 in xrange(_size134):
7455
          iprot.skip(ftype)
7253
            _elem139 = Order()
7456
      elif fid == 1:
7254
            _elem139.read(iprot)
7457
        if ftype == TType.STRUCT:
7255
            self.success.append(_elem139)
7458
          self.ex = TransactionServiceException()
7256
          iprot.readListEnd()
7459
          self.ex.read(iprot)
7257
        else:
7460
        else:
7258
          iprot.skip(ftype)
7461
          iprot.skip(ftype)
7259
      else:
7462
      else:
7260
        iprot.skip(ftype)
7463
        iprot.skip(ftype)
7261
      iprot.readFieldEnd()
7464
      iprot.readFieldEnd()
Line 7263... Line 7466...
7263
 
7466
 
7264
  def write(self, oprot):
7467
  def write(self, oprot):
7265
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7266
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7267
      return
7470
      return
7268
    oprot.writeStructBegin('getUndeliveredOrders_result')
7471
    oprot.writeStructBegin('markOrdersAsManifested_result')
7269
    if self.success != None:
7472
    if self.success != None:
7270
      oprot.writeFieldBegin('success', TType.LIST, 0)
7473
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7271
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7474
      oprot.writeBool(self.success)
7272
      for iter140 in self.success:
7475
      oprot.writeFieldEnd()
7273
        iter140.write(oprot)
7476
    if self.ex != None:
-
 
7477
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7274
      oprot.writeListEnd()
7478
      self.ex.write(oprot)
7275
      oprot.writeFieldEnd()
7479
      oprot.writeFieldEnd()
7276
    oprot.writeFieldStop()
7480
    oprot.writeFieldStop()
7277
    oprot.writeStructEnd()
7481
    oprot.writeStructEnd()
7278
 
7482
 
7279
  def __repr__(self):
7483
  def __repr__(self):
Line 7285... Line 7489...
7285
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7489
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7286
 
7490
 
7287
  def __ne__(self, other):
7491
  def __ne__(self, other):
7288
    return not (self == other)
7492
    return not (self == other)
7289
 
7493
 
7290
class getAlerts_args:
7494
class markOrdersAsPickedUp_args:
7291
  """
7495
  """
7292
  Attributes:
7496
  Attributes:
7293
   - orderId
7497
   - providerId
7294
   - valid
7498
   - pickupDetails
7295
  """
7499
  """
7296
 
7500
 
7297
  thrift_spec = (
7501
  thrift_spec = (
7298
    None, # 0
7502
    None, # 0
7299
    (1, TType.I64, 'orderId', None, None, ), # 1
7503
    (1, TType.I64, 'providerId', None, None, ), # 1
7300
    (2, TType.BOOL, 'valid', None, None, ), # 2
7504
    (2, TType.MAP, 'pickupDetails', (TType.STRING,None,TType.STRING,None), None, ), # 2
7301
  )
7505
  )
7302
 
7506
 
7303
  def __init__(self, orderId=None, valid=None,):
7507
  def __init__(self, providerId=None, pickupDetails=None,):
7304
    self.orderId = orderId
7508
    self.providerId = providerId
7305
    self.valid = valid
7509
    self.pickupDetails = pickupDetails
7306
 
7510
 
7307
  def read(self, iprot):
7511
  def read(self, iprot):
7308
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7309
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7310
      return
7514
      return
Line 7313... Line 7517...
7313
      (fname, ftype, fid) = iprot.readFieldBegin()
7517
      (fname, ftype, fid) = iprot.readFieldBegin()
7314
      if ftype == TType.STOP:
7518
      if ftype == TType.STOP:
7315
        break
7519
        break
7316
      if fid == 1:
7520
      if fid == 1:
7317
        if ftype == TType.I64:
7521
        if ftype == TType.I64:
7318
          self.orderId = iprot.readI64();
7522
          self.providerId = iprot.readI64();
7319
        else:
7523
        else:
7320
          iprot.skip(ftype)
7524
          iprot.skip(ftype)
7321
      elif fid == 2:
7525
      elif fid == 2:
7322
        if ftype == TType.BOOL:
7526
        if ftype == TType.MAP:
-
 
7527
          self.pickupDetails = {}
-
 
7528
          (_ktype113, _vtype114, _size112 ) = iprot.readMapBegin() 
-
 
7529
          for _i116 in xrange(_size112):
-
 
7530
            _key117 = iprot.readString();
7323
          self.valid = iprot.readBool();
7531
            _val118 = iprot.readString();
-
 
7532
            self.pickupDetails[_key117] = _val118
-
 
7533
          iprot.readMapEnd()
7324
        else:
7534
        else:
7325
          iprot.skip(ftype)
7535
          iprot.skip(ftype)
7326
      else:
7536
      else:
7327
        iprot.skip(ftype)
7537
        iprot.skip(ftype)
7328
      iprot.readFieldEnd()
7538
      iprot.readFieldEnd()
Line 7330... Line 7540...
7330
 
7540
 
7331
  def write(self, oprot):
7541
  def write(self, oprot):
7332
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7542
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7333
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7543
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7334
      return
7544
      return
7335
    oprot.writeStructBegin('getAlerts_args')
7545
    oprot.writeStructBegin('markOrdersAsPickedUp_args')
7336
    if self.orderId != None:
7546
    if self.providerId != None:
7337
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7547
      oprot.writeFieldBegin('providerId', TType.I64, 1)
7338
      oprot.writeI64(self.orderId)
7548
      oprot.writeI64(self.providerId)
7339
      oprot.writeFieldEnd()
7549
      oprot.writeFieldEnd()
7340
    if self.valid != None:
7550
    if self.pickupDetails != None:
7341
      oprot.writeFieldBegin('valid', TType.BOOL, 2)
7551
      oprot.writeFieldBegin('pickupDetails', TType.MAP, 2)
-
 
7552
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.pickupDetails))
-
 
7553
      for kiter119,viter120 in self.pickupDetails.items():
7342
      oprot.writeBool(self.valid)
7554
        oprot.writeString(kiter119)
-
 
7555
        oprot.writeString(viter120)
-
 
7556
      oprot.writeMapEnd()
7343
      oprot.writeFieldEnd()
7557
      oprot.writeFieldEnd()
7344
    oprot.writeFieldStop()
7558
    oprot.writeFieldStop()
7345
    oprot.writeStructEnd()
7559
    oprot.writeStructEnd()
7346
 
7560
 
7347
  def __repr__(self):
7561
  def __repr__(self):
Line 7353... Line 7567...
7353
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7567
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7354
 
7568
 
7355
  def __ne__(self, other):
7569
  def __ne__(self, other):
7356
    return not (self == other)
7570
    return not (self == other)
7357
 
7571
 
7358
class getAlerts_result:
7572
class markOrdersAsPickedUp_result:
7359
  """
7573
  """
7360
  Attributes:
7574
  Attributes:
7361
   - success
7575
   - success
-
 
7576
   - ex
7362
  """
7577
  """
7363
 
7578
 
7364
  thrift_spec = (
7579
  thrift_spec = (
7365
    (0, TType.LIST, 'success', (TType.STRUCT,(Alert, Alert.thrift_spec)), None, ), # 0
7580
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
-
 
7581
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
7366
  )
7582
  )
7367
 
7583
 
7368
  def __init__(self, success=None,):
7584
  def __init__(self, success=None, ex=None,):
7369
    self.success = success
7585
    self.success = success
-
 
7586
    self.ex = ex
7370
 
7587
 
7371
  def read(self, iprot):
7588
  def read(self, iprot):
7372
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7589
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7373
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7590
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7374
      return
7591
      return
Line 7378... Line 7595...
7378
      if ftype == TType.STOP:
7595
      if ftype == TType.STOP:
7379
        break
7596
        break
7380
      if fid == 0:
7597
      if fid == 0:
7381
        if ftype == TType.LIST:
7598
        if ftype == TType.LIST:
7382
          self.success = []
7599
          self.success = []
7383
          (_etype144, _size141) = iprot.readListBegin()
7600
          (_etype124, _size121) = iprot.readListBegin()
7384
          for _i145 in xrange(_size141):
7601
          for _i125 in xrange(_size121):
7385
            _elem146 = Alert()
7602
            _elem126 = Order()
7386
            _elem146.read(iprot)
7603
            _elem126.read(iprot)
7387
            self.success.append(_elem146)
7604
            self.success.append(_elem126)
7388
          iprot.readListEnd()
7605
          iprot.readListEnd()
7389
        else:
7606
        else:
7390
          iprot.skip(ftype)
7607
          iprot.skip(ftype)
-
 
7608
      elif fid == 1:
-
 
7609
        if ftype == TType.STRUCT:
-
 
7610
          self.ex = TransactionServiceException()
-
 
7611
          self.ex.read(iprot)
-
 
7612
        else:
-
 
7613
          iprot.skip(ftype)
7391
      else:
7614
      else:
7392
        iprot.skip(ftype)
7615
        iprot.skip(ftype)
7393
      iprot.readFieldEnd()
7616
      iprot.readFieldEnd()
7394
    iprot.readStructEnd()
7617
    iprot.readStructEnd()
7395
 
7618
 
7396
  def write(self, oprot):
7619
  def write(self, oprot):
7397
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7620
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7398
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7621
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7399
      return
7622
      return
7400
    oprot.writeStructBegin('getAlerts_result')
7623
    oprot.writeStructBegin('markOrdersAsPickedUp_result')
7401
    if self.success != None:
7624
    if self.success != None:
7402
      oprot.writeFieldBegin('success', TType.LIST, 0)
7625
      oprot.writeFieldBegin('success', TType.LIST, 0)
7403
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7626
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7404
      for iter147 in self.success:
7627
      for iter127 in self.success:
7405
        iter147.write(oprot)
7628
        iter127.write(oprot)
7406
      oprot.writeListEnd()
7629
      oprot.writeListEnd()
7407
      oprot.writeFieldEnd()
7630
      oprot.writeFieldEnd()
-
 
7631
    if self.ex != None:
-
 
7632
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
7633
      self.ex.write(oprot)
-
 
7634
      oprot.writeFieldEnd()
7408
    oprot.writeFieldStop()
7635
    oprot.writeFieldStop()
7409
    oprot.writeStructEnd()
7636
    oprot.writeStructEnd()
7410
 
7637
 
7411
  def __repr__(self):
7638
  def __repr__(self):
7412
    L = ['%s=%r' % (key, value)
7639
    L = ['%s=%r' % (key, value)
Line 7417... Line 7644...
7417
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7644
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7418
 
7645
 
7419
  def __ne__(self, other):
7646
  def __ne__(self, other):
7420
    return not (self == other)
7647
    return not (self == other)
7421
 
7648
 
7422
class setAlert_args:
7649
class markOrdersAsDelivered_args:
7423
  """
7650
  """
7424
  Attributes:
7651
  Attributes:
7425
   - orderId
7652
   - providerId
7426
   - unset
-
 
7427
   - type
-
 
7428
   - comment
7653
   - deliveredOrders
7429
  """
7654
  """
7430
 
7655
 
7431
  thrift_spec = (
7656
  thrift_spec = (
7432
    None, # 0
7657
    None, # 0
7433
    (1, TType.I64, 'orderId', None, None, ), # 1
7658
    (1, TType.I64, 'providerId', None, None, ), # 1
7434
    (2, TType.BOOL, 'unset', None, None, ), # 2
-
 
7435
    (3, TType.I64, 'type', None, None, ), # 3
-
 
7436
    (4, TType.STRING, 'comment', None, None, ), # 4
7659
    (2, TType.MAP, 'deliveredOrders', (TType.STRING,None,TType.STRING,None), None, ), # 2
7437
  )
7660
  )
7438
 
7661
 
7439
  def __init__(self, orderId=None, unset=None, type=None, comment=None,):
7662
  def __init__(self, providerId=None, deliveredOrders=None,):
7440
    self.orderId = orderId
7663
    self.providerId = providerId
7441
    self.unset = unset
-
 
7442
    self.type = type
-
 
7443
    self.comment = comment
7664
    self.deliveredOrders = deliveredOrders
7444
 
7665
 
7445
  def read(self, iprot):
7666
  def read(self, iprot):
7446
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7667
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7447
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7668
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7448
      return
7669
      return
Line 7451... Line 7672...
7451
      (fname, ftype, fid) = iprot.readFieldBegin()
7672
      (fname, ftype, fid) = iprot.readFieldBegin()
7452
      if ftype == TType.STOP:
7673
      if ftype == TType.STOP:
7453
        break
7674
        break
7454
      if fid == 1:
7675
      if fid == 1:
7455
        if ftype == TType.I64:
7676
        if ftype == TType.I64:
7456
          self.orderId = iprot.readI64();
7677
          self.providerId = iprot.readI64();
7457
        else:
7678
        else:
7458
          iprot.skip(ftype)
7679
          iprot.skip(ftype)
7459
      elif fid == 2:
7680
      elif fid == 2:
7460
        if ftype == TType.BOOL:
7681
        if ftype == TType.MAP:
7461
          self.unset = iprot.readBool();
7682
          self.deliveredOrders = {}
7462
        else:
-
 
7463
          iprot.skip(ftype)
7683
          (_ktype129, _vtype130, _size128 ) = iprot.readMapBegin() 
7464
      elif fid == 3:
-
 
7465
        if ftype == TType.I64:
7684
          for _i132 in xrange(_size128):
7466
          self.type = iprot.readI64();
7685
            _key133 = iprot.readString();
7467
        else:
-
 
7468
          iprot.skip(ftype)
7686
            _val134 = iprot.readString();
7469
      elif fid == 4:
-
 
7470
        if ftype == TType.STRING:
7687
            self.deliveredOrders[_key133] = _val134
7471
          self.comment = iprot.readString();
7688
          iprot.readMapEnd()
7472
        else:
7689
        else:
7473
          iprot.skip(ftype)
7690
          iprot.skip(ftype)
7474
      else:
7691
      else:
7475
        iprot.skip(ftype)
7692
        iprot.skip(ftype)
7476
      iprot.readFieldEnd()
7693
      iprot.readFieldEnd()
Line 7478... Line 7695...
7478
 
7695
 
7479
  def write(self, oprot):
7696
  def write(self, oprot):
7480
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7697
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7481
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7698
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7482
      return
7699
      return
7483
    oprot.writeStructBegin('setAlert_args')
7700
    oprot.writeStructBegin('markOrdersAsDelivered_args')
7484
    if self.orderId != None:
7701
    if self.providerId != None:
7485
      oprot.writeFieldBegin('orderId', TType.I64, 1)
7702
      oprot.writeFieldBegin('providerId', TType.I64, 1)
7486
      oprot.writeI64(self.orderId)
7703
      oprot.writeI64(self.providerId)
7487
      oprot.writeFieldEnd()
-
 
7488
    if self.unset != None:
-
 
7489
      oprot.writeFieldBegin('unset', TType.BOOL, 2)
-
 
7490
      oprot.writeBool(self.unset)
-
 
7491
      oprot.writeFieldEnd()
-
 
7492
    if self.type != None:
-
 
7493
      oprot.writeFieldBegin('type', TType.I64, 3)
-
 
7494
      oprot.writeI64(self.type)
-
 
7495
      oprot.writeFieldEnd()
7704
      oprot.writeFieldEnd()
7496
    if self.comment != None:
7705
    if self.deliveredOrders != None:
7497
      oprot.writeFieldBegin('comment', TType.STRING, 4)
7706
      oprot.writeFieldBegin('deliveredOrders', TType.MAP, 2)
-
 
7707
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.deliveredOrders))
-
 
7708
      for kiter135,viter136 in self.deliveredOrders.items():
-
 
7709
        oprot.writeString(kiter135)
7498
      oprot.writeString(self.comment)
7710
        oprot.writeString(viter136)
-
 
7711
      oprot.writeMapEnd()
7499
      oprot.writeFieldEnd()
7712
      oprot.writeFieldEnd()
7500
    oprot.writeFieldStop()
7713
    oprot.writeFieldStop()
7501
    oprot.writeStructEnd()
7714
    oprot.writeStructEnd()
7502
 
7715
 
7503
  def __repr__(self):
7716
  def __repr__(self):
Line 7509... Line 7722...
7509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7722
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7510
 
7723
 
7511
  def __ne__(self, other):
7724
  def __ne__(self, other):
7512
    return not (self == other)
7725
    return not (self == other)
7513
 
7726
 
7514
class setAlert_result:
7727
class markOrdersAsDelivered_result:
-
 
7728
  """
-
 
7729
  Attributes:
-
 
7730
   - ex
-
 
7731
  """
7515
 
7732
 
7516
  thrift_spec = (
7733
  thrift_spec = (
-
 
7734
    None, # 0
-
 
7735
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
7517
  )
7736
  )
7518
 
7737
 
7519
  def read(self, iprot):
-
 
7520
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7521
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7522
      return
-
 
7523
    iprot.readStructBegin()
-
 
7524
    while True:
-
 
7525
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7526
      if ftype == TType.STOP:
-
 
7527
        break
-
 
7528
      else:
-
 
7529
        iprot.skip(ftype)
-
 
7530
      iprot.readFieldEnd()
-
 
7531
    iprot.readStructEnd()
-
 
7532
 
-
 
7533
  def write(self, oprot):
-
 
7534
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7535
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7536
      return
-
 
7537
    oprot.writeStructBegin('setAlert_result')
-
 
7538
    oprot.writeFieldStop()
-
 
7539
    oprot.writeStructEnd()
-
 
7540
 
-
 
7541
  def __repr__(self):
-
 
7542
    L = ['%s=%r' % (key, value)
-
 
7543
      for key, value in self.__dict__.iteritems()]
-
 
7544
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7545
 
-
 
7546
  def __eq__(self, other):
-
 
7547
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7548
 
-
 
7549
  def __ne__(self, other):
7738
  def __init__(self, ex=None,):
7550
    return not (self == other)
-
 
7551
 
-
 
7552
class getValidOrderCount_args:
-
 
7553
 
-
 
7554
  thrift_spec = (
7739
    self.ex = ex
7555
  )
-
 
7556
 
7740
 
7557
  def read(self, iprot):
7741
  def read(self, iprot):
7558
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7742
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7559
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7743
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7560
      return
7744
      return
7561
    iprot.readStructBegin()
7745
    iprot.readStructBegin()
7562
    while True:
7746
    while True:
7563
      (fname, ftype, fid) = iprot.readFieldBegin()
7747
      (fname, ftype, fid) = iprot.readFieldBegin()
7564
      if ftype == TType.STOP:
7748
      if ftype == TType.STOP:
7565
        break
7749
        break
-
 
7750
      if fid == 1:
-
 
7751
        if ftype == TType.STRUCT:
-
 
7752
          self.ex = TransactionServiceException()
-
 
7753
          self.ex.read(iprot)
-
 
7754
        else:
-
 
7755
          iprot.skip(ftype)
7566
      else:
7756
      else:
7567
        iprot.skip(ftype)
7757
        iprot.skip(ftype)
7568
      iprot.readFieldEnd()
7758
      iprot.readFieldEnd()
7569
    iprot.readStructEnd()
7759
    iprot.readStructEnd()
7570
 
7760
 
7571
  def write(self, oprot):
7761
  def write(self, oprot):
7572
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7573
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7574
      return
7764
      return
7575
    oprot.writeStructBegin('getValidOrderCount_args')
7765
    oprot.writeStructBegin('markOrdersAsDelivered_result')
-
 
7766
    if self.ex != None:
-
 
7767
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
7768
      self.ex.write(oprot)
-
 
7769
      oprot.writeFieldEnd()
7576
    oprot.writeFieldStop()
7770
    oprot.writeFieldStop()
7577
    oprot.writeStructEnd()
7771
    oprot.writeStructEnd()
7578
 
7772
 
7579
  def __repr__(self):
7773
  def __repr__(self):
7580
    L = ['%s=%r' % (key, value)
7774
    L = ['%s=%r' % (key, value)
Line 7585... Line 7779...
7585
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7779
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7586
 
7780
 
7587
  def __ne__(self, other):
7781
  def __ne__(self, other):
7588
    return not (self == other)
7782
    return not (self == other)
7589
 
7783
 
7590
class getValidOrderCount_result:
7784
class markOrdersAsFailed_args:
7591
  """
7785
  """
7592
  Attributes:
7786
  Attributes:
7593
   - success
7787
   - providerId
-
 
7788
   - returnedOrders
7594
  """
7789
  """
7595
 
7790
 
7596
  thrift_spec = (
7791
  thrift_spec = (
-
 
7792
    None, # 0
7597
    (0, TType.I64, 'success', None, None, ), # 0
7793
    (1, TType.I64, 'providerId', None, None, ), # 1
-
 
7794
    (2, TType.MAP, 'returnedOrders', (TType.STRING,None,TType.STRING,None), None, ), # 2
7598
  )
7795
  )
7599
 
7796
 
7600
  def __init__(self, success=None,):
7797
  def __init__(self, providerId=None, returnedOrders=None,):
7601
    self.success = success
7798
    self.providerId = providerId
-
 
7799
    self.returnedOrders = returnedOrders
7602
 
7800
 
7603
  def read(self, iprot):
7801
  def read(self, iprot):
7604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7802
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7803
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7606
      return
7804
      return
7607
    iprot.readStructBegin()
7805
    iprot.readStructBegin()
7608
    while True:
7806
    while True:
7609
      (fname, ftype, fid) = iprot.readFieldBegin()
7807
      (fname, ftype, fid) = iprot.readFieldBegin()
7610
      if ftype == TType.STOP:
7808
      if ftype == TType.STOP:
7611
        break
7809
        break
7612
      if fid == 0:
7810
      if fid == 1:
7613
        if ftype == TType.I64:
7811
        if ftype == TType.I64:
7614
          self.success = iprot.readI64();
7812
          self.providerId = iprot.readI64();
-
 
7813
        else:
-
 
7814
          iprot.skip(ftype)
-
 
7815
      elif fid == 2:
-
 
7816
        if ftype == TType.MAP:
-
 
7817
          self.returnedOrders = {}
-
 
7818
          (_ktype138, _vtype139, _size137 ) = iprot.readMapBegin() 
-
 
7819
          for _i141 in xrange(_size137):
-
 
7820
            _key142 = iprot.readString();
-
 
7821
            _val143 = iprot.readString();
-
 
7822
            self.returnedOrders[_key142] = _val143
-
 
7823
          iprot.readMapEnd()
7615
        else:
7824
        else:
7616
          iprot.skip(ftype)
7825
          iprot.skip(ftype)
7617
      else:
7826
      else:
7618
        iprot.skip(ftype)
7827
        iprot.skip(ftype)
7619
      iprot.readFieldEnd()
7828
      iprot.readFieldEnd()
Line 7621... Line 7830...
7621
 
7830
 
7622
  def write(self, oprot):
7831
  def write(self, oprot):
7623
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7832
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7624
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7833
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7625
      return
7834
      return
7626
    oprot.writeStructBegin('getValidOrderCount_result')
7835
    oprot.writeStructBegin('markOrdersAsFailed_args')
7627
    if self.success != None:
7836
    if self.providerId != None:
7628
      oprot.writeFieldBegin('success', TType.I64, 0)
7837
      oprot.writeFieldBegin('providerId', TType.I64, 1)
7629
      oprot.writeI64(self.success)
7838
      oprot.writeI64(self.providerId)
-
 
7839
      oprot.writeFieldEnd()
-
 
7840
    if self.returnedOrders != None:
-
 
7841
      oprot.writeFieldBegin('returnedOrders', TType.MAP, 2)
-
 
7842
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.returnedOrders))
-
 
7843
      for kiter144,viter145 in self.returnedOrders.items():
-
 
7844
        oprot.writeString(kiter144)
-
 
7845
        oprot.writeString(viter145)
-
 
7846
      oprot.writeMapEnd()
7630
      oprot.writeFieldEnd()
7847
      oprot.writeFieldEnd()
7631
    oprot.writeFieldStop()
7848
    oprot.writeFieldStop()
7632
    oprot.writeStructEnd()
7849
    oprot.writeStructEnd()
7633
 
7850
 
7634
  def __repr__(self):
7851
  def __repr__(self):
Line 7640... Line 7857...
7640
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7857
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7641
 
7858
 
7642
  def __ne__(self, other):
7859
  def __ne__(self, other):
7643
    return not (self == other)
7860
    return not (self == other)
7644
 
7861
 
7645
class getNoOfCustomersWithSuccessfulTransaction_args:
7862
class markOrdersAsFailed_result:
-
 
7863
  """
-
 
7864
  Attributes:
-
 
7865
   - ex
-
 
7866
  """
7646
 
7867
 
7647
  thrift_spec = (
7868
  thrift_spec = (
-
 
7869
    None, # 0
-
 
7870
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
7648
  )
7871
  )
7649
 
7872
 
-
 
7873
  def __init__(self, ex=None,):
-
 
7874
    self.ex = ex
-
 
7875
 
7650
  def read(self, iprot):
7876
  def read(self, iprot):
7651
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7877
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7652
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7878
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7653
      return
7879
      return
7654
    iprot.readStructBegin()
7880
    iprot.readStructBegin()
7655
    while True:
7881
    while True:
7656
      (fname, ftype, fid) = iprot.readFieldBegin()
7882
      (fname, ftype, fid) = iprot.readFieldBegin()
7657
      if ftype == TType.STOP:
7883
      if ftype == TType.STOP:
7658
        break
7884
        break
-
 
7885
      if fid == 1:
-
 
7886
        if ftype == TType.STRUCT:
-
 
7887
          self.ex = TransactionServiceException()
-
 
7888
          self.ex.read(iprot)
-
 
7889
        else:
-
 
7890
          iprot.skip(ftype)
7659
      else:
7891
      else:
7660
        iprot.skip(ftype)
7892
        iprot.skip(ftype)
7661
      iprot.readFieldEnd()
7893
      iprot.readFieldEnd()
7662
    iprot.readStructEnd()
7894
    iprot.readStructEnd()
7663
 
7895
 
7664
  def write(self, oprot):
7896
  def write(self, oprot):
7665
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7666
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7667
      return
7899
      return
7668
    oprot.writeStructBegin('getNoOfCustomersWithSuccessfulTransaction_args')
7900
    oprot.writeStructBegin('markOrdersAsFailed_result')
-
 
7901
    if self.ex != None:
-
 
7902
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
7903
      self.ex.write(oprot)
-
 
7904
      oprot.writeFieldEnd()
7669
    oprot.writeFieldStop()
7905
    oprot.writeFieldStop()
7670
    oprot.writeStructEnd()
7906
    oprot.writeStructEnd()
7671
 
7907
 
7672
  def __repr__(self):
7908
  def __repr__(self):
7673
    L = ['%s=%r' % (key, value)
7909
    L = ['%s=%r' % (key, value)
Line 7678... Line 7914...
7678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7914
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7679
 
7915
 
7680
  def __ne__(self, other):
7916
  def __ne__(self, other):
7681
    return not (self == other)
7917
    return not (self == other)
7682
 
7918
 
7683
class getNoOfCustomersWithSuccessfulTransaction_result:
7919
class updateNonDeliveryReason_args:
7684
  """
7920
  """
7685
  Attributes:
7921
  Attributes:
7686
   - success
7922
   - providerId
-
 
7923
   - undeliveredOrders
7687
  """
7924
  """
7688
 
7925
 
7689
  thrift_spec = (
7926
  thrift_spec = (
-
 
7927
    None, # 0
7690
    (0, TType.I64, 'success', None, None, ), # 0
7928
    (1, TType.I64, 'providerId', None, None, ), # 1
-
 
7929
    (2, TType.MAP, 'undeliveredOrders', (TType.STRING,None,TType.STRING,None), None, ), # 2
7691
  )
7930
  )
7692
 
7931
 
7693
  def __init__(self, success=None,):
7932
  def __init__(self, providerId=None, undeliveredOrders=None,):
7694
    self.success = success
7933
    self.providerId = providerId
-
 
7934
    self.undeliveredOrders = undeliveredOrders
7695
 
7935
 
7696
  def read(self, iprot):
7936
  def read(self, iprot):
7697
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7937
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7698
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7938
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7699
      return
7939
      return
7700
    iprot.readStructBegin()
7940
    iprot.readStructBegin()
7701
    while True:
7941
    while True:
7702
      (fname, ftype, fid) = iprot.readFieldBegin()
7942
      (fname, ftype, fid) = iprot.readFieldBegin()
7703
      if ftype == TType.STOP:
7943
      if ftype == TType.STOP:
7704
        break
7944
        break
7705
      if fid == 0:
7945
      if fid == 1:
7706
        if ftype == TType.I64:
7946
        if ftype == TType.I64:
7707
          self.success = iprot.readI64();
7947
          self.providerId = iprot.readI64();
-
 
7948
        else:
-
 
7949
          iprot.skip(ftype)
-
 
7950
      elif fid == 2:
-
 
7951
        if ftype == TType.MAP:
-
 
7952
          self.undeliveredOrders = {}
-
 
7953
          (_ktype147, _vtype148, _size146 ) = iprot.readMapBegin() 
-
 
7954
          for _i150 in xrange(_size146):
-
 
7955
            _key151 = iprot.readString();
-
 
7956
            _val152 = iprot.readString();
-
 
7957
            self.undeliveredOrders[_key151] = _val152
-
 
7958
          iprot.readMapEnd()
7708
        else:
7959
        else:
7709
          iprot.skip(ftype)
7960
          iprot.skip(ftype)
7710
      else:
7961
      else:
7711
        iprot.skip(ftype)
7962
        iprot.skip(ftype)
7712
      iprot.readFieldEnd()
7963
      iprot.readFieldEnd()
Line 7714... Line 7965...
7714
 
7965
 
7715
  def write(self, oprot):
7966
  def write(self, oprot):
7716
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7717
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7718
      return
7969
      return
7719
    oprot.writeStructBegin('getNoOfCustomersWithSuccessfulTransaction_result')
7970
    oprot.writeStructBegin('updateNonDeliveryReason_args')
7720
    if self.success != None:
7971
    if self.providerId != None:
7721
      oprot.writeFieldBegin('success', TType.I64, 0)
7972
      oprot.writeFieldBegin('providerId', TType.I64, 1)
7722
      oprot.writeI64(self.success)
7973
      oprot.writeI64(self.providerId)
-
 
7974
      oprot.writeFieldEnd()
-
 
7975
    if self.undeliveredOrders != None:
-
 
7976
      oprot.writeFieldBegin('undeliveredOrders', TType.MAP, 2)
-
 
7977
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.undeliveredOrders))
-
 
7978
      for kiter153,viter154 in self.undeliveredOrders.items():
-
 
7979
        oprot.writeString(kiter153)
-
 
7980
        oprot.writeString(viter154)
-
 
7981
      oprot.writeMapEnd()
7723
      oprot.writeFieldEnd()
7982
      oprot.writeFieldEnd()
7724
    oprot.writeFieldStop()
7983
    oprot.writeFieldStop()
7725
    oprot.writeStructEnd()
7984
    oprot.writeStructEnd()
7726
 
7985
 
7727
  def __repr__(self):
7986
  def __repr__(self):
Line 7733... Line 7992...
7733
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7734
 
7993
 
7735
  def __ne__(self, other):
7994
  def __ne__(self, other):
7736
    return not (self == other)
7995
    return not (self == other)
7737
 
7996
 
7738
class getValidOrdersAmountRange_args:
-
 
7739
 
-
 
7740
  thrift_spec = (
-
 
7741
  )
-
 
7742
 
-
 
7743
  def read(self, iprot):
-
 
7744
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
7745
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
7746
      return
-
 
7747
    iprot.readStructBegin()
-
 
7748
    while True:
-
 
7749
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
7750
      if ftype == TType.STOP:
-
 
7751
        break
-
 
7752
      else:
-
 
7753
        iprot.skip(ftype)
-
 
7754
      iprot.readFieldEnd()
-
 
7755
    iprot.readStructEnd()
-
 
7756
 
-
 
7757
  def write(self, oprot):
-
 
7758
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
7759
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
7760
      return
-
 
7761
    oprot.writeStructBegin('getValidOrdersAmountRange_args')
-
 
7762
    oprot.writeFieldStop()
-
 
7763
    oprot.writeStructEnd()
-
 
7764
 
-
 
7765
  def __repr__(self):
-
 
7766
    L = ['%s=%r' % (key, value)
-
 
7767
      for key, value in self.__dict__.iteritems()]
-
 
7768
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
7769
 
-
 
7770
  def __eq__(self, other):
-
 
7771
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
7772
 
-
 
7773
  def __ne__(self, other):
-
 
7774
    return not (self == other)
-
 
7775
 
-
 
7776
class getValidOrdersAmountRange_result:
7997
class updateNonDeliveryReason_result:
7777
  """
7998
  """
7778
  Attributes:
7999
  Attributes:
7779
   - success
8000
   - ex
7780
  """
8001
  """
7781
 
8002
 
7782
  thrift_spec = (
8003
  thrift_spec = (
-
 
8004
    None, # 0
7783
    (0, TType.LIST, 'success', (TType.DOUBLE,None), None, ), # 0
8005
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
7784
  )
8006
  )
7785
 
8007
 
7786
  def __init__(self, success=None,):
8008
  def __init__(self, ex=None,):
7787
    self.success = success
8009
    self.ex = ex
7788
 
8010
 
7789
  def read(self, iprot):
8011
  def read(self, iprot):
7790
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8012
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7791
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8013
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7792
      return
8014
      return
7793
    iprot.readStructBegin()
8015
    iprot.readStructBegin()
7794
    while True:
8016
    while True:
7795
      (fname, ftype, fid) = iprot.readFieldBegin()
8017
      (fname, ftype, fid) = iprot.readFieldBegin()
7796
      if ftype == TType.STOP:
8018
      if ftype == TType.STOP:
7797
        break
8019
        break
7798
      if fid == 0:
8020
      if fid == 1:
7799
        if ftype == TType.LIST:
8021
        if ftype == TType.STRUCT:
7800
          self.success = []
-
 
7801
          (_etype151, _size148) = iprot.readListBegin()
-
 
7802
          for _i152 in xrange(_size148):
-
 
7803
            _elem153 = iprot.readDouble();
-
 
7804
            self.success.append(_elem153)
8022
          self.ex = TransactionServiceException()
7805
          iprot.readListEnd()
8023
          self.ex.read(iprot)
7806
        else:
8024
        else:
7807
          iprot.skip(ftype)
8025
          iprot.skip(ftype)
7808
      else:
8026
      else:
7809
        iprot.skip(ftype)
8027
        iprot.skip(ftype)
7810
      iprot.readFieldEnd()
8028
      iprot.readFieldEnd()
Line 7812... Line 8030...
7812
 
8030
 
7813
  def write(self, oprot):
8031
  def write(self, oprot):
7814
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8032
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7815
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8033
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7816
      return
8034
      return
7817
    oprot.writeStructBegin('getValidOrdersAmountRange_result')
8035
    oprot.writeStructBegin('updateNonDeliveryReason_result')
7818
    if self.success != None:
8036
    if self.ex != None:
7819
      oprot.writeFieldBegin('success', TType.LIST, 0)
8037
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7820
      oprot.writeListBegin(TType.DOUBLE, len(self.success))
-
 
7821
      for iter154 in self.success:
-
 
7822
        oprot.writeDouble(iter154)
-
 
7823
      oprot.writeListEnd()
8038
      self.ex.write(oprot)
7824
      oprot.writeFieldEnd()
8039
      oprot.writeFieldEnd()
7825
    oprot.writeFieldStop()
8040
    oprot.writeFieldStop()
7826
    oprot.writeStructEnd()
8041
    oprot.writeStructEnd()
7827
 
8042
 
7828
  def __repr__(self):
8043
  def __repr__(self):
Line 7834... Line 8049...
7834
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7835
 
8050
 
7836
  def __ne__(self, other):
8051
  def __ne__(self, other):
7837
    return not (self == other)
8052
    return not (self == other)
7838
 
8053
 
7839
class getValidOrders_args:
8054
class getUndeliveredOrders_args:
7840
  """
8055
  """
7841
  Attributes:
8056
  Attributes:
7842
   - limit
8057
   - providerId
-
 
8058
   - warehouseId
7843
  """
8059
  """
7844
 
8060
 
7845
  thrift_spec = (
8061
  thrift_spec = (
7846
    None, # 0
8062
    None, # 0
7847
    (1, TType.I64, 'limit', None, None, ), # 1
8063
    (1, TType.I64, 'providerId', None, None, ), # 1
-
 
8064
    (2, TType.I64, 'warehouseId', None, None, ), # 2
7848
  )
8065
  )
7849
 
8066
 
7850
  def __init__(self, limit=None,):
8067
  def __init__(self, providerId=None, warehouseId=None,):
7851
    self.limit = limit
8068
    self.providerId = providerId
-
 
8069
    self.warehouseId = warehouseId
7852
 
8070
 
7853
  def read(self, iprot):
8071
  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:
8072
    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))
8073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7856
      return
8074
      return
Line 7859... Line 8077...
7859
      (fname, ftype, fid) = iprot.readFieldBegin()
8077
      (fname, ftype, fid) = iprot.readFieldBegin()
7860
      if ftype == TType.STOP:
8078
      if ftype == TType.STOP:
7861
        break
8079
        break
7862
      if fid == 1:
8080
      if fid == 1:
7863
        if ftype == TType.I64:
8081
        if ftype == TType.I64:
7864
          self.limit = iprot.readI64();
8082
          self.providerId = iprot.readI64();
-
 
8083
        else:
-
 
8084
          iprot.skip(ftype)
-
 
8085
      elif fid == 2:
-
 
8086
        if ftype == TType.I64:
-
 
8087
          self.warehouseId = iprot.readI64();
7865
        else:
8088
        else:
7866
          iprot.skip(ftype)
8089
          iprot.skip(ftype)
7867
      else:
8090
      else:
7868
        iprot.skip(ftype)
8091
        iprot.skip(ftype)
7869
      iprot.readFieldEnd()
8092
      iprot.readFieldEnd()
Line 7871... Line 8094...
7871
 
8094
 
7872
  def write(self, oprot):
8095
  def write(self, oprot):
7873
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8096
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7874
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8097
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7875
      return
8098
      return
7876
    oprot.writeStructBegin('getValidOrders_args')
8099
    oprot.writeStructBegin('getUndeliveredOrders_args')
7877
    if self.limit != None:
8100
    if self.providerId != None:
7878
      oprot.writeFieldBegin('limit', TType.I64, 1)
8101
      oprot.writeFieldBegin('providerId', TType.I64, 1)
7879
      oprot.writeI64(self.limit)
8102
      oprot.writeI64(self.providerId)
-
 
8103
      oprot.writeFieldEnd()
-
 
8104
    if self.warehouseId != None:
-
 
8105
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
-
 
8106
      oprot.writeI64(self.warehouseId)
7880
      oprot.writeFieldEnd()
8107
      oprot.writeFieldEnd()
7881
    oprot.writeFieldStop()
8108
    oprot.writeFieldStop()
7882
    oprot.writeStructEnd()
8109
    oprot.writeStructEnd()
7883
 
8110
 
7884
  def __repr__(self):
8111
  def __repr__(self):
Line 7890... Line 8117...
7890
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7891
 
8118
 
7892
  def __ne__(self, other):
8119
  def __ne__(self, other):
7893
    return not (self == other)
8120
    return not (self == other)
7894
 
8121
 
7895
class getValidOrders_result:
8122
class getUndeliveredOrders_result:
7896
  """
8123
  """
7897
  Attributes:
8124
  Attributes:
7898
   - success
8125
   - success
7899
  """
8126
  """
7900
 
8127
 
Line 7932... Line 8159...
7932
 
8159
 
7933
  def write(self, oprot):
8160
  def write(self, oprot):
7934
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8161
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7935
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8162
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7936
      return
8163
      return
7937
    oprot.writeStructBegin('getValidOrders_result')
8164
    oprot.writeStructBegin('getUndeliveredOrders_result')
7938
    if self.success != None:
8165
    if self.success != None:
7939
      oprot.writeFieldBegin('success', TType.LIST, 0)
8166
      oprot.writeFieldBegin('success', TType.LIST, 0)
7940
      oprot.writeListBegin(TType.STRUCT, len(self.success))
8167
      oprot.writeListBegin(TType.STRUCT, len(self.success))
7941
      for iter161 in self.success:
8168
      for iter161 in self.success:
7942
        iter161.write(oprot)
8169
        iter161.write(oprot)