Subversion Repositories SmartDukaan

Rev

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

Rev 358 Rev 483
Line 23... Line 23...
23
    """
23
    """
24
    pass
24
    pass
25
 
25
 
26
  def getTransaction(self, id):
26
  def getTransaction(self, id):
27
    """
27
    """
28
    	Get transaction methods.
-
 
29
    *
-
 
30
    
-
 
31
    Parameters:
28
    Parameters:
32
     - id
29
     - id
33
    """
30
    """
34
    pass
31
    pass
35
 
32
 
36
  def getAllTransactions(self, status, from_date, to_date, warehouse_id):
-
 
37
    """
-
 
38
    Parameters:
-
 
39
     - status
-
 
40
     - from_date
-
 
41
     - to_date
-
 
42
     - warehouse_id
-
 
43
    """
-
 
44
    pass
-
 
45
 
-
 
46
  def getTransactionsForShipmentStatus(self, status, from_date, to_date):
-
 
47
    """
-
 
48
    Parameters:
-
 
49
     - status
-
 
50
     - from_date
-
 
51
     - to_date
-
 
52
    """
-
 
53
    pass
-
 
54
 
-
 
55
  def getTransactionsForCustomer(self, customerId, from_date, to_date, status):
33
  def getTransactionsForCustomer(self, customerId, from_date, to_date, status):
56
    """
34
    """
57
    Parameters:
35
    Parameters:
58
     - customerId
36
     - customerId
59
     - from_date
37
     - from_date
60
     - to_date
38
     - to_date
61
     - status
39
     - status
62
    """
40
    """
63
    pass
41
    pass
64
 
42
 
65
  def getTransactionsForCustomerAndShipmentStatus(self, customerId, from_date, to_date, status):
-
 
66
    """
-
 
67
    Parameters:
-
 
68
     - customerId
-
 
69
     - from_date
-
 
70
     - to_date
-
 
71
     - status
-
 
72
    """
-
 
73
    pass
-
 
74
 
-
 
75
  def getTransactionsForShoppingCartId(self, shoppingCartId):
43
  def getTransactionsForShoppingCartId(self, shoppingCartId):
76
    """
44
    """
77
    Parameters:
45
    Parameters:
78
     - shoppingCartId
46
     - shoppingCartId
79
    """
47
    """
Line 93... Line 61...
93
     - status
61
     - status
94
     - description
62
     - description
95
    """
63
    """
96
    pass
64
    pass
97
 
65
 
98
  def getOrderInfo(self, transactionId):
66
  def getAllOrders(self, status, from_date, to_date, warehouse_id):
99
    """
-
 
100
    	Get and set individual objects in it
-
 
101
    *
-
 
102
    
-
 
103
    Parameters:
-
 
104
     - transactionId
-
 
105
    """
-
 
106
    pass
-
 
107
 
-
 
108
  def getShippingInfo(self, transactionId):
-
 
109
    """
67
    """
110
    Parameters:
68
    Parameters:
111
     - transactionId
69
     - status
112
    """
-
 
113
    pass
70
     - from_date
114
 
-
 
115
  def getBillingInfo(self, transactionId):
-
 
116
    """
-
 
117
    Parameters:
71
     - to_date
118
     - transactionId
72
     - warehouse_id
119
    """
73
    """
120
    pass
74
    pass
121
 
75
 
122
  def addBilling(self, tranactionId, billing):
76
  def changeOrderStatus(self, orderId, status, description):
123
    """
77
    """
124
    Parameters:
78
    Parameters:
125
     - tranactionId
79
     - orderId
126
     - billing
80
     - status
-
 
81
     - description
127
    """
82
    """
128
    pass
83
    pass
129
 
84
 
130
  def setShippingTracker(self, transactionId, shippingId, trackingId, airwayBillNo, provider):
85
  def getOrdersForTransaction(self, transactionId):
131
    """
86
    """
132
    Parameters:
87
    Parameters:
133
     - transactionId
88
     - transactionId
134
     - shippingId
-
 
135
     - trackingId
-
 
136
     - airwayBillNo
-
 
137
     - provider
-
 
138
    """
89
    """
139
    pass
90
    pass
140
 
91
 
141
  def setShippingDate(self, transactionId, shippingId, timestamp):
92
  def getOrdersForCustomer(self, customerId, from_date, to_date, status):
142
    """
93
    """
143
    Parameters:
94
    Parameters:
144
     - transactionId
95
     - customerId
145
     - shippingId
96
     - from_date
146
     - timestamp
97
     - to_date
-
 
98
     - status
147
    """
99
    """
148
    pass
100
    pass
149
 
101
 
150
  def setDeliveryDate(self, transactionId, shippingid, timestamp):
102
  def createOrder(self, order):
151
    """
103
    """
152
    Parameters:
104
    Parameters:
153
     - transactionId
-
 
154
     - shippingid
-
 
155
     - timestamp
105
     - order
156
    """
106
    """
157
    pass
107
    pass
158
 
108
 
159
  def changeShippingStatus(self, transactionId, shippingId, status, description):
109
  def getOrder(self, id):
160
    """
110
    """
161
    Parameters:
111
    Parameters:
162
     - transactionId
-
 
163
     - shippingId
-
 
164
     - status
112
     - id
165
     - description
-
 
166
    """
113
    """
167
    pass
114
    pass
168
 
115
 
169
  def addTrail(self, transactionId, description):
116
  def getLineItemsForOrder(self, orderId):
170
    """
117
    """
171
    Parameters:
118
    Parameters:
172
     - transactionId
119
     - orderId
173
     - description
-
 
174
    """
120
    """
175
    pass
121
    pass
176
 
122
 
177
  def getAlerts(self, transactionId, valid):
123
  def getAlerts(self, orderId, valid):
178
    """
124
    """
179
    Parameters:
125
    Parameters:
180
     - transactionId
126
     - orderId
181
     - valid
127
     - valid
182
    """
128
    """
183
    pass
129
    pass
184
 
130
 
185
  def setAlert(self, transactionId, unset, type, comment):
131
  def setAlert(self, orderId, unset, type, comment):
186
    """
132
    """
187
    Parameters:
133
    Parameters:
188
     - transactionId
134
     - orderId
189
     - unset
135
     - unset
190
     - type
136
     - type
191
     - comment
137
     - comment
192
    """
138
    """
193
    pass
139
    pass
194
 
140
 
195
  def getExtraInfo(self, transaction_id):
-
 
196
    """
-
 
197
    Parameters:
-
 
198
     - transaction_id
-
 
199
    """
-
 
200
    pass
-
 
201
 
-
 
202
  def setExtraInfo(self, transaction_id, sku_id, model, colour, vendor):
-
 
203
    """
-
 
204
    Parameters:
-
 
205
     - transaction_id
-
 
206
     - sku_id
-
 
207
     - model
-
 
208
     - colour
-
 
209
     - vendor
-
 
210
    """
-
 
211
    pass
-
 
212
 
-
 
213
 
141
 
214
class Client(Iface):
142
class Client(Iface):
215
  def __init__(self, iprot, oprot=None):
143
  def __init__(self, iprot, oprot=None):
216
    self._iprot = self._oprot = iprot
144
    self._iprot = self._oprot = iprot
217
    if oprot != None:
145
    if oprot != None:
Line 250... Line 178...
250
      raise result.ex
178
      raise result.ex
251
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createTransaction failed: unknown result");
179
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createTransaction failed: unknown result");
252
 
180
 
253
  def getTransaction(self, id):
181
  def getTransaction(self, id):
254
    """
182
    """
255
    	Get transaction methods.
-
 
256
    *
-
 
257
    
-
 
258
    Parameters:
183
    Parameters:
259
     - id
184
     - id
260
    """
185
    """
261
    self.send_getTransaction(id)
186
    self.send_getTransaction(id)
262
    return self.recv_getTransaction()
187
    return self.recv_getTransaction()
Line 283... Line 208...
283
      return result.success
208
      return result.success
284
    if result.ex != None:
209
    if result.ex != None:
285
      raise result.ex
210
      raise result.ex
286
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");
211
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");
287
 
212
 
288
  def getAllTransactions(self, status, from_date, to_date, warehouse_id):
-
 
289
    """
-
 
290
    Parameters:
-
 
291
     - status
-
 
292
     - from_date
-
 
293
     - to_date
-
 
294
     - warehouse_id
-
 
295
    """
-
 
296
    self.send_getAllTransactions(status, from_date, to_date, warehouse_id)
-
 
297
    return self.recv_getAllTransactions()
-
 
298
 
-
 
299
  def send_getAllTransactions(self, status, from_date, to_date, warehouse_id):
-
 
300
    self._oprot.writeMessageBegin('getAllTransactions', TMessageType.CALL, self._seqid)
-
 
301
    args = getAllTransactions_args()
-
 
302
    args.status = status
-
 
303
    args.from_date = from_date
-
 
304
    args.to_date = to_date
-
 
305
    args.warehouse_id = warehouse_id
-
 
306
    args.write(self._oprot)
-
 
307
    self._oprot.writeMessageEnd()
-
 
308
    self._oprot.trans.flush()
-
 
309
 
-
 
310
  def recv_getAllTransactions(self, ):
-
 
311
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
312
    if mtype == TMessageType.EXCEPTION:
-
 
313
      x = TApplicationException()
-
 
314
      x.read(self._iprot)
-
 
315
      self._iprot.readMessageEnd()
-
 
316
      raise x
-
 
317
    result = getAllTransactions_result()
-
 
318
    result.read(self._iprot)
-
 
319
    self._iprot.readMessageEnd()
-
 
320
    if result.success != None:
-
 
321
      return result.success
-
 
322
    if result.ex != None:
-
 
323
      raise result.ex
-
 
324
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllTransactions failed: unknown result");
-
 
325
 
-
 
326
  def getTransactionsForShipmentStatus(self, status, from_date, to_date):
-
 
327
    """
-
 
328
    Parameters:
-
 
329
     - status
-
 
330
     - from_date
-
 
331
     - to_date
-
 
332
    """
-
 
333
    self.send_getTransactionsForShipmentStatus(status, from_date, to_date)
-
 
334
    return self.recv_getTransactionsForShipmentStatus()
-
 
335
 
-
 
336
  def send_getTransactionsForShipmentStatus(self, status, from_date, to_date):
-
 
337
    self._oprot.writeMessageBegin('getTransactionsForShipmentStatus', TMessageType.CALL, self._seqid)
-
 
338
    args = getTransactionsForShipmentStatus_args()
-
 
339
    args.status = status
-
 
340
    args.from_date = from_date
-
 
341
    args.to_date = to_date
-
 
342
    args.write(self._oprot)
-
 
343
    self._oprot.writeMessageEnd()
-
 
344
    self._oprot.trans.flush()
-
 
345
 
-
 
346
  def recv_getTransactionsForShipmentStatus(self, ):
-
 
347
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
348
    if mtype == TMessageType.EXCEPTION:
-
 
349
      x = TApplicationException()
-
 
350
      x.read(self._iprot)
-
 
351
      self._iprot.readMessageEnd()
-
 
352
      raise x
-
 
353
    result = getTransactionsForShipmentStatus_result()
-
 
354
    result.read(self._iprot)
-
 
355
    self._iprot.readMessageEnd()
-
 
356
    if result.success != None:
-
 
357
      return result.success
-
 
358
    if result.ex != None:
-
 
359
      raise result.ex
-
 
360
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForShipmentStatus failed: unknown result");
-
 
361
 
-
 
362
  def getTransactionsForCustomer(self, customerId, from_date, to_date, status):
213
  def getTransactionsForCustomer(self, customerId, from_date, to_date, status):
363
    """
214
    """
364
    Parameters:
215
    Parameters:
365
     - customerId
216
     - customerId
366
     - from_date
217
     - from_date
Line 395... Line 246...
395
      return result.success
246
      return result.success
396
    if result.ex != None:
247
    if result.ex != None:
397
      raise result.ex
248
      raise result.ex
398
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");
249
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");
399
 
250
 
400
  def getTransactionsForCustomerAndShipmentStatus(self, customerId, from_date, to_date, status):
-
 
401
    """
-
 
402
    Parameters:
-
 
403
     - customerId
-
 
404
     - from_date
-
 
405
     - to_date
-
 
406
     - status
-
 
407
    """
-
 
408
    self.send_getTransactionsForCustomerAndShipmentStatus(customerId, from_date, to_date, status)
-
 
409
    return self.recv_getTransactionsForCustomerAndShipmentStatus()
-
 
410
 
-
 
411
  def send_getTransactionsForCustomerAndShipmentStatus(self, customerId, from_date, to_date, status):
-
 
412
    self._oprot.writeMessageBegin('getTransactionsForCustomerAndShipmentStatus', TMessageType.CALL, self._seqid)
-
 
413
    args = getTransactionsForCustomerAndShipmentStatus_args()
-
 
414
    args.customerId = customerId
-
 
415
    args.from_date = from_date
-
 
416
    args.to_date = to_date
-
 
417
    args.status = status
-
 
418
    args.write(self._oprot)
-
 
419
    self._oprot.writeMessageEnd()
-
 
420
    self._oprot.trans.flush()
-
 
421
 
-
 
422
  def recv_getTransactionsForCustomerAndShipmentStatus(self, ):
-
 
423
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
424
    if mtype == TMessageType.EXCEPTION:
-
 
425
      x = TApplicationException()
-
 
426
      x.read(self._iprot)
-
 
427
      self._iprot.readMessageEnd()
-
 
428
      raise x
-
 
429
    result = getTransactionsForCustomerAndShipmentStatus_result()
-
 
430
    result.read(self._iprot)
-
 
431
    self._iprot.readMessageEnd()
-
 
432
    if result.success != None:
-
 
433
      return result.success
-
 
434
    if result.ex != None:
-
 
435
      raise result.ex
-
 
436
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomerAndShipmentStatus failed: unknown result");
-
 
437
 
-
 
438
  def getTransactionsForShoppingCartId(self, shoppingCartId):
251
  def getTransactionsForShoppingCartId(self, shoppingCartId):
439
    """
252
    """
440
    Parameters:
253
    Parameters:
441
     - shoppingCartId
254
     - shoppingCartId
442
    """
255
    """
Line 533... Line 346...
533
      return result.success
346
      return result.success
534
    if result.ex != None:
347
    if result.ex != None:
535
      raise result.ex
348
      raise result.ex
536
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");
349
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");
537
 
350
 
538
  def getOrderInfo(self, transactionId):
351
  def getAllOrders(self, status, from_date, to_date, warehouse_id):
539
    """
352
    """
540
    	Get and set individual objects in it
-
 
541
    *
-
 
542
    
-
 
543
    Parameters:
353
    Parameters:
-
 
354
     - status
-
 
355
     - from_date
-
 
356
     - to_date
544
     - transactionId
357
     - warehouse_id
545
    """
358
    """
546
    self.send_getOrderInfo(transactionId)
359
    self.send_getAllOrders(status, from_date, to_date, warehouse_id)
547
    return self.recv_getOrderInfo()
360
    return self.recv_getAllOrders()
548
 
361
 
549
  def send_getOrderInfo(self, transactionId):
362
  def send_getAllOrders(self, status, from_date, to_date, warehouse_id):
550
    self._oprot.writeMessageBegin('getOrderInfo', TMessageType.CALL, self._seqid)
363
    self._oprot.writeMessageBegin('getAllOrders', TMessageType.CALL, self._seqid)
551
    args = getOrderInfo_args()
364
    args = getAllOrders_args()
-
 
365
    args.status = status
-
 
366
    args.from_date = from_date
-
 
367
    args.to_date = to_date
552
    args.transactionId = transactionId
368
    args.warehouse_id = warehouse_id
553
    args.write(self._oprot)
369
    args.write(self._oprot)
554
    self._oprot.writeMessageEnd()
370
    self._oprot.writeMessageEnd()
555
    self._oprot.trans.flush()
371
    self._oprot.trans.flush()
556
 
372
 
557
  def recv_getOrderInfo(self, ):
373
  def recv_getAllOrders(self, ):
558
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
374
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
559
    if mtype == TMessageType.EXCEPTION:
375
    if mtype == TMessageType.EXCEPTION:
560
      x = TApplicationException()
376
      x = TApplicationException()
561
      x.read(self._iprot)
377
      x.read(self._iprot)
562
      self._iprot.readMessageEnd()
378
      self._iprot.readMessageEnd()
563
      raise x
379
      raise x
564
    result = getOrderInfo_result()
380
    result = getAllOrders_result()
565
    result.read(self._iprot)
381
    result.read(self._iprot)
566
    self._iprot.readMessageEnd()
382
    self._iprot.readMessageEnd()
567
    if result.success != None:
383
    if result.success != None:
568
      return result.success
384
      return result.success
569
    if result.ex != None:
385
    if result.ex != None:
570
      raise result.ex
386
      raise result.ex
571
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderInfo failed: unknown result");
387
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
572
 
388
 
573
  def getShippingInfo(self, transactionId):
389
  def changeOrderStatus(self, orderId, status, description):
574
    """
390
    """
575
    Parameters:
391
    Parameters:
-
 
392
     - orderId
-
 
393
     - status
576
     - transactionId
394
     - description
577
    """
395
    """
578
    self.send_getShippingInfo(transactionId)
396
    self.send_changeOrderStatus(orderId, status, description)
579
    return self.recv_getShippingInfo()
397
    return self.recv_changeOrderStatus()
580
 
398
 
581
  def send_getShippingInfo(self, transactionId):
399
  def send_changeOrderStatus(self, orderId, status, description):
582
    self._oprot.writeMessageBegin('getShippingInfo', TMessageType.CALL, self._seqid)
400
    self._oprot.writeMessageBegin('changeOrderStatus', TMessageType.CALL, self._seqid)
583
    args = getShippingInfo_args()
401
    args = changeOrderStatus_args()
-
 
402
    args.orderId = orderId
-
 
403
    args.status = status
584
    args.transactionId = transactionId
404
    args.description = description
585
    args.write(self._oprot)
405
    args.write(self._oprot)
586
    self._oprot.writeMessageEnd()
406
    self._oprot.writeMessageEnd()
587
    self._oprot.trans.flush()
407
    self._oprot.trans.flush()
588
 
408
 
589
  def recv_getShippingInfo(self, ):
409
  def recv_changeOrderStatus(self, ):
590
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
410
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
591
    if mtype == TMessageType.EXCEPTION:
411
    if mtype == TMessageType.EXCEPTION:
592
      x = TApplicationException()
412
      x = TApplicationException()
593
      x.read(self._iprot)
413
      x.read(self._iprot)
594
      self._iprot.readMessageEnd()
414
      self._iprot.readMessageEnd()
595
      raise x
415
      raise x
596
    result = getShippingInfo_result()
416
    result = changeOrderStatus_result()
597
    result.read(self._iprot)
417
    result.read(self._iprot)
598
    self._iprot.readMessageEnd()
418
    self._iprot.readMessageEnd()
599
    if result.success != None:
419
    if result.success != None:
600
      return result.success
420
      return result.success
601
    if result.ex != None:
421
    if result.ex != None:
602
      raise result.ex
422
      raise result.ex
603
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getShippingInfo failed: unknown result");
423
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeOrderStatus failed: unknown result");
604
 
424
 
605
  def getBillingInfo(self, transactionId):
425
  def getOrdersForTransaction(self, transactionId):
606
    """
426
    """
607
    Parameters:
427
    Parameters:
608
     - transactionId
428
     - transactionId
609
    """
429
    """
610
    self.send_getBillingInfo(transactionId)
430
    self.send_getOrdersForTransaction(transactionId)
611
    return self.recv_getBillingInfo()
431
    return self.recv_getOrdersForTransaction()
612
 
432
 
613
  def send_getBillingInfo(self, transactionId):
433
  def send_getOrdersForTransaction(self, transactionId):
614
    self._oprot.writeMessageBegin('getBillingInfo', TMessageType.CALL, self._seqid)
434
    self._oprot.writeMessageBegin('getOrdersForTransaction', TMessageType.CALL, self._seqid)
615
    args = getBillingInfo_args()
435
    args = getOrdersForTransaction_args()
616
    args.transactionId = transactionId
436
    args.transactionId = transactionId
617
    args.write(self._oprot)
437
    args.write(self._oprot)
618
    self._oprot.writeMessageEnd()
438
    self._oprot.writeMessageEnd()
619
    self._oprot.trans.flush()
439
    self._oprot.trans.flush()
620
 
440
 
621
  def recv_getBillingInfo(self, ):
441
  def recv_getOrdersForTransaction(self, ):
622
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
442
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
623
    if mtype == TMessageType.EXCEPTION:
443
    if mtype == TMessageType.EXCEPTION:
624
      x = TApplicationException()
444
      x = TApplicationException()
625
      x.read(self._iprot)
445
      x.read(self._iprot)
626
      self._iprot.readMessageEnd()
446
      self._iprot.readMessageEnd()
627
      raise x
447
      raise x
628
    result = getBillingInfo_result()
448
    result = getOrdersForTransaction_result()
629
    result.read(self._iprot)
449
    result.read(self._iprot)
630
    self._iprot.readMessageEnd()
450
    self._iprot.readMessageEnd()
631
    if result.success != None:
451
    if result.success != None:
632
      return result.success
452
      return result.success
633
    if result.ex != None:
453
    if result.ex != None:
634
      raise result.ex
454
      raise result.ex
635
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBillingInfo failed: unknown result");
455
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForTransaction failed: unknown result");
636
 
456
 
637
  def addBilling(self, tranactionId, billing):
457
  def getOrdersForCustomer(self, customerId, from_date, to_date, status):
638
    """
458
    """
639
    Parameters:
459
    Parameters:
640
     - tranactionId
-
 
641
     - billing
-
 
642
    """
-
 
643
    self.send_addBilling(tranactionId, billing)
-
 
644
    return self.recv_addBilling()
-
 
645
 
-
 
646
  def send_addBilling(self, tranactionId, billing):
-
 
647
    self._oprot.writeMessageBegin('addBilling', TMessageType.CALL, self._seqid)
-
 
648
    args = addBilling_args()
-
 
649
    args.tranactionId = tranactionId
-
 
650
    args.billing = billing
-
 
651
    args.write(self._oprot)
-
 
652
    self._oprot.writeMessageEnd()
-
 
653
    self._oprot.trans.flush()
-
 
654
 
-
 
655
  def recv_addBilling(self, ):
-
 
656
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
657
    if mtype == TMessageType.EXCEPTION:
-
 
658
      x = TApplicationException()
-
 
659
      x.read(self._iprot)
-
 
660
      self._iprot.readMessageEnd()
-
 
661
      raise x
-
 
662
    result = addBilling_result()
-
 
663
    result.read(self._iprot)
-
 
664
    self._iprot.readMessageEnd()
-
 
665
    if result.success != None:
-
 
666
      return result.success
-
 
667
    if result.ex != None:
-
 
668
      raise result.ex
-
 
669
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBilling failed: unknown result");
-
 
670
 
-
 
671
  def setShippingTracker(self, transactionId, shippingId, trackingId, airwayBillNo, provider):
-
 
672
    """
-
 
673
    Parameters:
-
 
674
     - transactionId
-
 
675
     - shippingId
-
 
676
     - trackingId
460
     - customerId
677
     - airwayBillNo
-
 
678
     - provider
461
     - from_date
679
    """
-
 
680
    self.send_setShippingTracker(transactionId, shippingId, trackingId, airwayBillNo, provider)
-
 
681
    return self.recv_setShippingTracker()
-
 
682
 
-
 
683
  def send_setShippingTracker(self, transactionId, shippingId, trackingId, airwayBillNo, provider):
-
 
684
    self._oprot.writeMessageBegin('setShippingTracker', TMessageType.CALL, self._seqid)
-
 
685
    args = setShippingTracker_args()
-
 
686
    args.transactionId = transactionId
-
 
687
    args.shippingId = shippingId
-
 
688
    args.trackingId = trackingId
-
 
689
    args.airwayBillNo = airwayBillNo
-
 
690
    args.provider = provider
-
 
691
    args.write(self._oprot)
-
 
692
    self._oprot.writeMessageEnd()
-
 
693
    self._oprot.trans.flush()
-
 
694
 
-
 
695
  def recv_setShippingTracker(self, ):
-
 
696
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
697
    if mtype == TMessageType.EXCEPTION:
-
 
698
      x = TApplicationException()
-
 
699
      x.read(self._iprot)
-
 
700
      self._iprot.readMessageEnd()
-
 
701
      raise x
462
     - to_date
702
    result = setShippingTracker_result()
-
 
703
    result.read(self._iprot)
-
 
704
    self._iprot.readMessageEnd()
-
 
705
    if result.success != None:
-
 
706
      return result.success
-
 
707
    if result.ex != None:
-
 
708
      raise result.ex
-
 
709
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setShippingTracker failed: unknown result");
-
 
710
 
-
 
711
  def setShippingDate(self, transactionId, shippingId, timestamp):
-
 
712
    """
-
 
713
    Parameters:
-
 
714
     - transactionId
-
 
715
     - shippingId
-
 
716
     - timestamp
463
     - status
717
    """
464
    """
718
    self.send_setShippingDate(transactionId, shippingId, timestamp)
465
    self.send_getOrdersForCustomer(customerId, from_date, to_date, status)
719
    return self.recv_setShippingDate()
466
    return self.recv_getOrdersForCustomer()
720
 
467
 
721
  def send_setShippingDate(self, transactionId, shippingId, timestamp):
468
  def send_getOrdersForCustomer(self, customerId, from_date, to_date, status):
722
    self._oprot.writeMessageBegin('setShippingDate', TMessageType.CALL, self._seqid)
469
    self._oprot.writeMessageBegin('getOrdersForCustomer', TMessageType.CALL, self._seqid)
723
    args = setShippingDate_args()
470
    args = getOrdersForCustomer_args()
724
    args.transactionId = transactionId
471
    args.customerId = customerId
725
    args.shippingId = shippingId
472
    args.from_date = from_date
726
    args.timestamp = timestamp
473
    args.to_date = to_date
-
 
474
    args.status = status
727
    args.write(self._oprot)
475
    args.write(self._oprot)
728
    self._oprot.writeMessageEnd()
476
    self._oprot.writeMessageEnd()
729
    self._oprot.trans.flush()
477
    self._oprot.trans.flush()
730
 
478
 
731
  def recv_setShippingDate(self, ):
479
  def recv_getOrdersForCustomer(self, ):
732
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
480
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
733
    if mtype == TMessageType.EXCEPTION:
481
    if mtype == TMessageType.EXCEPTION:
734
      x = TApplicationException()
482
      x = TApplicationException()
735
      x.read(self._iprot)
483
      x.read(self._iprot)
736
      self._iprot.readMessageEnd()
484
      self._iprot.readMessageEnd()
737
      raise x
485
      raise x
738
    result = setShippingDate_result()
486
    result = getOrdersForCustomer_result()
739
    result.read(self._iprot)
487
    result.read(self._iprot)
740
    self._iprot.readMessageEnd()
488
    self._iprot.readMessageEnd()
741
    if result.success != None:
489
    if result.success != None:
742
      return result.success
490
      return result.success
743
    if result.ex != None:
491
    if result.ex != None:
744
      raise result.ex
492
      raise result.ex
745
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setShippingDate failed: unknown result");
493
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForCustomer failed: unknown result");
746
 
494
 
747
  def setDeliveryDate(self, transactionId, shippingid, timestamp):
495
  def createOrder(self, order):
748
    """
496
    """
749
    Parameters:
497
    Parameters:
750
     - transactionId
-
 
751
     - shippingid
-
 
752
     - timestamp
498
     - order
753
    """
499
    """
754
    self.send_setDeliveryDate(transactionId, shippingid, timestamp)
500
    self.send_createOrder(order)
755
    return self.recv_setDeliveryDate()
501
    return self.recv_createOrder()
756
 
502
 
757
  def send_setDeliveryDate(self, transactionId, shippingid, timestamp):
503
  def send_createOrder(self, order):
758
    self._oprot.writeMessageBegin('setDeliveryDate', TMessageType.CALL, self._seqid)
504
    self._oprot.writeMessageBegin('createOrder', TMessageType.CALL, self._seqid)
759
    args = setDeliveryDate_args()
505
    args = createOrder_args()
760
    args.transactionId = transactionId
-
 
761
    args.shippingid = shippingid
-
 
762
    args.timestamp = timestamp
506
    args.order = order
763
    args.write(self._oprot)
507
    args.write(self._oprot)
764
    self._oprot.writeMessageEnd()
508
    self._oprot.writeMessageEnd()
765
    self._oprot.trans.flush()
509
    self._oprot.trans.flush()
766
 
510
 
767
  def recv_setDeliveryDate(self, ):
511
  def recv_createOrder(self, ):
768
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
512
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
769
    if mtype == TMessageType.EXCEPTION:
513
    if mtype == TMessageType.EXCEPTION:
770
      x = TApplicationException()
514
      x = TApplicationException()
771
      x.read(self._iprot)
515
      x.read(self._iprot)
772
      self._iprot.readMessageEnd()
516
      self._iprot.readMessageEnd()
773
      raise x
517
      raise x
774
    result = setDeliveryDate_result()
518
    result = createOrder_result()
775
    result.read(self._iprot)
519
    result.read(self._iprot)
776
    self._iprot.readMessageEnd()
520
    self._iprot.readMessageEnd()
777
    if result.success != None:
521
    if result.success != None:
778
      return result.success
522
      return result.success
779
    if result.ex != None:
523
    if result.ex != None:
780
      raise result.ex
524
      raise result.ex
781
    raise TApplicationException(TApplicationException.MISSING_RESULT, "setDeliveryDate failed: unknown result");
525
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrder failed: unknown result");
782
 
526
 
783
  def changeShippingStatus(self, transactionId, shippingId, status, description):
527
  def getOrder(self, id):
784
    """
528
    """
785
    Parameters:
529
    Parameters:
786
     - transactionId
-
 
787
     - shippingId
-
 
788
     - status
530
     - id
789
     - description
-
 
790
    """
531
    """
791
    self.send_changeShippingStatus(transactionId, shippingId, status, description)
532
    self.send_getOrder(id)
792
    return self.recv_changeShippingStatus()
533
    return self.recv_getOrder()
793
 
534
 
794
  def send_changeShippingStatus(self, transactionId, shippingId, status, description):
535
  def send_getOrder(self, id):
795
    self._oprot.writeMessageBegin('changeShippingStatus', TMessageType.CALL, self._seqid)
536
    self._oprot.writeMessageBegin('getOrder', TMessageType.CALL, self._seqid)
796
    args = changeShippingStatus_args()
537
    args = getOrder_args()
797
    args.transactionId = transactionId
-
 
798
    args.shippingId = shippingId
-
 
799
    args.status = status
538
    args.id = id
800
    args.description = description
-
 
801
    args.write(self._oprot)
539
    args.write(self._oprot)
802
    self._oprot.writeMessageEnd()
540
    self._oprot.writeMessageEnd()
803
    self._oprot.trans.flush()
541
    self._oprot.trans.flush()
804
 
542
 
805
  def recv_changeShippingStatus(self, ):
543
  def recv_getOrder(self, ):
806
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
544
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
807
    if mtype == TMessageType.EXCEPTION:
545
    if mtype == TMessageType.EXCEPTION:
808
      x = TApplicationException()
546
      x = TApplicationException()
809
      x.read(self._iprot)
547
      x.read(self._iprot)
810
      self._iprot.readMessageEnd()
548
      self._iprot.readMessageEnd()
811
      raise x
549
      raise x
812
    result = changeShippingStatus_result()
550
    result = getOrder_result()
813
    result.read(self._iprot)
551
    result.read(self._iprot)
814
    self._iprot.readMessageEnd()
552
    self._iprot.readMessageEnd()
815
    if result.success != None:
553
    if result.success != None:
816
      return result.success
554
      return result.success
817
    if result.ex != None:
555
    if result.ex != None:
818
      raise result.ex
556
      raise result.ex
819
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeShippingStatus failed: unknown result");
557
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrder failed: unknown result");
820
 
558
 
821
  def addTrail(self, transactionId, description):
559
  def getLineItemsForOrder(self, orderId):
822
    """
560
    """
823
    Parameters:
561
    Parameters:
824
     - transactionId
562
     - orderId
825
     - description
-
 
826
    """
563
    """
827
    self.send_addTrail(transactionId, description)
564
    self.send_getLineItemsForOrder(orderId)
828
    return self.recv_addTrail()
565
    return self.recv_getLineItemsForOrder()
829
 
566
 
830
  def send_addTrail(self, transactionId, description):
567
  def send_getLineItemsForOrder(self, orderId):
831
    self._oprot.writeMessageBegin('addTrail', TMessageType.CALL, self._seqid)
568
    self._oprot.writeMessageBegin('getLineItemsForOrder', TMessageType.CALL, self._seqid)
832
    args = addTrail_args()
569
    args = getLineItemsForOrder_args()
833
    args.transactionId = transactionId
570
    args.orderId = orderId
834
    args.description = description
-
 
835
    args.write(self._oprot)
571
    args.write(self._oprot)
836
    self._oprot.writeMessageEnd()
572
    self._oprot.writeMessageEnd()
837
    self._oprot.trans.flush()
573
    self._oprot.trans.flush()
838
 
574
 
839
  def recv_addTrail(self, ):
575
  def recv_getLineItemsForOrder(self, ):
840
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
576
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
841
    if mtype == TMessageType.EXCEPTION:
577
    if mtype == TMessageType.EXCEPTION:
842
      x = TApplicationException()
578
      x = TApplicationException()
843
      x.read(self._iprot)
579
      x.read(self._iprot)
844
      self._iprot.readMessageEnd()
580
      self._iprot.readMessageEnd()
845
      raise x
581
      raise x
846
    result = addTrail_result()
582
    result = getLineItemsForOrder_result()
847
    result.read(self._iprot)
583
    result.read(self._iprot)
848
    self._iprot.readMessageEnd()
584
    self._iprot.readMessageEnd()
849
    if result.success != None:
585
    if result.success != None:
850
      return result.success
586
      return result.success
851
    if result.ex != None:
587
    if result.ex != None:
852
      raise result.ex
588
      raise result.ex
853
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addTrail failed: unknown result");
589
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLineItemsForOrder failed: unknown result");
854
 
590
 
855
  def getAlerts(self, transactionId, valid):
591
  def getAlerts(self, orderId, valid):
856
    """
592
    """
857
    Parameters:
593
    Parameters:
858
     - transactionId
594
     - orderId
859
     - valid
595
     - valid
860
    """
596
    """
861
    self.send_getAlerts(transactionId, valid)
597
    self.send_getAlerts(orderId, valid)
862
    return self.recv_getAlerts()
598
    return self.recv_getAlerts()
863
 
599
 
864
  def send_getAlerts(self, transactionId, valid):
600
  def send_getAlerts(self, orderId, valid):
865
    self._oprot.writeMessageBegin('getAlerts', TMessageType.CALL, self._seqid)
601
    self._oprot.writeMessageBegin('getAlerts', TMessageType.CALL, self._seqid)
866
    args = getAlerts_args()
602
    args = getAlerts_args()
867
    args.transactionId = transactionId
603
    args.orderId = orderId
868
    args.valid = valid
604
    args.valid = valid
869
    args.write(self._oprot)
605
    args.write(self._oprot)
870
    self._oprot.writeMessageEnd()
606
    self._oprot.writeMessageEnd()
871
    self._oprot.trans.flush()
607
    self._oprot.trans.flush()
872
 
608
 
Line 882... Line 618...
882
    self._iprot.readMessageEnd()
618
    self._iprot.readMessageEnd()
883
    if result.success != None:
619
    if result.success != None:
884
      return result.success
620
      return result.success
885
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
621
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
886
 
622
 
887
  def setAlert(self, transactionId, unset, type, comment):
623
  def setAlert(self, orderId, unset, type, comment):
888
    """
624
    """
889
    Parameters:
625
    Parameters:
890
     - transactionId
626
     - orderId
891
     - unset
627
     - unset
892
     - type
628
     - type
893
     - comment
629
     - comment
894
    """
630
    """
895
    self.send_setAlert(transactionId, unset, type, comment)
631
    self.send_setAlert(orderId, unset, type, comment)
896
    self.recv_setAlert()
632
    self.recv_setAlert()
897
 
633
 
898
  def send_setAlert(self, transactionId, unset, type, comment):
634
  def send_setAlert(self, orderId, unset, type, comment):
899
    self._oprot.writeMessageBegin('setAlert', TMessageType.CALL, self._seqid)
635
    self._oprot.writeMessageBegin('setAlert', TMessageType.CALL, self._seqid)
900
    args = setAlert_args()
636
    args = setAlert_args()
901
    args.transactionId = transactionId
637
    args.orderId = orderId
902
    args.unset = unset
638
    args.unset = unset
903
    args.type = type
639
    args.type = type
904
    args.comment = comment
640
    args.comment = comment
905
    args.write(self._oprot)
641
    args.write(self._oprot)
906
    self._oprot.writeMessageEnd()
642
    self._oprot.writeMessageEnd()
Line 916... Line 652...
916
    result = setAlert_result()
652
    result = setAlert_result()
917
    result.read(self._iprot)
653
    result.read(self._iprot)
918
    self._iprot.readMessageEnd()
654
    self._iprot.readMessageEnd()
919
    return
655
    return
920
 
656
 
921
  def getExtraInfo(self, transaction_id):
-
 
922
    """
-
 
923
    Parameters:
-
 
924
     - transaction_id
-
 
925
    """
-
 
926
    self.send_getExtraInfo(transaction_id)
-
 
927
    return self.recv_getExtraInfo()
-
 
928
 
-
 
929
  def send_getExtraInfo(self, transaction_id):
-
 
930
    self._oprot.writeMessageBegin('getExtraInfo', TMessageType.CALL, self._seqid)
-
 
931
    args = getExtraInfo_args()
-
 
932
    args.transaction_id = transaction_id
-
 
933
    args.write(self._oprot)
-
 
934
    self._oprot.writeMessageEnd()
-
 
935
    self._oprot.trans.flush()
-
 
936
 
-
 
937
  def recv_getExtraInfo(self, ):
-
 
938
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
939
    if mtype == TMessageType.EXCEPTION:
-
 
940
      x = TApplicationException()
-
 
941
      x.read(self._iprot)
-
 
942
      self._iprot.readMessageEnd()
-
 
943
      raise x
-
 
944
    result = getExtraInfo_result()
-
 
945
    result.read(self._iprot)
-
 
946
    self._iprot.readMessageEnd()
-
 
947
    if result.success != None:
-
 
948
      return result.success
-
 
949
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getExtraInfo failed: unknown result");
-
 
950
 
-
 
951
  def setExtraInfo(self, transaction_id, sku_id, model, colour, vendor):
-
 
952
    """
-
 
953
    Parameters:
-
 
954
     - transaction_id
-
 
955
     - sku_id
-
 
956
     - model
-
 
957
     - colour
-
 
958
     - vendor
-
 
959
    """
-
 
960
    self.send_setExtraInfo(transaction_id, sku_id, model, colour, vendor)
-
 
961
    self.recv_setExtraInfo()
-
 
962
 
-
 
963
  def send_setExtraInfo(self, transaction_id, sku_id, model, colour, vendor):
-
 
964
    self._oprot.writeMessageBegin('setExtraInfo', TMessageType.CALL, self._seqid)
-
 
965
    args = setExtraInfo_args()
-
 
966
    args.transaction_id = transaction_id
-
 
967
    args.sku_id = sku_id
-
 
968
    args.model = model
-
 
969
    args.colour = colour
-
 
970
    args.vendor = vendor
-
 
971
    args.write(self._oprot)
-
 
972
    self._oprot.writeMessageEnd()
-
 
973
    self._oprot.trans.flush()
-
 
974
 
-
 
975
  def recv_setExtraInfo(self, ):
-
 
976
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
977
    if mtype == TMessageType.EXCEPTION:
-
 
978
      x = TApplicationException()
-
 
979
      x.read(self._iprot)
-
 
980
      self._iprot.readMessageEnd()
-
 
981
      raise x
-
 
982
    result = setExtraInfo_result()
-
 
983
    result.read(self._iprot)
-
 
984
    self._iprot.readMessageEnd()
-
 
985
    return
-
 
986
 
-
 
987
 
657
 
988
class Processor(Iface, TProcessor):
658
class Processor(Iface, TProcessor):
989
  def __init__(self, handler):
659
  def __init__(self, handler):
990
    self._handler = handler
660
    self._handler = handler
991
    self._processMap = {}
661
    self._processMap = {}
992
    self._processMap["createTransaction"] = Processor.process_createTransaction
662
    self._processMap["createTransaction"] = Processor.process_createTransaction
993
    self._processMap["getTransaction"] = Processor.process_getTransaction
663
    self._processMap["getTransaction"] = Processor.process_getTransaction
994
    self._processMap["getAllTransactions"] = Processor.process_getAllTransactions
-
 
995
    self._processMap["getTransactionsForShipmentStatus"] = Processor.process_getTransactionsForShipmentStatus
-
 
996
    self._processMap["getTransactionsForCustomer"] = Processor.process_getTransactionsForCustomer
664
    self._processMap["getTransactionsForCustomer"] = Processor.process_getTransactionsForCustomer
997
    self._processMap["getTransactionsForCustomerAndShipmentStatus"] = Processor.process_getTransactionsForCustomerAndShipmentStatus
-
 
998
    self._processMap["getTransactionsForShoppingCartId"] = Processor.process_getTransactionsForShoppingCartId
665
    self._processMap["getTransactionsForShoppingCartId"] = Processor.process_getTransactionsForShoppingCartId
999
    self._processMap["getTransactionStatus"] = Processor.process_getTransactionStatus
666
    self._processMap["getTransactionStatus"] = Processor.process_getTransactionStatus
1000
    self._processMap["changeTransactionStatus"] = Processor.process_changeTransactionStatus
667
    self._processMap["changeTransactionStatus"] = Processor.process_changeTransactionStatus
1001
    self._processMap["getOrderInfo"] = Processor.process_getOrderInfo
668
    self._processMap["getAllOrders"] = Processor.process_getAllOrders
1002
    self._processMap["getShippingInfo"] = Processor.process_getShippingInfo
669
    self._processMap["changeOrderStatus"] = Processor.process_changeOrderStatus
1003
    self._processMap["getBillingInfo"] = Processor.process_getBillingInfo
670
    self._processMap["getOrdersForTransaction"] = Processor.process_getOrdersForTransaction
1004
    self._processMap["addBilling"] = Processor.process_addBilling
-
 
1005
    self._processMap["setShippingTracker"] = Processor.process_setShippingTracker
671
    self._processMap["getOrdersForCustomer"] = Processor.process_getOrdersForCustomer
1006
    self._processMap["setShippingDate"] = Processor.process_setShippingDate
672
    self._processMap["createOrder"] = Processor.process_createOrder
1007
    self._processMap["setDeliveryDate"] = Processor.process_setDeliveryDate
673
    self._processMap["getOrder"] = Processor.process_getOrder
1008
    self._processMap["changeShippingStatus"] = Processor.process_changeShippingStatus
674
    self._processMap["getLineItemsForOrder"] = Processor.process_getLineItemsForOrder
1009
    self._processMap["addTrail"] = Processor.process_addTrail
-
 
1010
    self._processMap["getAlerts"] = Processor.process_getAlerts
675
    self._processMap["getAlerts"] = Processor.process_getAlerts
1011
    self._processMap["setAlert"] = Processor.process_setAlert
676
    self._processMap["setAlert"] = Processor.process_setAlert
1012
    self._processMap["getExtraInfo"] = Processor.process_getExtraInfo
-
 
1013
    self._processMap["setExtraInfo"] = Processor.process_setExtraInfo
-
 
1014
 
677
 
1015
  def process(self, iprot, oprot):
678
  def process(self, iprot, oprot):
1016
    (name, type, seqid) = iprot.readMessageBegin()
679
    (name, type, seqid) = iprot.readMessageBegin()
1017
    if name not in self._processMap:
680
    if name not in self._processMap:
1018
      iprot.skip(TType.STRUCT)
681
      iprot.skip(TType.STRUCT)
Line 1053... Line 716...
1053
    oprot.writeMessageBegin("getTransaction", TMessageType.REPLY, seqid)
716
    oprot.writeMessageBegin("getTransaction", TMessageType.REPLY, seqid)
1054
    result.write(oprot)
717
    result.write(oprot)
1055
    oprot.writeMessageEnd()
718
    oprot.writeMessageEnd()
1056
    oprot.trans.flush()
719
    oprot.trans.flush()
1057
 
720
 
1058
  def process_getAllTransactions(self, seqid, iprot, oprot):
-
 
1059
    args = getAllTransactions_args()
-
 
1060
    args.read(iprot)
-
 
1061
    iprot.readMessageEnd()
-
 
1062
    result = getAllTransactions_result()
-
 
1063
    try:
-
 
1064
      result.success = self._handler.getAllTransactions(args.status, args.from_date, args.to_date, args.warehouse_id)
-
 
1065
    except TransactionServiceException, ex:
-
 
1066
      result.ex = ex
-
 
1067
    oprot.writeMessageBegin("getAllTransactions", TMessageType.REPLY, seqid)
-
 
1068
    result.write(oprot)
-
 
1069
    oprot.writeMessageEnd()
-
 
1070
    oprot.trans.flush()
-
 
1071
 
-
 
1072
  def process_getTransactionsForShipmentStatus(self, seqid, iprot, oprot):
-
 
1073
    args = getTransactionsForShipmentStatus_args()
-
 
1074
    args.read(iprot)
-
 
1075
    iprot.readMessageEnd()
-
 
1076
    result = getTransactionsForShipmentStatus_result()
-
 
1077
    try:
-
 
1078
      result.success = self._handler.getTransactionsForShipmentStatus(args.status, args.from_date, args.to_date)
-
 
1079
    except TransactionServiceException, ex:
-
 
1080
      result.ex = ex
-
 
1081
    oprot.writeMessageBegin("getTransactionsForShipmentStatus", TMessageType.REPLY, seqid)
-
 
1082
    result.write(oprot)
-
 
1083
    oprot.writeMessageEnd()
-
 
1084
    oprot.trans.flush()
-
 
1085
 
-
 
1086
  def process_getTransactionsForCustomer(self, seqid, iprot, oprot):
721
  def process_getTransactionsForCustomer(self, seqid, iprot, oprot):
1087
    args = getTransactionsForCustomer_args()
722
    args = getTransactionsForCustomer_args()
1088
    args.read(iprot)
723
    args.read(iprot)
1089
    iprot.readMessageEnd()
724
    iprot.readMessageEnd()
1090
    result = getTransactionsForCustomer_result()
725
    result = getTransactionsForCustomer_result()
Line 1095... Line 730...
1095
    oprot.writeMessageBegin("getTransactionsForCustomer", TMessageType.REPLY, seqid)
730
    oprot.writeMessageBegin("getTransactionsForCustomer", TMessageType.REPLY, seqid)
1096
    result.write(oprot)
731
    result.write(oprot)
1097
    oprot.writeMessageEnd()
732
    oprot.writeMessageEnd()
1098
    oprot.trans.flush()
733
    oprot.trans.flush()
1099
 
734
 
1100
  def process_getTransactionsForCustomerAndShipmentStatus(self, seqid, iprot, oprot):
-
 
1101
    args = getTransactionsForCustomerAndShipmentStatus_args()
-
 
1102
    args.read(iprot)
-
 
1103
    iprot.readMessageEnd()
-
 
1104
    result = getTransactionsForCustomerAndShipmentStatus_result()
-
 
1105
    try:
-
 
1106
      result.success = self._handler.getTransactionsForCustomerAndShipmentStatus(args.customerId, args.from_date, args.to_date, args.status)
-
 
1107
    except TransactionServiceException, ex:
-
 
1108
      result.ex = ex
-
 
1109
    oprot.writeMessageBegin("getTransactionsForCustomerAndShipmentStatus", TMessageType.REPLY, seqid)
-
 
1110
    result.write(oprot)
-
 
1111
    oprot.writeMessageEnd()
-
 
1112
    oprot.trans.flush()
-
 
1113
 
-
 
1114
  def process_getTransactionsForShoppingCartId(self, seqid, iprot, oprot):
735
  def process_getTransactionsForShoppingCartId(self, seqid, iprot, oprot):
1115
    args = getTransactionsForShoppingCartId_args()
736
    args = getTransactionsForShoppingCartId_args()
1116
    args.read(iprot)
737
    args.read(iprot)
1117
    iprot.readMessageEnd()
738
    iprot.readMessageEnd()
1118
    result = getTransactionsForShoppingCartId_result()
739
    result = getTransactionsForShoppingCartId_result()
Line 1151... Line 772...
1151
    oprot.writeMessageBegin("changeTransactionStatus", TMessageType.REPLY, seqid)
772
    oprot.writeMessageBegin("changeTransactionStatus", TMessageType.REPLY, seqid)
1152
    result.write(oprot)
773
    result.write(oprot)
1153
    oprot.writeMessageEnd()
774
    oprot.writeMessageEnd()
1154
    oprot.trans.flush()
775
    oprot.trans.flush()
1155
 
776
 
1156
  def process_getOrderInfo(self, seqid, iprot, oprot):
777
  def process_getAllOrders(self, seqid, iprot, oprot):
1157
    args = getOrderInfo_args()
778
    args = getAllOrders_args()
1158
    args.read(iprot)
779
    args.read(iprot)
1159
    iprot.readMessageEnd()
780
    iprot.readMessageEnd()
1160
    result = getOrderInfo_result()
781
    result = getAllOrders_result()
1161
    try:
782
    try:
1162
      result.success = self._handler.getOrderInfo(args.transactionId)
783
      result.success = self._handler.getAllOrders(args.status, args.from_date, args.to_date, args.warehouse_id)
1163
    except TransactionServiceException, ex:
784
    except TransactionServiceException, ex:
1164
      result.ex = ex
785
      result.ex = ex
1165
    oprot.writeMessageBegin("getOrderInfo", TMessageType.REPLY, seqid)
786
    oprot.writeMessageBegin("getAllOrders", TMessageType.REPLY, seqid)
1166
    result.write(oprot)
787
    result.write(oprot)
1167
    oprot.writeMessageEnd()
788
    oprot.writeMessageEnd()
1168
    oprot.trans.flush()
789
    oprot.trans.flush()
1169
 
790
 
1170
  def process_getShippingInfo(self, seqid, iprot, oprot):
791
  def process_changeOrderStatus(self, seqid, iprot, oprot):
1171
    args = getShippingInfo_args()
792
    args = changeOrderStatus_args()
1172
    args.read(iprot)
793
    args.read(iprot)
1173
    iprot.readMessageEnd()
794
    iprot.readMessageEnd()
1174
    result = getShippingInfo_result()
795
    result = changeOrderStatus_result()
1175
    try:
796
    try:
1176
      result.success = self._handler.getShippingInfo(args.transactionId)
797
      result.success = self._handler.changeOrderStatus(args.orderId, args.status, args.description)
1177
    except TransactionServiceException, ex:
798
    except TransactionServiceException, ex:
1178
      result.ex = ex
799
      result.ex = ex
1179
    oprot.writeMessageBegin("getShippingInfo", TMessageType.REPLY, seqid)
800
    oprot.writeMessageBegin("changeOrderStatus", TMessageType.REPLY, seqid)
1180
    result.write(oprot)
801
    result.write(oprot)
1181
    oprot.writeMessageEnd()
802
    oprot.writeMessageEnd()
1182
    oprot.trans.flush()
803
    oprot.trans.flush()
1183
 
804
 
1184
  def process_getBillingInfo(self, seqid, iprot, oprot):
805
  def process_getOrdersForTransaction(self, seqid, iprot, oprot):
1185
    args = getBillingInfo_args()
806
    args = getOrdersForTransaction_args()
1186
    args.read(iprot)
807
    args.read(iprot)
1187
    iprot.readMessageEnd()
808
    iprot.readMessageEnd()
1188
    result = getBillingInfo_result()
809
    result = getOrdersForTransaction_result()
1189
    try:
810
    try:
1190
      result.success = self._handler.getBillingInfo(args.transactionId)
811
      result.success = self._handler.getOrdersForTransaction(args.transactionId)
1191
    except TransactionServiceException, ex:
812
    except TransactionServiceException, ex:
1192
      result.ex = ex
813
      result.ex = ex
1193
    oprot.writeMessageBegin("getBillingInfo", TMessageType.REPLY, seqid)
814
    oprot.writeMessageBegin("getOrdersForTransaction", TMessageType.REPLY, seqid)
1194
    result.write(oprot)
815
    result.write(oprot)
1195
    oprot.writeMessageEnd()
816
    oprot.writeMessageEnd()
1196
    oprot.trans.flush()
817
    oprot.trans.flush()
1197
 
818
 
1198
  def process_addBilling(self, seqid, iprot, oprot):
819
  def process_getOrdersForCustomer(self, seqid, iprot, oprot):
1199
    args = addBilling_args()
820
    args = getOrdersForCustomer_args()
1200
    args.read(iprot)
821
    args.read(iprot)
1201
    iprot.readMessageEnd()
822
    iprot.readMessageEnd()
1202
    result = addBilling_result()
823
    result = getOrdersForCustomer_result()
1203
    try:
824
    try:
1204
      result.success = self._handler.addBilling(args.tranactionId, args.billing)
825
      result.success = self._handler.getOrdersForCustomer(args.customerId, args.from_date, args.to_date, args.status)
1205
    except TransactionServiceException, ex:
826
    except TransactionServiceException, ex:
1206
      result.ex = ex
827
      result.ex = ex
1207
    oprot.writeMessageBegin("addBilling", TMessageType.REPLY, seqid)
828
    oprot.writeMessageBegin("getOrdersForCustomer", TMessageType.REPLY, seqid)
1208
    result.write(oprot)
829
    result.write(oprot)
1209
    oprot.writeMessageEnd()
830
    oprot.writeMessageEnd()
1210
    oprot.trans.flush()
831
    oprot.trans.flush()
1211
 
832
 
1212
  def process_setShippingTracker(self, seqid, iprot, oprot):
833
  def process_createOrder(self, seqid, iprot, oprot):
1213
    args = setShippingTracker_args()
834
    args = createOrder_args()
1214
    args.read(iprot)
835
    args.read(iprot)
1215
    iprot.readMessageEnd()
836
    iprot.readMessageEnd()
1216
    result = setShippingTracker_result()
837
    result = createOrder_result()
1217
    try:
838
    try:
1218
      result.success = self._handler.setShippingTracker(args.transactionId, args.shippingId, args.trackingId, args.airwayBillNo, args.provider)
839
      result.success = self._handler.createOrder(args.order)
1219
    except TransactionServiceException, ex:
840
    except TransactionServiceException, ex:
1220
      result.ex = ex
841
      result.ex = ex
1221
    oprot.writeMessageBegin("setShippingTracker", TMessageType.REPLY, seqid)
842
    oprot.writeMessageBegin("createOrder", TMessageType.REPLY, seqid)
1222
    result.write(oprot)
843
    result.write(oprot)
1223
    oprot.writeMessageEnd()
844
    oprot.writeMessageEnd()
1224
    oprot.trans.flush()
845
    oprot.trans.flush()
1225
 
846
 
1226
  def process_setShippingDate(self, seqid, iprot, oprot):
847
  def process_getOrder(self, seqid, iprot, oprot):
1227
    args = setShippingDate_args()
848
    args = getOrder_args()
1228
    args.read(iprot)
849
    args.read(iprot)
1229
    iprot.readMessageEnd()
850
    iprot.readMessageEnd()
1230
    result = setShippingDate_result()
851
    result = getOrder_result()
1231
    try:
852
    try:
1232
      result.success = self._handler.setShippingDate(args.transactionId, args.shippingId, args.timestamp)
853
      result.success = self._handler.getOrder(args.id)
1233
    except TransactionServiceException, ex:
854
    except TransactionServiceException, ex:
1234
      result.ex = ex
855
      result.ex = ex
1235
    oprot.writeMessageBegin("setShippingDate", TMessageType.REPLY, seqid)
856
    oprot.writeMessageBegin("getOrder", TMessageType.REPLY, seqid)
1236
    result.write(oprot)
857
    result.write(oprot)
1237
    oprot.writeMessageEnd()
858
    oprot.writeMessageEnd()
1238
    oprot.trans.flush()
859
    oprot.trans.flush()
1239
 
860
 
1240
  def process_setDeliveryDate(self, seqid, iprot, oprot):
861
  def process_getLineItemsForOrder(self, seqid, iprot, oprot):
1241
    args = setDeliveryDate_args()
862
    args = getLineItemsForOrder_args()
1242
    args.read(iprot)
863
    args.read(iprot)
1243
    iprot.readMessageEnd()
864
    iprot.readMessageEnd()
1244
    result = setDeliveryDate_result()
865
    result = getLineItemsForOrder_result()
1245
    try:
866
    try:
1246
      result.success = self._handler.setDeliveryDate(args.transactionId, args.shippingid, args.timestamp)
867
      result.success = self._handler.getLineItemsForOrder(args.orderId)
1247
    except TransactionServiceException, ex:
868
    except TransactionServiceException, ex:
1248
      result.ex = ex
869
      result.ex = ex
1249
    oprot.writeMessageBegin("setDeliveryDate", TMessageType.REPLY, seqid)
870
    oprot.writeMessageBegin("getLineItemsForOrder", TMessageType.REPLY, seqid)
1250
    result.write(oprot)
-
 
1251
    oprot.writeMessageEnd()
-
 
1252
    oprot.trans.flush()
-
 
1253
 
-
 
1254
  def process_changeShippingStatus(self, seqid, iprot, oprot):
-
 
1255
    args = changeShippingStatus_args()
-
 
1256
    args.read(iprot)
-
 
1257
    iprot.readMessageEnd()
-
 
1258
    result = changeShippingStatus_result()
-
 
1259
    try:
-
 
1260
      result.success = self._handler.changeShippingStatus(args.transactionId, args.shippingId, args.status, args.description)
-
 
1261
    except TransactionServiceException, ex:
-
 
1262
      result.ex = ex
-
 
1263
    oprot.writeMessageBegin("changeShippingStatus", TMessageType.REPLY, seqid)
-
 
1264
    result.write(oprot)
-
 
1265
    oprot.writeMessageEnd()
-
 
1266
    oprot.trans.flush()
-
 
1267
 
-
 
1268
  def process_addTrail(self, seqid, iprot, oprot):
-
 
1269
    args = addTrail_args()
-
 
1270
    args.read(iprot)
-
 
1271
    iprot.readMessageEnd()
-
 
1272
    result = addTrail_result()
-
 
1273
    try:
-
 
1274
      result.success = self._handler.addTrail(args.transactionId, args.description)
-
 
1275
    except TransactionServiceException, ex:
-
 
1276
      result.ex = ex
-
 
1277
    oprot.writeMessageBegin("addTrail", TMessageType.REPLY, seqid)
-
 
1278
    result.write(oprot)
871
    result.write(oprot)
1279
    oprot.writeMessageEnd()
872
    oprot.writeMessageEnd()
1280
    oprot.trans.flush()
873
    oprot.trans.flush()
1281
 
874
 
1282
  def process_getAlerts(self, seqid, iprot, oprot):
875
  def process_getAlerts(self, seqid, iprot, oprot):
1283
    args = getAlerts_args()
876
    args = getAlerts_args()
1284
    args.read(iprot)
877
    args.read(iprot)
1285
    iprot.readMessageEnd()
878
    iprot.readMessageEnd()
1286
    result = getAlerts_result()
879
    result = getAlerts_result()
1287
    result.success = self._handler.getAlerts(args.transactionId, args.valid)
880
    result.success = self._handler.getAlerts(args.orderId, args.valid)
1288
    oprot.writeMessageBegin("getAlerts", TMessageType.REPLY, seqid)
881
    oprot.writeMessageBegin("getAlerts", TMessageType.REPLY, seqid)
1289
    result.write(oprot)
882
    result.write(oprot)
1290
    oprot.writeMessageEnd()
883
    oprot.writeMessageEnd()
1291
    oprot.trans.flush()
884
    oprot.trans.flush()
1292
 
885
 
1293
  def process_setAlert(self, seqid, iprot, oprot):
886
  def process_setAlert(self, seqid, iprot, oprot):
1294
    args = setAlert_args()
887
    args = setAlert_args()
1295
    args.read(iprot)
888
    args.read(iprot)
1296
    iprot.readMessageEnd()
889
    iprot.readMessageEnd()
1297
    result = setAlert_result()
890
    result = setAlert_result()
1298
    self._handler.setAlert(args.transactionId, args.unset, args.type, args.comment)
891
    self._handler.setAlert(args.orderId, args.unset, args.type, args.comment)
1299
    oprot.writeMessageBegin("setAlert", TMessageType.REPLY, seqid)
892
    oprot.writeMessageBegin("setAlert", TMessageType.REPLY, seqid)
1300
    result.write(oprot)
893
    result.write(oprot)
1301
    oprot.writeMessageEnd()
894
    oprot.writeMessageEnd()
1302
    oprot.trans.flush()
895
    oprot.trans.flush()
1303
 
896
 
1304
  def process_getExtraInfo(self, seqid, iprot, oprot):
-
 
1305
    args = getExtraInfo_args()
-
 
1306
    args.read(iprot)
-
 
1307
    iprot.readMessageEnd()
-
 
1308
    result = getExtraInfo_result()
-
 
1309
    result.success = self._handler.getExtraInfo(args.transaction_id)
-
 
1310
    oprot.writeMessageBegin("getExtraInfo", TMessageType.REPLY, seqid)
-
 
1311
    result.write(oprot)
-
 
1312
    oprot.writeMessageEnd()
-
 
1313
    oprot.trans.flush()
-
 
1314
 
-
 
1315
  def process_setExtraInfo(self, seqid, iprot, oprot):
-
 
1316
    args = setExtraInfo_args()
-
 
1317
    args.read(iprot)
-
 
1318
    iprot.readMessageEnd()
-
 
1319
    result = setExtraInfo_result()
-
 
1320
    self._handler.setExtraInfo(args.transaction_id, args.sku_id, args.model, args.colour, args.vendor)
-
 
1321
    oprot.writeMessageBegin("setExtraInfo", TMessageType.REPLY, seqid)
-
 
1322
    result.write(oprot)
-
 
1323
    oprot.writeMessageEnd()
-
 
1324
    oprot.trans.flush()
-
 
1325
 
-
 
1326
 
897
 
1327
# HELPER FUNCTIONS AND STRUCTURES
898
# HELPER FUNCTIONS AND STRUCTURES
1328
 
899
 
1329
class createTransaction_args:
900
class createTransaction_args:
1330
  """
901
  """
Line 1574... Line 1145...
1574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1145
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1575
 
1146
 
1576
  def __ne__(self, other):
1147
  def __ne__(self, other):
1577
    return not (self == other)
1148
    return not (self == other)
1578
 
1149
 
1579
class getAllTransactions_args:
-
 
1580
  """
-
 
1581
  Attributes:
-
 
1582
   - status
-
 
1583
   - from_date
-
 
1584
   - to_date
-
 
1585
   - warehouse_id
-
 
1586
  """
-
 
1587
 
-
 
1588
  thrift_spec = (
-
 
1589
    None, # 0
-
 
1590
    (1, TType.I32, 'status', None, None, ), # 1
-
 
1591
    (2, TType.I64, 'from_date', None, None, ), # 2
-
 
1592
    (3, TType.I64, 'to_date', None, None, ), # 3
-
 
1593
    (4, TType.I64, 'warehouse_id', None, None, ), # 4
-
 
1594
  )
-
 
1595
 
-
 
1596
  def __init__(self, status=None, from_date=None, to_date=None, warehouse_id=None,):
-
 
1597
    self.status = status
-
 
1598
    self.from_date = from_date
-
 
1599
    self.to_date = to_date
-
 
1600
    self.warehouse_id = warehouse_id
-
 
1601
 
-
 
1602
  def read(self, iprot):
-
 
1603
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1604
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1605
      return
-
 
1606
    iprot.readStructBegin()
-
 
1607
    while True:
-
 
1608
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1609
      if ftype == TType.STOP:
-
 
1610
        break
-
 
1611
      if fid == 1:
-
 
1612
        if ftype == TType.I32:
-
 
1613
          self.status = iprot.readI32();
-
 
1614
        else:
-
 
1615
          iprot.skip(ftype)
-
 
1616
      elif fid == 2:
-
 
1617
        if ftype == TType.I64:
-
 
1618
          self.from_date = iprot.readI64();
-
 
1619
        else:
-
 
1620
          iprot.skip(ftype)
-
 
1621
      elif fid == 3:
-
 
1622
        if ftype == TType.I64:
-
 
1623
          self.to_date = iprot.readI64();
-
 
1624
        else:
-
 
1625
          iprot.skip(ftype)
-
 
1626
      elif fid == 4:
-
 
1627
        if ftype == TType.I64:
-
 
1628
          self.warehouse_id = iprot.readI64();
-
 
1629
        else:
-
 
1630
          iprot.skip(ftype)
-
 
1631
      else:
-
 
1632
        iprot.skip(ftype)
-
 
1633
      iprot.readFieldEnd()
-
 
1634
    iprot.readStructEnd()
-
 
1635
 
-
 
1636
  def write(self, oprot):
-
 
1637
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1638
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1639
      return
-
 
1640
    oprot.writeStructBegin('getAllTransactions_args')
-
 
1641
    if self.status != None:
-
 
1642
      oprot.writeFieldBegin('status', TType.I32, 1)
-
 
1643
      oprot.writeI32(self.status)
-
 
1644
      oprot.writeFieldEnd()
-
 
1645
    if self.from_date != None:
-
 
1646
      oprot.writeFieldBegin('from_date', TType.I64, 2)
-
 
1647
      oprot.writeI64(self.from_date)
-
 
1648
      oprot.writeFieldEnd()
-
 
1649
    if self.to_date != None:
-
 
1650
      oprot.writeFieldBegin('to_date', TType.I64, 3)
-
 
1651
      oprot.writeI64(self.to_date)
-
 
1652
      oprot.writeFieldEnd()
-
 
1653
    if self.warehouse_id != None:
-
 
1654
      oprot.writeFieldBegin('warehouse_id', TType.I64, 4)
-
 
1655
      oprot.writeI64(self.warehouse_id)
-
 
1656
      oprot.writeFieldEnd()
-
 
1657
    oprot.writeFieldStop()
-
 
1658
    oprot.writeStructEnd()
-
 
1659
 
-
 
1660
  def __repr__(self):
-
 
1661
    L = ['%s=%r' % (key, value)
-
 
1662
      for key, value in self.__dict__.iteritems()]
-
 
1663
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1664
 
-
 
1665
  def __eq__(self, other):
-
 
1666
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1667
 
-
 
1668
  def __ne__(self, other):
-
 
1669
    return not (self == other)
-
 
1670
 
-
 
1671
class getAllTransactions_result:
-
 
1672
  """
-
 
1673
  Attributes:
-
 
1674
   - success
-
 
1675
   - ex
-
 
1676
  """
-
 
1677
 
-
 
1678
  thrift_spec = (
-
 
1679
    (0, TType.LIST, 'success', (TType.STRUCT,(Transaction, Transaction.thrift_spec)), None, ), # 0
-
 
1680
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
1681
  )
-
 
1682
 
-
 
1683
  def __init__(self, success=None, ex=None,):
-
 
1684
    self.success = success
-
 
1685
    self.ex = ex
-
 
1686
 
-
 
1687
  def read(self, iprot):
-
 
1688
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1689
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1690
      return
-
 
1691
    iprot.readStructBegin()
-
 
1692
    while True:
-
 
1693
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1694
      if ftype == TType.STOP:
-
 
1695
        break
-
 
1696
      if fid == 0:
-
 
1697
        if ftype == TType.LIST:
-
 
1698
          self.success = []
-
 
1699
          (_etype56, _size53) = iprot.readListBegin()
-
 
1700
          for _i57 in xrange(_size53):
-
 
1701
            _elem58 = Transaction()
-
 
1702
            _elem58.read(iprot)
-
 
1703
            self.success.append(_elem58)
-
 
1704
          iprot.readListEnd()
-
 
1705
        else:
-
 
1706
          iprot.skip(ftype)
-
 
1707
      elif fid == 1:
-
 
1708
        if ftype == TType.STRUCT:
-
 
1709
          self.ex = TransactionServiceException()
-
 
1710
          self.ex.read(iprot)
-
 
1711
        else:
-
 
1712
          iprot.skip(ftype)
-
 
1713
      else:
-
 
1714
        iprot.skip(ftype)
-
 
1715
      iprot.readFieldEnd()
-
 
1716
    iprot.readStructEnd()
-
 
1717
 
-
 
1718
  def write(self, oprot):
-
 
1719
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1720
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1721
      return
-
 
1722
    oprot.writeStructBegin('getAllTransactions_result')
-
 
1723
    if self.success != None:
-
 
1724
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
1725
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
1726
      for iter59 in self.success:
-
 
1727
        iter59.write(oprot)
-
 
1728
      oprot.writeListEnd()
-
 
1729
      oprot.writeFieldEnd()
-
 
1730
    if self.ex != None:
-
 
1731
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
1732
      self.ex.write(oprot)
-
 
1733
      oprot.writeFieldEnd()
-
 
1734
    oprot.writeFieldStop()
-
 
1735
    oprot.writeStructEnd()
-
 
1736
 
-
 
1737
  def __repr__(self):
-
 
1738
    L = ['%s=%r' % (key, value)
-
 
1739
      for key, value in self.__dict__.iteritems()]
-
 
1740
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1741
 
-
 
1742
  def __eq__(self, other):
-
 
1743
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1744
 
-
 
1745
  def __ne__(self, other):
-
 
1746
    return not (self == other)
-
 
1747
 
-
 
1748
class getTransactionsForShipmentStatus_args:
-
 
1749
  """
-
 
1750
  Attributes:
-
 
1751
   - status
-
 
1752
   - from_date
-
 
1753
   - to_date
-
 
1754
  """
-
 
1755
 
-
 
1756
  thrift_spec = (
-
 
1757
    None, # 0
-
 
1758
    (1, TType.I32, 'status', None, None, ), # 1
-
 
1759
    (2, TType.I64, 'from_date', None, None, ), # 2
-
 
1760
    (3, TType.I64, 'to_date', None, None, ), # 3
-
 
1761
  )
-
 
1762
 
-
 
1763
  def __init__(self, status=None, from_date=None, to_date=None,):
-
 
1764
    self.status = status
-
 
1765
    self.from_date = from_date
-
 
1766
    self.to_date = to_date
-
 
1767
 
-
 
1768
  def read(self, iprot):
-
 
1769
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1770
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1771
      return
-
 
1772
    iprot.readStructBegin()
-
 
1773
    while True:
-
 
1774
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1775
      if ftype == TType.STOP:
-
 
1776
        break
-
 
1777
      if fid == 1:
-
 
1778
        if ftype == TType.I32:
-
 
1779
          self.status = iprot.readI32();
-
 
1780
        else:
-
 
1781
          iprot.skip(ftype)
-
 
1782
      elif fid == 2:
-
 
1783
        if ftype == TType.I64:
-
 
1784
          self.from_date = iprot.readI64();
-
 
1785
        else:
-
 
1786
          iprot.skip(ftype)
-
 
1787
      elif fid == 3:
-
 
1788
        if ftype == TType.I64:
-
 
1789
          self.to_date = iprot.readI64();
-
 
1790
        else:
-
 
1791
          iprot.skip(ftype)
-
 
1792
      else:
-
 
1793
        iprot.skip(ftype)
-
 
1794
      iprot.readFieldEnd()
-
 
1795
    iprot.readStructEnd()
-
 
1796
 
-
 
1797
  def write(self, oprot):
-
 
1798
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1799
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1800
      return
-
 
1801
    oprot.writeStructBegin('getTransactionsForShipmentStatus_args')
-
 
1802
    if self.status != None:
-
 
1803
      oprot.writeFieldBegin('status', TType.I32, 1)
-
 
1804
      oprot.writeI32(self.status)
-
 
1805
      oprot.writeFieldEnd()
-
 
1806
    if self.from_date != None:
-
 
1807
      oprot.writeFieldBegin('from_date', TType.I64, 2)
-
 
1808
      oprot.writeI64(self.from_date)
-
 
1809
      oprot.writeFieldEnd()
-
 
1810
    if self.to_date != None:
-
 
1811
      oprot.writeFieldBegin('to_date', TType.I64, 3)
-
 
1812
      oprot.writeI64(self.to_date)
-
 
1813
      oprot.writeFieldEnd()
-
 
1814
    oprot.writeFieldStop()
-
 
1815
    oprot.writeStructEnd()
-
 
1816
 
-
 
1817
  def __repr__(self):
-
 
1818
    L = ['%s=%r' % (key, value)
-
 
1819
      for key, value in self.__dict__.iteritems()]
-
 
1820
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1821
 
-
 
1822
  def __eq__(self, other):
-
 
1823
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1824
 
-
 
1825
  def __ne__(self, other):
-
 
1826
    return not (self == other)
-
 
1827
 
-
 
1828
class getTransactionsForShipmentStatus_result:
-
 
1829
  """
-
 
1830
  Attributes:
-
 
1831
   - success
-
 
1832
   - ex
-
 
1833
  """
-
 
1834
 
-
 
1835
  thrift_spec = (
-
 
1836
    (0, TType.LIST, 'success', (TType.STRUCT,(Transaction, Transaction.thrift_spec)), None, ), # 0
-
 
1837
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
1838
  )
-
 
1839
 
-
 
1840
  def __init__(self, success=None, ex=None,):
-
 
1841
    self.success = success
-
 
1842
    self.ex = ex
-
 
1843
 
-
 
1844
  def read(self, iprot):
-
 
1845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
1846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
1847
      return
-
 
1848
    iprot.readStructBegin()
-
 
1849
    while True:
-
 
1850
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
1851
      if ftype == TType.STOP:
-
 
1852
        break
-
 
1853
      if fid == 0:
-
 
1854
        if ftype == TType.LIST:
-
 
1855
          self.success = []
-
 
1856
          (_etype63, _size60) = iprot.readListBegin()
-
 
1857
          for _i64 in xrange(_size60):
-
 
1858
            _elem65 = Transaction()
-
 
1859
            _elem65.read(iprot)
-
 
1860
            self.success.append(_elem65)
-
 
1861
          iprot.readListEnd()
-
 
1862
        else:
-
 
1863
          iprot.skip(ftype)
-
 
1864
      elif fid == 1:
-
 
1865
        if ftype == TType.STRUCT:
-
 
1866
          self.ex = TransactionServiceException()
-
 
1867
          self.ex.read(iprot)
-
 
1868
        else:
-
 
1869
          iprot.skip(ftype)
-
 
1870
      else:
-
 
1871
        iprot.skip(ftype)
-
 
1872
      iprot.readFieldEnd()
-
 
1873
    iprot.readStructEnd()
-
 
1874
 
-
 
1875
  def write(self, oprot):
-
 
1876
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
1877
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
1878
      return
-
 
1879
    oprot.writeStructBegin('getTransactionsForShipmentStatus_result')
-
 
1880
    if self.success != None:
-
 
1881
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
1882
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
1883
      for iter66 in self.success:
-
 
1884
        iter66.write(oprot)
-
 
1885
      oprot.writeListEnd()
-
 
1886
      oprot.writeFieldEnd()
-
 
1887
    if self.ex != None:
-
 
1888
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
1889
      self.ex.write(oprot)
-
 
1890
      oprot.writeFieldEnd()
-
 
1891
    oprot.writeFieldStop()
-
 
1892
    oprot.writeStructEnd()
-
 
1893
 
-
 
1894
  def __repr__(self):
-
 
1895
    L = ['%s=%r' % (key, value)
-
 
1896
      for key, value in self.__dict__.iteritems()]
-
 
1897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
1898
 
-
 
1899
  def __eq__(self, other):
-
 
1900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
1901
 
-
 
1902
  def __ne__(self, other):
-
 
1903
    return not (self == other)
-
 
1904
 
-
 
1905
class getTransactionsForCustomer_args:
1150
class getTransactionsForCustomer_args:
1906
  """
1151
  """
1907
  Attributes:
1152
  Attributes:
1908
   - customerId
1153
   - customerId
1909
   - from_date
1154
   - from_date
Line 2020... Line 1265...
2020
      if ftype == TType.STOP:
1265
      if ftype == TType.STOP:
2021
        break
1266
        break
2022
      if fid == 0:
1267
      if fid == 0:
2023
        if ftype == TType.LIST:
1268
        if ftype == TType.LIST:
2024
          self.success = []
1269
          self.success = []
2025
          (_etype70, _size67) = iprot.readListBegin()
1270
          (_etype26, _size23) = iprot.readListBegin()
2026
          for _i71 in xrange(_size67):
1271
          for _i27 in xrange(_size23):
2027
            _elem72 = Transaction()
1272
            _elem28 = Transaction()
2028
            _elem72.read(iprot)
1273
            _elem28.read(iprot)
2029
            self.success.append(_elem72)
1274
            self.success.append(_elem28)
2030
          iprot.readListEnd()
1275
          iprot.readListEnd()
2031
        else:
1276
        else:
2032
          iprot.skip(ftype)
1277
          iprot.skip(ftype)
2033
      elif fid == 1:
1278
      elif fid == 1:
2034
        if ftype == TType.STRUCT:
1279
        if ftype == TType.STRUCT:
Line 2047... Line 1292...
2047
      return
1292
      return
2048
    oprot.writeStructBegin('getTransactionsForCustomer_result')
1293
    oprot.writeStructBegin('getTransactionsForCustomer_result')
2049
    if self.success != None:
1294
    if self.success != None:
2050
      oprot.writeFieldBegin('success', TType.LIST, 0)
1295
      oprot.writeFieldBegin('success', TType.LIST, 0)
2051
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1296
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2052
      for iter73 in self.success:
-
 
2053
        iter73.write(oprot)
-
 
2054
      oprot.writeListEnd()
-
 
2055
      oprot.writeFieldEnd()
-
 
2056
    if self.ex != None:
-
 
2057
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
2058
      self.ex.write(oprot)
-
 
2059
      oprot.writeFieldEnd()
-
 
2060
    oprot.writeFieldStop()
-
 
2061
    oprot.writeStructEnd()
-
 
2062
 
-
 
2063
  def __repr__(self):
-
 
2064
    L = ['%s=%r' % (key, value)
-
 
2065
      for key, value in self.__dict__.iteritems()]
-
 
2066
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2067
 
-
 
2068
  def __eq__(self, other):
-
 
2069
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2070
 
-
 
2071
  def __ne__(self, other):
-
 
2072
    return not (self == other)
-
 
2073
 
-
 
2074
class getTransactionsForCustomerAndShipmentStatus_args:
-
 
2075
  """
-
 
2076
  Attributes:
-
 
2077
   - customerId
-
 
2078
   - from_date
-
 
2079
   - to_date
-
 
2080
   - status
-
 
2081
  """
-
 
2082
 
-
 
2083
  thrift_spec = (
-
 
2084
    None, # 0
-
 
2085
    (1, TType.I64, 'customerId', None, None, ), # 1
-
 
2086
    (2, TType.I64, 'from_date', None, None, ), # 2
-
 
2087
    (3, TType.I64, 'to_date', None, None, ), # 3
-
 
2088
    (4, TType.I32, 'status', None, None, ), # 4
-
 
2089
  )
-
 
2090
 
-
 
2091
  def __init__(self, customerId=None, from_date=None, to_date=None, status=None,):
-
 
2092
    self.customerId = customerId
-
 
2093
    self.from_date = from_date
-
 
2094
    self.to_date = to_date
-
 
2095
    self.status = status
-
 
2096
 
-
 
2097
  def read(self, iprot):
-
 
2098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2100
      return
-
 
2101
    iprot.readStructBegin()
-
 
2102
    while True:
-
 
2103
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2104
      if ftype == TType.STOP:
-
 
2105
        break
-
 
2106
      if fid == 1:
-
 
2107
        if ftype == TType.I64:
-
 
2108
          self.customerId = iprot.readI64();
-
 
2109
        else:
-
 
2110
          iprot.skip(ftype)
-
 
2111
      elif fid == 2:
-
 
2112
        if ftype == TType.I64:
-
 
2113
          self.from_date = iprot.readI64();
-
 
2114
        else:
-
 
2115
          iprot.skip(ftype)
-
 
2116
      elif fid == 3:
-
 
2117
        if ftype == TType.I64:
-
 
2118
          self.to_date = iprot.readI64();
-
 
2119
        else:
-
 
2120
          iprot.skip(ftype)
-
 
2121
      elif fid == 4:
-
 
2122
        if ftype == TType.I32:
-
 
2123
          self.status = iprot.readI32();
-
 
2124
        else:
-
 
2125
          iprot.skip(ftype)
-
 
2126
      else:
-
 
2127
        iprot.skip(ftype)
-
 
2128
      iprot.readFieldEnd()
-
 
2129
    iprot.readStructEnd()
-
 
2130
 
-
 
2131
  def write(self, oprot):
-
 
2132
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2133
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2134
      return
-
 
2135
    oprot.writeStructBegin('getTransactionsForCustomerAndShipmentStatus_args')
-
 
2136
    if self.customerId != None:
-
 
2137
      oprot.writeFieldBegin('customerId', TType.I64, 1)
-
 
2138
      oprot.writeI64(self.customerId)
-
 
2139
      oprot.writeFieldEnd()
-
 
2140
    if self.from_date != None:
-
 
2141
      oprot.writeFieldBegin('from_date', TType.I64, 2)
-
 
2142
      oprot.writeI64(self.from_date)
-
 
2143
      oprot.writeFieldEnd()
-
 
2144
    if self.to_date != None:
-
 
2145
      oprot.writeFieldBegin('to_date', TType.I64, 3)
-
 
2146
      oprot.writeI64(self.to_date)
-
 
2147
      oprot.writeFieldEnd()
-
 
2148
    if self.status != None:
-
 
2149
      oprot.writeFieldBegin('status', TType.I32, 4)
-
 
2150
      oprot.writeI32(self.status)
-
 
2151
      oprot.writeFieldEnd()
-
 
2152
    oprot.writeFieldStop()
-
 
2153
    oprot.writeStructEnd()
-
 
2154
 
-
 
2155
  def __repr__(self):
-
 
2156
    L = ['%s=%r' % (key, value)
-
 
2157
      for key, value in self.__dict__.iteritems()]
-
 
2158
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2159
 
-
 
2160
  def __eq__(self, other):
-
 
2161
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2162
 
-
 
2163
  def __ne__(self, other):
-
 
2164
    return not (self == other)
-
 
2165
 
-
 
2166
class getTransactionsForCustomerAndShipmentStatus_result:
-
 
2167
  """
-
 
2168
  Attributes:
-
 
2169
   - success
-
 
2170
   - ex
-
 
2171
  """
-
 
2172
 
-
 
2173
  thrift_spec = (
-
 
2174
    (0, TType.LIST, 'success', (TType.STRUCT,(Transaction, Transaction.thrift_spec)), None, ), # 0
-
 
2175
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
2176
  )
-
 
2177
 
-
 
2178
  def __init__(self, success=None, ex=None,):
-
 
2179
    self.success = success
-
 
2180
    self.ex = ex
-
 
2181
 
-
 
2182
  def read(self, iprot):
-
 
2183
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2184
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2185
      return
-
 
2186
    iprot.readStructBegin()
-
 
2187
    while True:
-
 
2188
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2189
      if ftype == TType.STOP:
-
 
2190
        break
-
 
2191
      if fid == 0:
-
 
2192
        if ftype == TType.LIST:
-
 
2193
          self.success = []
-
 
2194
          (_etype77, _size74) = iprot.readListBegin()
-
 
2195
          for _i78 in xrange(_size74):
-
 
2196
            _elem79 = Transaction()
-
 
2197
            _elem79.read(iprot)
-
 
2198
            self.success.append(_elem79)
-
 
2199
          iprot.readListEnd()
-
 
2200
        else:
-
 
2201
          iprot.skip(ftype)
-
 
2202
      elif fid == 1:
-
 
2203
        if ftype == TType.STRUCT:
-
 
2204
          self.ex = TransactionServiceException()
-
 
2205
          self.ex.read(iprot)
-
 
2206
        else:
-
 
2207
          iprot.skip(ftype)
-
 
2208
      else:
-
 
2209
        iprot.skip(ftype)
-
 
2210
      iprot.readFieldEnd()
-
 
2211
    iprot.readStructEnd()
-
 
2212
 
-
 
2213
  def write(self, oprot):
-
 
2214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2216
      return
-
 
2217
    oprot.writeStructBegin('getTransactionsForCustomerAndShipmentStatus_result')
-
 
2218
    if self.success != None:
-
 
2219
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
2220
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
2221
      for iter80 in self.success:
1297
      for iter29 in self.success:
2222
        iter80.write(oprot)
1298
        iter29.write(oprot)
2223
      oprot.writeListEnd()
1299
      oprot.writeListEnd()
2224
      oprot.writeFieldEnd()
1300
      oprot.writeFieldEnd()
2225
    if self.ex != None:
1301
    if self.ex != None:
2226
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1302
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2227
      self.ex.write(oprot)
1303
      self.ex.write(oprot)
Line 2322... Line 1398...
2322
      if ftype == TType.STOP:
1398
      if ftype == TType.STOP:
2323
        break
1399
        break
2324
      if fid == 0:
1400
      if fid == 0:
2325
        if ftype == TType.LIST:
1401
        if ftype == TType.LIST:
2326
          self.success = []
1402
          self.success = []
2327
          (_etype84, _size81) = iprot.readListBegin()
1403
          (_etype33, _size30) = iprot.readListBegin()
2328
          for _i85 in xrange(_size81):
1404
          for _i34 in xrange(_size30):
2329
            _elem86 = Transaction()
1405
            _elem35 = Transaction()
2330
            _elem86.read(iprot)
1406
            _elem35.read(iprot)
2331
            self.success.append(_elem86)
1407
            self.success.append(_elem35)
2332
          iprot.readListEnd()
1408
          iprot.readListEnd()
2333
        else:
1409
        else:
2334
          iprot.skip(ftype)
1410
          iprot.skip(ftype)
2335
      elif fid == 1:
1411
      elif fid == 1:
2336
        if ftype == TType.STRUCT:
1412
        if ftype == TType.STRUCT:
Line 2349... Line 1425...
2349
      return
1425
      return
2350
    oprot.writeStructBegin('getTransactionsForShoppingCartId_result')
1426
    oprot.writeStructBegin('getTransactionsForShoppingCartId_result')
2351
    if self.success != None:
1427
    if self.success != None:
2352
      oprot.writeFieldBegin('success', TType.LIST, 0)
1428
      oprot.writeFieldBegin('success', TType.LIST, 0)
2353
      oprot.writeListBegin(TType.STRUCT, len(self.success))
1429
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2354
      for iter87 in self.success:
1430
      for iter36 in self.success:
2355
        iter87.write(oprot)
1431
        iter36.write(oprot)
2356
      oprot.writeListEnd()
1432
      oprot.writeListEnd()
2357
      oprot.writeFieldEnd()
1433
      oprot.writeFieldEnd()
2358
    if self.ex != None:
1434
    if self.ex != None:
2359
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1435
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2360
      self.ex.write(oprot)
1436
      self.ex.write(oprot)
Line 2643... Line 1719...
2643
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1719
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2644
 
1720
 
2645
  def __ne__(self, other):
1721
  def __ne__(self, other):
2646
    return not (self == other)
1722
    return not (self == other)
2647
 
1723
 
2648
class getOrderInfo_args:
1724
class getAllOrders_args:
2649
  """
1725
  """
2650
  Attributes:
1726
  Attributes:
-
 
1727
   - status
-
 
1728
   - from_date
-
 
1729
   - to_date
2651
   - transactionId
1730
   - warehouse_id
2652
  """
1731
  """
2653
 
1732
 
2654
  thrift_spec = (
1733
  thrift_spec = (
2655
    None, # 0
1734
    None, # 0
-
 
1735
    (1, TType.I32, 'status', None, None, ), # 1
-
 
1736
    (2, TType.I64, 'from_date', None, None, ), # 2
2656
    (1, TType.I64, 'transactionId', None, None, ), # 1
1737
    (3, TType.I64, 'to_date', None, None, ), # 3
-
 
1738
    (4, TType.I64, 'warehouse_id', None, None, ), # 4
2657
  )
1739
  )
2658
 
1740
 
2659
  def __init__(self, transactionId=None,):
1741
  def __init__(self, status=None, from_date=None, to_date=None, warehouse_id=None,):
-
 
1742
    self.status = status
-
 
1743
    self.from_date = from_date
-
 
1744
    self.to_date = to_date
2660
    self.transactionId = transactionId
1745
    self.warehouse_id = warehouse_id
2661
 
1746
 
2662
  def read(self, iprot):
1747
  def read(self, iprot):
2663
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1748
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2664
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1749
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2665
      return
1750
      return
Line 2667... Line 1752...
2667
    while True:
1752
    while True:
2668
      (fname, ftype, fid) = iprot.readFieldBegin()
1753
      (fname, ftype, fid) = iprot.readFieldBegin()
2669
      if ftype == TType.STOP:
1754
      if ftype == TType.STOP:
2670
        break
1755
        break
2671
      if fid == 1:
1756
      if fid == 1:
2672
        if ftype == TType.I64:
1757
        if ftype == TType.I32:
2673
          self.transactionId = iprot.readI64();
1758
          self.status = iprot.readI32();
2674
        else:
1759
        else:
2675
          iprot.skip(ftype)
1760
          iprot.skip(ftype)
2676
      else:
-
 
2677
        iprot.skip(ftype)
-
 
2678
      iprot.readFieldEnd()
-
 
2679
    iprot.readStructEnd()
-
 
2680
 
-
 
2681
  def write(self, oprot):
-
 
2682
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2683
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2684
      return
-
 
2685
    oprot.writeStructBegin('getOrderInfo_args')
-
 
2686
    if self.transactionId != None:
-
 
2687
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
-
 
2688
      oprot.writeI64(self.transactionId)
-
 
2689
      oprot.writeFieldEnd()
-
 
2690
    oprot.writeFieldStop()
-
 
2691
    oprot.writeStructEnd()
-
 
2692
 
-
 
2693
  def __repr__(self):
-
 
2694
    L = ['%s=%r' % (key, value)
-
 
2695
      for key, value in self.__dict__.iteritems()]
-
 
2696
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2697
 
-
 
2698
  def __eq__(self, other):
-
 
2699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2700
 
-
 
2701
  def __ne__(self, other):
-
 
2702
    return not (self == other)
-
 
2703
 
-
 
2704
class getOrderInfo_result:
-
 
2705
  """
-
 
2706
  Attributes:
-
 
2707
   - success
-
 
2708
   - ex
-
 
2709
  """
-
 
2710
 
-
 
2711
  thrift_spec = (
-
 
2712
    (0, TType.STRUCT, 'success', (OrderInfo, OrderInfo.thrift_spec), None, ), # 0
-
 
2713
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
2714
  )
-
 
2715
 
-
 
2716
  def __init__(self, success=None, ex=None,):
-
 
2717
    self.success = success
-
 
2718
    self.ex = ex
-
 
2719
 
-
 
2720
  def read(self, iprot):
-
 
2721
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2722
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2723
      return
-
 
2724
    iprot.readStructBegin()
-
 
2725
    while True:
-
 
2726
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2727
      if ftype == TType.STOP:
-
 
2728
        break
-
 
2729
      if fid == 0:
1761
      elif fid == 2:
2730
        if ftype == TType.STRUCT:
1762
        if ftype == TType.I64:
2731
          self.success = OrderInfo()
1763
          self.from_date = iprot.readI64();
2732
          self.success.read(iprot)
-
 
2733
        else:
1764
        else:
2734
          iprot.skip(ftype)
1765
          iprot.skip(ftype)
2735
      elif fid == 1:
1766
      elif fid == 3:
2736
        if ftype == TType.STRUCT:
1767
        if ftype == TType.I64:
2737
          self.ex = TransactionServiceException()
-
 
2738
          self.ex.read(iprot)
1768
          self.to_date = iprot.readI64();
2739
        else:
1769
        else:
2740
          iprot.skip(ftype)
1770
          iprot.skip(ftype)
2741
      else:
-
 
2742
        iprot.skip(ftype)
-
 
2743
      iprot.readFieldEnd()
-
 
2744
    iprot.readStructEnd()
-
 
2745
 
-
 
2746
  def write(self, oprot):
-
 
2747
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2748
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2749
      return
-
 
2750
    oprot.writeStructBegin('getOrderInfo_result')
-
 
2751
    if self.success != None:
-
 
2752
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
2753
      self.success.write(oprot)
-
 
2754
      oprot.writeFieldEnd()
-
 
2755
    if self.ex != None:
-
 
2756
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
-
 
2757
      self.ex.write(oprot)
-
 
2758
      oprot.writeFieldEnd()
-
 
2759
    oprot.writeFieldStop()
-
 
2760
    oprot.writeStructEnd()
-
 
2761
 
-
 
2762
  def __repr__(self):
-
 
2763
    L = ['%s=%r' % (key, value)
-
 
2764
      for key, value in self.__dict__.iteritems()]
-
 
2765
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2766
 
-
 
2767
  def __eq__(self, other):
-
 
2768
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2769
 
-
 
2770
  def __ne__(self, other):
-
 
2771
    return not (self == other)
-
 
2772
 
-
 
2773
class getShippingInfo_args:
-
 
2774
  """
-
 
2775
  Attributes:
-
 
2776
   - transactionId
-
 
2777
  """
-
 
2778
 
-
 
2779
  thrift_spec = (
-
 
2780
    None, # 0
-
 
2781
    (1, TType.I64, 'transactionId', None, None, ), # 1
-
 
2782
  )
-
 
2783
 
-
 
2784
  def __init__(self, transactionId=None,):
-
 
2785
    self.transactionId = transactionId
-
 
2786
 
-
 
2787
  def read(self, iprot):
-
 
2788
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2789
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2790
      return
-
 
2791
    iprot.readStructBegin()
-
 
2792
    while True:
-
 
2793
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2794
      if ftype == TType.STOP:
-
 
2795
        break
-
 
2796
      if fid == 1:
1771
      elif fid == 4:
2797
        if ftype == TType.I64:
1772
        if ftype == TType.I64:
2798
          self.transactionId = iprot.readI64();
1773
          self.warehouse_id = iprot.readI64();
2799
        else:
1774
        else:
2800
          iprot.skip(ftype)
1775
          iprot.skip(ftype)
2801
      else:
1776
      else:
2802
        iprot.skip(ftype)
1777
        iprot.skip(ftype)
2803
      iprot.readFieldEnd()
1778
      iprot.readFieldEnd()
Line 2805... Line 1780...
2805
 
1780
 
2806
  def write(self, oprot):
1781
  def write(self, oprot):
2807
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2808
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2809
      return
1784
      return
2810
    oprot.writeStructBegin('getShippingInfo_args')
1785
    oprot.writeStructBegin('getAllOrders_args')
2811
    if self.transactionId != None:
1786
    if self.status != None:
2812
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
1787
      oprot.writeFieldBegin('status', TType.I32, 1)
2813
      oprot.writeI64(self.transactionId)
1788
      oprot.writeI32(self.status)
2814
      oprot.writeFieldEnd()
1789
      oprot.writeFieldEnd()
2815
    oprot.writeFieldStop()
-
 
2816
    oprot.writeStructEnd()
-
 
2817
 
-
 
2818
  def __repr__(self):
-
 
2819
    L = ['%s=%r' % (key, value)
-
 
2820
      for key, value in self.__dict__.iteritems()]
-
 
2821
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2822
 
-
 
2823
  def __eq__(self, other):
-
 
2824
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2825
 
-
 
2826
  def __ne__(self, other):
-
 
2827
    return not (self == other)
-
 
2828
 
-
 
2829
class getShippingInfo_result:
-
 
2830
  """
-
 
2831
  Attributes:
-
 
2832
   - success
-
 
2833
   - ex
-
 
2834
  """
-
 
2835
 
-
 
2836
  thrift_spec = (
-
 
2837
    (0, TType.STRUCT, 'success', (ShipmentInfo, ShipmentInfo.thrift_spec), None, ), # 0
-
 
2838
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
-
 
2839
  )
-
 
2840
 
-
 
2841
  def __init__(self, success=None, ex=None,):
-
 
2842
    self.success = success
-
 
2843
    self.ex = ex
-
 
2844
 
-
 
2845
  def read(self, iprot):
-
 
2846
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2847
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2848
      return
-
 
2849
    iprot.readStructBegin()
-
 
2850
    while True:
-
 
2851
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2852
      if ftype == TType.STOP:
-
 
2853
        break
-
 
2854
      if fid == 0:
-
 
2855
        if ftype == TType.STRUCT:
-
 
2856
          self.success = ShipmentInfo()
-
 
2857
          self.success.read(iprot)
-
 
2858
        else:
-
 
2859
          iprot.skip(ftype)
-
 
2860
      elif fid == 1:
-
 
2861
        if ftype == TType.STRUCT:
-
 
2862
          self.ex = TransactionServiceException()
-
 
2863
          self.ex.read(iprot)
-
 
2864
        else:
-
 
2865
          iprot.skip(ftype)
-
 
2866
      else:
-
 
2867
        iprot.skip(ftype)
-
 
2868
      iprot.readFieldEnd()
-
 
2869
    iprot.readStructEnd()
-
 
2870
 
-
 
2871
  def write(self, oprot):
-
 
2872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2874
      return
-
 
2875
    oprot.writeStructBegin('getShippingInfo_result')
-
 
2876
    if self.success != None:
1790
    if self.from_date != None:
2877
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1791
      oprot.writeFieldBegin('from_date', TType.I64, 2)
2878
      self.success.write(oprot)
1792
      oprot.writeI64(self.from_date)
2879
      oprot.writeFieldEnd()
1793
      oprot.writeFieldEnd()
2880
    if self.ex != None:
1794
    if self.to_date != None:
2881
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1795
      oprot.writeFieldBegin('to_date', TType.I64, 3)
2882
      self.ex.write(oprot)
1796
      oprot.writeI64(self.to_date)
2883
      oprot.writeFieldEnd()
1797
      oprot.writeFieldEnd()
2884
    oprot.writeFieldStop()
-
 
2885
    oprot.writeStructEnd()
-
 
2886
 
-
 
2887
  def __repr__(self):
-
 
2888
    L = ['%s=%r' % (key, value)
-
 
2889
      for key, value in self.__dict__.iteritems()]
-
 
2890
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2891
 
-
 
2892
  def __eq__(self, other):
-
 
2893
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2894
 
-
 
2895
  def __ne__(self, other):
-
 
2896
    return not (self == other)
-
 
2897
 
-
 
2898
class getBillingInfo_args:
-
 
2899
  """
-
 
2900
  Attributes:
-
 
2901
   - transactionId
-
 
2902
  """
-
 
2903
 
-
 
2904
  thrift_spec = (
-
 
2905
    None, # 0
-
 
2906
    (1, TType.I64, 'transactionId', None, None, ), # 1
-
 
2907
  )
-
 
2908
 
-
 
2909
  def __init__(self, transactionId=None,):
-
 
2910
    self.transactionId = transactionId
-
 
2911
 
-
 
2912
  def read(self, iprot):
-
 
2913
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2914
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2915
      return
-
 
2916
    iprot.readStructBegin()
-
 
2917
    while True:
-
 
2918
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2919
      if ftype == TType.STOP:
-
 
2920
        break
-
 
2921
      if fid == 1:
-
 
2922
        if ftype == TType.I64:
-
 
2923
          self.transactionId = iprot.readI64();
-
 
2924
        else:
-
 
2925
          iprot.skip(ftype)
-
 
2926
      else:
-
 
2927
        iprot.skip(ftype)
-
 
2928
      iprot.readFieldEnd()
-
 
2929
    iprot.readStructEnd()
-
 
2930
 
-
 
2931
  def write(self, oprot):
-
 
2932
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2933
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2934
      return
-
 
2935
    oprot.writeStructBegin('getBillingInfo_args')
-
 
2936
    if self.transactionId != None:
1798
    if self.warehouse_id != None:
2937
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
1799
      oprot.writeFieldBegin('warehouse_id', TType.I64, 4)
2938
      oprot.writeI64(self.transactionId)
1800
      oprot.writeI64(self.warehouse_id)
2939
      oprot.writeFieldEnd()
1801
      oprot.writeFieldEnd()
2940
    oprot.writeFieldStop()
1802
    oprot.writeFieldStop()
2941
    oprot.writeStructEnd()
1803
    oprot.writeStructEnd()
2942
 
1804
 
2943
  def __repr__(self):
1805
  def __repr__(self):
Line 2949... Line 1811...
2949
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2950
 
1812
 
2951
  def __ne__(self, other):
1813
  def __ne__(self, other):
2952
    return not (self == other)
1814
    return not (self == other)
2953
 
1815
 
2954
class getBillingInfo_result:
1816
class getAllOrders_result:
2955
  """
1817
  """
2956
  Attributes:
1818
  Attributes:
2957
   - success
1819
   - success
2958
   - ex
1820
   - ex
2959
  """
1821
  """
2960
 
1822
 
2961
  thrift_spec = (
1823
  thrift_spec = (
2962
    (0, TType.STRUCT, 'success', (BillingInfo, BillingInfo.thrift_spec), None, ), # 0
1824
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
2963
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
1825
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
2964
  )
1826
  )
2965
 
1827
 
2966
  def __init__(self, success=None, ex=None,):
1828
  def __init__(self, success=None, ex=None,):
2967
    self.success = success
1829
    self.success = success
Line 2975... Line 1837...
2975
    while True:
1837
    while True:
2976
      (fname, ftype, fid) = iprot.readFieldBegin()
1838
      (fname, ftype, fid) = iprot.readFieldBegin()
2977
      if ftype == TType.STOP:
1839
      if ftype == TType.STOP:
2978
        break
1840
        break
2979
      if fid == 0:
1841
      if fid == 0:
2980
        if ftype == TType.STRUCT:
1842
        if ftype == TType.LIST:
2981
          self.success = BillingInfo()
1843
          self.success = []
-
 
1844
          (_etype40, _size37) = iprot.readListBegin()
-
 
1845
          for _i41 in xrange(_size37):
-
 
1846
            _elem42 = Order()
-
 
1847
            _elem42.read(iprot)
2982
          self.success.read(iprot)
1848
            self.success.append(_elem42)
-
 
1849
          iprot.readListEnd()
2983
        else:
1850
        else:
2984
          iprot.skip(ftype)
1851
          iprot.skip(ftype)
2985
      elif fid == 1:
1852
      elif fid == 1:
2986
        if ftype == TType.STRUCT:
1853
        if ftype == TType.STRUCT:
2987
          self.ex = TransactionServiceException()
1854
          self.ex = TransactionServiceException()
Line 2995... Line 1862...
2995
 
1862
 
2996
  def write(self, oprot):
1863
  def write(self, oprot):
2997
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1864
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2998
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1865
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2999
      return
1866
      return
3000
    oprot.writeStructBegin('getBillingInfo_result')
1867
    oprot.writeStructBegin('getAllOrders_result')
3001
    if self.success != None:
1868
    if self.success != None:
3002
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1869
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
1870
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
1871
      for iter43 in self.success:
3003
      self.success.write(oprot)
1872
        iter43.write(oprot)
-
 
1873
      oprot.writeListEnd()
3004
      oprot.writeFieldEnd()
1874
      oprot.writeFieldEnd()
3005
    if self.ex != None:
1875
    if self.ex != None:
3006
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
1876
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3007
      self.ex.write(oprot)
1877
      self.ex.write(oprot)
3008
      oprot.writeFieldEnd()
1878
      oprot.writeFieldEnd()
Line 3018... Line 1888...
3018
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1888
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3019
 
1889
 
3020
  def __ne__(self, other):
1890
  def __ne__(self, other):
3021
    return not (self == other)
1891
    return not (self == other)
3022
 
1892
 
3023
class addBilling_args:
1893
class changeOrderStatus_args:
3024
  """
1894
  """
3025
  Attributes:
1895
  Attributes:
3026
   - tranactionId
1896
   - orderId
3027
   - billing
1897
   - status
-
 
1898
   - description
3028
  """
1899
  """
3029
 
1900
 
3030
  thrift_spec = (
1901
  thrift_spec = (
3031
    None, # 0
1902
    None, # 0
3032
    (1, TType.I64, 'tranactionId', None, None, ), # 1
1903
    (1, TType.I64, 'orderId', None, None, ), # 1
-
 
1904
    (2, TType.I32, 'status', None, None, ), # 2
3033
    (2, TType.STRUCT, 'billing', (Billing, Billing.thrift_spec), None, ), # 2
1905
    (3, TType.STRING, 'description', None, None, ), # 3
3034
  )
1906
  )
3035
 
1907
 
3036
  def __init__(self, tranactionId=None, billing=None,):
1908
  def __init__(self, orderId=None, status=None, description=None,):
3037
    self.tranactionId = tranactionId
1909
    self.orderId = orderId
3038
    self.billing = billing
1910
    self.status = status
-
 
1911
    self.description = description
3039
 
1912
 
3040
  def read(self, iprot):
1913
  def read(self, iprot):
3041
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1914
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3042
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1915
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3043
      return
1916
      return
Line 3046... Line 1919...
3046
      (fname, ftype, fid) = iprot.readFieldBegin()
1919
      (fname, ftype, fid) = iprot.readFieldBegin()
3047
      if ftype == TType.STOP:
1920
      if ftype == TType.STOP:
3048
        break
1921
        break
3049
      if fid == 1:
1922
      if fid == 1:
3050
        if ftype == TType.I64:
1923
        if ftype == TType.I64:
3051
          self.tranactionId = iprot.readI64();
1924
          self.orderId = iprot.readI64();
3052
        else:
1925
        else:
3053
          iprot.skip(ftype)
1926
          iprot.skip(ftype)
3054
      elif fid == 2:
1927
      elif fid == 2:
3055
        if ftype == TType.STRUCT:
1928
        if ftype == TType.I32:
3056
          self.billing = Billing()
1929
          self.status = iprot.readI32();
-
 
1930
        else:
-
 
1931
          iprot.skip(ftype)
-
 
1932
      elif fid == 3:
-
 
1933
        if ftype == TType.STRING:
3057
          self.billing.read(iprot)
1934
          self.description = iprot.readString();
3058
        else:
1935
        else:
3059
          iprot.skip(ftype)
1936
          iprot.skip(ftype)
3060
      else:
1937
      else:
3061
        iprot.skip(ftype)
1938
        iprot.skip(ftype)
3062
      iprot.readFieldEnd()
1939
      iprot.readFieldEnd()
Line 3064... Line 1941...
3064
 
1941
 
3065
  def write(self, oprot):
1942
  def write(self, oprot):
3066
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1943
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3067
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1944
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3068
      return
1945
      return
3069
    oprot.writeStructBegin('addBilling_args')
1946
    oprot.writeStructBegin('changeOrderStatus_args')
3070
    if self.tranactionId != None:
1947
    if self.orderId != None:
3071
      oprot.writeFieldBegin('tranactionId', TType.I64, 1)
1948
      oprot.writeFieldBegin('orderId', TType.I64, 1)
3072
      oprot.writeI64(self.tranactionId)
1949
      oprot.writeI64(self.orderId)
3073
      oprot.writeFieldEnd()
1950
      oprot.writeFieldEnd()
3074
    if self.billing != None:
1951
    if self.status != None:
3075
      oprot.writeFieldBegin('billing', TType.STRUCT, 2)
1952
      oprot.writeFieldBegin('status', TType.I32, 2)
-
 
1953
      oprot.writeI32(self.status)
-
 
1954
      oprot.writeFieldEnd()
3076
      self.billing.write(oprot)
1955
    if self.description != None:
-
 
1956
      oprot.writeFieldBegin('description', TType.STRING, 3)
-
 
1957
      oprot.writeString(self.description)
3077
      oprot.writeFieldEnd()
1958
      oprot.writeFieldEnd()
3078
    oprot.writeFieldStop()
1959
    oprot.writeFieldStop()
3079
    oprot.writeStructEnd()
1960
    oprot.writeStructEnd()
3080
 
1961
 
3081
  def __repr__(self):
1962
  def __repr__(self):
Line 3087... Line 1968...
3087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1968
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3088
 
1969
 
3089
  def __ne__(self, other):
1970
  def __ne__(self, other):
3090
    return not (self == other)
1971
    return not (self == other)
3091
 
1972
 
3092
class addBilling_result:
1973
class changeOrderStatus_result:
3093
  """
1974
  """
3094
  Attributes:
1975
  Attributes:
3095
   - success
1976
   - success
3096
   - ex
1977
   - ex
3097
  """
1978
  """
Line 3132... Line 2013...
3132
 
2013
 
3133
  def write(self, oprot):
2014
  def write(self, oprot):
3134
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2015
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3135
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2016
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3136
      return
2017
      return
3137
    oprot.writeStructBegin('addBilling_result')
2018
    oprot.writeStructBegin('changeOrderStatus_result')
3138
    if self.success != None:
2019
    if self.success != None:
3139
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2020
      oprot.writeFieldBegin('success', TType.BOOL, 0)
3140
      oprot.writeBool(self.success)
2021
      oprot.writeBool(self.success)
3141
      oprot.writeFieldEnd()
2022
      oprot.writeFieldEnd()
3142
    if self.ex != None:
2023
    if self.ex != None:
Line 3155... Line 2036...
3155
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2036
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3156
 
2037
 
3157
  def __ne__(self, other):
2038
  def __ne__(self, other):
3158
    return not (self == other)
2039
    return not (self == other)
3159
 
2040
 
3160
class setShippingTracker_args:
2041
class getOrdersForTransaction_args:
3161
  """
2042
  """
3162
  Attributes:
2043
  Attributes:
3163
   - transactionId
2044
   - transactionId
3164
   - shippingId
-
 
3165
   - trackingId
-
 
3166
   - airwayBillNo
-
 
3167
   - provider
-
 
3168
  """
2045
  """
3169
 
2046
 
3170
  thrift_spec = (
2047
  thrift_spec = (
3171
    None, # 0
2048
    None, # 0
3172
    (1, TType.I64, 'transactionId', None, None, ), # 1
2049
    (1, TType.I64, 'transactionId', None, None, ), # 1
3173
    (2, TType.I64, 'shippingId', None, None, ), # 2
-
 
3174
    (3, TType.STRING, 'trackingId', None, None, ), # 3
-
 
3175
    (4, TType.STRING, 'airwayBillNo', None, None, ), # 4
-
 
3176
    (5, TType.STRING, 'provider', None, None, ), # 5
-
 
3177
  )
2050
  )
3178
 
2051
 
3179
  def __init__(self, transactionId=None, shippingId=None, trackingId=None, airwayBillNo=None, provider=None,):
2052
  def __init__(self, transactionId=None,):
3180
    self.transactionId = transactionId
2053
    self.transactionId = transactionId
3181
    self.shippingId = shippingId
-
 
3182
    self.trackingId = trackingId
-
 
3183
    self.airwayBillNo = airwayBillNo
-
 
3184
    self.provider = provider
-
 
3185
 
2054
 
3186
  def read(self, iprot):
2055
  def read(self, iprot):
3187
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2056
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3188
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2057
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3189
      return
2058
      return
Line 3195... Line 2064...
3195
      if fid == 1:
2064
      if fid == 1:
3196
        if ftype == TType.I64:
2065
        if ftype == TType.I64:
3197
          self.transactionId = iprot.readI64();
2066
          self.transactionId = iprot.readI64();
3198
        else:
2067
        else:
3199
          iprot.skip(ftype)
2068
          iprot.skip(ftype)
3200
      elif fid == 2:
-
 
3201
        if ftype == TType.I64:
-
 
3202
          self.shippingId = iprot.readI64();
-
 
3203
        else:
-
 
3204
          iprot.skip(ftype)
-
 
3205
      elif fid == 3:
-
 
3206
        if ftype == TType.STRING:
-
 
3207
          self.trackingId = iprot.readString();
-
 
3208
        else:
-
 
3209
          iprot.skip(ftype)
-
 
3210
      elif fid == 4:
-
 
3211
        if ftype == TType.STRING:
-
 
3212
          self.airwayBillNo = iprot.readString();
-
 
3213
        else:
-
 
3214
          iprot.skip(ftype)
-
 
3215
      elif fid == 5:
-
 
3216
        if ftype == TType.STRING:
-
 
3217
          self.provider = iprot.readString();
-
 
3218
        else:
-
 
3219
          iprot.skip(ftype)
-
 
3220
      else:
2069
      else:
3221
        iprot.skip(ftype)
2070
        iprot.skip(ftype)
3222
      iprot.readFieldEnd()
2071
      iprot.readFieldEnd()
3223
    iprot.readStructEnd()
2072
    iprot.readStructEnd()
3224
 
2073
 
3225
  def write(self, oprot):
2074
  def write(self, oprot):
3226
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2075
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3227
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2076
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3228
      return
2077
      return
3229
    oprot.writeStructBegin('setShippingTracker_args')
2078
    oprot.writeStructBegin('getOrdersForTransaction_args')
3230
    if self.transactionId != None:
2079
    if self.transactionId != None:
3231
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
2080
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
3232
      oprot.writeI64(self.transactionId)
2081
      oprot.writeI64(self.transactionId)
3233
      oprot.writeFieldEnd()
2082
      oprot.writeFieldEnd()
3234
    if self.shippingId != None:
-
 
3235
      oprot.writeFieldBegin('shippingId', TType.I64, 2)
-
 
3236
      oprot.writeI64(self.shippingId)
-
 
3237
      oprot.writeFieldEnd()
-
 
3238
    if self.trackingId != None:
-
 
3239
      oprot.writeFieldBegin('trackingId', TType.STRING, 3)
-
 
3240
      oprot.writeString(self.trackingId)
-
 
3241
      oprot.writeFieldEnd()
-
 
3242
    if self.airwayBillNo != None:
-
 
3243
      oprot.writeFieldBegin('airwayBillNo', TType.STRING, 4)
-
 
3244
      oprot.writeString(self.airwayBillNo)
-
 
3245
      oprot.writeFieldEnd()
-
 
3246
    if self.provider != None:
-
 
3247
      oprot.writeFieldBegin('provider', TType.STRING, 5)
-
 
3248
      oprot.writeString(self.provider)
-
 
3249
      oprot.writeFieldEnd()
-
 
3250
    oprot.writeFieldStop()
2083
    oprot.writeFieldStop()
3251
    oprot.writeStructEnd()
2084
    oprot.writeStructEnd()
3252
 
2085
 
3253
  def __repr__(self):
2086
  def __repr__(self):
3254
    L = ['%s=%r' % (key, value)
2087
    L = ['%s=%r' % (key, value)
Line 3259... Line 2092...
3259
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2092
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3260
 
2093
 
3261
  def __ne__(self, other):
2094
  def __ne__(self, other):
3262
    return not (self == other)
2095
    return not (self == other)
3263
 
2096
 
3264
class setShippingTracker_result:
2097
class getOrdersForTransaction_result:
3265
  """
2098
  """
3266
  Attributes:
2099
  Attributes:
3267
   - success
2100
   - success
3268
   - ex
2101
   - ex
3269
  """
2102
  """
3270
 
2103
 
3271
  thrift_spec = (
2104
  thrift_spec = (
3272
    (0, TType.BOOL, 'success', None, None, ), # 0
2105
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
3273
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
2106
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
3274
  )
2107
  )
3275
 
2108
 
3276
  def __init__(self, success=None, ex=None,):
2109
  def __init__(self, success=None, ex=None,):
3277
    self.success = success
2110
    self.success = success
Line 3285... Line 2118...
3285
    while True:
2118
    while True:
3286
      (fname, ftype, fid) = iprot.readFieldBegin()
2119
      (fname, ftype, fid) = iprot.readFieldBegin()
3287
      if ftype == TType.STOP:
2120
      if ftype == TType.STOP:
3288
        break
2121
        break
3289
      if fid == 0:
2122
      if fid == 0:
3290
        if ftype == TType.BOOL:
2123
        if ftype == TType.LIST:
-
 
2124
          self.success = []
-
 
2125
          (_etype47, _size44) = iprot.readListBegin()
-
 
2126
          for _i48 in xrange(_size44):
-
 
2127
            _elem49 = Order()
-
 
2128
            _elem49.read(iprot)
3291
          self.success = iprot.readBool();
2129
            self.success.append(_elem49)
-
 
2130
          iprot.readListEnd()
3292
        else:
2131
        else:
3293
          iprot.skip(ftype)
2132
          iprot.skip(ftype)
3294
      elif fid == 1:
2133
      elif fid == 1:
3295
        if ftype == TType.STRUCT:
2134
        if ftype == TType.STRUCT:
3296
          self.ex = TransactionServiceException()
2135
          self.ex = TransactionServiceException()
Line 3304... Line 2143...
3304
 
2143
 
3305
  def write(self, oprot):
2144
  def write(self, oprot):
3306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2145
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2146
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3308
      return
2147
      return
3309
    oprot.writeStructBegin('setShippingTracker_result')
2148
    oprot.writeStructBegin('getOrdersForTransaction_result')
3310
    if self.success != None:
2149
    if self.success != None:
3311
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2150
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
2151
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3312
      oprot.writeBool(self.success)
2152
      for iter50 in self.success:
-
 
2153
        iter50.write(oprot)
-
 
2154
      oprot.writeListEnd()
3313
      oprot.writeFieldEnd()
2155
      oprot.writeFieldEnd()
3314
    if self.ex != None:
2156
    if self.ex != None:
3315
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2157
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3316
      self.ex.write(oprot)
2158
      self.ex.write(oprot)
3317
      oprot.writeFieldEnd()
2159
      oprot.writeFieldEnd()
Line 3327... Line 2169...
3327
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2169
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3328
 
2170
 
3329
  def __ne__(self, other):
2171
  def __ne__(self, other):
3330
    return not (self == other)
2172
    return not (self == other)
3331
 
2173
 
3332
class setShippingDate_args:
2174
class getOrdersForCustomer_args:
3333
  """
2175
  """
3334
  Attributes:
2176
  Attributes:
3335
   - transactionId
2177
   - customerId
3336
   - shippingId
2178
   - from_date
3337
   - timestamp
2179
   - to_date
-
 
2180
   - status
3338
  """
2181
  """
3339
 
2182
 
3340
  thrift_spec = (
2183
  thrift_spec = (
3341
    None, # 0
2184
    None, # 0
3342
    (1, TType.I64, 'transactionId', None, None, ), # 1
2185
    (1, TType.I64, 'customerId', None, None, ), # 1
3343
    (2, TType.I64, 'shippingId', None, None, ), # 2
2186
    (2, TType.I64, 'from_date', None, None, ), # 2
3344
    (3, TType.I64, 'timestamp', None, None, ), # 3
2187
    (3, TType.I64, 'to_date', None, None, ), # 3
-
 
2188
    (4, TType.I32, 'status', None, None, ), # 4
3345
  )
2189
  )
3346
 
2190
 
3347
  def __init__(self, transactionId=None, shippingId=None, timestamp=None,):
2191
  def __init__(self, customerId=None, from_date=None, to_date=None, status=None,):
3348
    self.transactionId = transactionId
2192
    self.customerId = customerId
3349
    self.shippingId = shippingId
2193
    self.from_date = from_date
3350
    self.timestamp = timestamp
2194
    self.to_date = to_date
-
 
2195
    self.status = status
3351
 
2196
 
3352
  def read(self, iprot):
2197
  def read(self, iprot):
3353
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2198
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3354
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2199
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3355
      return
2200
      return
Line 3358... Line 2203...
3358
      (fname, ftype, fid) = iprot.readFieldBegin()
2203
      (fname, ftype, fid) = iprot.readFieldBegin()
3359
      if ftype == TType.STOP:
2204
      if ftype == TType.STOP:
3360
        break
2205
        break
3361
      if fid == 1:
2206
      if fid == 1:
3362
        if ftype == TType.I64:
2207
        if ftype == TType.I64:
3363
          self.transactionId = iprot.readI64();
2208
          self.customerId = iprot.readI64();
3364
        else:
2209
        else:
3365
          iprot.skip(ftype)
2210
          iprot.skip(ftype)
3366
      elif fid == 2:
2211
      elif fid == 2:
3367
        if ftype == TType.I64:
2212
        if ftype == TType.I64:
3368
          self.shippingId = iprot.readI64();
2213
          self.from_date = iprot.readI64();
3369
        else:
2214
        else:
3370
          iprot.skip(ftype)
2215
          iprot.skip(ftype)
3371
      elif fid == 3:
2216
      elif fid == 3:
3372
        if ftype == TType.I64:
2217
        if ftype == TType.I64:
3373
          self.timestamp = iprot.readI64();
2218
          self.to_date = iprot.readI64();
-
 
2219
        else:
-
 
2220
          iprot.skip(ftype)
-
 
2221
      elif fid == 4:
-
 
2222
        if ftype == TType.I32:
-
 
2223
          self.status = iprot.readI32();
3374
        else:
2224
        else:
3375
          iprot.skip(ftype)
2225
          iprot.skip(ftype)
3376
      else:
2226
      else:
3377
        iprot.skip(ftype)
2227
        iprot.skip(ftype)
3378
      iprot.readFieldEnd()
2228
      iprot.readFieldEnd()
Line 3380... Line 2230...
3380
 
2230
 
3381
  def write(self, oprot):
2231
  def write(self, oprot):
3382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2232
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2233
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3384
      return
2234
      return
3385
    oprot.writeStructBegin('setShippingDate_args')
2235
    oprot.writeStructBegin('getOrdersForCustomer_args')
3386
    if self.transactionId != None:
2236
    if self.customerId != None:
3387
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
2237
      oprot.writeFieldBegin('customerId', TType.I64, 1)
3388
      oprot.writeI64(self.transactionId)
2238
      oprot.writeI64(self.customerId)
-
 
2239
      oprot.writeFieldEnd()
-
 
2240
    if self.from_date != None:
-
 
2241
      oprot.writeFieldBegin('from_date', TType.I64, 2)
-
 
2242
      oprot.writeI64(self.from_date)
3389
      oprot.writeFieldEnd()
2243
      oprot.writeFieldEnd()
3390
    if self.shippingId != None:
2244
    if self.to_date != None:
3391
      oprot.writeFieldBegin('shippingId', TType.I64, 2)
2245
      oprot.writeFieldBegin('to_date', TType.I64, 3)
3392
      oprot.writeI64(self.shippingId)
2246
      oprot.writeI64(self.to_date)
3393
      oprot.writeFieldEnd()
2247
      oprot.writeFieldEnd()
3394
    if self.timestamp != None:
2248
    if self.status != None:
3395
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
2249
      oprot.writeFieldBegin('status', TType.I32, 4)
3396
      oprot.writeI64(self.timestamp)
2250
      oprot.writeI32(self.status)
3397
      oprot.writeFieldEnd()
2251
      oprot.writeFieldEnd()
3398
    oprot.writeFieldStop()
2252
    oprot.writeFieldStop()
3399
    oprot.writeStructEnd()
2253
    oprot.writeStructEnd()
3400
 
2254
 
3401
  def __repr__(self):
2255
  def __repr__(self):
Line 3407... Line 2261...
3407
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2261
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3408
 
2262
 
3409
  def __ne__(self, other):
2263
  def __ne__(self, other):
3410
    return not (self == other)
2264
    return not (self == other)
3411
 
2265
 
3412
class setShippingDate_result:
2266
class getOrdersForCustomer_result:
3413
  """
2267
  """
3414
  Attributes:
2268
  Attributes:
3415
   - success
2269
   - success
3416
   - ex
2270
   - ex
3417
  """
2271
  """
3418
 
2272
 
3419
  thrift_spec = (
2273
  thrift_spec = (
3420
    (0, TType.BOOL, 'success', None, None, ), # 0
2274
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
3421
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
2275
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
3422
  )
2276
  )
3423
 
2277
 
3424
  def __init__(self, success=None, ex=None,):
2278
  def __init__(self, success=None, ex=None,):
3425
    self.success = success
2279
    self.success = success
Line 3433... Line 2287...
3433
    while True:
2287
    while True:
3434
      (fname, ftype, fid) = iprot.readFieldBegin()
2288
      (fname, ftype, fid) = iprot.readFieldBegin()
3435
      if ftype == TType.STOP:
2289
      if ftype == TType.STOP:
3436
        break
2290
        break
3437
      if fid == 0:
2291
      if fid == 0:
3438
        if ftype == TType.BOOL:
2292
        if ftype == TType.LIST:
-
 
2293
          self.success = []
-
 
2294
          (_etype54, _size51) = iprot.readListBegin()
-
 
2295
          for _i55 in xrange(_size51):
-
 
2296
            _elem56 = Order()
-
 
2297
            _elem56.read(iprot)
3439
          self.success = iprot.readBool();
2298
            self.success.append(_elem56)
-
 
2299
          iprot.readListEnd()
3440
        else:
2300
        else:
3441
          iprot.skip(ftype)
2301
          iprot.skip(ftype)
3442
      elif fid == 1:
2302
      elif fid == 1:
3443
        if ftype == TType.STRUCT:
2303
        if ftype == TType.STRUCT:
3444
          self.ex = TransactionServiceException()
2304
          self.ex = TransactionServiceException()
Line 3452... Line 2312...
3452
 
2312
 
3453
  def write(self, oprot):
2313
  def write(self, oprot):
3454
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2314
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3455
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2315
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3456
      return
2316
      return
3457
    oprot.writeStructBegin('setShippingDate_result')
2317
    oprot.writeStructBegin('getOrdersForCustomer_result')
3458
    if self.success != None:
2318
    if self.success != None:
3459
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2319
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
2320
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3460
      oprot.writeBool(self.success)
2321
      for iter57 in self.success:
-
 
2322
        iter57.write(oprot)
-
 
2323
      oprot.writeListEnd()
3461
      oprot.writeFieldEnd()
2324
      oprot.writeFieldEnd()
3462
    if self.ex != None:
2325
    if self.ex != None:
3463
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2326
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3464
      self.ex.write(oprot)
2327
      self.ex.write(oprot)
3465
      oprot.writeFieldEnd()
2328
      oprot.writeFieldEnd()
Line 3475... Line 2338...
3475
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2338
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3476
 
2339
 
3477
  def __ne__(self, other):
2340
  def __ne__(self, other):
3478
    return not (self == other)
2341
    return not (self == other)
3479
 
2342
 
3480
class setDeliveryDate_args:
2343
class createOrder_args:
3481
  """
2344
  """
3482
  Attributes:
2345
  Attributes:
3483
   - transactionId
-
 
3484
   - shippingid
-
 
3485
   - timestamp
2346
   - order
3486
  """
2347
  """
3487
 
2348
 
3488
  thrift_spec = (
2349
  thrift_spec = (
3489
    None, # 0
2350
    None, # 0
3490
    (1, TType.I64, 'transactionId', None, None, ), # 1
2351
    (1, TType.STRUCT, 'order', (Order, Order.thrift_spec), None, ), # 1
3491
    (2, TType.I64, 'shippingid', None, None, ), # 2
-
 
3492
    (3, TType.I64, 'timestamp', None, None, ), # 3
-
 
3493
  )
2352
  )
3494
 
2353
 
3495
  def __init__(self, transactionId=None, shippingid=None, timestamp=None,):
2354
  def __init__(self, order=None,):
3496
    self.transactionId = transactionId
-
 
3497
    self.shippingid = shippingid
-
 
3498
    self.timestamp = timestamp
2355
    self.order = order
3499
 
2356
 
3500
  def read(self, iprot):
2357
  def read(self, iprot):
3501
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2358
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3502
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2359
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3503
      return
2360
      return
Line 3505... Line 2362...
3505
    while True:
2362
    while True:
3506
      (fname, ftype, fid) = iprot.readFieldBegin()
2363
      (fname, ftype, fid) = iprot.readFieldBegin()
3507
      if ftype == TType.STOP:
2364
      if ftype == TType.STOP:
3508
        break
2365
        break
3509
      if fid == 1:
2366
      if fid == 1:
3510
        if ftype == TType.I64:
2367
        if ftype == TType.STRUCT:
3511
          self.transactionId = iprot.readI64();
-
 
3512
        else:
-
 
3513
          iprot.skip(ftype)
-
 
3514
      elif fid == 2:
-
 
3515
        if ftype == TType.I64:
-
 
3516
          self.shippingid = iprot.readI64();
2368
          self.order = Order()
3517
        else:
-
 
3518
          iprot.skip(ftype)
-
 
3519
      elif fid == 3:
-
 
3520
        if ftype == TType.I64:
-
 
3521
          self.timestamp = iprot.readI64();
2369
          self.order.read(iprot)
3522
        else:
2370
        else:
3523
          iprot.skip(ftype)
2371
          iprot.skip(ftype)
3524
      else:
2372
      else:
3525
        iprot.skip(ftype)
2373
        iprot.skip(ftype)
3526
      iprot.readFieldEnd()
2374
      iprot.readFieldEnd()
Line 3528... Line 2376...
3528
 
2376
 
3529
  def write(self, oprot):
2377
  def write(self, oprot):
3530
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2378
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3531
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2379
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3532
      return
2380
      return
3533
    oprot.writeStructBegin('setDeliveryDate_args')
2381
    oprot.writeStructBegin('createOrder_args')
3534
    if self.transactionId != None:
-
 
3535
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
-
 
3536
      oprot.writeI64(self.transactionId)
-
 
3537
      oprot.writeFieldEnd()
-
 
3538
    if self.shippingid != None:
2382
    if self.order != None:
3539
      oprot.writeFieldBegin('shippingid', TType.I64, 2)
2383
      oprot.writeFieldBegin('order', TType.STRUCT, 1)
3540
      oprot.writeI64(self.shippingid)
-
 
3541
      oprot.writeFieldEnd()
2384
      self.order.write(oprot)
3542
    if self.timestamp != None:
-
 
3543
      oprot.writeFieldBegin('timestamp', TType.I64, 3)
-
 
3544
      oprot.writeI64(self.timestamp)
-
 
3545
      oprot.writeFieldEnd()
2385
      oprot.writeFieldEnd()
3546
    oprot.writeFieldStop()
2386
    oprot.writeFieldStop()
3547
    oprot.writeStructEnd()
2387
    oprot.writeStructEnd()
3548
 
2388
 
3549
  def __repr__(self):
2389
  def __repr__(self):
Line 3555... Line 2395...
3555
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2395
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3556
 
2396
 
3557
  def __ne__(self, other):
2397
  def __ne__(self, other):
3558
    return not (self == other)
2398
    return not (self == other)
3559
 
2399
 
3560
class setDeliveryDate_result:
2400
class createOrder_result:
3561
  """
2401
  """
3562
  Attributes:
2402
  Attributes:
3563
   - success
2403
   - success
3564
   - ex
2404
   - ex
3565
  """
2405
  """
3566
 
2406
 
3567
  thrift_spec = (
2407
  thrift_spec = (
3568
    (0, TType.BOOL, 'success', None, None, ), # 0
2408
    (0, TType.I64, 'success', None, None, ), # 0
3569
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
2409
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
3570
  )
2410
  )
3571
 
2411
 
3572
  def __init__(self, success=None, ex=None,):
2412
  def __init__(self, success=None, ex=None,):
3573
    self.success = success
2413
    self.success = success
Line 3581... Line 2421...
3581
    while True:
2421
    while True:
3582
      (fname, ftype, fid) = iprot.readFieldBegin()
2422
      (fname, ftype, fid) = iprot.readFieldBegin()
3583
      if ftype == TType.STOP:
2423
      if ftype == TType.STOP:
3584
        break
2424
        break
3585
      if fid == 0:
2425
      if fid == 0:
3586
        if ftype == TType.BOOL:
2426
        if ftype == TType.I64:
3587
          self.success = iprot.readBool();
2427
          self.success = iprot.readI64();
3588
        else:
2428
        else:
3589
          iprot.skip(ftype)
2429
          iprot.skip(ftype)
3590
      elif fid == 1:
2430
      elif fid == 1:
3591
        if ftype == TType.STRUCT:
2431
        if ftype == TType.STRUCT:
3592
          self.ex = TransactionServiceException()
2432
          self.ex = TransactionServiceException()
Line 3600... Line 2440...
3600
 
2440
 
3601
  def write(self, oprot):
2441
  def write(self, oprot):
3602
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2442
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3603
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2443
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3604
      return
2444
      return
3605
    oprot.writeStructBegin('setDeliveryDate_result')
2445
    oprot.writeStructBegin('createOrder_result')
3606
    if self.success != None:
2446
    if self.success != None:
3607
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2447
      oprot.writeFieldBegin('success', TType.I64, 0)
3608
      oprot.writeBool(self.success)
2448
      oprot.writeI64(self.success)
3609
      oprot.writeFieldEnd()
2449
      oprot.writeFieldEnd()
3610
    if self.ex != None:
2450
    if self.ex != None:
3611
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2451
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3612
      self.ex.write(oprot)
2452
      self.ex.write(oprot)
3613
      oprot.writeFieldEnd()
2453
      oprot.writeFieldEnd()
Line 3623... Line 2463...
3623
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2463
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3624
 
2464
 
3625
  def __ne__(self, other):
2465
  def __ne__(self, other):
3626
    return not (self == other)
2466
    return not (self == other)
3627
 
2467
 
3628
class changeShippingStatus_args:
2468
class getOrder_args:
3629
  """
2469
  """
3630
  Attributes:
2470
  Attributes:
3631
   - transactionId
-
 
3632
   - shippingId
-
 
3633
   - status
2471
   - id
3634
   - description
-
 
3635
  """
2472
  """
3636
 
2473
 
3637
  thrift_spec = (
2474
  thrift_spec = (
3638
    None, # 0
2475
    None, # 0
3639
    (1, TType.I64, 'transactionId', None, None, ), # 1
-
 
3640
    (2, TType.I64, 'shippingId', None, None, ), # 2
2476
    (1, TType.I64, 'id', None, None, ), # 1
3641
    (3, TType.I32, 'status', None, None, ), # 3
-
 
3642
    (4, TType.STRING, 'description', None, None, ), # 4
-
 
3643
  )
2477
  )
3644
 
2478
 
3645
  def __init__(self, transactionId=None, shippingId=None, status=None, description=None,):
-
 
3646
    self.transactionId = transactionId
-
 
3647
    self.shippingId = shippingId
2479
  def __init__(self, id=None,):
3648
    self.status = status
2480
    self.id = id
3649
    self.description = description
-
 
3650
 
2481
 
3651
  def read(self, iprot):
2482
  def read(self, iprot):
3652
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2483
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3653
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2484
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3654
      return
2485
      return
Line 3657... Line 2488...
3657
      (fname, ftype, fid) = iprot.readFieldBegin()
2488
      (fname, ftype, fid) = iprot.readFieldBegin()
3658
      if ftype == TType.STOP:
2489
      if ftype == TType.STOP:
3659
        break
2490
        break
3660
      if fid == 1:
2491
      if fid == 1:
3661
        if ftype == TType.I64:
2492
        if ftype == TType.I64:
3662
          self.transactionId = iprot.readI64();
-
 
3663
        else:
-
 
3664
          iprot.skip(ftype)
-
 
3665
      elif fid == 2:
-
 
3666
        if ftype == TType.I64:
-
 
3667
          self.shippingId = iprot.readI64();
2493
          self.id = iprot.readI64();
3668
        else:
-
 
3669
          iprot.skip(ftype)
-
 
3670
      elif fid == 3:
-
 
3671
        if ftype == TType.I32:
-
 
3672
          self.status = iprot.readI32();
-
 
3673
        else:
-
 
3674
          iprot.skip(ftype)
-
 
3675
      elif fid == 4:
-
 
3676
        if ftype == TType.STRING:
-
 
3677
          self.description = iprot.readString();
-
 
3678
        else:
2494
        else:
3679
          iprot.skip(ftype)
2495
          iprot.skip(ftype)
3680
      else:
2496
      else:
3681
        iprot.skip(ftype)
2497
        iprot.skip(ftype)
3682
      iprot.readFieldEnd()
2498
      iprot.readFieldEnd()
Line 3684... Line 2500...
3684
 
2500
 
3685
  def write(self, oprot):
2501
  def write(self, oprot):
3686
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2502
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3687
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2503
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3688
      return
2504
      return
3689
    oprot.writeStructBegin('changeShippingStatus_args')
2505
    oprot.writeStructBegin('getOrder_args')
3690
    if self.transactionId != None:
-
 
3691
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
-
 
3692
      oprot.writeI64(self.transactionId)
-
 
3693
      oprot.writeFieldEnd()
-
 
3694
    if self.shippingId != None:
-
 
3695
      oprot.writeFieldBegin('shippingId', TType.I64, 2)
-
 
3696
      oprot.writeI64(self.shippingId)
-
 
3697
      oprot.writeFieldEnd()
-
 
3698
    if self.status != None:
2506
    if self.id != None:
3699
      oprot.writeFieldBegin('status', TType.I32, 3)
2507
      oprot.writeFieldBegin('id', TType.I64, 1)
3700
      oprot.writeI32(self.status)
2508
      oprot.writeI64(self.id)
3701
      oprot.writeFieldEnd()
-
 
3702
    if self.description != None:
-
 
3703
      oprot.writeFieldBegin('description', TType.STRING, 4)
-
 
3704
      oprot.writeString(self.description)
-
 
3705
      oprot.writeFieldEnd()
2509
      oprot.writeFieldEnd()
3706
    oprot.writeFieldStop()
2510
    oprot.writeFieldStop()
3707
    oprot.writeStructEnd()
2511
    oprot.writeStructEnd()
3708
 
2512
 
3709
  def __repr__(self):
2513
  def __repr__(self):
Line 3715... Line 2519...
3715
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2519
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3716
 
2520
 
3717
  def __ne__(self, other):
2521
  def __ne__(self, other):
3718
    return not (self == other)
2522
    return not (self == other)
3719
 
2523
 
3720
class changeShippingStatus_result:
2524
class getOrder_result:
3721
  """
2525
  """
3722
  Attributes:
2526
  Attributes:
3723
   - success
2527
   - success
3724
   - ex
2528
   - ex
3725
  """
2529
  """
3726
 
2530
 
3727
  thrift_spec = (
2531
  thrift_spec = (
3728
    (0, TType.BOOL, 'success', None, None, ), # 0
2532
    (0, TType.STRUCT, 'success', (Order, Order.thrift_spec), None, ), # 0
3729
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
2533
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
3730
  )
2534
  )
3731
 
2535
 
3732
  def __init__(self, success=None, ex=None,):
2536
  def __init__(self, success=None, ex=None,):
3733
    self.success = success
2537
    self.success = success
Line 3741... Line 2545...
3741
    while True:
2545
    while True:
3742
      (fname, ftype, fid) = iprot.readFieldBegin()
2546
      (fname, ftype, fid) = iprot.readFieldBegin()
3743
      if ftype == TType.STOP:
2547
      if ftype == TType.STOP:
3744
        break
2548
        break
3745
      if fid == 0:
2549
      if fid == 0:
3746
        if ftype == TType.BOOL:
2550
        if ftype == TType.STRUCT:
3747
          self.success = iprot.readBool();
2551
          self.success = Order()
-
 
2552
          self.success.read(iprot)
3748
        else:
2553
        else:
3749
          iprot.skip(ftype)
2554
          iprot.skip(ftype)
3750
      elif fid == 1:
2555
      elif fid == 1:
3751
        if ftype == TType.STRUCT:
2556
        if ftype == TType.STRUCT:
3752
          self.ex = TransactionServiceException()
2557
          self.ex = TransactionServiceException()
Line 3760... Line 2565...
3760
 
2565
 
3761
  def write(self, oprot):
2566
  def write(self, oprot):
3762
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2567
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3763
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2568
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3764
      return
2569
      return
3765
    oprot.writeStructBegin('changeShippingStatus_result')
2570
    oprot.writeStructBegin('getOrder_result')
3766
    if self.success != None:
2571
    if self.success != None:
3767
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2572
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3768
      oprot.writeBool(self.success)
2573
      self.success.write(oprot)
3769
      oprot.writeFieldEnd()
2574
      oprot.writeFieldEnd()
3770
    if self.ex != None:
2575
    if self.ex != None:
3771
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2576
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3772
      self.ex.write(oprot)
2577
      self.ex.write(oprot)
3773
      oprot.writeFieldEnd()
2578
      oprot.writeFieldEnd()
Line 3783... Line 2588...
3783
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2588
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3784
 
2589
 
3785
  def __ne__(self, other):
2590
  def __ne__(self, other):
3786
    return not (self == other)
2591
    return not (self == other)
3787
 
2592
 
3788
class addTrail_args:
2593
class getLineItemsForOrder_args:
3789
  """
2594
  """
3790
  Attributes:
2595
  Attributes:
3791
   - transactionId
2596
   - orderId
3792
   - description
-
 
3793
  """
2597
  """
3794
 
2598
 
3795
  thrift_spec = (
2599
  thrift_spec = (
3796
    None, # 0
2600
    None, # 0
3797
    (1, TType.I64, 'transactionId', None, None, ), # 1
2601
    (1, TType.I64, 'orderId', None, None, ), # 1
3798
    (2, TType.STRING, 'description', None, None, ), # 2
-
 
3799
  )
2602
  )
3800
 
2603
 
3801
  def __init__(self, transactionId=None, description=None,):
2604
  def __init__(self, orderId=None,):
3802
    self.transactionId = transactionId
2605
    self.orderId = orderId
3803
    self.description = description
-
 
3804
 
2606
 
3805
  def read(self, iprot):
2607
  def read(self, iprot):
3806
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2608
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3807
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2609
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3808
      return
2610
      return
Line 3811... Line 2613...
3811
      (fname, ftype, fid) = iprot.readFieldBegin()
2613
      (fname, ftype, fid) = iprot.readFieldBegin()
3812
      if ftype == TType.STOP:
2614
      if ftype == TType.STOP:
3813
        break
2615
        break
3814
      if fid == 1:
2616
      if fid == 1:
3815
        if ftype == TType.I64:
2617
        if ftype == TType.I64:
3816
          self.transactionId = iprot.readI64();
2618
          self.orderId = iprot.readI64();
3817
        else:
-
 
3818
          iprot.skip(ftype)
-
 
3819
      elif fid == 2:
-
 
3820
        if ftype == TType.STRING:
-
 
3821
          self.description = iprot.readString();
-
 
3822
        else:
2619
        else:
3823
          iprot.skip(ftype)
2620
          iprot.skip(ftype)
3824
      else:
2621
      else:
3825
        iprot.skip(ftype)
2622
        iprot.skip(ftype)
3826
      iprot.readFieldEnd()
2623
      iprot.readFieldEnd()
Line 3828... Line 2625...
3828
 
2625
 
3829
  def write(self, oprot):
2626
  def write(self, oprot):
3830
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2627
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3831
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2628
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3832
      return
2629
      return
3833
    oprot.writeStructBegin('addTrail_args')
2630
    oprot.writeStructBegin('getLineItemsForOrder_args')
3834
    if self.transactionId != None:
2631
    if self.orderId != None:
3835
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
2632
      oprot.writeFieldBegin('orderId', TType.I64, 1)
3836
      oprot.writeI64(self.transactionId)
2633
      oprot.writeI64(self.orderId)
3837
      oprot.writeFieldEnd()
-
 
3838
    if self.description != None:
-
 
3839
      oprot.writeFieldBegin('description', TType.STRING, 2)
-
 
3840
      oprot.writeString(self.description)
-
 
3841
      oprot.writeFieldEnd()
2634
      oprot.writeFieldEnd()
3842
    oprot.writeFieldStop()
2635
    oprot.writeFieldStop()
3843
    oprot.writeStructEnd()
2636
    oprot.writeStructEnd()
3844
 
2637
 
3845
  def __repr__(self):
2638
  def __repr__(self):
Line 3851... Line 2644...
3851
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2644
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3852
 
2645
 
3853
  def __ne__(self, other):
2646
  def __ne__(self, other):
3854
    return not (self == other)
2647
    return not (self == other)
3855
 
2648
 
3856
class addTrail_result:
2649
class getLineItemsForOrder_result:
3857
  """
2650
  """
3858
  Attributes:
2651
  Attributes:
3859
   - success
2652
   - success
3860
   - ex
2653
   - ex
3861
  """
2654
  """
3862
 
2655
 
3863
  thrift_spec = (
2656
  thrift_spec = (
3864
    (0, TType.BOOL, 'success', None, None, ), # 0
2657
    (0, TType.LIST, 'success', (TType.STRUCT,(LineItem, LineItem.thrift_spec)), None, ), # 0
3865
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
2658
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
3866
  )
2659
  )
3867
 
2660
 
3868
  def __init__(self, success=None, ex=None,):
2661
  def __init__(self, success=None, ex=None,):
3869
    self.success = success
2662
    self.success = success
Line 3877... Line 2670...
3877
    while True:
2670
    while True:
3878
      (fname, ftype, fid) = iprot.readFieldBegin()
2671
      (fname, ftype, fid) = iprot.readFieldBegin()
3879
      if ftype == TType.STOP:
2672
      if ftype == TType.STOP:
3880
        break
2673
        break
3881
      if fid == 0:
2674
      if fid == 0:
3882
        if ftype == TType.BOOL:
2675
        if ftype == TType.LIST:
-
 
2676
          self.success = []
-
 
2677
          (_etype61, _size58) = iprot.readListBegin()
-
 
2678
          for _i62 in xrange(_size58):
-
 
2679
            _elem63 = LineItem()
-
 
2680
            _elem63.read(iprot)
3883
          self.success = iprot.readBool();
2681
            self.success.append(_elem63)
-
 
2682
          iprot.readListEnd()
3884
        else:
2683
        else:
3885
          iprot.skip(ftype)
2684
          iprot.skip(ftype)
3886
      elif fid == 1:
2685
      elif fid == 1:
3887
        if ftype == TType.STRUCT:
2686
        if ftype == TType.STRUCT:
3888
          self.ex = TransactionServiceException()
2687
          self.ex = TransactionServiceException()
Line 3896... Line 2695...
3896
 
2695
 
3897
  def write(self, oprot):
2696
  def write(self, oprot):
3898
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2697
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3899
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2698
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3900
      return
2699
      return
3901
    oprot.writeStructBegin('addTrail_result')
2700
    oprot.writeStructBegin('getLineItemsForOrder_result')
3902
    if self.success != None:
2701
    if self.success != None:
3903
      oprot.writeFieldBegin('success', TType.BOOL, 0)
2702
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
2703
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3904
      oprot.writeBool(self.success)
2704
      for iter64 in self.success:
-
 
2705
        iter64.write(oprot)
-
 
2706
      oprot.writeListEnd()
3905
      oprot.writeFieldEnd()
2707
      oprot.writeFieldEnd()
3906
    if self.ex != None:
2708
    if self.ex != None:
3907
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
2709
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
3908
      self.ex.write(oprot)
2710
      self.ex.write(oprot)
3909
      oprot.writeFieldEnd()
2711
      oprot.writeFieldEnd()
Line 3922... Line 2724...
3922
    return not (self == other)
2724
    return not (self == other)
3923
 
2725
 
3924
class getAlerts_args:
2726
class getAlerts_args:
3925
  """
2727
  """
3926
  Attributes:
2728
  Attributes:
3927
   - transactionId
2729
   - orderId
3928
   - valid
2730
   - valid
3929
  """
2731
  """
3930
 
2732
 
3931
  thrift_spec = (
2733
  thrift_spec = (
3932
    None, # 0
2734
    None, # 0
3933
    (1, TType.I64, 'transactionId', None, None, ), # 1
2735
    (1, TType.I64, 'orderId', None, None, ), # 1
3934
    (2, TType.BOOL, 'valid', None, None, ), # 2
2736
    (2, TType.BOOL, 'valid', None, None, ), # 2
3935
  )
2737
  )
3936
 
2738
 
3937
  def __init__(self, transactionId=None, valid=None,):
2739
  def __init__(self, orderId=None, valid=None,):
3938
    self.transactionId = transactionId
2740
    self.orderId = orderId
3939
    self.valid = valid
2741
    self.valid = valid
3940
 
2742
 
3941
  def read(self, iprot):
2743
  def read(self, iprot):
3942
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2744
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3943
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2745
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
Line 3947... Line 2749...
3947
      (fname, ftype, fid) = iprot.readFieldBegin()
2749
      (fname, ftype, fid) = iprot.readFieldBegin()
3948
      if ftype == TType.STOP:
2750
      if ftype == TType.STOP:
3949
        break
2751
        break
3950
      if fid == 1:
2752
      if fid == 1:
3951
        if ftype == TType.I64:
2753
        if ftype == TType.I64:
3952
          self.transactionId = iprot.readI64();
2754
          self.orderId = iprot.readI64();
3953
        else:
2755
        else:
3954
          iprot.skip(ftype)
2756
          iprot.skip(ftype)
3955
      elif fid == 2:
2757
      elif fid == 2:
3956
        if ftype == TType.BOOL:
2758
        if ftype == TType.BOOL:
3957
          self.valid = iprot.readBool();
2759
          self.valid = iprot.readBool();
Line 3965... Line 2767...
3965
  def write(self, oprot):
2767
  def write(self, oprot):
3966
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2768
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3967
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2769
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3968
      return
2770
      return
3969
    oprot.writeStructBegin('getAlerts_args')
2771
    oprot.writeStructBegin('getAlerts_args')
3970
    if self.transactionId != None:
2772
    if self.orderId != None:
3971
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
2773
      oprot.writeFieldBegin('orderId', TType.I64, 1)
3972
      oprot.writeI64(self.transactionId)
2774
      oprot.writeI64(self.orderId)
3973
      oprot.writeFieldEnd()
2775
      oprot.writeFieldEnd()
3974
    if self.valid != None:
2776
    if self.valid != None:
3975
      oprot.writeFieldBegin('valid', TType.BOOL, 2)
2777
      oprot.writeFieldBegin('valid', TType.BOOL, 2)
3976
      oprot.writeBool(self.valid)
2778
      oprot.writeBool(self.valid)
3977
      oprot.writeFieldEnd()
2779
      oprot.writeFieldEnd()
Line 4012... Line 2814...
4012
      if ftype == TType.STOP:
2814
      if ftype == TType.STOP:
4013
        break
2815
        break
4014
      if fid == 0:
2816
      if fid == 0:
4015
        if ftype == TType.LIST:
2817
        if ftype == TType.LIST:
4016
          self.success = []
2818
          self.success = []
4017
          (_etype91, _size88) = iprot.readListBegin()
2819
          (_etype68, _size65) = iprot.readListBegin()
4018
          for _i92 in xrange(_size88):
2820
          for _i69 in xrange(_size65):
4019
            _elem93 = Alert()
2821
            _elem70 = Alert()
4020
            _elem93.read(iprot)
2822
            _elem70.read(iprot)
4021
            self.success.append(_elem93)
2823
            self.success.append(_elem70)
4022
          iprot.readListEnd()
2824
          iprot.readListEnd()
4023
        else:
2825
        else:
4024
          iprot.skip(ftype)
2826
          iprot.skip(ftype)
4025
      else:
2827
      else:
4026
        iprot.skip(ftype)
2828
        iprot.skip(ftype)
Line 4033... Line 2835...
4033
      return
2835
      return
4034
    oprot.writeStructBegin('getAlerts_result')
2836
    oprot.writeStructBegin('getAlerts_result')
4035
    if self.success != None:
2837
    if self.success != None:
4036
      oprot.writeFieldBegin('success', TType.LIST, 0)
2838
      oprot.writeFieldBegin('success', TType.LIST, 0)
4037
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2839
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4038
      for iter94 in self.success:
2840
      for iter71 in self.success:
4039
        iter94.write(oprot)
2841
        iter71.write(oprot)
4040
      oprot.writeListEnd()
2842
      oprot.writeListEnd()
4041
      oprot.writeFieldEnd()
2843
      oprot.writeFieldEnd()
4042
    oprot.writeFieldStop()
2844
    oprot.writeFieldStop()
4043
    oprot.writeStructEnd()
2845
    oprot.writeStructEnd()
4044
 
2846
 
Line 4054... Line 2856...
4054
    return not (self == other)
2856
    return not (self == other)
4055
 
2857
 
4056
class setAlert_args:
2858
class setAlert_args:
4057
  """
2859
  """
4058
  Attributes:
2860
  Attributes:
4059
   - transactionId
2861
   - orderId
4060
   - unset
2862
   - unset
4061
   - type
2863
   - type
4062
   - comment
2864
   - comment
4063
  """
2865
  """
4064
 
2866
 
4065
  thrift_spec = (
2867
  thrift_spec = (
4066
    None, # 0
2868
    None, # 0
4067
    (1, TType.I64, 'transactionId', None, None, ), # 1
2869
    (1, TType.I64, 'orderId', None, None, ), # 1
4068
    (2, TType.BOOL, 'unset', None, None, ), # 2
2870
    (2, TType.BOOL, 'unset', None, None, ), # 2
4069
    (3, TType.I64, 'type', None, None, ), # 3
2871
    (3, TType.I64, 'type', None, None, ), # 3
4070
    (4, TType.STRING, 'comment', None, None, ), # 4
2872
    (4, TType.STRING, 'comment', None, None, ), # 4
4071
  )
2873
  )
4072
 
2874
 
4073
  def __init__(self, transactionId=None, unset=None, type=None, comment=None,):
2875
  def __init__(self, orderId=None, unset=None, type=None, comment=None,):
4074
    self.transactionId = transactionId
2876
    self.orderId = orderId
4075
    self.unset = unset
2877
    self.unset = unset
4076
    self.type = type
2878
    self.type = type
4077
    self.comment = comment
2879
    self.comment = comment
4078
 
2880
 
4079
  def read(self, iprot):
2881
  def read(self, iprot):
Line 4085... Line 2887...
4085
      (fname, ftype, fid) = iprot.readFieldBegin()
2887
      (fname, ftype, fid) = iprot.readFieldBegin()
4086
      if ftype == TType.STOP:
2888
      if ftype == TType.STOP:
4087
        break
2889
        break
4088
      if fid == 1:
2890
      if fid == 1:
4089
        if ftype == TType.I64:
2891
        if ftype == TType.I64:
4090
          self.transactionId = iprot.readI64();
2892
          self.orderId = iprot.readI64();
4091
        else:
2893
        else:
4092
          iprot.skip(ftype)
2894
          iprot.skip(ftype)
4093
      elif fid == 2:
2895
      elif fid == 2:
4094
        if ftype == TType.BOOL:
2896
        if ftype == TType.BOOL:
4095
          self.unset = iprot.readBool();
2897
          self.unset = iprot.readBool();
Line 4113... Line 2915...
4113
  def write(self, oprot):
2915
  def write(self, oprot):
4114
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2916
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4115
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2917
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4116
      return
2918
      return
4117
    oprot.writeStructBegin('setAlert_args')
2919
    oprot.writeStructBegin('setAlert_args')
4118
    if self.transactionId != None:
2920
    if self.orderId != None:
4119
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
2921
      oprot.writeFieldBegin('orderId', TType.I64, 1)
4120
      oprot.writeI64(self.transactionId)
2922
      oprot.writeI64(self.orderId)
4121
      oprot.writeFieldEnd()
2923
      oprot.writeFieldEnd()
4122
    if self.unset != None:
2924
    if self.unset != None:
4123
      oprot.writeFieldBegin('unset', TType.BOOL, 2)
2925
      oprot.writeFieldBegin('unset', TType.BOOL, 2)
4124
      oprot.writeBool(self.unset)
2926
      oprot.writeBool(self.unset)
4125
      oprot.writeFieldEnd()
2927
      oprot.writeFieldEnd()
Line 4172... Line 2974...
4172
    oprot.writeFieldStop()
2974
    oprot.writeFieldStop()
4173
    oprot.writeStructEnd()
2975
    oprot.writeStructEnd()
4174
 
2976
 
4175
  def __repr__(self):
2977
  def __repr__(self):
4176
    L = ['%s=%r' % (key, value)
2978
    L = ['%s=%r' % (key, value)
4177
      for key, value in self.__dict__.iteritems()]
-
 
4178
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4179
 
-
 
4180
  def __eq__(self, other):
-
 
4181
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4182
 
-
 
4183
  def __ne__(self, other):
-
 
4184
    return not (self == other)
-
 
4185
 
-
 
4186
class getExtraInfo_args:
-
 
4187
  """
-
 
4188
  Attributes:
-
 
4189
   - transaction_id
-
 
4190
  """
-
 
4191
 
-
 
4192
  thrift_spec = (
-
 
4193
    None, # 0
-
 
4194
    (1, TType.I64, 'transaction_id', None, None, ), # 1
-
 
4195
  )
-
 
4196
 
-
 
4197
  def __init__(self, transaction_id=None,):
-
 
4198
    self.transaction_id = transaction_id
-
 
4199
 
-
 
4200
  def read(self, iprot):
-
 
4201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4203
      return
-
 
4204
    iprot.readStructBegin()
-
 
4205
    while True:
-
 
4206
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4207
      if ftype == TType.STOP:
-
 
4208
        break
-
 
4209
      if fid == 1:
-
 
4210
        if ftype == TType.I64:
-
 
4211
          self.transaction_id = iprot.readI64();
-
 
4212
        else:
-
 
4213
          iprot.skip(ftype)
-
 
4214
      else:
-
 
4215
        iprot.skip(ftype)
-
 
4216
      iprot.readFieldEnd()
-
 
4217
    iprot.readStructEnd()
-
 
4218
 
-
 
4219
  def write(self, oprot):
-
 
4220
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4221
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4222
      return
-
 
4223
    oprot.writeStructBegin('getExtraInfo_args')
-
 
4224
    if self.transaction_id != None:
-
 
4225
      oprot.writeFieldBegin('transaction_id', TType.I64, 1)
-
 
4226
      oprot.writeI64(self.transaction_id)
-
 
4227
      oprot.writeFieldEnd()
-
 
4228
    oprot.writeFieldStop()
-
 
4229
    oprot.writeStructEnd()
-
 
4230
 
-
 
4231
  def __repr__(self):
-
 
4232
    L = ['%s=%r' % (key, value)
-
 
4233
      for key, value in self.__dict__.iteritems()]
-
 
4234
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4235
 
-
 
4236
  def __eq__(self, other):
-
 
4237
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4238
 
-
 
4239
  def __ne__(self, other):
-
 
4240
    return not (self == other)
-
 
4241
 
-
 
4242
class getExtraInfo_result:
-
 
4243
  """
-
 
4244
  Attributes:
-
 
4245
   - success
-
 
4246
  """
-
 
4247
 
-
 
4248
  thrift_spec = (
-
 
4249
    (0, TType.STRUCT, 'success', (ExtraOrderInfo, ExtraOrderInfo.thrift_spec), None, ), # 0
-
 
4250
  )
-
 
4251
 
-
 
4252
  def __init__(self, success=None,):
-
 
4253
    self.success = success
-
 
4254
 
-
 
4255
  def read(self, iprot):
-
 
4256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4258
      return
-
 
4259
    iprot.readStructBegin()
-
 
4260
    while True:
-
 
4261
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4262
      if ftype == TType.STOP:
-
 
4263
        break
-
 
4264
      if fid == 0:
-
 
4265
        if ftype == TType.STRUCT:
-
 
4266
          self.success = ExtraOrderInfo()
-
 
4267
          self.success.read(iprot)
-
 
4268
        else:
-
 
4269
          iprot.skip(ftype)
-
 
4270
      else:
-
 
4271
        iprot.skip(ftype)
-
 
4272
      iprot.readFieldEnd()
-
 
4273
    iprot.readStructEnd()
-
 
4274
 
-
 
4275
  def write(self, oprot):
-
 
4276
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4277
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4278
      return
-
 
4279
    oprot.writeStructBegin('getExtraInfo_result')
-
 
4280
    if self.success != None:
-
 
4281
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
4282
      self.success.write(oprot)
-
 
4283
      oprot.writeFieldEnd()
-
 
4284
    oprot.writeFieldStop()
-
 
4285
    oprot.writeStructEnd()
-
 
4286
 
-
 
4287
  def __repr__(self):
-
 
4288
    L = ['%s=%r' % (key, value)
-
 
4289
      for key, value in self.__dict__.iteritems()]
-
 
4290
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4291
 
-
 
4292
  def __eq__(self, other):
-
 
4293
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4294
 
-
 
4295
  def __ne__(self, other):
-
 
4296
    return not (self == other)
-
 
4297
 
-
 
4298
class setExtraInfo_args:
-
 
4299
  """
-
 
4300
  Attributes:
-
 
4301
   - transaction_id
-
 
4302
   - sku_id
-
 
4303
   - model
-
 
4304
   - colour
-
 
4305
   - vendor
-
 
4306
  """
-
 
4307
 
-
 
4308
  thrift_spec = (
-
 
4309
    None, # 0
-
 
4310
    (1, TType.I64, 'transaction_id', None, None, ), # 1
-
 
4311
    (2, TType.I64, 'sku_id', None, None, ), # 2
-
 
4312
    (3, TType.STRING, 'model', None, None, ), # 3
-
 
4313
    (4, TType.STRING, 'colour', None, None, ), # 4
-
 
4314
    (5, TType.STRING, 'vendor', None, None, ), # 5
-
 
4315
  )
-
 
4316
 
-
 
4317
  def __init__(self, transaction_id=None, sku_id=None, model=None, colour=None, vendor=None,):
-
 
4318
    self.transaction_id = transaction_id
-
 
4319
    self.sku_id = sku_id
-
 
4320
    self.model = model
-
 
4321
    self.colour = colour
-
 
4322
    self.vendor = vendor
-
 
4323
 
-
 
4324
  def read(self, iprot):
-
 
4325
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4326
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4327
      return
-
 
4328
    iprot.readStructBegin()
-
 
4329
    while True:
-
 
4330
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4331
      if ftype == TType.STOP:
-
 
4332
        break
-
 
4333
      if fid == 1:
-
 
4334
        if ftype == TType.I64:
-
 
4335
          self.transaction_id = iprot.readI64();
-
 
4336
        else:
-
 
4337
          iprot.skip(ftype)
-
 
4338
      elif fid == 2:
-
 
4339
        if ftype == TType.I64:
-
 
4340
          self.sku_id = iprot.readI64();
-
 
4341
        else:
-
 
4342
          iprot.skip(ftype)
-
 
4343
      elif fid == 3:
-
 
4344
        if ftype == TType.STRING:
-
 
4345
          self.model = iprot.readString();
-
 
4346
        else:
-
 
4347
          iprot.skip(ftype)
-
 
4348
      elif fid == 4:
-
 
4349
        if ftype == TType.STRING:
-
 
4350
          self.colour = iprot.readString();
-
 
4351
        else:
-
 
4352
          iprot.skip(ftype)
-
 
4353
      elif fid == 5:
-
 
4354
        if ftype == TType.STRING:
-
 
4355
          self.vendor = iprot.readString();
-
 
4356
        else:
-
 
4357
          iprot.skip(ftype)
-
 
4358
      else:
-
 
4359
        iprot.skip(ftype)
-
 
4360
      iprot.readFieldEnd()
-
 
4361
    iprot.readStructEnd()
-
 
4362
 
-
 
4363
  def write(self, oprot):
-
 
4364
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4365
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4366
      return
-
 
4367
    oprot.writeStructBegin('setExtraInfo_args')
-
 
4368
    if self.transaction_id != None:
-
 
4369
      oprot.writeFieldBegin('transaction_id', TType.I64, 1)
-
 
4370
      oprot.writeI64(self.transaction_id)
-
 
4371
      oprot.writeFieldEnd()
-
 
4372
    if self.sku_id != None:
-
 
4373
      oprot.writeFieldBegin('sku_id', TType.I64, 2)
-
 
4374
      oprot.writeI64(self.sku_id)
-
 
4375
      oprot.writeFieldEnd()
-
 
4376
    if self.model != None:
-
 
4377
      oprot.writeFieldBegin('model', TType.STRING, 3)
-
 
4378
      oprot.writeString(self.model)
-
 
4379
      oprot.writeFieldEnd()
-
 
4380
    if self.colour != None:
-
 
4381
      oprot.writeFieldBegin('colour', TType.STRING, 4)
-
 
4382
      oprot.writeString(self.colour)
-
 
4383
      oprot.writeFieldEnd()
-
 
4384
    if self.vendor != None:
-
 
4385
      oprot.writeFieldBegin('vendor', TType.STRING, 5)
-
 
4386
      oprot.writeString(self.vendor)
-
 
4387
      oprot.writeFieldEnd()
-
 
4388
    oprot.writeFieldStop()
-
 
4389
    oprot.writeStructEnd()
-
 
4390
 
-
 
4391
  def __repr__(self):
-
 
4392
    L = ['%s=%r' % (key, value)
-
 
4393
      for key, value in self.__dict__.iteritems()]
-
 
4394
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
4395
 
-
 
4396
  def __eq__(self, other):
-
 
4397
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
4398
 
-
 
4399
  def __ne__(self, other):
-
 
4400
    return not (self == other)
-
 
4401
 
-
 
4402
class setExtraInfo_result:
-
 
4403
 
-
 
4404
  thrift_spec = (
-
 
4405
  )
-
 
4406
 
-
 
4407
  def read(self, iprot):
-
 
4408
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
4409
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
4410
      return
-
 
4411
    iprot.readStructBegin()
-
 
4412
    while True:
-
 
4413
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
4414
      if ftype == TType.STOP:
-
 
4415
        break
-
 
4416
      else:
-
 
4417
        iprot.skip(ftype)
-
 
4418
      iprot.readFieldEnd()
-
 
4419
    iprot.readStructEnd()
-
 
4420
 
-
 
4421
  def write(self, oprot):
-
 
4422
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
4423
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
4424
      return
-
 
4425
    oprot.writeStructBegin('setExtraInfo_result')
-
 
4426
    oprot.writeFieldStop()
-
 
4427
    oprot.writeStructEnd()
-
 
4428
 
-
 
4429
  def __repr__(self):
-
 
4430
    L = ['%s=%r' % (key, value)
-
 
4431
      for key, value in self.__dict__.iteritems()]
2979
      for key, value in self.__dict__.iteritems()]
4432
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2980
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4433
 
2981
 
4434
  def __eq__(self, other):
2982
  def __eq__(self, other):
4435
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2983
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__