Subversion Repositories SmartDukaan

Rev

Rev 5386 | Rev 5411 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
94 ashish 1
#
3431 rajveer 2
# Autogenerated by Thrift Compiler (0.7.0)
94 ashish 3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
6
 
7
from thrift.Thrift import *
3376 rajveer 8
import shop2020.thriftpy.generic.GenericService
94 ashish 9
from ttypes import *
10
from thrift.Thrift import TProcessor
11
from thrift.transport import TTransport
3431 rajveer 12
from thrift.protocol import TBinaryProtocol, TProtocol
94 ashish 13
try:
14
  from thrift.protocol import fastbinary
15
except:
16
  fastbinary = None
17
 
18
 
3376 rajveer 19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
94 ashish 20
  def createTransaction(self, transaction):
21
    """
22
    Parameters:
23
     - transaction
24
    """
25
    pass
26
 
27
  def getTransaction(self, id):
28
    """
29
    Parameters:
30
     - id
31
    """
32
    pass
33
 
34
  def getTransactionsForCustomer(self, customerId, from_date, to_date, status):
35
    """
36
    Parameters:
37
     - customerId
38
     - from_date
39
     - to_date
40
     - status
41
    """
42
    pass
43
 
132 ashish 44
  def getTransactionsForShoppingCartId(self, shoppingCartId):
45
    """
46
    Parameters:
47
     - shoppingCartId
48
    """
49
    pass
50
 
94 ashish 51
  def getTransactionStatus(self, transactionId):
52
    """
53
    Parameters:
54
     - transactionId
55
    """
56
    pass
57
 
5387 rajveer 58
  def changeTransactionStatus(self, transactionId, status, description, selfPickup):
94 ashish 59
    """
60
    Parameters:
61
     - transactionId
62
     - status
63
     - description
5387 rajveer 64
     - selfPickup
94 ashish 65
    """
66
    pass
67
 
1398 varun.gupt 68
  def enqueueTransactionInfoEmail(self, transactionId):
1382 varun.gupt 69
    """
70
    Parameters:
71
     - transactionId
72
    """
73
    pass
74
 
4801 anupam.sin 75
  def getAllOrders(self, statuses, from_date, to_date, warehouse_id):
94 ashish 76
    """
77
    Parameters:
4801 anupam.sin 78
     - statuses
483 rajveer 79
     - from_date
80
     - to_date
81
     - warehouse_id
94 ashish 82
    """
83
    pass
84
 
4133 chandransh 85
  def getOrdersInBatch(self, statuses, offset, limit, warehouse_id):
86
    """
87
    Returns at most 'limit' orders with the given statuses for the given warehouse starting from the given offset.
88
    Pass the status as null and the limit as 0 to ignore them.
89
 
90
    Parameters:
91
     - statuses
92
     - offset
93
     - limit
94
     - warehouse_id
95
    """
96
    pass
97
 
98
  def getOrderCount(self, statuses, warehouseId):
99
    """
100
    Returns the count of orders with the given statuses assigned to the given warehouse.
101
 
102
    Parameters:
103
     - statuses
104
     - warehouseId
105
    """
106
    pass
107
 
999 varun.gupt 108
  def getOrdersByBillingDate(self, status, start_billing_date, end_billing_date, warehouse_id):
109
    """
1132 chandransh 110
    Returns orders within a range of their billing dates
3431 rajveer 111
 
999 varun.gupt 112
    Parameters:
113
     - status
114
     - start_billing_date
115
     - end_billing_date
116
     - warehouse_id
117
    """
118
    pass
119
 
3451 chandransh 120
  def getOrdersByShippingDate(self, fromShippingDate, toShippingDate, providerId, warehouseId, cod):
3427 chandransh 121
    """
122
    Returns orders for a particular provider and warehouse which were shipped between the given dates.
3451 chandransh 123
    Returned orders comprise of COD orders if cod parameter is true. It comprises of prepaid orders otherwise.
124
    Pass providerId and warehouseId as -1 to ignore both these parameters.
3431 rajveer 125
 
3427 chandransh 126
    Parameters:
127
     - fromShippingDate
128
     - toShippingDate
129
     - providerId
130
     - warehouseId
3451 chandransh 131
     - cod
3427 chandransh 132
    """
133
    pass
134
 
1382 varun.gupt 135
  def getReturnableOrdersForCustomer(self, customer_id, limit):
136
    """
137
    Returns order ids for orders which can be returned
3431 rajveer 138
 
1382 varun.gupt 139
    Parameters:
140
     - customer_id
141
     - limit
142
    """
143
    pass
144
 
145
  def getCancellableOrdersForCustomer(self, customer_id, limit):
146
    """
147
    Returns order ids for orders which can be cancelled
3431 rajveer 148
 
1382 varun.gupt 149
    Parameters:
150
     - customer_id
151
     - limit
152
    """
153
    pass
154
 
483 rajveer 155
  def changeOrderStatus(self, orderId, status, description):
94 ashish 156
    """
157
    Parameters:
483 rajveer 158
     - orderId
159
     - status
160
     - description
94 ashish 161
    """
162
    pass
163
 
1528 ankur.sing 164
  def getOrdersForTransaction(self, transactionId, customerId):
94 ashish 165
    """
1528 ankur.sing 166
    Returns list of orders for given transaction Id. Also filters based on customer Id so that
167
    only user who owns the transaction can view its order details.
3431 rajveer 168
 
94 ashish 169
    Parameters:
170
     - transactionId
1528 ankur.sing 171
     - customerId
94 ashish 172
    """
173
    pass
174
 
3014 chandransh 175
  def getOrdersForCustomer(self, customerId, from_date, to_date, statuses):
94 ashish 176
    """
3014 chandransh 177
    Returns list of orders for the given customer created between the given dates and having the given statuses.
178
    Pass and empty list to ignore filtering on statuses.
3431 rajveer 179
 
94 ashish 180
    Parameters:
483 rajveer 181
     - customerId
182
     - from_date
183
     - to_date
3014 chandransh 184
     - statuses
94 ashish 185
    """
186
    pass
187
 
483 rajveer 188
  def createOrder(self, order):
94 ashish 189
    """
190
    Parameters:
483 rajveer 191
     - order
94 ashish 192
    """
193
    pass
194
 
483 rajveer 195
  def getOrder(self, id):
94 ashish 196
    """
197
    Parameters:
483 rajveer 198
     - id
94 ashish 199
    """
200
    pass
201
 
483 rajveer 202
  def getLineItemsForOrder(self, orderId):
94 ashish 203
    """
204
    Parameters:
483 rajveer 205
     - orderId
94 ashish 206
    """
207
    pass
208
 
4999 phani.kuma 209
  def getOrderList(self, order_ids):
210
    """
211
    Parameters:
212
     - order_ids
213
    """
214
    pass
215
 
5386 phani.kuma 216
  def getOrderListForVendor(self, order_ids, vendorId):
217
    """
218
    Parameters:
219
     - order_ids
220
     - vendorId
221
    """
222
    pass
223
 
1528 ankur.sing 224
  def getOrderForCustomer(self, orderId, customerId):
225
    """
226
    Returns an order for the order Id. Also checks if the order belongs to the customer whose Id is passed.
227
    Throws exception if either order Id is invalid or order does not below to the customer whose Id is passed.
3431 rajveer 228
 
1528 ankur.sing 229
    Parameters:
230
     - orderId
231
     - customerId
232
    """
233
    pass
234
 
4444 rajveer 235
  def getAlerts(self, type, warehouseId, status, timestamp):
3064 chandransh 236
    """
237
    Parameters:
4394 rajveer 238
     - type
4444 rajveer 239
     - warehouseId
4394 rajveer 240
     - status
241
     - timestamp
3064 chandransh 242
    """
243
    pass
244
 
4444 rajveer 245
  def addAlert(self, type, warehouseId, description):
3064 chandransh 246
    """
247
    Parameters:
248
     - type
4444 rajveer 249
     - warehouseId
4394 rajveer 250
     - description
3064 chandransh 251
    """
252
    pass
253
 
4444 rajveer 254
  def markAlertsAsSeen(self, warehouseId):
255
    """
256
    Parameters:
257
     - warehouseId
258
    """
259
    pass
260
 
3064 chandransh 261
  def getValidOrderCount(self, ):
262
    """
263
    Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
264
    """
265
    pass
266
 
267
  def getNoOfCustomersWithSuccessfulTransaction(self, ):
268
    """
269
    Returns the number of distinct customers who have done successful transactions
270
    """
271
    pass
272
 
273
  def getValidOrdersAmountRange(self, ):
274
    """
275
    Returns the minimum and maximum amounts of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
276
    List contains two values, first minimum amount and second maximum amount.
277
    """
278
    pass
279
 
280
  def getValidOrders(self, limit):
281
    """
282
    Returns list of Orders in descending order by Order creation date. List is restricted to limit Orders.
283
    If limit is passed as 0, then all valid Orders are returned.
3431 rajveer 284
 
3064 chandransh 285
    Parameters:
286
     - limit
287
    """
288
    pass
289
 
1220 chandransh 290
  def batchOrders(self, warehouseId):
291
    """
292
    Create a batch of all the pending orders for the given warehouse.
293
    The returned list is orderd by created_timestamp.
294
    If there are no pending orders, an empty list is returned.
3431 rajveer 295
 
1220 chandransh 296
    Parameters:
297
     - warehouseId
298
    """
299
    pass
300
 
1208 chandransh 301
  def markOrderAsOutOfStock(self, orderId):
302
    """
303
    Mark the given order as out of stock. Throws an exception if the order with the given Id couldn't be found.
3431 rajveer 304
 
1208 chandransh 305
    Parameters:
306
     - orderId
307
    """
308
    pass
309
 
3064 chandransh 310
  def verifyOrder(self, orderId):
759 chandransh 311
    """
3064 chandransh 312
    Marks the given order as SUBMITTED_FOR_PROCESSING and updates the verified
313
    timestamp. It is intended to be used for COD orders but can be harmlessly
314
    used for all other orders as well.
315
    Throws an exception if no such order exists.
3431 rajveer 316
 
759 chandransh 317
    Parameters:
3064 chandransh 318
     - orderId
319
    """
320
    pass
321
 
322
  def acceptOrder(self, orderId):
323
    """
324
    Marks the given order as ACCEPTED and updates the accepted timestamp. If the
325
    given order is not a COD order, it also captures the payment if the same has
326
    not been captured.
327
    Throws an exception if no such order exists.
3431 rajveer 328
 
3064 chandransh 329
    Parameters:
330
     - orderId
331
    """
332
    pass
333
 
5110 mandeep.dh 334
  def addBillingDetails(self, orderId, invoice_number, serialNumber, itemNumber, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize):
3064 chandransh 335
    """
336
    Add billing details such as the bill number and the biller to the Order.
4658 mandeep.dh 337
    Adds jacket number, item number and Serial no. to the order. Doesn't update
3064 chandransh 338
    the IMEI no. if a -1 is supplied.
339
    Also, it generates an invoice number for the order, marks the order as
340
    BILLED and sets the billing timestamp.
341
    Returns false if it doesn't find the order with the given ID.
3431 rajveer 342
 
3064 chandransh 343
    Parameters:
344
     - orderId
4283 anupam.sin 345
     - invoice_number
4658 mandeep.dh 346
     - serialNumber
3064 chandransh 347
     - itemNumber
4283 anupam.sin 348
     - billed_by
349
     - jacketNumber
3064 chandransh 350
     - billingType
5110 mandeep.dh 351
     - fulfilmentWarehouseId
4763 rajveer 352
     - authorize
3064 chandransh 353
    """
354
    pass
355
 
4763 rajveer 356
  def addInvoiceNumber(self, orderId, invoiceNumber, color):
4579 rajveer 357
    """
358
    Add the invoice number to the order.
359
 
360
    Parameters:
361
     - orderId
362
     - invoiceNumber
4763 rajveer 363
     - color
4579 rajveer 364
    """
365
    pass
366
 
4910 phani.kuma 367
  def markOrdersAsShippedFromWarehouse(self, warehouseId, providerId, cod, orderIds):
3064 chandransh 368
    """
369
    Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
4910 phani.kuma 370
    given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
4410 rajveer 371
 
372
    Parameters:
373
     - warehouseId
374
     - providerId
375
     - cod
4910 phani.kuma 376
     - orderIds
4410 rajveer 377
    """
378
    pass
379
 
4910 phani.kuma 380
  def markOrdersAsPickedUp(self, providerId, pickupDetails):
4410 rajveer 381
    """
4910 phani.kuma 382
    Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
383
    Raises an exception if we encounter report for an AWB number that we did not ship.
3431 rajveer 384
 
3064 chandransh 385
    Parameters:
759 chandransh 386
     - providerId
4910 phani.kuma 387
     - pickupDetails
759 chandransh 388
    """
389
    pass
390
 
4910 phani.kuma 391
  def getOrdersNotPickedUp(self, providerId):
1113 chandransh 392
    """
393
    Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.
3431 rajveer 394
 
1113 chandransh 395
    Parameters:
396
     - providerId
397
    """
398
    pass
399
 
1132 chandransh 400
  def markOrdersAsDelivered(self, providerId, deliveredOrders):
401
    """
402
    Marks all orders with AWBs in the given map as delivered. Also sets the delivery timestamp and
403
    the name of the receiver.
404
    Raises an exception if we encounter report for an AWB number that we did not ship.
3431 rajveer 405
 
1132 chandransh 406
    Parameters:
407
     - providerId
408
     - deliveredOrders
409
    """
410
    pass
411
 
4910 phani.kuma 412
  def markAsRTOrders(self, providerId, returnedOrders):
1135 chandransh 413
    """
4910 phani.kuma 414
    Mark all orders with AWBs in the given map as RTO. Also sets the delivery timestamp.
1135 chandransh 415
    Raises an exception if we encounter report for an AWB number that we did not ship.
3431 rajveer 416
 
1135 chandransh 417
    Parameters:
418
     - providerId
419
     - returnedOrders
420
    """
421
    pass
422
 
4910 phani.kuma 423
  def getRTOrders(self, providerId):
424
    """
425
    Returns a list of orders that were returned by courier.
426
 
427
    Parameters:
428
     - providerId
429
    """
430
    pass
431
 
1246 chandransh 432
  def updateNonDeliveryReason(self, providerId, undeliveredOrders):
433
    """
434
    Update the status description of orders whose AWB numbers are keys of the Map.
3431 rajveer 435
 
1246 chandransh 436
    Parameters:
437
     - providerId
438
     - undeliveredOrders
439
    """
440
    pass
441
 
4910 phani.kuma 442
  def getNonDeliveredOrdersbyCourier(self, providerId):
443
    """
444
    Returns a list of orders that were picked up or shipped four days ago but did not get delivered.
445
 
446
    Parameters:
447
     - providerId
448
    """
449
    pass
450
 
451
  def markOrdersAsLocalConnected(self, providerId, local_connected_orders):
452
    """
453
    Mark all orders with AWBs in the given map as local connected. Also sets the local connected timestamp.
454
 
455
    Parameters:
456
     - providerId
457
     - local_connected_orders
458
    """
459
    pass
460
 
461
  def getOrdersNotLocalConnected(self, providerId):
462
    """
463
    Returns a list of orders that were picked up or shipped but pending local connection.
464
 
465
    Parameters:
466
     - providerId
467
    """
468
    pass
469
 
470
  def markOrdersAsDestinationCityReached(self, providerId, destination_city_reached_orders):
471
    """
472
    Mark all orders with AWBs in the given map as reached destination city. Also sets the reached destination timestamp.
473
 
474
    Parameters:
475
     - providerId
476
     - destination_city_reached_orders
477
    """
478
    pass
479
 
480
  def markOrdersAsFirstDeliveryAttempted(self, providerId, first_atdl_orders):
481
    """
482
    Mark all orders with AWBs in the given map as first delivery attempt made. Also sets the first delivery attempted timestamp.
483
 
484
    Parameters:
485
     - providerId
486
     - first_atdl_orders
487
    """
488
    pass
489
 
1408 ankur.sing 490
  def getUndeliveredOrders(self, providerId, warehouseId):
491
    """
492
    Returns the list of orders whose delivery time has passed but have not been
493
    delivered yet for the given provider and warehouse. To get a complete list of
494
    undelivered orders, pass them as -1.
495
    Returns an empty list if no such orders exist.
3431 rajveer 496
 
1408 ankur.sing 497
    Parameters:
498
     - providerId
499
     - warehouseId
500
    """
501
    pass
502
 
4783 phani.kuma 503
  def getUndeliveredOrdersExpectedDeliveryDateNotMet(self, ):
504
    """
505
    Returns the list of orders whose expected delivery date has passed but have not been
506
    delivered yet.
507
    Returns an empty list if no such orders exist.
508
    """
509
    pass
510
 
2536 chandransh 511
  def toggleDOAFlag(self, orderId):
512
    """
513
    Toggle the DOA flag of an order. This should be used to flag an order for follow-up and unflag it when the follow-up is complete.
514
    Returns the final flag status.
515
    Throws an exception if the order with the given id couldn't be found or if the order status is not DELVIERY_SUCCESS.
3431 rajveer 516
 
2536 chandransh 517
    Parameters:
518
     - orderId
519
    """
520
    pass
1886 ankur.sing 521
 
4712 rajveer 522
  def markOrderAsDelivered(self, orderId, deliveryTimestamp, receiver):
523
    """
524
    Parameters:
525
     - orderId
526
     - deliveryTimestamp
527
     - receiver
528
    """
529
    pass
530
 
4454 rajveer 531
  def markOrderDoaRequestReceived(self, orderId):
532
    """
533
    Once user raise the request for a DOA, order status will be changed from DELVIERY_SUCCESS to DOA_REQUEST_RECEIVED
534
 
535
    Parameters:
536
     - orderId
537
    """
538
    pass
539
 
540
  def markOrderDoaRequestAuthorized(self, orderId, isAuthorized):
541
    """
542
    CRM person can authorize or deny the request reised by customer. If he authorizes order will change from DOA_REQUEST_RECEIVED
543
    to DOA_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
544
 
545
    Parameters:
546
     - orderId
547
     - isAuthorized
548
    """
549
    pass
550
 
4488 rajveer 551
  def markOrderReturnRequestReceived(self, orderId):
552
    """
553
    Once user raise the request for a RET, order status will be changed from DELVIERY_SUCCESS to RET_REQUEST_RECEIVED
554
 
555
    Parameters:
556
     - orderId
557
    """
558
    pass
559
 
560
  def markOrderReturnRequestAuthorized(self, orderId, isAuthorized):
561
    """
562
    CRM person can authorize or deny the request reised by customer. If he authorizes order will change from RET_REQUEST_RECEIVED
563
    to RET_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
564
 
565
    Parameters:
566
     - orderId
567
     - isAuthorized
568
    """
569
    pass
570
 
4579 rajveer 571
  def requestPickupNumber(self, orderId, providerId):
2536 chandransh 572
    """
573
    Sends out an email to the account manager of the original courier provider used to ship the order.
4452 rajveer 574
    If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
575
    If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.
2536 chandransh 576
    For any other status, it returns false.
577
    Throws an exception if the order with the given id couldn't be found.
3431 rajveer 578
 
2536 chandransh 579
    Parameters:
580
     - orderId
4579 rajveer 581
     - providerId
2536 chandransh 582
    """
583
    pass
584
 
4602 rajveer 585
  def authorizePickup(self, orderId, pickupNumber, providerId):
2536 chandransh 586
    """
4452 rajveer 587
    If the order status is DOA_PICKUP_REQUEST_RAISED, it does the following
2536 chandransh 588
    	1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
589
    	2. Changes order status to be DOA_PICKUP_AUTHORIZED.
590
    	3. Returns true
2591 chandransh 591
    If the order is in any other status, it returns false.
2536 chandransh 592
    Throws an exception if the order with the given id couldn't be found.
3431 rajveer 593
 
2536 chandransh 594
    Parameters:
595
     - orderId
596
     - pickupNumber
4602 rajveer 597
     - providerId
2536 chandransh 598
    """
599
    pass
600
 
2764 chandransh 601
  def markDoasAsPickedUp(self, providerId, pickupDetails):
602
    """
603
    Marks all DOA_PICKUP_AUTHORIZED orders of the previous day for a provider as DOA_RETURN_IN_TRANSIT.
3431 rajveer 604
 
2764 chandransh 605
    Parameters:
606
     - providerId
607
     - pickupDetails
608
    """
609
    pass
610
 
4910 phani.kuma 611
  def getDoasNotPickedUp(self, providerId):
612
    """
613
    Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
614
 
615
    Parameters:
616
     - providerId
617
    """
618
    pass
619
 
4741 phani.kuma 620
  def markReturnOrdersAsPickedUp(self, providerId, pickupDetails):
621
    """
622
    Marks all RET_PICKUP_CONFIRMED orders of the previous day for a provider as RET_RETURN_IN_TRANSIT.
623
 
624
    Parameters:
625
     - providerId
626
     - pickupDetails
627
    """
628
    pass
629
 
4910 phani.kuma 630
  def getReturnOrdersNotPickedUp(self, providerId):
631
    """
632
    Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
633
 
634
    Parameters:
635
     - providerId
636
    """
637
    pass
638
 
4479 rajveer 639
  def receiveReturn(self, orderId, receiveCondition):
2591 chandransh 640
    """
4452 rajveer 641
    If the order status is DOA_PICKUP_CONFIRMED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED_PRESTINE and returns true.
4484 rajveer 642
    If the order status is RTO_IN_TRANSIT, marks the order status as RTO_RECEIVED_PRESTINE and returns true.
2591 chandransh 643
    If the order is in any other state, it returns false.
644
    Throws an exception if the order with the given id couldn't be found.
3431 rajveer 645
 
2591 chandransh 646
    Parameters:
647
     - orderId
4479 rajveer 648
     - receiveCondition
2591 chandransh 649
    """
650
    pass
2536 chandransh 651
 
2591 chandransh 652
  def validateDoa(self, orderId, isValid):
653
    """
4452 rajveer 654
    Used to validate the DOA certificate for an order in the DOA_RECEIVED_PRESTINE state. If the certificate is valid,
2616 chandransh 655
    the order state is changed to DOA_CERT_VALID. If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
2591 chandransh 656
    If the order is in any other state, it returns false.
657
    Throws an exception if the order with the given id couldn't be found.
3431 rajveer 658
 
2591 chandransh 659
    Parameters:
660
     - orderId
661
     - isValid
662
    """
663
    pass
664
 
4495 rajveer 665
  def validateReturnProduct(self, orderId, isUsable):
666
    """
667
    Parameters:
668
     - orderId
669
     - isUsable
670
    """
671
    pass
672
 
2616 chandransh 673
  def reshipOrder(self, orderId):
674
    """
4484 rajveer 675
    If the order is in RTO_RECEIVED_PRESTINE or DOA_CERT_INVALID state, it does the following:
2616 chandransh 676
    	1. Creates a new order for processing in the BILLED state. All billing information is saved.
4484 rajveer 677
    	2. Marks the current order as one of the final states RTO_RESHIPPED and DOA_INVALID_RESHIPPED depending on what state the order started in.
2616 chandransh 678
 
679
    If the order is in DOA_CERT_VALID state, it does the following:
680
    	1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
681
    	2. Creates a return order for the warehouse executive to return the DOA material.
4452 rajveer 682
    	3. Marks the current order as the final DOA_VALID_RESHIPPED state.
3431 rajveer 683
 
2616 chandransh 684
    Returns the id of the newly created order.
3431 rajveer 685
 
2616 chandransh 686
    Throws an exception if the order with the given id couldn't be found.
3431 rajveer 687
 
2616 chandransh 688
    Parameters:
689
     - orderId
690
    """
691
    pass
2591 chandransh 692
 
3226 chandransh 693
  def refundOrder(self, orderId, refundedBy, reason):
2616 chandransh 694
    """
4484 rajveer 695
    If the order is in RTO_RECEIVED_PRESTINE, DOA_CERT_VALID or DOA_CERT_INVALID state, it does the following:
2616 chandransh 696
    	1. Creates a refund request for batch processing.
697
    	2. Creates a return order for the warehouse executive to return the shipped material.
4484 rajveer 698
    	3. Marks the current order as RTO_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
3431 rajveer 699
 
2616 chandransh 700
    If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
701
    	1. Creates a refund request for batch processing.
3226 chandransh 702
    	2. Cancels the reservation of the item in the warehouse.
703
    	3. Marks the current order as the REFUNDED final state.
3431 rajveer 704
 
3226 chandransh 705
    For all COD orders, if the order is in INIT, SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
706
    	1. Cancels the reservation of the item in the warehouse.
707
    	2. Marks the current order as CANCELED.
708
 
709
    In all cases, it updates the reason for cancellation or refund and the person who performed the action.
710
 
2616 chandransh 711
    Returns True if it is successful, False otherwise.
3431 rajveer 712
 
2616 chandransh 713
    Throws an exception if the order with the given id couldn't be found.
3431 rajveer 714
 
2616 chandransh 715
    Parameters:
716
     - orderId
3226 chandransh 717
     - refundedBy
718
     - reason
2616 chandransh 719
    """
720
    pass
721
 
2690 chandransh 722
  def getReturnOrders(self, warehouseId, fromDate, toDate):
723
    """
724
    Get all return orders created between the from and to dates for the given warehouse.
725
    Ignores the warehouse if it is passed as -1.
3431 rajveer 726
 
2690 chandransh 727
    Parameters:
728
     - warehouseId
729
     - fromDate
730
     - toDate
731
    """
732
    pass
2616 chandransh 733
 
2700 chandransh 734
  def getReturnOrder(self, id):
735
    """
736
    Returns the ReturnOrder corresponding to the given id.
737
    Throws an exception if the return order with the given id couldn't be found.
3431 rajveer 738
 
2700 chandransh 739
    Parameters:
740
     - id
741
    """
742
    pass
743
 
2690 chandransh 744
  def processReturn(self, returnOrderId):
745
    """
746
    Marks the return order with the given id as processed. Raises an exception if no such return order exists.
3431 rajveer 747
 
2690 chandransh 748
    Parameters:
749
     - returnOrderId
750
    """
751
    pass
752
 
3451 chandransh 753
  def updateWeight(self, orderId, weight):
754
    """
755
    Set the weight of the given order to the provided value. Will attempt to update the weight of the item in the catalog as well.
2819 chandransh 756
 
3451 chandransh 757
    Parameters:
758
     - orderId
759
     - weight
760
    """
761
    pass
762
 
3469 chandransh 763
  def changeItem(self, orderId, itemId):
764
    """
765
    Change the item to be shipped for this order. Also adjusts the reservation in the inventory accordingly.
766
    Currently, it also ensures that only a different color of the given item is shipped.
3451 chandransh 767
 
3469 chandransh 768
    Parameters:
769
     - orderId
770
     - itemId
771
    """
772
    pass
773
 
774
  def shiftToWarehouse(self, orderId, warehouseId):
775
    """
776
    Moves the given order to the given warehouse. Also adjusts the inventory reservations accordingly.
777
 
778
    Parameters:
779
     - orderId
780
     - warehouseId
781
    """
782
    pass
783
 
4647 rajveer 784
  def addDelayReason(self, orderId, delayReason, furtherDelay, delayReasonText):
3553 chandransh 785
    """
786
    Adds the given delay reason to the given order.
3986 chandransh 787
    Increases the expected delivery time of the given order by the given no. of days.
3553 chandransh 788
    Raises an exception if no order with the given id can be found.
3469 chandransh 789
 
3553 chandransh 790
    Parameters:
791
     - orderId
792
     - delayReason
3986 chandransh 793
     - furtherDelay
4647 rajveer 794
     - delayReasonText
3553 chandransh 795
    """
796
    pass
797
 
3956 chandransh 798
  def reconcileCodCollection(self, collectedAmountMap, xferBy, xferTxnId, xferDate):
799
    """
800
    Marks the COD orders with given AWB nos. as having been processed.
801
    Updates the captured amount for the corresponding payment.
3553 chandransh 802
 
3956 chandransh 803
    Returns a map of AWBs which were not processed and the associated reason. An AWB is not processed if:
804
    1. There is no order corresponding to an AWB number.
805
    2. The captured amount for a payment exceeds the total payment.
806
    3. The order corresponding to an AWB no. is in a state prior to DELIVERY_SUCCESS.
807
 
808
    Parameters:
809
     - collectedAmountMap
810
     - xferBy
811
     - xferTxnId
812
     - xferDate
813
    """
814
    pass
815
 
4008 mandeep.dh 816
  def getTransactionsRequiringExtraProcessing(self, category):
817
    """
4065 mandeep.dh 818
    Returns the list of transaction ids that require some extra processing and
4008 mandeep.dh 819
    which belong to a particular category. This is currently used by CRM
4065 mandeep.dh 820
    application. If no such transaction ids are present, it returns an empty list.
3956 chandransh 821
 
4008 mandeep.dh 822
    Parameters:
823
     - category
824
    """
825
    pass
826
 
827
  def markTransactionAsProcessed(self, transactionId, category):
828
    """
829
    Marks a particular transaction as processed for a particular cateogory.
4065 mandeep.dh 830
    It essentially deletes the transaction id record for a particular
831
    processing type category (if present) from DB.
832
    This is currently used by CRM application.
4008 mandeep.dh 833
 
834
    Parameters:
835
     - transactionId
836
     - category
837
    """
838
    pass
839
 
4018 chandransh 840
  def getItemWiseRiskyOrdersCount(self, ):
841
    """
842
    Returns a map containing the number of risky orders keyed by item id. A risky order
843
    is defined as one whose shipping date is about to expire.
844
    """
845
    pass
4008 mandeep.dh 846
 
4295 varun.gupt 847
  def getOrdersForItemIds(self, itemIds):
848
    """
849
    Returns a list of all orders which have items with given id
850
 
851
    Parameters:
852
     - itemIds
853
    """
854
    pass
855
 
4247 rajveer 856
  def markOrderCancellationRequestReceived(self, orderId):
857
    """
858
    Mark order as cancellation request received. If customer sends request of cancellation of
859
    a particular order, this method will be called. It will just change status of the order
860
    depending on its current status. It also records the previous status, so that we can move
861
    back to that status if cancellation request is denied.
4018 chandransh 862
 
4247 rajveer 863
    Parameters:
864
     - orderId
865
    """
866
    pass
867
 
868
  def markOrderCancellationRequestConfirmed(self, orderId):
869
    """
870
    If we decide to to cancel order, CRM will call this method to move the status of order to
871
    cancellation request confirmed. After this OM will be able to cancel the order.
872
 
873
    Parameters:
874
     - orderId
875
    """
876
    pass
877
 
878
  def markOrderCancellationRequestDenied(self, orderId):
879
    """
880
    If we decide to not to cancel order, we will move the order ro previous status.
881
 
882
    Parameters:
883
     - orderId
884
    """
885
    pass
886
 
4258 rajveer 887
  def markTransactionAsPaymentFlagRemoved(self, transactionId):
4247 rajveer 888
    """
4258 rajveer 889
    If we and/or payment gateway has decided to accept the payment, this method needs to be called.
890
    Changed transaction and all orders status to payment accepted.
4247 rajveer 891
 
892
    Parameters:
4258 rajveer 893
     - transactionId
4247 rajveer 894
    """
895
    pass
896
 
4259 anupam.sin 897
  def refundTransaction(self, transactionId, refundedBy, reason):
898
    """
899
    This method is called when a flagged payment is deemed unserviceable and the corresponding orders
900
    need to be cancelled
4247 rajveer 901
 
4259 anupam.sin 902
    Parameters:
903
     - transactionId
904
     - refundedBy
905
     - reason
906
    """
907
    pass
908
 
4324 mandeep.dh 909
  def updateShipmentAddress(self, orderId, addressId):
910
    """
911
    Updates shipment address of an order. Delivery and shipping date estimates
912
    etc. are also updated here.
913
 
914
    Throws TransactionServiceException in case address change is not
915
    possible due to certain reasons such as new pincode in address is
916
    not serviceable etc.
917
 
918
    Parameters:
919
     - orderId
920
     - addressId
921
    """
922
    pass
923
 
4285 rajveer 924
  def acceptOrdersForItemId(self, itemId, inventory):
925
    """
926
    Marks the orders as ACCEPTED for the given itemId and inventory. It also updates the accepted timestamp. If the
927
    given order is not a COD order, it also captures the payment if the same has not been captured.
4259 anupam.sin 928
 
4285 rajveer 929
    Parameters:
930
     - itemId
931
     - inventory
932
    """
933
    pass
934
 
4369 rajveer 935
  def markOrdersAsPORaised(self, vendorId, itemId, quantity, estimate, isReminder):
4303 rajveer 936
    """
937
    Parameters:
938
     - vendorId
939
     - itemId
940
     - quantity
941
     - estimate
4369 rajveer 942
     - isReminder
4303 rajveer 943
    """
944
    pass
4285 rajveer 945
 
4369 rajveer 946
  def markOrdersAsReversalInitiated(self, vendorId, itemId, quantity, estimate, isReminder):
4303 rajveer 947
    """
948
    Parameters:
949
     - vendorId
950
     - itemId
951
     - quantity
952
     - estimate
4369 rajveer 953
     - isReminder
4303 rajveer 954
    """
955
    pass
956
 
4369 rajveer 957
  def markOrdersAsNotAvailabke(self, vendorId, itemId, quantity, estimate, isReminder):
4303 rajveer 958
    """
959
    Parameters:
960
     - vendorId
961
     - itemId
962
     - quantity
963
     - estimate
4369 rajveer 964
     - isReminder
4303 rajveer 965
    """
966
    pass
967
 
4369 rajveer 968
  def markOrdersAsTimeout(self, vendorId):
969
    """
970
    Parameters:
971
     - vendorId
972
    """
973
    pass
4303 rajveer 974
 
4662 rajveer 975
  def markOrderAsLostInTransit(self, orderId):
976
    """
977
    Mark order as LOST_IN_TRANSIT
978
 
979
    Parameters:
980
     - orderId
981
    """
982
    pass
983
 
4386 anupam.sin 984
  def getOrderForAwb(self, awb):
985
    """
986
    Returns the order corresponding to an AWB number
4369 rajveer 987
 
4386 anupam.sin 988
    Parameters:
989
     - awb
990
    """
991
    pass
992
 
4910 phani.kuma 993
  def getOrdersForProviderForStatus(self, logistics_provider_id, order_status_list):
4506 phani.kuma 994
    """
4910 phani.kuma 995
    Returns the order corresponding to a logistics provider id for a given list of order status
4386 anupam.sin 996
 
4506 phani.kuma 997
    Parameters:
998
     - logistics_provider_id
4910 phani.kuma 999
     - order_status_list
4506 phani.kuma 1000
    """
1001
    pass
1002
 
4600 varun.gupt 1003
  def getBilledOrdersForVendor(self, vendorId, billingDateFrom, billingDateTo):
1004
    """
1005
    Returns list of orders fullfiled from a certain vendor and billed in a given date range
4506 phani.kuma 1006
 
4600 varun.gupt 1007
    Parameters:
1008
     - vendorId
1009
     - billingDateFrom
1010
     - billingDateTo
1011
    """
1012
    pass
1013
 
4607 rajveer 1014
  def getSlippedSippingDateOrders(self, ):
1015
    pass
1016
 
4709 rajveer 1017
  def getCancelledOrders(self, cancelDateFrom, cancelDateTo):
1018
    """
1019
    Parameters:
1020
     - cancelDateFrom
1021
     - cancelDateTo
1022
    """
1023
    pass
1024
 
4600 varun.gupt 1025
  def saveBluedartSettlements(self, mapAWBAndAmount):
1026
    """
1027
    Parameters:
1028
     - mapAWBAndAmount
1029
    """
1030
    pass
1031
 
4905 varun.gupt 1032
  def savePaymentSettlements(self, settlementDate, paymentGatewayId, referenceId, serviceTax, otherCharges, netCollection):
4600 varun.gupt 1033
    """
1034
    Parameters:
1035
     - settlementDate
1036
     - paymentGatewayId
4905 varun.gupt 1037
     - referenceId
4600 varun.gupt 1038
     - serviceTax
1039
     - otherCharges
1040
     - netCollection
1041
    """
1042
    pass
1043
 
1044
  def saveEBSSettlementSummary(self, settlementId, settlementDate, transactionDateFrom, transactionDateTo, amount):
1045
    """
1046
    Parameters:
1047
     - settlementId
1048
     - settlementDate
1049
     - transactionDateFrom
1050
     - transactionDateTo
1051
     - amount
1052
    """
1053
    pass
1054
 
5386 phani.kuma 1055
  def getSettlementForPrepaid(self, referenceId, isRefund):
4600 varun.gupt 1056
    """
1057
    Parameters:
5189 varun.gupt 1058
     - referenceId
1059
     - isRefund
4600 varun.gupt 1060
    """
1061
    pass
1062
 
5386 phani.kuma 1063
  def getSettlementForCod(self, orderId, isRefund):
1064
    """
1065
    Parameters:
1066
     - orderId
1067
     - isRefund
1068
    """
1069
    pass
1070
 
4600 varun.gupt 1071
  def getEBSSettlementSummaries(self, ):
1072
    pass
1073
 
1074
  def markEBSSettlementUploaded(self, settlementId):
1075
    """
1076
    Parameters:
1077
     - settlementId
1078
    """
1079
    pass
1080
 
1081
  def getEBSSettlementDate(self, settlementId):
1082
    """
1083
    Parameters:
1084
     - settlementId
1085
    """
1086
    pass
1087
 
4715 varun.gupt 1088
  def getSettlementsByDate(self, settlementDateFrom, settlementDateTo, isRefund):
1089
    """
1090
    Parameters:
1091
     - settlementDateFrom
1092
     - settlementDateTo
1093
     - isRefund
1094
    """
1095
    pass
4600 varun.gupt 1096
 
4715 varun.gupt 1097
  def getReshippedOrderIds(self, orderIds):
1098
    """
1099
    Returns list of Order Ids, which belong to reshiped orders, shortlisted from a given list of Order Ids
1100
 
1101
    Parameters:
1102
     - orderIds
1103
    """
1104
    pass
1105
 
4875 varun.gupt 1106
  def getOrdersWhereVendorNotPaid(self, vendorId):
1107
    """
1108
    Parameters:
1109
     - vendorId
1110
    """
1111
    pass
4757 mandeep.dh 1112
 
5031 varun.gupt 1113
  def getStatusDistributionOfOrders(self, startDate, endDate):
1114
    """
1115
    Parameters:
1116
     - startDate
1117
     - endDate
1118
    """
1119
    pass
4875 varun.gupt 1120
 
5067 varun.gupt 1121
  def getOrderIdsForStatus(self, status, startDatetime, endDatetime):
1122
    """
1123
    Parameters:
1124
     - status
1125
     - startDatetime
1126
     - endDatetime
1127
    """
1128
    pass
5031 varun.gupt 1129
 
5348 anupam.sin 1130
  def updateCODAgent(self, agent, orderId):
1131
    """
1132
    Updates the agent who handled the COD verification call
1133
 
1134
    Parameters:
1135
     - agent
1136
     - orderId
1137
    """
1138
    pass
1139
 
5099 varun.gupt 1140
  def updateOrderAsPaidToVendor(self, orderId):
1141
    """
1142
    Parameters:
1143
     - orderId
1144
    """
1145
    pass
5067 varun.gupt 1146
 
5386 phani.kuma 1147
  def updateOrderOnlyAsPaidToVendor(self, orderId):
1148
    """
1149
    Parameters:
1150
     - orderId
1151
    """
1152
    pass
1153
 
5208 varun.gupt 1154
  def getRefundedOrdersMarkedPaid(self, ):
1155
    pass
5099 varun.gupt 1156
 
5208 varun.gupt 1157
 
3376 rajveer 1158
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
94 ashish 1159
  def __init__(self, iprot, oprot=None):
3376 rajveer 1160
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
94 ashish 1161
 
1162
  def createTransaction(self, transaction):
1163
    """
1164
    Parameters:
1165
     - transaction
1166
    """
1167
    self.send_createTransaction(transaction)
132 ashish 1168
    return self.recv_createTransaction()
94 ashish 1169
 
1170
  def send_createTransaction(self, transaction):
1171
    self._oprot.writeMessageBegin('createTransaction', TMessageType.CALL, self._seqid)
1172
    args = createTransaction_args()
1173
    args.transaction = transaction
1174
    args.write(self._oprot)
1175
    self._oprot.writeMessageEnd()
1176
    self._oprot.trans.flush()
1177
 
1178
  def recv_createTransaction(self, ):
1179
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1180
    if mtype == TMessageType.EXCEPTION:
1181
      x = TApplicationException()
1182
      x.read(self._iprot)
1183
      self._iprot.readMessageEnd()
1184
      raise x
1185
    result = createTransaction_result()
1186
    result.read(self._iprot)
1187
    self._iprot.readMessageEnd()
3431 rajveer 1188
    if result.success is not None:
132 ashish 1189
      return result.success
3431 rajveer 1190
    if result.ex is not None:
94 ashish 1191
      raise result.ex
132 ashish 1192
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createTransaction failed: unknown result");
94 ashish 1193
 
1194
  def getTransaction(self, id):
1195
    """
1196
    Parameters:
1197
     - id
1198
    """
1199
    self.send_getTransaction(id)
1200
    return self.recv_getTransaction()
1201
 
1202
  def send_getTransaction(self, id):
1203
    self._oprot.writeMessageBegin('getTransaction', TMessageType.CALL, self._seqid)
1204
    args = getTransaction_args()
1205
    args.id = id
1206
    args.write(self._oprot)
1207
    self._oprot.writeMessageEnd()
1208
    self._oprot.trans.flush()
1209
 
1210
  def recv_getTransaction(self, ):
1211
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1212
    if mtype == TMessageType.EXCEPTION:
1213
      x = TApplicationException()
1214
      x.read(self._iprot)
1215
      self._iprot.readMessageEnd()
1216
      raise x
1217
    result = getTransaction_result()
1218
    result.read(self._iprot)
1219
    self._iprot.readMessageEnd()
3431 rajveer 1220
    if result.success is not None:
94 ashish 1221
      return result.success
3431 rajveer 1222
    if result.ex is not None:
94 ashish 1223
      raise result.ex
1224
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransaction failed: unknown result");
1225
 
1226
  def getTransactionsForCustomer(self, customerId, from_date, to_date, status):
1227
    """
1228
    Parameters:
1229
     - customerId
1230
     - from_date
1231
     - to_date
1232
     - status
1233
    """
1234
    self.send_getTransactionsForCustomer(customerId, from_date, to_date, status)
1235
    return self.recv_getTransactionsForCustomer()
1236
 
1237
  def send_getTransactionsForCustomer(self, customerId, from_date, to_date, status):
1238
    self._oprot.writeMessageBegin('getTransactionsForCustomer', TMessageType.CALL, self._seqid)
1239
    args = getTransactionsForCustomer_args()
1240
    args.customerId = customerId
1241
    args.from_date = from_date
1242
    args.to_date = to_date
1243
    args.status = status
1244
    args.write(self._oprot)
1245
    self._oprot.writeMessageEnd()
1246
    self._oprot.trans.flush()
1247
 
1248
  def recv_getTransactionsForCustomer(self, ):
1249
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1250
    if mtype == TMessageType.EXCEPTION:
1251
      x = TApplicationException()
1252
      x.read(self._iprot)
1253
      self._iprot.readMessageEnd()
1254
      raise x
1255
    result = getTransactionsForCustomer_result()
1256
    result.read(self._iprot)
1257
    self._iprot.readMessageEnd()
3431 rajveer 1258
    if result.success is not None:
94 ashish 1259
      return result.success
3431 rajveer 1260
    if result.ex is not None:
94 ashish 1261
      raise result.ex
1262
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForCustomer failed: unknown result");
1263
 
132 ashish 1264
  def getTransactionsForShoppingCartId(self, shoppingCartId):
1265
    """
1266
    Parameters:
1267
     - shoppingCartId
1268
    """
1269
    self.send_getTransactionsForShoppingCartId(shoppingCartId)
1270
    return self.recv_getTransactionsForShoppingCartId()
1271
 
1272
  def send_getTransactionsForShoppingCartId(self, shoppingCartId):
1273
    self._oprot.writeMessageBegin('getTransactionsForShoppingCartId', TMessageType.CALL, self._seqid)
1274
    args = getTransactionsForShoppingCartId_args()
1275
    args.shoppingCartId = shoppingCartId
1276
    args.write(self._oprot)
1277
    self._oprot.writeMessageEnd()
1278
    self._oprot.trans.flush()
1279
 
1280
  def recv_getTransactionsForShoppingCartId(self, ):
1281
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1282
    if mtype == TMessageType.EXCEPTION:
1283
      x = TApplicationException()
1284
      x.read(self._iprot)
1285
      self._iprot.readMessageEnd()
1286
      raise x
1287
    result = getTransactionsForShoppingCartId_result()
1288
    result.read(self._iprot)
1289
    self._iprot.readMessageEnd()
3431 rajveer 1290
    if result.success is not None:
132 ashish 1291
      return result.success
3431 rajveer 1292
    if result.ex is not None:
132 ashish 1293
      raise result.ex
1294
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsForShoppingCartId failed: unknown result");
1295
 
94 ashish 1296
  def getTransactionStatus(self, transactionId):
1297
    """
1298
    Parameters:
1299
     - transactionId
1300
    """
1301
    self.send_getTransactionStatus(transactionId)
1302
    return self.recv_getTransactionStatus()
1303
 
1304
  def send_getTransactionStatus(self, transactionId):
1305
    self._oprot.writeMessageBegin('getTransactionStatus', TMessageType.CALL, self._seqid)
1306
    args = getTransactionStatus_args()
1307
    args.transactionId = transactionId
1308
    args.write(self._oprot)
1309
    self._oprot.writeMessageEnd()
1310
    self._oprot.trans.flush()
1311
 
1312
  def recv_getTransactionStatus(self, ):
1313
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1314
    if mtype == TMessageType.EXCEPTION:
1315
      x = TApplicationException()
1316
      x.read(self._iprot)
1317
      self._iprot.readMessageEnd()
1318
      raise x
1319
    result = getTransactionStatus_result()
1320
    result.read(self._iprot)
1321
    self._iprot.readMessageEnd()
3431 rajveer 1322
    if result.success is not None:
94 ashish 1323
      return result.success
3431 rajveer 1324
    if result.ex is not None:
94 ashish 1325
      raise result.ex
1326
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionStatus failed: unknown result");
1327
 
5387 rajveer 1328
  def changeTransactionStatus(self, transactionId, status, description, selfPickup):
94 ashish 1329
    """
1330
    Parameters:
1331
     - transactionId
1332
     - status
1333
     - description
5387 rajveer 1334
     - selfPickup
94 ashish 1335
    """
5387 rajveer 1336
    self.send_changeTransactionStatus(transactionId, status, description, selfPickup)
94 ashish 1337
    return self.recv_changeTransactionStatus()
1338
 
5387 rajveer 1339
  def send_changeTransactionStatus(self, transactionId, status, description, selfPickup):
94 ashish 1340
    self._oprot.writeMessageBegin('changeTransactionStatus', TMessageType.CALL, self._seqid)
1341
    args = changeTransactionStatus_args()
1342
    args.transactionId = transactionId
1343
    args.status = status
1344
    args.description = description
5387 rajveer 1345
    args.selfPickup = selfPickup
94 ashish 1346
    args.write(self._oprot)
1347
    self._oprot.writeMessageEnd()
1348
    self._oprot.trans.flush()
1349
 
1350
  def recv_changeTransactionStatus(self, ):
1351
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1352
    if mtype == TMessageType.EXCEPTION:
1353
      x = TApplicationException()
1354
      x.read(self._iprot)
1355
      self._iprot.readMessageEnd()
1356
      raise x
1357
    result = changeTransactionStatus_result()
1358
    result.read(self._iprot)
1359
    self._iprot.readMessageEnd()
3431 rajveer 1360
    if result.success is not None:
94 ashish 1361
      return result.success
3431 rajveer 1362
    if result.ex is not None:
94 ashish 1363
      raise result.ex
1364
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeTransactionStatus failed: unknown result");
1365
 
1398 varun.gupt 1366
  def enqueueTransactionInfoEmail(self, transactionId):
1382 varun.gupt 1367
    """
1368
    Parameters:
1369
     - transactionId
1370
    """
1398 varun.gupt 1371
    self.send_enqueueTransactionInfoEmail(transactionId)
1372
    return self.recv_enqueueTransactionInfoEmail()
1382 varun.gupt 1373
 
1398 varun.gupt 1374
  def send_enqueueTransactionInfoEmail(self, transactionId):
1375
    self._oprot.writeMessageBegin('enqueueTransactionInfoEmail', TMessageType.CALL, self._seqid)
1376
    args = enqueueTransactionInfoEmail_args()
1382 varun.gupt 1377
    args.transactionId = transactionId
1378
    args.write(self._oprot)
1379
    self._oprot.writeMessageEnd()
1380
    self._oprot.trans.flush()
1381
 
1398 varun.gupt 1382
  def recv_enqueueTransactionInfoEmail(self, ):
1382 varun.gupt 1383
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1384
    if mtype == TMessageType.EXCEPTION:
1385
      x = TApplicationException()
1386
      x.read(self._iprot)
1387
      self._iprot.readMessageEnd()
1388
      raise x
1398 varun.gupt 1389
    result = enqueueTransactionInfoEmail_result()
1382 varun.gupt 1390
    result.read(self._iprot)
1391
    self._iprot.readMessageEnd()
3431 rajveer 1392
    if result.success is not None:
1382 varun.gupt 1393
      return result.success
3431 rajveer 1394
    if result.ex is not None:
1382 varun.gupt 1395
      raise result.ex
1398 varun.gupt 1396
    raise TApplicationException(TApplicationException.MISSING_RESULT, "enqueueTransactionInfoEmail failed: unknown result");
1382 varun.gupt 1397
 
4801 anupam.sin 1398
  def getAllOrders(self, statuses, from_date, to_date, warehouse_id):
94 ashish 1399
    """
1400
    Parameters:
4801 anupam.sin 1401
     - statuses
483 rajveer 1402
     - from_date
1403
     - to_date
1404
     - warehouse_id
94 ashish 1405
    """
4801 anupam.sin 1406
    self.send_getAllOrders(statuses, from_date, to_date, warehouse_id)
483 rajveer 1407
    return self.recv_getAllOrders()
94 ashish 1408
 
4801 anupam.sin 1409
  def send_getAllOrders(self, statuses, from_date, to_date, warehouse_id):
483 rajveer 1410
    self._oprot.writeMessageBegin('getAllOrders', TMessageType.CALL, self._seqid)
1411
    args = getAllOrders_args()
4801 anupam.sin 1412
    args.statuses = statuses
483 rajveer 1413
    args.from_date = from_date
1414
    args.to_date = to_date
1415
    args.warehouse_id = warehouse_id
94 ashish 1416
    args.write(self._oprot)
1417
    self._oprot.writeMessageEnd()
1418
    self._oprot.trans.flush()
1419
 
483 rajveer 1420
  def recv_getAllOrders(self, ):
94 ashish 1421
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1422
    if mtype == TMessageType.EXCEPTION:
1423
      x = TApplicationException()
1424
      x.read(self._iprot)
1425
      self._iprot.readMessageEnd()
1426
      raise x
483 rajveer 1427
    result = getAllOrders_result()
94 ashish 1428
    result.read(self._iprot)
1429
    self._iprot.readMessageEnd()
3431 rajveer 1430
    if result.success is not None:
94 ashish 1431
      return result.success
3431 rajveer 1432
    if result.ex is not None:
94 ashish 1433
      raise result.ex
483 rajveer 1434
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllOrders failed: unknown result");
94 ashish 1435
 
4133 chandransh 1436
  def getOrdersInBatch(self, statuses, offset, limit, warehouse_id):
1437
    """
1438
    Returns at most 'limit' orders with the given statuses for the given warehouse starting from the given offset.
1439
    Pass the status as null and the limit as 0 to ignore them.
1440
 
1441
    Parameters:
1442
     - statuses
1443
     - offset
1444
     - limit
1445
     - warehouse_id
1446
    """
1447
    self.send_getOrdersInBatch(statuses, offset, limit, warehouse_id)
1448
    return self.recv_getOrdersInBatch()
1449
 
1450
  def send_getOrdersInBatch(self, statuses, offset, limit, warehouse_id):
1451
    self._oprot.writeMessageBegin('getOrdersInBatch', TMessageType.CALL, self._seqid)
1452
    args = getOrdersInBatch_args()
1453
    args.statuses = statuses
1454
    args.offset = offset
1455
    args.limit = limit
1456
    args.warehouse_id = warehouse_id
1457
    args.write(self._oprot)
1458
    self._oprot.writeMessageEnd()
1459
    self._oprot.trans.flush()
1460
 
1461
  def recv_getOrdersInBatch(self, ):
1462
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1463
    if mtype == TMessageType.EXCEPTION:
1464
      x = TApplicationException()
1465
      x.read(self._iprot)
1466
      self._iprot.readMessageEnd()
1467
      raise x
1468
    result = getOrdersInBatch_result()
1469
    result.read(self._iprot)
1470
    self._iprot.readMessageEnd()
1471
    if result.success is not None:
1472
      return result.success
1473
    if result.ex is not None:
1474
      raise result.ex
1475
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersInBatch failed: unknown result");
1476
 
1477
  def getOrderCount(self, statuses, warehouseId):
1478
    """
1479
    Returns the count of orders with the given statuses assigned to the given warehouse.
1480
 
1481
    Parameters:
1482
     - statuses
1483
     - warehouseId
1484
    """
1485
    self.send_getOrderCount(statuses, warehouseId)
1486
    return self.recv_getOrderCount()
1487
 
1488
  def send_getOrderCount(self, statuses, warehouseId):
1489
    self._oprot.writeMessageBegin('getOrderCount', TMessageType.CALL, self._seqid)
1490
    args = getOrderCount_args()
1491
    args.statuses = statuses
1492
    args.warehouseId = warehouseId
1493
    args.write(self._oprot)
1494
    self._oprot.writeMessageEnd()
1495
    self._oprot.trans.flush()
1496
 
1497
  def recv_getOrderCount(self, ):
1498
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1499
    if mtype == TMessageType.EXCEPTION:
1500
      x = TApplicationException()
1501
      x.read(self._iprot)
1502
      self._iprot.readMessageEnd()
1503
      raise x
1504
    result = getOrderCount_result()
1505
    result.read(self._iprot)
1506
    self._iprot.readMessageEnd()
1507
    if result.success is not None:
1508
      return result.success
1509
    if result.ex is not None:
1510
      raise result.ex
1511
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderCount failed: unknown result");
1512
 
999 varun.gupt 1513
  def getOrdersByBillingDate(self, status, start_billing_date, end_billing_date, warehouse_id):
1514
    """
1132 chandransh 1515
    Returns orders within a range of their billing dates
3431 rajveer 1516
 
999 varun.gupt 1517
    Parameters:
1518
     - status
1519
     - start_billing_date
1520
     - end_billing_date
1521
     - warehouse_id
1522
    """
1523
    self.send_getOrdersByBillingDate(status, start_billing_date, end_billing_date, warehouse_id)
1524
    return self.recv_getOrdersByBillingDate()
1525
 
1526
  def send_getOrdersByBillingDate(self, status, start_billing_date, end_billing_date, warehouse_id):
1527
    self._oprot.writeMessageBegin('getOrdersByBillingDate', TMessageType.CALL, self._seqid)
1528
    args = getOrdersByBillingDate_args()
1529
    args.status = status
1530
    args.start_billing_date = start_billing_date
1531
    args.end_billing_date = end_billing_date
1532
    args.warehouse_id = warehouse_id
1533
    args.write(self._oprot)
1534
    self._oprot.writeMessageEnd()
1535
    self._oprot.trans.flush()
1536
 
1537
  def recv_getOrdersByBillingDate(self, ):
1538
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1539
    if mtype == TMessageType.EXCEPTION:
1540
      x = TApplicationException()
1541
      x.read(self._iprot)
1542
      self._iprot.readMessageEnd()
1543
      raise x
1544
    result = getOrdersByBillingDate_result()
1545
    result.read(self._iprot)
1546
    self._iprot.readMessageEnd()
3431 rajveer 1547
    if result.success is not None:
999 varun.gupt 1548
      return result.success
3431 rajveer 1549
    if result.ex is not None:
999 varun.gupt 1550
      raise result.ex
1551
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByBillingDate failed: unknown result");
1552
 
3451 chandransh 1553
  def getOrdersByShippingDate(self, fromShippingDate, toShippingDate, providerId, warehouseId, cod):
3427 chandransh 1554
    """
1555
    Returns orders for a particular provider and warehouse which were shipped between the given dates.
3451 chandransh 1556
    Returned orders comprise of COD orders if cod parameter is true. It comprises of prepaid orders otherwise.
1557
    Pass providerId and warehouseId as -1 to ignore both these parameters.
3431 rajveer 1558
 
3427 chandransh 1559
    Parameters:
1560
     - fromShippingDate
1561
     - toShippingDate
1562
     - providerId
1563
     - warehouseId
3451 chandransh 1564
     - cod
3427 chandransh 1565
    """
3451 chandransh 1566
    self.send_getOrdersByShippingDate(fromShippingDate, toShippingDate, providerId, warehouseId, cod)
3427 chandransh 1567
    return self.recv_getOrdersByShippingDate()
1568
 
3451 chandransh 1569
  def send_getOrdersByShippingDate(self, fromShippingDate, toShippingDate, providerId, warehouseId, cod):
3427 chandransh 1570
    self._oprot.writeMessageBegin('getOrdersByShippingDate', TMessageType.CALL, self._seqid)
1571
    args = getOrdersByShippingDate_args()
1572
    args.fromShippingDate = fromShippingDate
1573
    args.toShippingDate = toShippingDate
1574
    args.providerId = providerId
1575
    args.warehouseId = warehouseId
3451 chandransh 1576
    args.cod = cod
3427 chandransh 1577
    args.write(self._oprot)
1578
    self._oprot.writeMessageEnd()
1579
    self._oprot.trans.flush()
1580
 
1581
  def recv_getOrdersByShippingDate(self, ):
1582
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1583
    if mtype == TMessageType.EXCEPTION:
1584
      x = TApplicationException()
1585
      x.read(self._iprot)
1586
      self._iprot.readMessageEnd()
1587
      raise x
1588
    result = getOrdersByShippingDate_result()
1589
    result.read(self._iprot)
1590
    self._iprot.readMessageEnd()
3431 rajveer 1591
    if result.success is not None:
3427 chandransh 1592
      return result.success
3431 rajveer 1593
    if result.ex is not None:
3427 chandransh 1594
      raise result.ex
1595
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersByShippingDate failed: unknown result");
1596
 
1382 varun.gupt 1597
  def getReturnableOrdersForCustomer(self, customer_id, limit):
1598
    """
1599
    Returns order ids for orders which can be returned
3431 rajveer 1600
 
1382 varun.gupt 1601
    Parameters:
1602
     - customer_id
1603
     - limit
1604
    """
1605
    self.send_getReturnableOrdersForCustomer(customer_id, limit)
1606
    return self.recv_getReturnableOrdersForCustomer()
1607
 
1608
  def send_getReturnableOrdersForCustomer(self, customer_id, limit):
1609
    self._oprot.writeMessageBegin('getReturnableOrdersForCustomer', TMessageType.CALL, self._seqid)
1610
    args = getReturnableOrdersForCustomer_args()
1611
    args.customer_id = customer_id
1612
    args.limit = limit
1613
    args.write(self._oprot)
1614
    self._oprot.writeMessageEnd()
1615
    self._oprot.trans.flush()
1616
 
1617
  def recv_getReturnableOrdersForCustomer(self, ):
1618
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1619
    if mtype == TMessageType.EXCEPTION:
1620
      x = TApplicationException()
1621
      x.read(self._iprot)
1622
      self._iprot.readMessageEnd()
1623
      raise x
1624
    result = getReturnableOrdersForCustomer_result()
1625
    result.read(self._iprot)
1626
    self._iprot.readMessageEnd()
3431 rajveer 1627
    if result.success is not None:
1382 varun.gupt 1628
      return result.success
3431 rajveer 1629
    if result.ex is not None:
1382 varun.gupt 1630
      raise result.ex
1631
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnableOrdersForCustomer failed: unknown result");
1632
 
1633
  def getCancellableOrdersForCustomer(self, customer_id, limit):
1634
    """
1635
    Returns order ids for orders which can be cancelled
3431 rajveer 1636
 
1382 varun.gupt 1637
    Parameters:
1638
     - customer_id
1639
     - limit
1640
    """
1641
    self.send_getCancellableOrdersForCustomer(customer_id, limit)
1642
    return self.recv_getCancellableOrdersForCustomer()
1643
 
1644
  def send_getCancellableOrdersForCustomer(self, customer_id, limit):
1645
    self._oprot.writeMessageBegin('getCancellableOrdersForCustomer', TMessageType.CALL, self._seqid)
1646
    args = getCancellableOrdersForCustomer_args()
1647
    args.customer_id = customer_id
1648
    args.limit = limit
1649
    args.write(self._oprot)
1650
    self._oprot.writeMessageEnd()
1651
    self._oprot.trans.flush()
1652
 
1653
  def recv_getCancellableOrdersForCustomer(self, ):
1654
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1655
    if mtype == TMessageType.EXCEPTION:
1656
      x = TApplicationException()
1657
      x.read(self._iprot)
1658
      self._iprot.readMessageEnd()
1659
      raise x
1660
    result = getCancellableOrdersForCustomer_result()
1661
    result.read(self._iprot)
1662
    self._iprot.readMessageEnd()
3431 rajveer 1663
    if result.success is not None:
1382 varun.gupt 1664
      return result.success
3431 rajveer 1665
    if result.ex is not None:
1382 varun.gupt 1666
      raise result.ex
1667
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCancellableOrdersForCustomer failed: unknown result");
1668
 
483 rajveer 1669
  def changeOrderStatus(self, orderId, status, description):
94 ashish 1670
    """
1671
    Parameters:
483 rajveer 1672
     - orderId
1673
     - status
1674
     - description
94 ashish 1675
    """
483 rajveer 1676
    self.send_changeOrderStatus(orderId, status, description)
1677
    return self.recv_changeOrderStatus()
94 ashish 1678
 
483 rajveer 1679
  def send_changeOrderStatus(self, orderId, status, description):
1680
    self._oprot.writeMessageBegin('changeOrderStatus', TMessageType.CALL, self._seqid)
1681
    args = changeOrderStatus_args()
1682
    args.orderId = orderId
1683
    args.status = status
1684
    args.description = description
94 ashish 1685
    args.write(self._oprot)
1686
    self._oprot.writeMessageEnd()
1687
    self._oprot.trans.flush()
1688
 
483 rajveer 1689
  def recv_changeOrderStatus(self, ):
94 ashish 1690
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1691
    if mtype == TMessageType.EXCEPTION:
1692
      x = TApplicationException()
1693
      x.read(self._iprot)
1694
      self._iprot.readMessageEnd()
1695
      raise x
483 rajveer 1696
    result = changeOrderStatus_result()
94 ashish 1697
    result.read(self._iprot)
1698
    self._iprot.readMessageEnd()
3431 rajveer 1699
    if result.success is not None:
94 ashish 1700
      return result.success
3431 rajveer 1701
    if result.ex is not None:
94 ashish 1702
      raise result.ex
483 rajveer 1703
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeOrderStatus failed: unknown result");
94 ashish 1704
 
1528 ankur.sing 1705
  def getOrdersForTransaction(self, transactionId, customerId):
94 ashish 1706
    """
1528 ankur.sing 1707
    Returns list of orders for given transaction Id. Also filters based on customer Id so that
1708
    only user who owns the transaction can view its order details.
3431 rajveer 1709
 
94 ashish 1710
    Parameters:
1711
     - transactionId
1528 ankur.sing 1712
     - customerId
94 ashish 1713
    """
1528 ankur.sing 1714
    self.send_getOrdersForTransaction(transactionId, customerId)
483 rajveer 1715
    return self.recv_getOrdersForTransaction()
94 ashish 1716
 
1528 ankur.sing 1717
  def send_getOrdersForTransaction(self, transactionId, customerId):
483 rajveer 1718
    self._oprot.writeMessageBegin('getOrdersForTransaction', TMessageType.CALL, self._seqid)
1719
    args = getOrdersForTransaction_args()
94 ashish 1720
    args.transactionId = transactionId
1528 ankur.sing 1721
    args.customerId = customerId
94 ashish 1722
    args.write(self._oprot)
1723
    self._oprot.writeMessageEnd()
1724
    self._oprot.trans.flush()
1725
 
483 rajveer 1726
  def recv_getOrdersForTransaction(self, ):
94 ashish 1727
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1728
    if mtype == TMessageType.EXCEPTION:
1729
      x = TApplicationException()
1730
      x.read(self._iprot)
1731
      self._iprot.readMessageEnd()
1732
      raise x
483 rajveer 1733
    result = getOrdersForTransaction_result()
94 ashish 1734
    result.read(self._iprot)
1735
    self._iprot.readMessageEnd()
3431 rajveer 1736
    if result.success is not None:
94 ashish 1737
      return result.success
3431 rajveer 1738
    if result.ex is not None:
94 ashish 1739
      raise result.ex
483 rajveer 1740
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForTransaction failed: unknown result");
94 ashish 1741
 
3014 chandransh 1742
  def getOrdersForCustomer(self, customerId, from_date, to_date, statuses):
94 ashish 1743
    """
3014 chandransh 1744
    Returns list of orders for the given customer created between the given dates and having the given statuses.
1745
    Pass and empty list to ignore filtering on statuses.
3431 rajveer 1746
 
94 ashish 1747
    Parameters:
483 rajveer 1748
     - customerId
1749
     - from_date
1750
     - to_date
3014 chandransh 1751
     - statuses
94 ashish 1752
    """
3014 chandransh 1753
    self.send_getOrdersForCustomer(customerId, from_date, to_date, statuses)
483 rajveer 1754
    return self.recv_getOrdersForCustomer()
94 ashish 1755
 
3014 chandransh 1756
  def send_getOrdersForCustomer(self, customerId, from_date, to_date, statuses):
483 rajveer 1757
    self._oprot.writeMessageBegin('getOrdersForCustomer', TMessageType.CALL, self._seqid)
1758
    args = getOrdersForCustomer_args()
1759
    args.customerId = customerId
1760
    args.from_date = from_date
1761
    args.to_date = to_date
3014 chandransh 1762
    args.statuses = statuses
94 ashish 1763
    args.write(self._oprot)
1764
    self._oprot.writeMessageEnd()
1765
    self._oprot.trans.flush()
1766
 
483 rajveer 1767
  def recv_getOrdersForCustomer(self, ):
94 ashish 1768
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1769
    if mtype == TMessageType.EXCEPTION:
1770
      x = TApplicationException()
1771
      x.read(self._iprot)
1772
      self._iprot.readMessageEnd()
1773
      raise x
483 rajveer 1774
    result = getOrdersForCustomer_result()
94 ashish 1775
    result.read(self._iprot)
1776
    self._iprot.readMessageEnd()
3431 rajveer 1777
    if result.success is not None:
94 ashish 1778
      return result.success
3431 rajveer 1779
    if result.ex is not None:
94 ashish 1780
      raise result.ex
483 rajveer 1781
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForCustomer failed: unknown result");
94 ashish 1782
 
483 rajveer 1783
  def createOrder(self, order):
94 ashish 1784
    """
1785
    Parameters:
483 rajveer 1786
     - order
94 ashish 1787
    """
483 rajveer 1788
    self.send_createOrder(order)
1789
    return self.recv_createOrder()
94 ashish 1790
 
483 rajveer 1791
  def send_createOrder(self, order):
1792
    self._oprot.writeMessageBegin('createOrder', TMessageType.CALL, self._seqid)
1793
    args = createOrder_args()
1794
    args.order = order
94 ashish 1795
    args.write(self._oprot)
1796
    self._oprot.writeMessageEnd()
1797
    self._oprot.trans.flush()
1798
 
483 rajveer 1799
  def recv_createOrder(self, ):
94 ashish 1800
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1801
    if mtype == TMessageType.EXCEPTION:
1802
      x = TApplicationException()
1803
      x.read(self._iprot)
1804
      self._iprot.readMessageEnd()
1805
      raise x
483 rajveer 1806
    result = createOrder_result()
94 ashish 1807
    result.read(self._iprot)
1808
    self._iprot.readMessageEnd()
3431 rajveer 1809
    if result.success is not None:
94 ashish 1810
      return result.success
3431 rajveer 1811
    if result.ex is not None:
94 ashish 1812
      raise result.ex
483 rajveer 1813
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createOrder failed: unknown result");
94 ashish 1814
 
483 rajveer 1815
  def getOrder(self, id):
94 ashish 1816
    """
1817
    Parameters:
483 rajveer 1818
     - id
94 ashish 1819
    """
483 rajveer 1820
    self.send_getOrder(id)
1821
    return self.recv_getOrder()
94 ashish 1822
 
483 rajveer 1823
  def send_getOrder(self, id):
1824
    self._oprot.writeMessageBegin('getOrder', TMessageType.CALL, self._seqid)
1825
    args = getOrder_args()
1826
    args.id = id
94 ashish 1827
    args.write(self._oprot)
1828
    self._oprot.writeMessageEnd()
1829
    self._oprot.trans.flush()
1830
 
483 rajveer 1831
  def recv_getOrder(self, ):
94 ashish 1832
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1833
    if mtype == TMessageType.EXCEPTION:
1834
      x = TApplicationException()
1835
      x.read(self._iprot)
1836
      self._iprot.readMessageEnd()
1837
      raise x
483 rajveer 1838
    result = getOrder_result()
94 ashish 1839
    result.read(self._iprot)
1840
    self._iprot.readMessageEnd()
3431 rajveer 1841
    if result.success is not None:
94 ashish 1842
      return result.success
3431 rajveer 1843
    if result.ex is not None:
94 ashish 1844
      raise result.ex
483 rajveer 1845
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrder failed: unknown result");
94 ashish 1846
 
483 rajveer 1847
  def getLineItemsForOrder(self, orderId):
94 ashish 1848
    """
1849
    Parameters:
483 rajveer 1850
     - orderId
94 ashish 1851
    """
483 rajveer 1852
    self.send_getLineItemsForOrder(orderId)
1853
    return self.recv_getLineItemsForOrder()
94 ashish 1854
 
483 rajveer 1855
  def send_getLineItemsForOrder(self, orderId):
1856
    self._oprot.writeMessageBegin('getLineItemsForOrder', TMessageType.CALL, self._seqid)
1857
    args = getLineItemsForOrder_args()
1858
    args.orderId = orderId
94 ashish 1859
    args.write(self._oprot)
1860
    self._oprot.writeMessageEnd()
1861
    self._oprot.trans.flush()
1862
 
483 rajveer 1863
  def recv_getLineItemsForOrder(self, ):
94 ashish 1864
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1865
    if mtype == TMessageType.EXCEPTION:
1866
      x = TApplicationException()
1867
      x.read(self._iprot)
1868
      self._iprot.readMessageEnd()
1869
      raise x
483 rajveer 1870
    result = getLineItemsForOrder_result()
94 ashish 1871
    result.read(self._iprot)
1872
    self._iprot.readMessageEnd()
3431 rajveer 1873
    if result.success is not None:
94 ashish 1874
      return result.success
3431 rajveer 1875
    if result.ex is not None:
94 ashish 1876
      raise result.ex
483 rajveer 1877
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLineItemsForOrder failed: unknown result");
94 ashish 1878
 
4999 phani.kuma 1879
  def getOrderList(self, order_ids):
1880
    """
1881
    Parameters:
1882
     - order_ids
1883
    """
1884
    self.send_getOrderList(order_ids)
1885
    return self.recv_getOrderList()
1886
 
1887
  def send_getOrderList(self, order_ids):
1888
    self._oprot.writeMessageBegin('getOrderList', TMessageType.CALL, self._seqid)
1889
    args = getOrderList_args()
1890
    args.order_ids = order_ids
1891
    args.write(self._oprot)
1892
    self._oprot.writeMessageEnd()
1893
    self._oprot.trans.flush()
1894
 
1895
  def recv_getOrderList(self, ):
1896
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1897
    if mtype == TMessageType.EXCEPTION:
1898
      x = TApplicationException()
1899
      x.read(self._iprot)
1900
      self._iprot.readMessageEnd()
1901
      raise x
1902
    result = getOrderList_result()
1903
    result.read(self._iprot)
1904
    self._iprot.readMessageEnd()
1905
    if result.success is not None:
1906
      return result.success
1907
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderList failed: unknown result");
1908
 
5386 phani.kuma 1909
  def getOrderListForVendor(self, order_ids, vendorId):
1910
    """
1911
    Parameters:
1912
     - order_ids
1913
     - vendorId
1914
    """
1915
    self.send_getOrderListForVendor(order_ids, vendorId)
1916
    return self.recv_getOrderListForVendor()
1917
 
1918
  def send_getOrderListForVendor(self, order_ids, vendorId):
1919
    self._oprot.writeMessageBegin('getOrderListForVendor', TMessageType.CALL, self._seqid)
1920
    args = getOrderListForVendor_args()
1921
    args.order_ids = order_ids
1922
    args.vendorId = vendorId
1923
    args.write(self._oprot)
1924
    self._oprot.writeMessageEnd()
1925
    self._oprot.trans.flush()
1926
 
1927
  def recv_getOrderListForVendor(self, ):
1928
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1929
    if mtype == TMessageType.EXCEPTION:
1930
      x = TApplicationException()
1931
      x.read(self._iprot)
1932
      self._iprot.readMessageEnd()
1933
      raise x
1934
    result = getOrderListForVendor_result()
1935
    result.read(self._iprot)
1936
    self._iprot.readMessageEnd()
1937
    if result.success is not None:
1938
      return result.success
1939
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderListForVendor failed: unknown result");
1940
 
1528 ankur.sing 1941
  def getOrderForCustomer(self, orderId, customerId):
1942
    """
1943
    Returns an order for the order Id. Also checks if the order belongs to the customer whose Id is passed.
1944
    Throws exception if either order Id is invalid or order does not below to the customer whose Id is passed.
3431 rajveer 1945
 
1528 ankur.sing 1946
    Parameters:
1947
     - orderId
1948
     - customerId
1949
    """
1950
    self.send_getOrderForCustomer(orderId, customerId)
1951
    return self.recv_getOrderForCustomer()
1952
 
1953
  def send_getOrderForCustomer(self, orderId, customerId):
1954
    self._oprot.writeMessageBegin('getOrderForCustomer', TMessageType.CALL, self._seqid)
1955
    args = getOrderForCustomer_args()
1956
    args.orderId = orderId
1957
    args.customerId = customerId
1958
    args.write(self._oprot)
1959
    self._oprot.writeMessageEnd()
1960
    self._oprot.trans.flush()
1961
 
1962
  def recv_getOrderForCustomer(self, ):
1963
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1964
    if mtype == TMessageType.EXCEPTION:
1965
      x = TApplicationException()
1966
      x.read(self._iprot)
1967
      self._iprot.readMessageEnd()
1968
      raise x
1969
    result = getOrderForCustomer_result()
1970
    result.read(self._iprot)
1971
    self._iprot.readMessageEnd()
3431 rajveer 1972
    if result.success is not None:
1528 ankur.sing 1973
      return result.success
3431 rajveer 1974
    if result.ex is not None:
1528 ankur.sing 1975
      raise result.ex
1976
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderForCustomer failed: unknown result");
1977
 
4444 rajveer 1978
  def getAlerts(self, type, warehouseId, status, timestamp):
3064 chandransh 1979
    """
1980
    Parameters:
4394 rajveer 1981
     - type
4444 rajveer 1982
     - warehouseId
4394 rajveer 1983
     - status
1984
     - timestamp
3064 chandransh 1985
    """
4444 rajveer 1986
    self.send_getAlerts(type, warehouseId, status, timestamp)
3064 chandransh 1987
    return self.recv_getAlerts()
1988
 
4444 rajveer 1989
  def send_getAlerts(self, type, warehouseId, status, timestamp):
3064 chandransh 1990
    self._oprot.writeMessageBegin('getAlerts', TMessageType.CALL, self._seqid)
1991
    args = getAlerts_args()
4394 rajveer 1992
    args.type = type
4444 rajveer 1993
    args.warehouseId = warehouseId
4394 rajveer 1994
    args.status = status
1995
    args.timestamp = timestamp
3064 chandransh 1996
    args.write(self._oprot)
1997
    self._oprot.writeMessageEnd()
1998
    self._oprot.trans.flush()
1999
 
2000
  def recv_getAlerts(self, ):
2001
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2002
    if mtype == TMessageType.EXCEPTION:
2003
      x = TApplicationException()
2004
      x.read(self._iprot)
2005
      self._iprot.readMessageEnd()
2006
      raise x
2007
    result = getAlerts_result()
2008
    result.read(self._iprot)
2009
    self._iprot.readMessageEnd()
3431 rajveer 2010
    if result.success is not None:
3064 chandransh 2011
      return result.success
2012
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAlerts failed: unknown result");
2013
 
4444 rajveer 2014
  def addAlert(self, type, warehouseId, description):
3064 chandransh 2015
    """
2016
    Parameters:
2017
     - type
4444 rajveer 2018
     - warehouseId
4394 rajveer 2019
     - description
3064 chandransh 2020
    """
4444 rajveer 2021
    self.send_addAlert(type, warehouseId, description)
4394 rajveer 2022
    self.recv_addAlert()
3064 chandransh 2023
 
4444 rajveer 2024
  def send_addAlert(self, type, warehouseId, description):
4394 rajveer 2025
    self._oprot.writeMessageBegin('addAlert', TMessageType.CALL, self._seqid)
2026
    args = addAlert_args()
3064 chandransh 2027
    args.type = type
4444 rajveer 2028
    args.warehouseId = warehouseId
4394 rajveer 2029
    args.description = description
3064 chandransh 2030
    args.write(self._oprot)
2031
    self._oprot.writeMessageEnd()
2032
    self._oprot.trans.flush()
2033
 
4394 rajveer 2034
  def recv_addAlert(self, ):
3064 chandransh 2035
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2036
    if mtype == TMessageType.EXCEPTION:
2037
      x = TApplicationException()
2038
      x.read(self._iprot)
2039
      self._iprot.readMessageEnd()
2040
      raise x
4394 rajveer 2041
    result = addAlert_result()
3064 chandransh 2042
    result.read(self._iprot)
2043
    self._iprot.readMessageEnd()
2044
    return
2045
 
4444 rajveer 2046
  def markAlertsAsSeen(self, warehouseId):
2047
    """
2048
    Parameters:
2049
     - warehouseId
2050
    """
2051
    self.send_markAlertsAsSeen(warehouseId)
2052
    self.recv_markAlertsAsSeen()
2053
 
2054
  def send_markAlertsAsSeen(self, warehouseId):
2055
    self._oprot.writeMessageBegin('markAlertsAsSeen', TMessageType.CALL, self._seqid)
2056
    args = markAlertsAsSeen_args()
2057
    args.warehouseId = warehouseId
2058
    args.write(self._oprot)
2059
    self._oprot.writeMessageEnd()
2060
    self._oprot.trans.flush()
2061
 
2062
  def recv_markAlertsAsSeen(self, ):
2063
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2064
    if mtype == TMessageType.EXCEPTION:
2065
      x = TApplicationException()
2066
      x.read(self._iprot)
2067
      self._iprot.readMessageEnd()
2068
      raise x
2069
    result = markAlertsAsSeen_result()
2070
    result.read(self._iprot)
2071
    self._iprot.readMessageEnd()
2072
    return
2073
 
3064 chandransh 2074
  def getValidOrderCount(self, ):
2075
    """
2076
    Return the number of valid orders. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
2077
    """
2078
    self.send_getValidOrderCount()
2079
    return self.recv_getValidOrderCount()
2080
 
2081
  def send_getValidOrderCount(self, ):
2082
    self._oprot.writeMessageBegin('getValidOrderCount', TMessageType.CALL, self._seqid)
2083
    args = getValidOrderCount_args()
2084
    args.write(self._oprot)
2085
    self._oprot.writeMessageEnd()
2086
    self._oprot.trans.flush()
2087
 
2088
  def recv_getValidOrderCount(self, ):
2089
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2090
    if mtype == TMessageType.EXCEPTION:
2091
      x = TApplicationException()
2092
      x.read(self._iprot)
2093
      self._iprot.readMessageEnd()
2094
      raise x
2095
    result = getValidOrderCount_result()
2096
    result.read(self._iprot)
2097
    self._iprot.readMessageEnd()
3431 rajveer 2098
    if result.success is not None:
3064 chandransh 2099
      return result.success
2100
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrderCount failed: unknown result");
2101
 
2102
  def getNoOfCustomersWithSuccessfulTransaction(self, ):
2103
    """
2104
    Returns the number of distinct customers who have done successful transactions
2105
    """
2106
    self.send_getNoOfCustomersWithSuccessfulTransaction()
2107
    return self.recv_getNoOfCustomersWithSuccessfulTransaction()
2108
 
2109
  def send_getNoOfCustomersWithSuccessfulTransaction(self, ):
2110
    self._oprot.writeMessageBegin('getNoOfCustomersWithSuccessfulTransaction', TMessageType.CALL, self._seqid)
2111
    args = getNoOfCustomersWithSuccessfulTransaction_args()
2112
    args.write(self._oprot)
2113
    self._oprot.writeMessageEnd()
2114
    self._oprot.trans.flush()
2115
 
2116
  def recv_getNoOfCustomersWithSuccessfulTransaction(self, ):
2117
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2118
    if mtype == TMessageType.EXCEPTION:
2119
      x = TApplicationException()
2120
      x.read(self._iprot)
2121
      self._iprot.readMessageEnd()
2122
      raise x
2123
    result = getNoOfCustomersWithSuccessfulTransaction_result()
2124
    result.read(self._iprot)
2125
    self._iprot.readMessageEnd()
3431 rajveer 2126
    if result.success is not None:
3064 chandransh 2127
      return result.success
2128
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNoOfCustomersWithSuccessfulTransaction failed: unknown result");
2129
 
2130
  def getValidOrdersAmountRange(self, ):
2131
    """
2132
    Returns the minimum and maximum amounts of a valid order. (OrderStatus >= OrderStatus.SUBMITTED_FOR_PROCESSING)
2133
    List contains two values, first minimum amount and second maximum amount.
2134
    """
2135
    self.send_getValidOrdersAmountRange()
2136
    return self.recv_getValidOrdersAmountRange()
2137
 
2138
  def send_getValidOrdersAmountRange(self, ):
2139
    self._oprot.writeMessageBegin('getValidOrdersAmountRange', TMessageType.CALL, self._seqid)
2140
    args = getValidOrdersAmountRange_args()
2141
    args.write(self._oprot)
2142
    self._oprot.writeMessageEnd()
2143
    self._oprot.trans.flush()
2144
 
2145
  def recv_getValidOrdersAmountRange(self, ):
2146
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2147
    if mtype == TMessageType.EXCEPTION:
2148
      x = TApplicationException()
2149
      x.read(self._iprot)
2150
      self._iprot.readMessageEnd()
2151
      raise x
2152
    result = getValidOrdersAmountRange_result()
2153
    result.read(self._iprot)
2154
    self._iprot.readMessageEnd()
3431 rajveer 2155
    if result.success is not None:
3064 chandransh 2156
      return result.success
2157
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrdersAmountRange failed: unknown result");
2158
 
2159
  def getValidOrders(self, limit):
2160
    """
2161
    Returns list of Orders in descending order by Order creation date. List is restricted to limit Orders.
2162
    If limit is passed as 0, then all valid Orders are returned.
3431 rajveer 2163
 
3064 chandransh 2164
    Parameters:
2165
     - limit
2166
    """
2167
    self.send_getValidOrders(limit)
2168
    return self.recv_getValidOrders()
2169
 
2170
  def send_getValidOrders(self, limit):
2171
    self._oprot.writeMessageBegin('getValidOrders', TMessageType.CALL, self._seqid)
2172
    args = getValidOrders_args()
2173
    args.limit = limit
2174
    args.write(self._oprot)
2175
    self._oprot.writeMessageEnd()
2176
    self._oprot.trans.flush()
2177
 
2178
  def recv_getValidOrders(self, ):
2179
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2180
    if mtype == TMessageType.EXCEPTION:
2181
      x = TApplicationException()
2182
      x.read(self._iprot)
2183
      self._iprot.readMessageEnd()
2184
      raise x
2185
    result = getValidOrders_result()
2186
    result.read(self._iprot)
2187
    self._iprot.readMessageEnd()
3431 rajveer 2188
    if result.success is not None:
3064 chandransh 2189
      return result.success
2190
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getValidOrders failed: unknown result");
2191
 
1220 chandransh 2192
  def batchOrders(self, warehouseId):
2193
    """
2194
    Create a batch of all the pending orders for the given warehouse.
2195
    The returned list is orderd by created_timestamp.
2196
    If there are no pending orders, an empty list is returned.
3431 rajveer 2197
 
1220 chandransh 2198
    Parameters:
2199
     - warehouseId
2200
    """
2201
    self.send_batchOrders(warehouseId)
2202
    return self.recv_batchOrders()
2203
 
2204
  def send_batchOrders(self, warehouseId):
2205
    self._oprot.writeMessageBegin('batchOrders', TMessageType.CALL, self._seqid)
2206
    args = batchOrders_args()
2207
    args.warehouseId = warehouseId
2208
    args.write(self._oprot)
2209
    self._oprot.writeMessageEnd()
2210
    self._oprot.trans.flush()
2211
 
2212
  def recv_batchOrders(self, ):
2213
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2214
    if mtype == TMessageType.EXCEPTION:
2215
      x = TApplicationException()
2216
      x.read(self._iprot)
2217
      self._iprot.readMessageEnd()
2218
      raise x
2219
    result = batchOrders_result()
2220
    result.read(self._iprot)
2221
    self._iprot.readMessageEnd()
3431 rajveer 2222
    if result.success is not None:
1220 chandransh 2223
      return result.success
3431 rajveer 2224
    if result.ex is not None:
1220 chandransh 2225
      raise result.ex
2226
    raise TApplicationException(TApplicationException.MISSING_RESULT, "batchOrders failed: unknown result");
2227
 
1208 chandransh 2228
  def markOrderAsOutOfStock(self, orderId):
2229
    """
2230
    Mark the given order as out of stock. Throws an exception if the order with the given Id couldn't be found.
3431 rajveer 2231
 
1208 chandransh 2232
    Parameters:
2233
     - orderId
2234
    """
2235
    self.send_markOrderAsOutOfStock(orderId)
2236
    return self.recv_markOrderAsOutOfStock()
2237
 
2238
  def send_markOrderAsOutOfStock(self, orderId):
2239
    self._oprot.writeMessageBegin('markOrderAsOutOfStock', TMessageType.CALL, self._seqid)
2240
    args = markOrderAsOutOfStock_args()
2241
    args.orderId = orderId
2242
    args.write(self._oprot)
2243
    self._oprot.writeMessageEnd()
2244
    self._oprot.trans.flush()
2245
 
2246
  def recv_markOrderAsOutOfStock(self, ):
2247
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2248
    if mtype == TMessageType.EXCEPTION:
2249
      x = TApplicationException()
2250
      x.read(self._iprot)
2251
      self._iprot.readMessageEnd()
2252
      raise x
2253
    result = markOrderAsOutOfStock_result()
2254
    result.read(self._iprot)
2255
    self._iprot.readMessageEnd()
3431 rajveer 2256
    if result.success is not None:
1208 chandransh 2257
      return result.success
3431 rajveer 2258
    if result.ex is not None:
1208 chandransh 2259
      raise result.ex
2260
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderAsOutOfStock failed: unknown result");
2261
 
3064 chandransh 2262
  def verifyOrder(self, orderId):
759 chandransh 2263
    """
3064 chandransh 2264
    Marks the given order as SUBMITTED_FOR_PROCESSING and updates the verified
2265
    timestamp. It is intended to be used for COD orders but can be harmlessly
2266
    used for all other orders as well.
2267
    Throws an exception if no such order exists.
3431 rajveer 2268
 
759 chandransh 2269
    Parameters:
3064 chandransh 2270
     - orderId
759 chandransh 2271
    """
3064 chandransh 2272
    self.send_verifyOrder(orderId)
2273
    return self.recv_verifyOrder()
759 chandransh 2274
 
3064 chandransh 2275
  def send_verifyOrder(self, orderId):
2276
    self._oprot.writeMessageBegin('verifyOrder', TMessageType.CALL, self._seqid)
2277
    args = verifyOrder_args()
2278
    args.orderId = orderId
759 chandransh 2279
    args.write(self._oprot)
2280
    self._oprot.writeMessageEnd()
2281
    self._oprot.trans.flush()
2282
 
3064 chandransh 2283
  def recv_verifyOrder(self, ):
759 chandransh 2284
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2285
    if mtype == TMessageType.EXCEPTION:
2286
      x = TApplicationException()
2287
      x.read(self._iprot)
2288
      self._iprot.readMessageEnd()
2289
      raise x
3064 chandransh 2290
    result = verifyOrder_result()
759 chandransh 2291
    result.read(self._iprot)
2292
    self._iprot.readMessageEnd()
3431 rajveer 2293
    if result.success is not None:
759 chandransh 2294
      return result.success
3431 rajveer 2295
    if result.ex is not None:
759 chandransh 2296
      raise result.ex
3064 chandransh 2297
    raise TApplicationException(TApplicationException.MISSING_RESULT, "verifyOrder failed: unknown result");
759 chandransh 2298
 
3064 chandransh 2299
  def acceptOrder(self, orderId):
1113 chandransh 2300
    """
3064 chandransh 2301
    Marks the given order as ACCEPTED and updates the accepted timestamp. If the
2302
    given order is not a COD order, it also captures the payment if the same has
2303
    not been captured.
2304
    Throws an exception if no such order exists.
3431 rajveer 2305
 
1113 chandransh 2306
    Parameters:
3064 chandransh 2307
     - orderId
1113 chandransh 2308
    """
3064 chandransh 2309
    self.send_acceptOrder(orderId)
2310
    return self.recv_acceptOrder()
1113 chandransh 2311
 
3064 chandransh 2312
  def send_acceptOrder(self, orderId):
2313
    self._oprot.writeMessageBegin('acceptOrder', TMessageType.CALL, self._seqid)
2314
    args = acceptOrder_args()
2315
    args.orderId = orderId
1113 chandransh 2316
    args.write(self._oprot)
2317
    self._oprot.writeMessageEnd()
2318
    self._oprot.trans.flush()
2319
 
3064 chandransh 2320
  def recv_acceptOrder(self, ):
1113 chandransh 2321
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2322
    if mtype == TMessageType.EXCEPTION:
2323
      x = TApplicationException()
2324
      x.read(self._iprot)
2325
      self._iprot.readMessageEnd()
2326
      raise x
3064 chandransh 2327
    result = acceptOrder_result()
1113 chandransh 2328
    result.read(self._iprot)
2329
    self._iprot.readMessageEnd()
3431 rajveer 2330
    if result.success is not None:
1113 chandransh 2331
      return result.success
3431 rajveer 2332
    if result.ex is not None:
1113 chandransh 2333
      raise result.ex
3064 chandransh 2334
    raise TApplicationException(TApplicationException.MISSING_RESULT, "acceptOrder failed: unknown result");
1113 chandransh 2335
 
5110 mandeep.dh 2336
  def addBillingDetails(self, orderId, invoice_number, serialNumber, itemNumber, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize):
1132 chandransh 2337
    """
3064 chandransh 2338
    Add billing details such as the bill number and the biller to the Order.
4658 mandeep.dh 2339
    Adds jacket number, item number and Serial no. to the order. Doesn't update
4283 anupam.sin 2340
    the IMEI no. if a -1 is supplied.
2341
    Also, it generates an invoice number for the order, marks the order as
2342
    BILLED and sets the billing timestamp.
2343
    Returns false if it doesn't find the order with the given ID.
3431 rajveer 2344
 
1135 chandransh 2345
    Parameters:
3064 chandransh 2346
     - orderId
2347
     - invoice_number
4658 mandeep.dh 2348
     - serialNumber
4283 anupam.sin 2349
     - itemNumber
3064 chandransh 2350
     - billed_by
4264 rajveer 2351
     - jacketNumber
4283 anupam.sin 2352
     - billingType
5110 mandeep.dh 2353
     - fulfilmentWarehouseId
4763 rajveer 2354
     - authorize
1135 chandransh 2355
    """
5110 mandeep.dh 2356
    self.send_addBillingDetails(orderId, invoice_number, serialNumber, itemNumber, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize)
3064 chandransh 2357
    return self.recv_addBillingDetails()
1135 chandransh 2358
 
5110 mandeep.dh 2359
  def send_addBillingDetails(self, orderId, invoice_number, serialNumber, itemNumber, billed_by, jacketNumber, billingType, fulfilmentWarehouseId, authorize):
3064 chandransh 2360
    self._oprot.writeMessageBegin('addBillingDetails', TMessageType.CALL, self._seqid)
2361
    args = addBillingDetails_args()
2362
    args.orderId = orderId
2363
    args.invoice_number = invoice_number
4658 mandeep.dh 2364
    args.serialNumber = serialNumber
4283 anupam.sin 2365
    args.itemNumber = itemNumber
3064 chandransh 2366
    args.billed_by = billed_by
4264 rajveer 2367
    args.jacketNumber = jacketNumber
4283 anupam.sin 2368
    args.billingType = billingType
5110 mandeep.dh 2369
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
4763 rajveer 2370
    args.authorize = authorize
1135 chandransh 2371
    args.write(self._oprot)
2372
    self._oprot.writeMessageEnd()
2373
    self._oprot.trans.flush()
2374
 
3064 chandransh 2375
  def recv_addBillingDetails(self, ):
1135 chandransh 2376
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2377
    if mtype == TMessageType.EXCEPTION:
2378
      x = TApplicationException()
2379
      x.read(self._iprot)
2380
      self._iprot.readMessageEnd()
2381
      raise x
3064 chandransh 2382
    result = addBillingDetails_result()
1135 chandransh 2383
    result.read(self._iprot)
2384
    self._iprot.readMessageEnd()
3431 rajveer 2385
    if result.success is not None:
3064 chandransh 2386
      return result.success
3431 rajveer 2387
    if result.ex is not None:
1135 chandransh 2388
      raise result.ex
3064 chandransh 2389
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addBillingDetails failed: unknown result");
1135 chandransh 2390
 
4763 rajveer 2391
  def addInvoiceNumber(self, orderId, invoiceNumber, color):
4579 rajveer 2392
    """
2393
    Add the invoice number to the order.
2394
 
2395
    Parameters:
2396
     - orderId
2397
     - invoiceNumber
4763 rajveer 2398
     - color
4579 rajveer 2399
    """
4763 rajveer 2400
    self.send_addInvoiceNumber(orderId, invoiceNumber, color)
4579 rajveer 2401
    self.recv_addInvoiceNumber()
2402
 
4763 rajveer 2403
  def send_addInvoiceNumber(self, orderId, invoiceNumber, color):
4579 rajveer 2404
    self._oprot.writeMessageBegin('addInvoiceNumber', TMessageType.CALL, self._seqid)
2405
    args = addInvoiceNumber_args()
2406
    args.orderId = orderId
2407
    args.invoiceNumber = invoiceNumber
4763 rajveer 2408
    args.color = color
4579 rajveer 2409
    args.write(self._oprot)
2410
    self._oprot.writeMessageEnd()
2411
    self._oprot.trans.flush()
2412
 
2413
  def recv_addInvoiceNumber(self, ):
2414
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2415
    if mtype == TMessageType.EXCEPTION:
2416
      x = TApplicationException()
2417
      x.read(self._iprot)
2418
      self._iprot.readMessageEnd()
2419
      raise x
2420
    result = addInvoiceNumber_result()
2421
    result.read(self._iprot)
2422
    self._iprot.readMessageEnd()
2423
    if result.ex is not None:
2424
      raise result.ex
2425
    return
2426
 
4910 phani.kuma 2427
  def markOrdersAsShippedFromWarehouse(self, warehouseId, providerId, cod, orderIds):
1408 ankur.sing 2428
    """
3064 chandransh 2429
    Depending on the third parameter, marks either all prepaid or all cod orders BILLED by the
4910 phani.kuma 2430
    given warehouse and were picked up by the given provider as SHIPPED_FROM_WH.
3431 rajveer 2431
 
1408 ankur.sing 2432
    Parameters:
3064 chandransh 2433
     - warehouseId
1408 ankur.sing 2434
     - providerId
3064 chandransh 2435
     - cod
4910 phani.kuma 2436
     - orderIds
1408 ankur.sing 2437
    """
4910 phani.kuma 2438
    self.send_markOrdersAsShippedFromWarehouse(warehouseId, providerId, cod, orderIds)
2439
    return self.recv_markOrdersAsShippedFromWarehouse()
1408 ankur.sing 2440
 
4910 phani.kuma 2441
  def send_markOrdersAsShippedFromWarehouse(self, warehouseId, providerId, cod, orderIds):
2442
    self._oprot.writeMessageBegin('markOrdersAsShippedFromWarehouse', TMessageType.CALL, self._seqid)
2443
    args = markOrdersAsShippedFromWarehouse_args()
3064 chandransh 2444
    args.warehouseId = warehouseId
1408 ankur.sing 2445
    args.providerId = providerId
3064 chandransh 2446
    args.cod = cod
4910 phani.kuma 2447
    args.orderIds = orderIds
1408 ankur.sing 2448
    args.write(self._oprot)
2449
    self._oprot.writeMessageEnd()
2450
    self._oprot.trans.flush()
2451
 
4910 phani.kuma 2452
  def recv_markOrdersAsShippedFromWarehouse(self, ):
1408 ankur.sing 2453
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2454
    if mtype == TMessageType.EXCEPTION:
2455
      x = TApplicationException()
2456
      x.read(self._iprot)
2457
      self._iprot.readMessageEnd()
2458
      raise x
4910 phani.kuma 2459
    result = markOrdersAsShippedFromWarehouse_result()
1408 ankur.sing 2460
    result.read(self._iprot)
2461
    self._iprot.readMessageEnd()
3431 rajveer 2462
    if result.success is not None:
1408 ankur.sing 2463
      return result.success
3431 rajveer 2464
    if result.ex is not None:
3064 chandransh 2465
      raise result.ex
4910 phani.kuma 2466
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsShippedFromWarehouse failed: unknown result");
1408 ankur.sing 2467
 
4910 phani.kuma 2468
  def markOrdersAsPickedUp(self, providerId, pickupDetails):
4410 rajveer 2469
    """
4910 phani.kuma 2470
    Marks all SHIPPED_FROM_WH orders of the previous day for a provider as SHIPPED_TO_LOGISTICS.
2471
    Raises an exception if we encounter report for an AWB number that we did not ship.
4410 rajveer 2472
 
2473
    Parameters:
2474
     - providerId
4910 phani.kuma 2475
     - pickupDetails
4410 rajveer 2476
    """
4910 phani.kuma 2477
    self.send_markOrdersAsPickedUp(providerId, pickupDetails)
2478
    self.recv_markOrdersAsPickedUp()
4410 rajveer 2479
 
4910 phani.kuma 2480
  def send_markOrdersAsPickedUp(self, providerId, pickupDetails):
2481
    self._oprot.writeMessageBegin('markOrdersAsPickedUp', TMessageType.CALL, self._seqid)
2482
    args = markOrdersAsPickedUp_args()
4410 rajveer 2483
    args.providerId = providerId
4910 phani.kuma 2484
    args.pickupDetails = pickupDetails
4410 rajveer 2485
    args.write(self._oprot)
2486
    self._oprot.writeMessageEnd()
2487
    self._oprot.trans.flush()
2488
 
4910 phani.kuma 2489
  def recv_markOrdersAsPickedUp(self, ):
4410 rajveer 2490
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2491
    if mtype == TMessageType.EXCEPTION:
2492
      x = TApplicationException()
2493
      x.read(self._iprot)
2494
      self._iprot.readMessageEnd()
2495
      raise x
4910 phani.kuma 2496
    result = markOrdersAsPickedUp_result()
4410 rajveer 2497
    result.read(self._iprot)
2498
    self._iprot.readMessageEnd()
2499
    if result.ex is not None:
2500
      raise result.ex
4910 phani.kuma 2501
    return
4410 rajveer 2502
 
4910 phani.kuma 2503
  def getOrdersNotPickedUp(self, providerId):
94 ashish 2504
    """
3064 chandransh 2505
    Returns a list of orders that were shipped from warehouse but did not appear in the pick-up report.
3431 rajveer 2506
 
94 ashish 2507
    Parameters:
3064 chandransh 2508
     - providerId
304 ashish 2509
    """
4910 phani.kuma 2510
    self.send_getOrdersNotPickedUp(providerId)
2511
    return self.recv_getOrdersNotPickedUp()
94 ashish 2512
 
4910 phani.kuma 2513
  def send_getOrdersNotPickedUp(self, providerId):
2514
    self._oprot.writeMessageBegin('getOrdersNotPickedUp', TMessageType.CALL, self._seqid)
2515
    args = getOrdersNotPickedUp_args()
3064 chandransh 2516
    args.providerId = providerId
304 ashish 2517
    args.write(self._oprot)
2518
    self._oprot.writeMessageEnd()
2519
    self._oprot.trans.flush()
2520
 
4910 phani.kuma 2521
  def recv_getOrdersNotPickedUp(self, ):
304 ashish 2522
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2523
    if mtype == TMessageType.EXCEPTION:
2524
      x = TApplicationException()
2525
      x.read(self._iprot)
2526
      self._iprot.readMessageEnd()
2527
      raise x
4910 phani.kuma 2528
    result = getOrdersNotPickedUp_result()
304 ashish 2529
    result.read(self._iprot)
2530
    self._iprot.readMessageEnd()
3431 rajveer 2531
    if result.success is not None:
304 ashish 2532
      return result.success
4910 phani.kuma 2533
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersNotPickedUp failed: unknown result");
304 ashish 2534
 
3064 chandransh 2535
  def markOrdersAsDelivered(self, providerId, deliveredOrders):
304 ashish 2536
    """
3064 chandransh 2537
    Marks all orders with AWBs in the given map as delivered. Also sets the delivery timestamp and
2538
    the name of the receiver.
2539
    Raises an exception if we encounter report for an AWB number that we did not ship.
3431 rajveer 2540
 
304 ashish 2541
    Parameters:
3064 chandransh 2542
     - providerId
2543
     - deliveredOrders
304 ashish 2544
    """
3064 chandransh 2545
    self.send_markOrdersAsDelivered(providerId, deliveredOrders)
2546
    self.recv_markOrdersAsDelivered()
304 ashish 2547
 
3064 chandransh 2548
  def send_markOrdersAsDelivered(self, providerId, deliveredOrders):
2549
    self._oprot.writeMessageBegin('markOrdersAsDelivered', TMessageType.CALL, self._seqid)
2550
    args = markOrdersAsDelivered_args()
2551
    args.providerId = providerId
2552
    args.deliveredOrders = deliveredOrders
304 ashish 2553
    args.write(self._oprot)
2554
    self._oprot.writeMessageEnd()
2555
    self._oprot.trans.flush()
2556
 
3064 chandransh 2557
  def recv_markOrdersAsDelivered(self, ):
304 ashish 2558
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2559
    if mtype == TMessageType.EXCEPTION:
2560
      x = TApplicationException()
2561
      x.read(self._iprot)
2562
      self._iprot.readMessageEnd()
2563
      raise x
3064 chandransh 2564
    result = markOrdersAsDelivered_result()
304 ashish 2565
    result.read(self._iprot)
2566
    self._iprot.readMessageEnd()
3431 rajveer 2567
    if result.ex is not None:
3064 chandransh 2568
      raise result.ex
304 ashish 2569
    return
2570
 
4910 phani.kuma 2571
  def markAsRTOrders(self, providerId, returnedOrders):
1596 ankur.sing 2572
    """
4910 phani.kuma 2573
    Mark all orders with AWBs in the given map as RTO. Also sets the delivery timestamp.
3064 chandransh 2574
    Raises an exception if we encounter report for an AWB number that we did not ship.
3431 rajveer 2575
 
3064 chandransh 2576
    Parameters:
2577
     - providerId
2578
     - returnedOrders
1596 ankur.sing 2579
    """
4910 phani.kuma 2580
    self.send_markAsRTOrders(providerId, returnedOrders)
2581
    self.recv_markAsRTOrders()
304 ashish 2582
 
4910 phani.kuma 2583
  def send_markAsRTOrders(self, providerId, returnedOrders):
2584
    self._oprot.writeMessageBegin('markAsRTOrders', TMessageType.CALL, self._seqid)
2585
    args = markAsRTOrders_args()
3064 chandransh 2586
    args.providerId = providerId
2587
    args.returnedOrders = returnedOrders
1596 ankur.sing 2588
    args.write(self._oprot)
2589
    self._oprot.writeMessageEnd()
2590
    self._oprot.trans.flush()
2591
 
4910 phani.kuma 2592
  def recv_markAsRTOrders(self, ):
1596 ankur.sing 2593
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2594
    if mtype == TMessageType.EXCEPTION:
2595
      x = TApplicationException()
2596
      x.read(self._iprot)
2597
      self._iprot.readMessageEnd()
2598
      raise x
4910 phani.kuma 2599
    result = markAsRTOrders_result()
1596 ankur.sing 2600
    result.read(self._iprot)
2601
    self._iprot.readMessageEnd()
3431 rajveer 2602
    if result.ex is not None:
3064 chandransh 2603
      raise result.ex
2604
    return
1596 ankur.sing 2605
 
4910 phani.kuma 2606
  def getRTOrders(self, providerId):
2607
    """
2608
    Returns a list of orders that were returned by courier.
2609
 
2610
    Parameters:
2611
     - providerId
2612
    """
2613
    self.send_getRTOrders(providerId)
2614
    return self.recv_getRTOrders()
2615
 
2616
  def send_getRTOrders(self, providerId):
2617
    self._oprot.writeMessageBegin('getRTOrders', TMessageType.CALL, self._seqid)
2618
    args = getRTOrders_args()
2619
    args.providerId = providerId
2620
    args.write(self._oprot)
2621
    self._oprot.writeMessageEnd()
2622
    self._oprot.trans.flush()
2623
 
2624
  def recv_getRTOrders(self, ):
2625
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2626
    if mtype == TMessageType.EXCEPTION:
2627
      x = TApplicationException()
2628
      x.read(self._iprot)
2629
      self._iprot.readMessageEnd()
2630
      raise x
2631
    result = getRTOrders_result()
2632
    result.read(self._iprot)
2633
    self._iprot.readMessageEnd()
2634
    if result.success is not None:
2635
      return result.success
2636
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRTOrders failed: unknown result");
2637
 
3064 chandransh 2638
  def updateNonDeliveryReason(self, providerId, undeliveredOrders):
1627 ankur.sing 2639
    """
3064 chandransh 2640
    Update the status description of orders whose AWB numbers are keys of the Map.
3431 rajveer 2641
 
3064 chandransh 2642
    Parameters:
2643
     - providerId
2644
     - undeliveredOrders
1627 ankur.sing 2645
    """
3064 chandransh 2646
    self.send_updateNonDeliveryReason(providerId, undeliveredOrders)
4910 phani.kuma 2647
    self.recv_updateNonDeliveryReason()
1596 ankur.sing 2648
 
3064 chandransh 2649
  def send_updateNonDeliveryReason(self, providerId, undeliveredOrders):
2650
    self._oprot.writeMessageBegin('updateNonDeliveryReason', TMessageType.CALL, self._seqid)
2651
    args = updateNonDeliveryReason_args()
2652
    args.providerId = providerId
2653
    args.undeliveredOrders = undeliveredOrders
1627 ankur.sing 2654
    args.write(self._oprot)
2655
    self._oprot.writeMessageEnd()
2656
    self._oprot.trans.flush()
2657
 
3064 chandransh 2658
  def recv_updateNonDeliveryReason(self, ):
1627 ankur.sing 2659
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2660
    if mtype == TMessageType.EXCEPTION:
2661
      x = TApplicationException()
2662
      x.read(self._iprot)
2663
      self._iprot.readMessageEnd()
2664
      raise x
3064 chandransh 2665
    result = updateNonDeliveryReason_result()
1627 ankur.sing 2666
    result.read(self._iprot)
2667
    self._iprot.readMessageEnd()
4910 phani.kuma 2668
    if result.ex is not None:
2669
      raise result.ex
2670
    return
2671
 
2672
  def getNonDeliveredOrdersbyCourier(self, providerId):
2673
    """
2674
    Returns a list of orders that were picked up or shipped four days ago but did not get delivered.
2675
 
2676
    Parameters:
2677
     - providerId
2678
    """
2679
    self.send_getNonDeliveredOrdersbyCourier(providerId)
2680
    return self.recv_getNonDeliveredOrdersbyCourier()
2681
 
2682
  def send_getNonDeliveredOrdersbyCourier(self, providerId):
2683
    self._oprot.writeMessageBegin('getNonDeliveredOrdersbyCourier', TMessageType.CALL, self._seqid)
2684
    args = getNonDeliveredOrdersbyCourier_args()
2685
    args.providerId = providerId
2686
    args.write(self._oprot)
2687
    self._oprot.writeMessageEnd()
2688
    self._oprot.trans.flush()
2689
 
2690
  def recv_getNonDeliveredOrdersbyCourier(self, ):
2691
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2692
    if mtype == TMessageType.EXCEPTION:
2693
      x = TApplicationException()
2694
      x.read(self._iprot)
2695
      self._iprot.readMessageEnd()
2696
      raise x
2697
    result = getNonDeliveredOrdersbyCourier_result()
2698
    result.read(self._iprot)
2699
    self._iprot.readMessageEnd()
4581 phani.kuma 2700
    if result.success is not None:
2701
      return result.success
4910 phani.kuma 2702
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonDeliveredOrdersbyCourier failed: unknown result");
2703
 
2704
  def markOrdersAsLocalConnected(self, providerId, local_connected_orders):
2705
    """
2706
    Mark all orders with AWBs in the given map as local connected. Also sets the local connected timestamp.
2707
 
2708
    Parameters:
2709
     - providerId
2710
     - local_connected_orders
2711
    """
2712
    self.send_markOrdersAsLocalConnected(providerId, local_connected_orders)
2713
    self.recv_markOrdersAsLocalConnected()
2714
 
2715
  def send_markOrdersAsLocalConnected(self, providerId, local_connected_orders):
2716
    self._oprot.writeMessageBegin('markOrdersAsLocalConnected', TMessageType.CALL, self._seqid)
2717
    args = markOrdersAsLocalConnected_args()
2718
    args.providerId = providerId
2719
    args.local_connected_orders = local_connected_orders
2720
    args.write(self._oprot)
2721
    self._oprot.writeMessageEnd()
2722
    self._oprot.trans.flush()
2723
 
2724
  def recv_markOrdersAsLocalConnected(self, ):
2725
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2726
    if mtype == TMessageType.EXCEPTION:
2727
      x = TApplicationException()
2728
      x.read(self._iprot)
2729
      self._iprot.readMessageEnd()
2730
      raise x
2731
    result = markOrdersAsLocalConnected_result()
2732
    result.read(self._iprot)
2733
    self._iprot.readMessageEnd()
3431 rajveer 2734
    if result.ex is not None:
3064 chandransh 2735
      raise result.ex
4910 phani.kuma 2736
    return
1627 ankur.sing 2737
 
4910 phani.kuma 2738
  def getOrdersNotLocalConnected(self, providerId):
2739
    """
2740
    Returns a list of orders that were picked up or shipped but pending local connection.
2741
 
2742
    Parameters:
2743
     - providerId
2744
    """
2745
    self.send_getOrdersNotLocalConnected(providerId)
2746
    return self.recv_getOrdersNotLocalConnected()
2747
 
2748
  def send_getOrdersNotLocalConnected(self, providerId):
2749
    self._oprot.writeMessageBegin('getOrdersNotLocalConnected', TMessageType.CALL, self._seqid)
2750
    args = getOrdersNotLocalConnected_args()
2751
    args.providerId = providerId
2752
    args.write(self._oprot)
2753
    self._oprot.writeMessageEnd()
2754
    self._oprot.trans.flush()
2755
 
2756
  def recv_getOrdersNotLocalConnected(self, ):
2757
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2758
    if mtype == TMessageType.EXCEPTION:
2759
      x = TApplicationException()
2760
      x.read(self._iprot)
2761
      self._iprot.readMessageEnd()
2762
      raise x
2763
    result = getOrdersNotLocalConnected_result()
2764
    result.read(self._iprot)
2765
    self._iprot.readMessageEnd()
2766
    if result.success is not None:
2767
      return result.success
2768
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersNotLocalConnected failed: unknown result");
2769
 
2770
  def markOrdersAsDestinationCityReached(self, providerId, destination_city_reached_orders):
2771
    """
2772
    Mark all orders with AWBs in the given map as reached destination city. Also sets the reached destination timestamp.
2773
 
2774
    Parameters:
2775
     - providerId
2776
     - destination_city_reached_orders
2777
    """
2778
    self.send_markOrdersAsDestinationCityReached(providerId, destination_city_reached_orders)
2779
    self.recv_markOrdersAsDestinationCityReached()
2780
 
2781
  def send_markOrdersAsDestinationCityReached(self, providerId, destination_city_reached_orders):
2782
    self._oprot.writeMessageBegin('markOrdersAsDestinationCityReached', TMessageType.CALL, self._seqid)
2783
    args = markOrdersAsDestinationCityReached_args()
2784
    args.providerId = providerId
2785
    args.destination_city_reached_orders = destination_city_reached_orders
2786
    args.write(self._oprot)
2787
    self._oprot.writeMessageEnd()
2788
    self._oprot.trans.flush()
2789
 
2790
  def recv_markOrdersAsDestinationCityReached(self, ):
2791
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2792
    if mtype == TMessageType.EXCEPTION:
2793
      x = TApplicationException()
2794
      x.read(self._iprot)
2795
      self._iprot.readMessageEnd()
2796
      raise x
2797
    result = markOrdersAsDestinationCityReached_result()
2798
    result.read(self._iprot)
2799
    self._iprot.readMessageEnd()
2800
    if result.ex is not None:
2801
      raise result.ex
2802
    return
2803
 
2804
  def markOrdersAsFirstDeliveryAttempted(self, providerId, first_atdl_orders):
2805
    """
2806
    Mark all orders with AWBs in the given map as first delivery attempt made. Also sets the first delivery attempted timestamp.
2807
 
2808
    Parameters:
2809
     - providerId
2810
     - first_atdl_orders
2811
    """
2812
    self.send_markOrdersAsFirstDeliveryAttempted(providerId, first_atdl_orders)
2813
    self.recv_markOrdersAsFirstDeliveryAttempted()
2814
 
2815
  def send_markOrdersAsFirstDeliveryAttempted(self, providerId, first_atdl_orders):
2816
    self._oprot.writeMessageBegin('markOrdersAsFirstDeliveryAttempted', TMessageType.CALL, self._seqid)
2817
    args = markOrdersAsFirstDeliveryAttempted_args()
2818
    args.providerId = providerId
2819
    args.first_atdl_orders = first_atdl_orders
2820
    args.write(self._oprot)
2821
    self._oprot.writeMessageEnd()
2822
    self._oprot.trans.flush()
2823
 
2824
  def recv_markOrdersAsFirstDeliveryAttempted(self, ):
2825
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2826
    if mtype == TMessageType.EXCEPTION:
2827
      x = TApplicationException()
2828
      x.read(self._iprot)
2829
      self._iprot.readMessageEnd()
2830
      raise x
2831
    result = markOrdersAsFirstDeliveryAttempted_result()
2832
    result.read(self._iprot)
2833
    self._iprot.readMessageEnd()
2834
    if result.ex is not None:
2835
      raise result.ex
2836
    return
2837
 
3064 chandransh 2838
  def getUndeliveredOrders(self, providerId, warehouseId):
1627 ankur.sing 2839
    """
3064 chandransh 2840
    Returns the list of orders whose delivery time has passed but have not been
2841
    delivered yet for the given provider and warehouse. To get a complete list of
2842
    undelivered orders, pass them as -1.
2843
    Returns an empty list if no such orders exist.
3431 rajveer 2844
 
1886 ankur.sing 2845
    Parameters:
3064 chandransh 2846
     - providerId
2847
     - warehouseId
1886 ankur.sing 2848
    """
3064 chandransh 2849
    self.send_getUndeliveredOrders(providerId, warehouseId)
2850
    return self.recv_getUndeliveredOrders()
1627 ankur.sing 2851
 
3064 chandransh 2852
  def send_getUndeliveredOrders(self, providerId, warehouseId):
2853
    self._oprot.writeMessageBegin('getUndeliveredOrders', TMessageType.CALL, self._seqid)
2854
    args = getUndeliveredOrders_args()
2855
    args.providerId = providerId
2856
    args.warehouseId = warehouseId
1886 ankur.sing 2857
    args.write(self._oprot)
2858
    self._oprot.writeMessageEnd()
2859
    self._oprot.trans.flush()
2860
 
3064 chandransh 2861
  def recv_getUndeliveredOrders(self, ):
1886 ankur.sing 2862
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2863
    if mtype == TMessageType.EXCEPTION:
2864
      x = TApplicationException()
2865
      x.read(self._iprot)
2866
      self._iprot.readMessageEnd()
2867
      raise x
3064 chandransh 2868
    result = getUndeliveredOrders_result()
1886 ankur.sing 2869
    result.read(self._iprot)
2870
    self._iprot.readMessageEnd()
3431 rajveer 2871
    if result.success is not None:
1886 ankur.sing 2872
      return result.success
3064 chandransh 2873
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUndeliveredOrders failed: unknown result");
1886 ankur.sing 2874
 
4783 phani.kuma 2875
  def getUndeliveredOrdersExpectedDeliveryDateNotMet(self, ):
2876
    """
2877
    Returns the list of orders whose expected delivery date has passed but have not been
2878
    delivered yet.
2879
    Returns an empty list if no such orders exist.
2880
    """
2881
    self.send_getUndeliveredOrdersExpectedDeliveryDateNotMet()
2882
    return self.recv_getUndeliveredOrdersExpectedDeliveryDateNotMet()
2883
 
2884
  def send_getUndeliveredOrdersExpectedDeliveryDateNotMet(self, ):
2885
    self._oprot.writeMessageBegin('getUndeliveredOrdersExpectedDeliveryDateNotMet', TMessageType.CALL, self._seqid)
2886
    args = getUndeliveredOrdersExpectedDeliveryDateNotMet_args()
2887
    args.write(self._oprot)
2888
    self._oprot.writeMessageEnd()
2889
    self._oprot.trans.flush()
2890
 
2891
  def recv_getUndeliveredOrdersExpectedDeliveryDateNotMet(self, ):
2892
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2893
    if mtype == TMessageType.EXCEPTION:
2894
      x = TApplicationException()
2895
      x.read(self._iprot)
2896
      self._iprot.readMessageEnd()
2897
      raise x
2898
    result = getUndeliveredOrdersExpectedDeliveryDateNotMet_result()
2899
    result.read(self._iprot)
2900
    self._iprot.readMessageEnd()
2901
    if result.success is not None:
2902
      return result.success
2903
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUndeliveredOrdersExpectedDeliveryDateNotMet failed: unknown result");
2904
 
2536 chandransh 2905
  def toggleDOAFlag(self, orderId):
2906
    """
2907
    Toggle the DOA flag of an order. This should be used to flag an order for follow-up and unflag it when the follow-up is complete.
2908
    Returns the final flag status.
2909
    Throws an exception if the order with the given id couldn't be found or if the order status is not DELVIERY_SUCCESS.
3431 rajveer 2910
 
2536 chandransh 2911
    Parameters:
2912
     - orderId
2913
    """
2914
    self.send_toggleDOAFlag(orderId)
2915
    return self.recv_toggleDOAFlag()
1886 ankur.sing 2916
 
2536 chandransh 2917
  def send_toggleDOAFlag(self, orderId):
2918
    self._oprot.writeMessageBegin('toggleDOAFlag', TMessageType.CALL, self._seqid)
2919
    args = toggleDOAFlag_args()
2920
    args.orderId = orderId
2921
    args.write(self._oprot)
2922
    self._oprot.writeMessageEnd()
2923
    self._oprot.trans.flush()
2924
 
2925
  def recv_toggleDOAFlag(self, ):
2926
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2927
    if mtype == TMessageType.EXCEPTION:
2928
      x = TApplicationException()
2929
      x.read(self._iprot)
2930
      self._iprot.readMessageEnd()
2931
      raise x
2932
    result = toggleDOAFlag_result()
2933
    result.read(self._iprot)
2934
    self._iprot.readMessageEnd()
3431 rajveer 2935
    if result.success is not None:
2536 chandransh 2936
      return result.success
3431 rajveer 2937
    if result.ex is not None:
2536 chandransh 2938
      raise result.ex
2939
    raise TApplicationException(TApplicationException.MISSING_RESULT, "toggleDOAFlag failed: unknown result");
2940
 
4712 rajveer 2941
  def markOrderAsDelivered(self, orderId, deliveryTimestamp, receiver):
2942
    """
2943
    Parameters:
2944
     - orderId
2945
     - deliveryTimestamp
2946
     - receiver
2947
    """
2948
    self.send_markOrderAsDelivered(orderId, deliveryTimestamp, receiver)
2949
    self.recv_markOrderAsDelivered()
2950
 
2951
  def send_markOrderAsDelivered(self, orderId, deliveryTimestamp, receiver):
2952
    self._oprot.writeMessageBegin('markOrderAsDelivered', TMessageType.CALL, self._seqid)
2953
    args = markOrderAsDelivered_args()
2954
    args.orderId = orderId
2955
    args.deliveryTimestamp = deliveryTimestamp
2956
    args.receiver = receiver
2957
    args.write(self._oprot)
2958
    self._oprot.writeMessageEnd()
2959
    self._oprot.trans.flush()
2960
 
2961
  def recv_markOrderAsDelivered(self, ):
2962
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2963
    if mtype == TMessageType.EXCEPTION:
2964
      x = TApplicationException()
2965
      x.read(self._iprot)
2966
      self._iprot.readMessageEnd()
2967
      raise x
2968
    result = markOrderAsDelivered_result()
2969
    result.read(self._iprot)
2970
    self._iprot.readMessageEnd()
2971
    if result.ex is not None:
2972
      raise result.ex
2973
    return
2974
 
4454 rajveer 2975
  def markOrderDoaRequestReceived(self, orderId):
2976
    """
2977
    Once user raise the request for a DOA, order status will be changed from DELVIERY_SUCCESS to DOA_REQUEST_RECEIVED
2978
 
2979
    Parameters:
2980
     - orderId
2981
    """
2982
    self.send_markOrderDoaRequestReceived(orderId)
2983
    return self.recv_markOrderDoaRequestReceived()
2984
 
2985
  def send_markOrderDoaRequestReceived(self, orderId):
2986
    self._oprot.writeMessageBegin('markOrderDoaRequestReceived', TMessageType.CALL, self._seqid)
2987
    args = markOrderDoaRequestReceived_args()
2988
    args.orderId = orderId
2989
    args.write(self._oprot)
2990
    self._oprot.writeMessageEnd()
2991
    self._oprot.trans.flush()
2992
 
2993
  def recv_markOrderDoaRequestReceived(self, ):
2994
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
2995
    if mtype == TMessageType.EXCEPTION:
2996
      x = TApplicationException()
2997
      x.read(self._iprot)
2998
      self._iprot.readMessageEnd()
2999
      raise x
3000
    result = markOrderDoaRequestReceived_result()
3001
    result.read(self._iprot)
3002
    self._iprot.readMessageEnd()
3003
    if result.success is not None:
3004
      return result.success
3005
    if result.ex is not None:
3006
      raise result.ex
3007
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderDoaRequestReceived failed: unknown result");
3008
 
3009
  def markOrderDoaRequestAuthorized(self, orderId, isAuthorized):
3010
    """
3011
    CRM person can authorize or deny the request reised by customer. If he authorizes order will change from DOA_REQUEST_RECEIVED
3012
    to DOA_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
3013
 
3014
    Parameters:
3015
     - orderId
3016
     - isAuthorized
3017
    """
3018
    self.send_markOrderDoaRequestAuthorized(orderId, isAuthorized)
3019
    return self.recv_markOrderDoaRequestAuthorized()
3020
 
3021
  def send_markOrderDoaRequestAuthorized(self, orderId, isAuthorized):
3022
    self._oprot.writeMessageBegin('markOrderDoaRequestAuthorized', TMessageType.CALL, self._seqid)
3023
    args = markOrderDoaRequestAuthorized_args()
3024
    args.orderId = orderId
3025
    args.isAuthorized = isAuthorized
3026
    args.write(self._oprot)
3027
    self._oprot.writeMessageEnd()
3028
    self._oprot.trans.flush()
3029
 
3030
  def recv_markOrderDoaRequestAuthorized(self, ):
3031
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3032
    if mtype == TMessageType.EXCEPTION:
3033
      x = TApplicationException()
3034
      x.read(self._iprot)
3035
      self._iprot.readMessageEnd()
3036
      raise x
3037
    result = markOrderDoaRequestAuthorized_result()
3038
    result.read(self._iprot)
3039
    self._iprot.readMessageEnd()
3040
    if result.success is not None:
3041
      return result.success
3042
    if result.ex is not None:
3043
      raise result.ex
3044
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderDoaRequestAuthorized failed: unknown result");
3045
 
4488 rajveer 3046
  def markOrderReturnRequestReceived(self, orderId):
3047
    """
3048
    Once user raise the request for a RET, order status will be changed from DELVIERY_SUCCESS to RET_REQUEST_RECEIVED
3049
 
3050
    Parameters:
3051
     - orderId
3052
    """
3053
    self.send_markOrderReturnRequestReceived(orderId)
3054
    return self.recv_markOrderReturnRequestReceived()
3055
 
3056
  def send_markOrderReturnRequestReceived(self, orderId):
3057
    self._oprot.writeMessageBegin('markOrderReturnRequestReceived', TMessageType.CALL, self._seqid)
3058
    args = markOrderReturnRequestReceived_args()
3059
    args.orderId = orderId
3060
    args.write(self._oprot)
3061
    self._oprot.writeMessageEnd()
3062
    self._oprot.trans.flush()
3063
 
3064
  def recv_markOrderReturnRequestReceived(self, ):
3065
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3066
    if mtype == TMessageType.EXCEPTION:
3067
      x = TApplicationException()
3068
      x.read(self._iprot)
3069
      self._iprot.readMessageEnd()
3070
      raise x
3071
    result = markOrderReturnRequestReceived_result()
3072
    result.read(self._iprot)
3073
    self._iprot.readMessageEnd()
3074
    if result.success is not None:
3075
      return result.success
3076
    if result.ex is not None:
3077
      raise result.ex
3078
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderReturnRequestReceived failed: unknown result");
3079
 
3080
  def markOrderReturnRequestAuthorized(self, orderId, isAuthorized):
3081
    """
3082
    CRM person can authorize or deny the request reised by customer. If he authorizes order will change from RET_REQUEST_RECEIVED
3083
    to RET_REQUEST_AUTHORIZED. If he denies, status will be changed back to DELVIERY_SUCCESS.
3084
 
3085
    Parameters:
3086
     - orderId
3087
     - isAuthorized
3088
    """
3089
    self.send_markOrderReturnRequestAuthorized(orderId, isAuthorized)
3090
    return self.recv_markOrderReturnRequestAuthorized()
3091
 
3092
  def send_markOrderReturnRequestAuthorized(self, orderId, isAuthorized):
3093
    self._oprot.writeMessageBegin('markOrderReturnRequestAuthorized', TMessageType.CALL, self._seqid)
3094
    args = markOrderReturnRequestAuthorized_args()
3095
    args.orderId = orderId
3096
    args.isAuthorized = isAuthorized
3097
    args.write(self._oprot)
3098
    self._oprot.writeMessageEnd()
3099
    self._oprot.trans.flush()
3100
 
3101
  def recv_markOrderReturnRequestAuthorized(self, ):
3102
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3103
    if mtype == TMessageType.EXCEPTION:
3104
      x = TApplicationException()
3105
      x.read(self._iprot)
3106
      self._iprot.readMessageEnd()
3107
      raise x
3108
    result = markOrderReturnRequestAuthorized_result()
3109
    result.read(self._iprot)
3110
    self._iprot.readMessageEnd()
3111
    if result.success is not None:
3112
      return result.success
3113
    if result.ex is not None:
3114
      raise result.ex
3115
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderReturnRequestAuthorized failed: unknown result");
3116
 
4579 rajveer 3117
  def requestPickupNumber(self, orderId, providerId):
2536 chandransh 3118
    """
3119
    Sends out an email to the account manager of the original courier provider used to ship the order.
4452 rajveer 3120
    If the order status was DELIVERY_SUCCESS, it is changed to be DOA_PICKUP_REQUEST_RAISED.
3121
    If the order status was DOA_PICKUP_REQUEST_RAISED, it is left unchanged.
2536 chandransh 3122
    For any other status, it returns false.
3123
    Throws an exception if the order with the given id couldn't be found.
3431 rajveer 3124
 
2536 chandransh 3125
    Parameters:
3126
     - orderId
4579 rajveer 3127
     - providerId
2536 chandransh 3128
    """
4579 rajveer 3129
    self.send_requestPickupNumber(orderId, providerId)
2536 chandransh 3130
    return self.recv_requestPickupNumber()
3131
 
4579 rajveer 3132
  def send_requestPickupNumber(self, orderId, providerId):
2536 chandransh 3133
    self._oprot.writeMessageBegin('requestPickupNumber', TMessageType.CALL, self._seqid)
3134
    args = requestPickupNumber_args()
3135
    args.orderId = orderId
4579 rajveer 3136
    args.providerId = providerId
2536 chandransh 3137
    args.write(self._oprot)
3138
    self._oprot.writeMessageEnd()
3139
    self._oprot.trans.flush()
3140
 
3141
  def recv_requestPickupNumber(self, ):
3142
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3143
    if mtype == TMessageType.EXCEPTION:
3144
      x = TApplicationException()
3145
      x.read(self._iprot)
3146
      self._iprot.readMessageEnd()
3147
      raise x
3148
    result = requestPickupNumber_result()
3149
    result.read(self._iprot)
3150
    self._iprot.readMessageEnd()
3431 rajveer 3151
    if result.success is not None:
2536 chandransh 3152
      return result.success
3431 rajveer 3153
    if result.ex is not None:
2536 chandransh 3154
      raise result.ex
3155
    raise TApplicationException(TApplicationException.MISSING_RESULT, "requestPickupNumber failed: unknown result");
3156
 
4602 rajveer 3157
  def authorizePickup(self, orderId, pickupNumber, providerId):
2536 chandransh 3158
    """
4452 rajveer 3159
    If the order status is DOA_PICKUP_REQUEST_RAISED, it does the following
2536 chandransh 3160
    	1. Sends out an email to the customer with the dispatch advice that he has to print as an attachment.
3161
    	2. Changes order status to be DOA_PICKUP_AUTHORIZED.
3162
    	3. Returns true
2591 chandransh 3163
    If the order is in any other status, it returns false.
2536 chandransh 3164
    Throws an exception if the order with the given id couldn't be found.
3431 rajveer 3165
 
2536 chandransh 3166
    Parameters:
3167
     - orderId
3168
     - pickupNumber
4602 rajveer 3169
     - providerId
2536 chandransh 3170
    """
4602 rajveer 3171
    self.send_authorizePickup(orderId, pickupNumber, providerId)
2536 chandransh 3172
    return self.recv_authorizePickup()
3173
 
4602 rajveer 3174
  def send_authorizePickup(self, orderId, pickupNumber, providerId):
2536 chandransh 3175
    self._oprot.writeMessageBegin('authorizePickup', TMessageType.CALL, self._seqid)
3176
    args = authorizePickup_args()
3177
    args.orderId = orderId
3178
    args.pickupNumber = pickupNumber
4602 rajveer 3179
    args.providerId = providerId
2536 chandransh 3180
    args.write(self._oprot)
3181
    self._oprot.writeMessageEnd()
3182
    self._oprot.trans.flush()
3183
 
3184
  def recv_authorizePickup(self, ):
3185
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3186
    if mtype == TMessageType.EXCEPTION:
3187
      x = TApplicationException()
3188
      x.read(self._iprot)
3189
      self._iprot.readMessageEnd()
3190
      raise x
3191
    result = authorizePickup_result()
3192
    result.read(self._iprot)
3193
    self._iprot.readMessageEnd()
3431 rajveer 3194
    if result.success is not None:
2536 chandransh 3195
      return result.success
3431 rajveer 3196
    if result.ex is not None:
2536 chandransh 3197
      raise result.ex
3198
    raise TApplicationException(TApplicationException.MISSING_RESULT, "authorizePickup failed: unknown result");
3199
 
2764 chandransh 3200
  def markDoasAsPickedUp(self, providerId, pickupDetails):
3201
    """
3202
    Marks all DOA_PICKUP_AUTHORIZED orders of the previous day for a provider as DOA_RETURN_IN_TRANSIT.
3431 rajveer 3203
 
2764 chandransh 3204
    Parameters:
3205
     - providerId
3206
     - pickupDetails
3207
    """
3208
    self.send_markDoasAsPickedUp(providerId, pickupDetails)
4910 phani.kuma 3209
    self.recv_markDoasAsPickedUp()
2764 chandransh 3210
 
3211
  def send_markDoasAsPickedUp(self, providerId, pickupDetails):
3212
    self._oprot.writeMessageBegin('markDoasAsPickedUp', TMessageType.CALL, self._seqid)
3213
    args = markDoasAsPickedUp_args()
3214
    args.providerId = providerId
3215
    args.pickupDetails = pickupDetails
3216
    args.write(self._oprot)
3217
    self._oprot.writeMessageEnd()
3218
    self._oprot.trans.flush()
3219
 
3220
  def recv_markDoasAsPickedUp(self, ):
3221
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3222
    if mtype == TMessageType.EXCEPTION:
3223
      x = TApplicationException()
3224
      x.read(self._iprot)
3225
      self._iprot.readMessageEnd()
3226
      raise x
3227
    result = markDoasAsPickedUp_result()
3228
    result.read(self._iprot)
3229
    self._iprot.readMessageEnd()
4910 phani.kuma 3230
    return
3231
 
3232
  def getDoasNotPickedUp(self, providerId):
3233
    """
3234
    Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
3235
 
3236
    Parameters:
3237
     - providerId
3238
    """
3239
    self.send_getDoasNotPickedUp(providerId)
3240
    return self.recv_getDoasNotPickedUp()
3241
 
3242
  def send_getDoasNotPickedUp(self, providerId):
3243
    self._oprot.writeMessageBegin('getDoasNotPickedUp', TMessageType.CALL, self._seqid)
3244
    args = getDoasNotPickedUp_args()
3245
    args.providerId = providerId
3246
    args.write(self._oprot)
3247
    self._oprot.writeMessageEnd()
3248
    self._oprot.trans.flush()
3249
 
3250
  def recv_getDoasNotPickedUp(self, ):
3251
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3252
    if mtype == TMessageType.EXCEPTION:
3253
      x = TApplicationException()
3254
      x.read(self._iprot)
3255
      self._iprot.readMessageEnd()
3256
      raise x
3257
    result = getDoasNotPickedUp_result()
3258
    result.read(self._iprot)
3259
    self._iprot.readMessageEnd()
3431 rajveer 3260
    if result.success is not None:
2764 chandransh 3261
      return result.success
4910 phani.kuma 3262
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getDoasNotPickedUp failed: unknown result");
2764 chandransh 3263
 
4741 phani.kuma 3264
  def markReturnOrdersAsPickedUp(self, providerId, pickupDetails):
3265
    """
3266
    Marks all RET_PICKUP_CONFIRMED orders of the previous day for a provider as RET_RETURN_IN_TRANSIT.
3267
 
3268
    Parameters:
3269
     - providerId
3270
     - pickupDetails
3271
    """
3272
    self.send_markReturnOrdersAsPickedUp(providerId, pickupDetails)
4910 phani.kuma 3273
    self.recv_markReturnOrdersAsPickedUp()
4741 phani.kuma 3274
 
3275
  def send_markReturnOrdersAsPickedUp(self, providerId, pickupDetails):
3276
    self._oprot.writeMessageBegin('markReturnOrdersAsPickedUp', TMessageType.CALL, self._seqid)
3277
    args = markReturnOrdersAsPickedUp_args()
3278
    args.providerId = providerId
3279
    args.pickupDetails = pickupDetails
3280
    args.write(self._oprot)
3281
    self._oprot.writeMessageEnd()
3282
    self._oprot.trans.flush()
3283
 
3284
  def recv_markReturnOrdersAsPickedUp(self, ):
3285
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3286
    if mtype == TMessageType.EXCEPTION:
3287
      x = TApplicationException()
3288
      x.read(self._iprot)
3289
      self._iprot.readMessageEnd()
3290
      raise x
3291
    result = markReturnOrdersAsPickedUp_result()
3292
    result.read(self._iprot)
3293
    self._iprot.readMessageEnd()
4910 phani.kuma 3294
    return
3295
 
3296
  def getReturnOrdersNotPickedUp(self, providerId):
3297
    """
3298
    Returns a list of orders that were authorized for pickup but did not appear in the pick-up report.
3299
 
3300
    Parameters:
3301
     - providerId
3302
    """
3303
    self.send_getReturnOrdersNotPickedUp(providerId)
3304
    return self.recv_getReturnOrdersNotPickedUp()
3305
 
3306
  def send_getReturnOrdersNotPickedUp(self, providerId):
3307
    self._oprot.writeMessageBegin('getReturnOrdersNotPickedUp', TMessageType.CALL, self._seqid)
3308
    args = getReturnOrdersNotPickedUp_args()
3309
    args.providerId = providerId
3310
    args.write(self._oprot)
3311
    self._oprot.writeMessageEnd()
3312
    self._oprot.trans.flush()
3313
 
3314
  def recv_getReturnOrdersNotPickedUp(self, ):
3315
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3316
    if mtype == TMessageType.EXCEPTION:
3317
      x = TApplicationException()
3318
      x.read(self._iprot)
3319
      self._iprot.readMessageEnd()
3320
      raise x
3321
    result = getReturnOrdersNotPickedUp_result()
3322
    result.read(self._iprot)
3323
    self._iprot.readMessageEnd()
4741 phani.kuma 3324
    if result.success is not None:
3325
      return result.success
4910 phani.kuma 3326
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnOrdersNotPickedUp failed: unknown result");
4741 phani.kuma 3327
 
4479 rajveer 3328
  def receiveReturn(self, orderId, receiveCondition):
2591 chandransh 3329
    """
4452 rajveer 3330
    If the order status is DOA_PICKUP_CONFIRMED or DOA_RETURN_IN_TRANSIT, marks the order status as DOA_RECEIVED_PRESTINE and returns true.
4484 rajveer 3331
    If the order status is RTO_IN_TRANSIT, marks the order status as RTO_RECEIVED_PRESTINE and returns true.
2591 chandransh 3332
    If the order is in any other state, it returns false.
3333
    Throws an exception if the order with the given id couldn't be found.
3431 rajveer 3334
 
2591 chandransh 3335
    Parameters:
3336
     - orderId
4479 rajveer 3337
     - receiveCondition
2591 chandransh 3338
    """
4479 rajveer 3339
    self.send_receiveReturn(orderId, receiveCondition)
2616 chandransh 3340
    return self.recv_receiveReturn()
2536 chandransh 3341
 
4479 rajveer 3342
  def send_receiveReturn(self, orderId, receiveCondition):
2616 chandransh 3343
    self._oprot.writeMessageBegin('receiveReturn', TMessageType.CALL, self._seqid)
3344
    args = receiveReturn_args()
2591 chandransh 3345
    args.orderId = orderId
4479 rajveer 3346
    args.receiveCondition = receiveCondition
2591 chandransh 3347
    args.write(self._oprot)
3348
    self._oprot.writeMessageEnd()
3349
    self._oprot.trans.flush()
3350
 
2616 chandransh 3351
  def recv_receiveReturn(self, ):
2591 chandransh 3352
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3353
    if mtype == TMessageType.EXCEPTION:
3354
      x = TApplicationException()
3355
      x.read(self._iprot)
3356
      self._iprot.readMessageEnd()
3357
      raise x
2616 chandransh 3358
    result = receiveReturn_result()
2591 chandransh 3359
    result.read(self._iprot)
3360
    self._iprot.readMessageEnd()
3431 rajveer 3361
    if result.success is not None:
2591 chandransh 3362
      return result.success
3431 rajveer 3363
    if result.ex is not None:
2591 chandransh 3364
      raise result.ex
2616 chandransh 3365
    raise TApplicationException(TApplicationException.MISSING_RESULT, "receiveReturn failed: unknown result");
2591 chandransh 3366
 
3367
  def validateDoa(self, orderId, isValid):
3368
    """
4452 rajveer 3369
    Used to validate the DOA certificate for an order in the DOA_RECEIVED_PRESTINE state. If the certificate is valid,
2616 chandransh 3370
    the order state is changed to DOA_CERT_VALID. If the certificate is invalid, the order state is changed to DOA_CERT_INVALID.
2591 chandransh 3371
    If the order is in any other state, it returns false.
3372
    Throws an exception if the order with the given id couldn't be found.
3431 rajveer 3373
 
2591 chandransh 3374
    Parameters:
3375
     - orderId
3376
     - isValid
3377
    """
3378
    self.send_validateDoa(orderId, isValid)
3379
    return self.recv_validateDoa()
3380
 
3381
  def send_validateDoa(self, orderId, isValid):
3382
    self._oprot.writeMessageBegin('validateDoa', TMessageType.CALL, self._seqid)
3383
    args = validateDoa_args()
3384
    args.orderId = orderId
3385
    args.isValid = isValid
3386
    args.write(self._oprot)
3387
    self._oprot.writeMessageEnd()
3388
    self._oprot.trans.flush()
3389
 
3390
  def recv_validateDoa(self, ):
3391
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3392
    if mtype == TMessageType.EXCEPTION:
3393
      x = TApplicationException()
3394
      x.read(self._iprot)
3395
      self._iprot.readMessageEnd()
3396
      raise x
3397
    result = validateDoa_result()
3398
    result.read(self._iprot)
3399
    self._iprot.readMessageEnd()
3431 rajveer 3400
    if result.success is not None:
2591 chandransh 3401
      return result.success
3431 rajveer 3402
    if result.ex is not None:
2591 chandransh 3403
      raise result.ex
3404
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateDoa failed: unknown result");
3405
 
4495 rajveer 3406
  def validateReturnProduct(self, orderId, isUsable):
3407
    """
3408
    Parameters:
3409
     - orderId
3410
     - isUsable
3411
    """
3412
    self.send_validateReturnProduct(orderId, isUsable)
3413
    return self.recv_validateReturnProduct()
3414
 
3415
  def send_validateReturnProduct(self, orderId, isUsable):
3416
    self._oprot.writeMessageBegin('validateReturnProduct', TMessageType.CALL, self._seqid)
3417
    args = validateReturnProduct_args()
3418
    args.orderId = orderId
3419
    args.isUsable = isUsable
3420
    args.write(self._oprot)
3421
    self._oprot.writeMessageEnd()
3422
    self._oprot.trans.flush()
3423
 
3424
  def recv_validateReturnProduct(self, ):
3425
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3426
    if mtype == TMessageType.EXCEPTION:
3427
      x = TApplicationException()
3428
      x.read(self._iprot)
3429
      self._iprot.readMessageEnd()
3430
      raise x
3431
    result = validateReturnProduct_result()
3432
    result.read(self._iprot)
3433
    self._iprot.readMessageEnd()
3434
    if result.success is not None:
3435
      return result.success
3436
    if result.ex is not None:
3437
      raise result.ex
3438
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateReturnProduct failed: unknown result");
3439
 
2616 chandransh 3440
  def reshipOrder(self, orderId):
3441
    """
4484 rajveer 3442
    If the order is in RTO_RECEIVED_PRESTINE or DOA_CERT_INVALID state, it does the following:
2616 chandransh 3443
    	1. Creates a new order for processing in the BILLED state. All billing information is saved.
4484 rajveer 3444
    	2. Marks the current order as one of the final states RTO_RESHIPPED and DOA_INVALID_RESHIPPED depending on what state the order started in.
2616 chandransh 3445
 
3446
    If the order is in DOA_CERT_VALID state, it does the following:
3447
    	1. Creates a new order for processing in the SUBMITTED_FOR_PROCESSING state.
3448
    	2. Creates a return order for the warehouse executive to return the DOA material.
4452 rajveer 3449
    	3. Marks the current order as the final DOA_VALID_RESHIPPED state.
3431 rajveer 3450
 
2616 chandransh 3451
    Returns the id of the newly created order.
3431 rajveer 3452
 
2616 chandransh 3453
    Throws an exception if the order with the given id couldn't be found.
3431 rajveer 3454
 
2616 chandransh 3455
    Parameters:
3456
     - orderId
3457
    """
3458
    self.send_reshipOrder(orderId)
3459
    return self.recv_reshipOrder()
2591 chandransh 3460
 
2616 chandransh 3461
  def send_reshipOrder(self, orderId):
3462
    self._oprot.writeMessageBegin('reshipOrder', TMessageType.CALL, self._seqid)
3463
    args = reshipOrder_args()
3464
    args.orderId = orderId
3465
    args.write(self._oprot)
3466
    self._oprot.writeMessageEnd()
3467
    self._oprot.trans.flush()
3468
 
3469
  def recv_reshipOrder(self, ):
3470
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3471
    if mtype == TMessageType.EXCEPTION:
3472
      x = TApplicationException()
3473
      x.read(self._iprot)
3474
      self._iprot.readMessageEnd()
3475
      raise x
3476
    result = reshipOrder_result()
3477
    result.read(self._iprot)
3478
    self._iprot.readMessageEnd()
3431 rajveer 3479
    if result.success is not None:
2616 chandransh 3480
      return result.success
3431 rajveer 3481
    if result.ex is not None:
2616 chandransh 3482
      raise result.ex
3483
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reshipOrder failed: unknown result");
3484
 
3226 chandransh 3485
  def refundOrder(self, orderId, refundedBy, reason):
2616 chandransh 3486
    """
4484 rajveer 3487
    If the order is in RTO_RECEIVED_PRESTINE, DOA_CERT_VALID or DOA_CERT_INVALID state, it does the following:
2616 chandransh 3488
    	1. Creates a refund request for batch processing.
3489
    	2. Creates a return order for the warehouse executive to return the shipped material.
4484 rajveer 3490
    	3. Marks the current order as RTO_REFUNDED, DOA_VALID_REFUNDED or DOA_INVALID_REFUNDED final states.
3431 rajveer 3491
 
2616 chandransh 3492
    If the order is in SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
3493
    	1. Creates a refund request for batch processing.
3226 chandransh 3494
    	2. Cancels the reservation of the item in the warehouse.
3495
    	3. Marks the current order as the REFUNDED final state.
3431 rajveer 3496
 
3226 chandransh 3497
    For all COD orders, if the order is in INIT, SUBMITTED_FOR_PROCESSING or INVENTORY_LOW state, it does the following:
3498
    	1. Cancels the reservation of the item in the warehouse.
3499
    	2. Marks the current order as CANCELED.
3500
 
3501
    In all cases, it updates the reason for cancellation or refund and the person who performed the action.
3502
 
2616 chandransh 3503
    Returns True if it is successful, False otherwise.
3431 rajveer 3504
 
2616 chandransh 3505
    Throws an exception if the order with the given id couldn't be found.
3431 rajveer 3506
 
2616 chandransh 3507
    Parameters:
3508
     - orderId
3226 chandransh 3509
     - refundedBy
3510
     - reason
2616 chandransh 3511
    """
3226 chandransh 3512
    self.send_refundOrder(orderId, refundedBy, reason)
2616 chandransh 3513
    return self.recv_refundOrder()
3514
 
3226 chandransh 3515
  def send_refundOrder(self, orderId, refundedBy, reason):
2616 chandransh 3516
    self._oprot.writeMessageBegin('refundOrder', TMessageType.CALL, self._seqid)
3517
    args = refundOrder_args()
3518
    args.orderId = orderId
3226 chandransh 3519
    args.refundedBy = refundedBy
3520
    args.reason = reason
2616 chandransh 3521
    args.write(self._oprot)
3522
    self._oprot.writeMessageEnd()
3523
    self._oprot.trans.flush()
3524
 
3525
  def recv_refundOrder(self, ):
3526
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3527
    if mtype == TMessageType.EXCEPTION:
3528
      x = TApplicationException()
3529
      x.read(self._iprot)
3530
      self._iprot.readMessageEnd()
3531
      raise x
3532
    result = refundOrder_result()
3533
    result.read(self._iprot)
3534
    self._iprot.readMessageEnd()
3431 rajveer 3535
    if result.success is not None:
2616 chandransh 3536
      return result.success
3431 rajveer 3537
    if result.ex is not None:
2616 chandransh 3538
      raise result.ex
3539
    raise TApplicationException(TApplicationException.MISSING_RESULT, "refundOrder failed: unknown result");
3540
 
2690 chandransh 3541
  def getReturnOrders(self, warehouseId, fromDate, toDate):
3542
    """
3543
    Get all return orders created between the from and to dates for the given warehouse.
3544
    Ignores the warehouse if it is passed as -1.
3431 rajveer 3545
 
2690 chandransh 3546
    Parameters:
3547
     - warehouseId
3548
     - fromDate
3549
     - toDate
3550
    """
3551
    self.send_getReturnOrders(warehouseId, fromDate, toDate)
3552
    return self.recv_getReturnOrders()
2616 chandransh 3553
 
2690 chandransh 3554
  def send_getReturnOrders(self, warehouseId, fromDate, toDate):
3555
    self._oprot.writeMessageBegin('getReturnOrders', TMessageType.CALL, self._seqid)
3556
    args = getReturnOrders_args()
3557
    args.warehouseId = warehouseId
3558
    args.fromDate = fromDate
3559
    args.toDate = toDate
3560
    args.write(self._oprot)
3561
    self._oprot.writeMessageEnd()
3562
    self._oprot.trans.flush()
3563
 
3564
  def recv_getReturnOrders(self, ):
3565
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3566
    if mtype == TMessageType.EXCEPTION:
3567
      x = TApplicationException()
3568
      x.read(self._iprot)
3569
      self._iprot.readMessageEnd()
3570
      raise x
3571
    result = getReturnOrders_result()
3572
    result.read(self._iprot)
3573
    self._iprot.readMessageEnd()
3431 rajveer 3574
    if result.success is not None:
2690 chandransh 3575
      return result.success
3576
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnOrders failed: unknown result");
3577
 
2700 chandransh 3578
  def getReturnOrder(self, id):
3579
    """
3580
    Returns the ReturnOrder corresponding to the given id.
3581
    Throws an exception if the return order with the given id couldn't be found.
3431 rajveer 3582
 
2700 chandransh 3583
    Parameters:
3584
     - id
3585
    """
3586
    self.send_getReturnOrder(id)
3587
    return self.recv_getReturnOrder()
3588
 
3589
  def send_getReturnOrder(self, id):
3590
    self._oprot.writeMessageBegin('getReturnOrder', TMessageType.CALL, self._seqid)
3591
    args = getReturnOrder_args()
3592
    args.id = id
3593
    args.write(self._oprot)
3594
    self._oprot.writeMessageEnd()
3595
    self._oprot.trans.flush()
3596
 
3597
  def recv_getReturnOrder(self, ):
3598
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3599
    if mtype == TMessageType.EXCEPTION:
3600
      x = TApplicationException()
3601
      x.read(self._iprot)
3602
      self._iprot.readMessageEnd()
3603
      raise x
3604
    result = getReturnOrder_result()
3605
    result.read(self._iprot)
3606
    self._iprot.readMessageEnd()
3431 rajveer 3607
    if result.success is not None:
2700 chandransh 3608
      return result.success
3431 rajveer 3609
    if result.ex is not None:
2700 chandransh 3610
      raise result.ex
3611
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReturnOrder failed: unknown result");
3612
 
2690 chandransh 3613
  def processReturn(self, returnOrderId):
3614
    """
3615
    Marks the return order with the given id as processed. Raises an exception if no such return order exists.
3431 rajveer 3616
 
2690 chandransh 3617
    Parameters:
3618
     - returnOrderId
3619
    """
3620
    self.send_processReturn(returnOrderId)
3621
    self.recv_processReturn()
3622
 
3623
  def send_processReturn(self, returnOrderId):
3624
    self._oprot.writeMessageBegin('processReturn', TMessageType.CALL, self._seqid)
3625
    args = processReturn_args()
3626
    args.returnOrderId = returnOrderId
3627
    args.write(self._oprot)
3628
    self._oprot.writeMessageEnd()
3629
    self._oprot.trans.flush()
3630
 
3631
  def recv_processReturn(self, ):
3632
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3633
    if mtype == TMessageType.EXCEPTION:
3634
      x = TApplicationException()
3635
      x.read(self._iprot)
3636
      self._iprot.readMessageEnd()
3637
      raise x
3638
    result = processReturn_result()
3639
    result.read(self._iprot)
3640
    self._iprot.readMessageEnd()
3431 rajveer 3641
    if result.ex is not None:
2690 chandransh 3642
      raise result.ex
3643
    return
3644
 
3451 chandransh 3645
  def updateWeight(self, orderId, weight):
3646
    """
3647
    Set the weight of the given order to the provided value. Will attempt to update the weight of the item in the catalog as well.
2819 chandransh 3648
 
3451 chandransh 3649
    Parameters:
3650
     - orderId
3651
     - weight
3652
    """
3653
    self.send_updateWeight(orderId, weight)
3654
    return self.recv_updateWeight()
3655
 
3656
  def send_updateWeight(self, orderId, weight):
3657
    self._oprot.writeMessageBegin('updateWeight', TMessageType.CALL, self._seqid)
3658
    args = updateWeight_args()
3659
    args.orderId = orderId
3660
    args.weight = weight
3661
    args.write(self._oprot)
3662
    self._oprot.writeMessageEnd()
3663
    self._oprot.trans.flush()
3664
 
3665
  def recv_updateWeight(self, ):
3666
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3667
    if mtype == TMessageType.EXCEPTION:
3668
      x = TApplicationException()
3669
      x.read(self._iprot)
3670
      self._iprot.readMessageEnd()
3671
      raise x
3672
    result = updateWeight_result()
3673
    result.read(self._iprot)
3674
    self._iprot.readMessageEnd()
3675
    if result.success is not None:
3676
      return result.success
3677
    if result.ex is not None:
3678
      raise result.ex
3679
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateWeight failed: unknown result");
3680
 
3469 chandransh 3681
  def changeItem(self, orderId, itemId):
3682
    """
3683
    Change the item to be shipped for this order. Also adjusts the reservation in the inventory accordingly.
3684
    Currently, it also ensures that only a different color of the given item is shipped.
3451 chandransh 3685
 
3469 chandransh 3686
    Parameters:
3687
     - orderId
3688
     - itemId
3689
    """
3690
    self.send_changeItem(orderId, itemId)
3691
    return self.recv_changeItem()
3692
 
3693
  def send_changeItem(self, orderId, itemId):
3694
    self._oprot.writeMessageBegin('changeItem', TMessageType.CALL, self._seqid)
3695
    args = changeItem_args()
3696
    args.orderId = orderId
3697
    args.itemId = itemId
3698
    args.write(self._oprot)
3699
    self._oprot.writeMessageEnd()
3700
    self._oprot.trans.flush()
3701
 
3702
  def recv_changeItem(self, ):
3703
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3704
    if mtype == TMessageType.EXCEPTION:
3705
      x = TApplicationException()
3706
      x.read(self._iprot)
3707
      self._iprot.readMessageEnd()
3708
      raise x
3709
    result = changeItem_result()
3710
    result.read(self._iprot)
3711
    self._iprot.readMessageEnd()
3712
    if result.success is not None:
3713
      return result.success
3714
    if result.ex is not None:
3715
      raise result.ex
3716
    raise TApplicationException(TApplicationException.MISSING_RESULT, "changeItem failed: unknown result");
3717
 
3718
  def shiftToWarehouse(self, orderId, warehouseId):
3719
    """
3720
    Moves the given order to the given warehouse. Also adjusts the inventory reservations accordingly.
3721
 
3722
    Parameters:
3723
     - orderId
3724
     - warehouseId
3725
    """
3726
    self.send_shiftToWarehouse(orderId, warehouseId)
3727
    return self.recv_shiftToWarehouse()
3728
 
3729
  def send_shiftToWarehouse(self, orderId, warehouseId):
3730
    self._oprot.writeMessageBegin('shiftToWarehouse', TMessageType.CALL, self._seqid)
3731
    args = shiftToWarehouse_args()
3732
    args.orderId = orderId
3733
    args.warehouseId = warehouseId
3734
    args.write(self._oprot)
3735
    self._oprot.writeMessageEnd()
3736
    self._oprot.trans.flush()
3737
 
3738
  def recv_shiftToWarehouse(self, ):
3739
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3740
    if mtype == TMessageType.EXCEPTION:
3741
      x = TApplicationException()
3742
      x.read(self._iprot)
3743
      self._iprot.readMessageEnd()
3744
      raise x
3745
    result = shiftToWarehouse_result()
3746
    result.read(self._iprot)
3747
    self._iprot.readMessageEnd()
3748
    if result.success is not None:
3749
      return result.success
3750
    if result.ex is not None:
3751
      raise result.ex
3752
    raise TApplicationException(TApplicationException.MISSING_RESULT, "shiftToWarehouse failed: unknown result");
3753
 
4647 rajveer 3754
  def addDelayReason(self, orderId, delayReason, furtherDelay, delayReasonText):
3553 chandransh 3755
    """
3756
    Adds the given delay reason to the given order.
3986 chandransh 3757
    Increases the expected delivery time of the given order by the given no. of days.
3553 chandransh 3758
    Raises an exception if no order with the given id can be found.
3469 chandransh 3759
 
3553 chandransh 3760
    Parameters:
3761
     - orderId
3762
     - delayReason
3986 chandransh 3763
     - furtherDelay
4647 rajveer 3764
     - delayReasonText
3553 chandransh 3765
    """
4647 rajveer 3766
    self.send_addDelayReason(orderId, delayReason, furtherDelay, delayReasonText)
3553 chandransh 3767
    return self.recv_addDelayReason()
3768
 
4647 rajveer 3769
  def send_addDelayReason(self, orderId, delayReason, furtherDelay, delayReasonText):
3553 chandransh 3770
    self._oprot.writeMessageBegin('addDelayReason', TMessageType.CALL, self._seqid)
3771
    args = addDelayReason_args()
3772
    args.orderId = orderId
3773
    args.delayReason = delayReason
3986 chandransh 3774
    args.furtherDelay = furtherDelay
4647 rajveer 3775
    args.delayReasonText = delayReasonText
3553 chandransh 3776
    args.write(self._oprot)
3777
    self._oprot.writeMessageEnd()
3778
    self._oprot.trans.flush()
3779
 
3780
  def recv_addDelayReason(self, ):
3781
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3782
    if mtype == TMessageType.EXCEPTION:
3783
      x = TApplicationException()
3784
      x.read(self._iprot)
3785
      self._iprot.readMessageEnd()
3786
      raise x
3787
    result = addDelayReason_result()
3788
    result.read(self._iprot)
3789
    self._iprot.readMessageEnd()
3790
    if result.success is not None:
3791
      return result.success
3792
    if result.ex is not None:
3793
      raise result.ex
3794
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addDelayReason failed: unknown result");
3795
 
3956 chandransh 3796
  def reconcileCodCollection(self, collectedAmountMap, xferBy, xferTxnId, xferDate):
3797
    """
3798
    Marks the COD orders with given AWB nos. as having been processed.
3799
    Updates the captured amount for the corresponding payment.
3553 chandransh 3800
 
3956 chandransh 3801
    Returns a map of AWBs which were not processed and the associated reason. An AWB is not processed if:
3802
    1. There is no order corresponding to an AWB number.
3803
    2. The captured amount for a payment exceeds the total payment.
3804
    3. The order corresponding to an AWB no. is in a state prior to DELIVERY_SUCCESS.
3805
 
3806
    Parameters:
3807
     - collectedAmountMap
3808
     - xferBy
3809
     - xferTxnId
3810
     - xferDate
3811
    """
3812
    self.send_reconcileCodCollection(collectedAmountMap, xferBy, xferTxnId, xferDate)
3813
    return self.recv_reconcileCodCollection()
3814
 
3815
  def send_reconcileCodCollection(self, collectedAmountMap, xferBy, xferTxnId, xferDate):
3816
    self._oprot.writeMessageBegin('reconcileCodCollection', TMessageType.CALL, self._seqid)
3817
    args = reconcileCodCollection_args()
3818
    args.collectedAmountMap = collectedAmountMap
3819
    args.xferBy = xferBy
3820
    args.xferTxnId = xferTxnId
3821
    args.xferDate = xferDate
3822
    args.write(self._oprot)
3823
    self._oprot.writeMessageEnd()
3824
    self._oprot.trans.flush()
3825
 
3826
  def recv_reconcileCodCollection(self, ):
3827
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3828
    if mtype == TMessageType.EXCEPTION:
3829
      x = TApplicationException()
3830
      x.read(self._iprot)
3831
      self._iprot.readMessageEnd()
3832
      raise x
3833
    result = reconcileCodCollection_result()
3834
    result.read(self._iprot)
3835
    self._iprot.readMessageEnd()
3836
    if result.success is not None:
3837
      return result.success
3838
    if result.ex is not None:
3839
      raise result.ex
3840
    raise TApplicationException(TApplicationException.MISSING_RESULT, "reconcileCodCollection failed: unknown result");
3841
 
4008 mandeep.dh 3842
  def getTransactionsRequiringExtraProcessing(self, category):
3843
    """
4065 mandeep.dh 3844
    Returns the list of transaction ids that require some extra processing and
4008 mandeep.dh 3845
    which belong to a particular category. This is currently used by CRM
4065 mandeep.dh 3846
    application. If no such transaction ids are present, it returns an empty list.
3956 chandransh 3847
 
4008 mandeep.dh 3848
    Parameters:
3849
     - category
3850
    """
3851
    self.send_getTransactionsRequiringExtraProcessing(category)
3852
    return self.recv_getTransactionsRequiringExtraProcessing()
3853
 
3854
  def send_getTransactionsRequiringExtraProcessing(self, category):
3855
    self._oprot.writeMessageBegin('getTransactionsRequiringExtraProcessing', TMessageType.CALL, self._seqid)
3856
    args = getTransactionsRequiringExtraProcessing_args()
3857
    args.category = category
3858
    args.write(self._oprot)
3859
    self._oprot.writeMessageEnd()
3860
    self._oprot.trans.flush()
3861
 
3862
  def recv_getTransactionsRequiringExtraProcessing(self, ):
3863
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3864
    if mtype == TMessageType.EXCEPTION:
3865
      x = TApplicationException()
3866
      x.read(self._iprot)
3867
      self._iprot.readMessageEnd()
3868
      raise x
3869
    result = getTransactionsRequiringExtraProcessing_result()
3870
    result.read(self._iprot)
3871
    self._iprot.readMessageEnd()
3872
    if result.success is not None:
3873
      return result.success
3874
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getTransactionsRequiringExtraProcessing failed: unknown result");
3875
 
3876
  def markTransactionAsProcessed(self, transactionId, category):
3877
    """
3878
    Marks a particular transaction as processed for a particular cateogory.
4065 mandeep.dh 3879
    It essentially deletes the transaction id record for a particular
3880
    processing type category (if present) from DB.
3881
    This is currently used by CRM application.
4008 mandeep.dh 3882
 
3883
    Parameters:
3884
     - transactionId
3885
     - category
3886
    """
3887
    self.send_markTransactionAsProcessed(transactionId, category)
3888
    self.recv_markTransactionAsProcessed()
3889
 
3890
  def send_markTransactionAsProcessed(self, transactionId, category):
3891
    self._oprot.writeMessageBegin('markTransactionAsProcessed', TMessageType.CALL, self._seqid)
3892
    args = markTransactionAsProcessed_args()
3893
    args.transactionId = transactionId
3894
    args.category = category
3895
    args.write(self._oprot)
3896
    self._oprot.writeMessageEnd()
3897
    self._oprot.trans.flush()
3898
 
3899
  def recv_markTransactionAsProcessed(self, ):
3900
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3901
    if mtype == TMessageType.EXCEPTION:
3902
      x = TApplicationException()
3903
      x.read(self._iprot)
3904
      self._iprot.readMessageEnd()
3905
      raise x
3906
    result = markTransactionAsProcessed_result()
3907
    result.read(self._iprot)
3908
    self._iprot.readMessageEnd()
3909
    return
3910
 
4018 chandransh 3911
  def getItemWiseRiskyOrdersCount(self, ):
3912
    """
3913
    Returns a map containing the number of risky orders keyed by item id. A risky order
3914
    is defined as one whose shipping date is about to expire.
3915
    """
3916
    self.send_getItemWiseRiskyOrdersCount()
3917
    return self.recv_getItemWiseRiskyOrdersCount()
4008 mandeep.dh 3918
 
4018 chandransh 3919
  def send_getItemWiseRiskyOrdersCount(self, ):
3920
    self._oprot.writeMessageBegin('getItemWiseRiskyOrdersCount', TMessageType.CALL, self._seqid)
3921
    args = getItemWiseRiskyOrdersCount_args()
3922
    args.write(self._oprot)
3923
    self._oprot.writeMessageEnd()
3924
    self._oprot.trans.flush()
3925
 
3926
  def recv_getItemWiseRiskyOrdersCount(self, ):
3927
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3928
    if mtype == TMessageType.EXCEPTION:
3929
      x = TApplicationException()
3930
      x.read(self._iprot)
3931
      self._iprot.readMessageEnd()
3932
      raise x
3933
    result = getItemWiseRiskyOrdersCount_result()
3934
    result.read(self._iprot)
3935
    self._iprot.readMessageEnd()
3936
    if result.success is not None:
3937
      return result.success
3938
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemWiseRiskyOrdersCount failed: unknown result");
3939
 
4295 varun.gupt 3940
  def getOrdersForItemIds(self, itemIds):
3941
    """
3942
    Returns a list of all orders which have items with given id
3943
 
3944
    Parameters:
3945
     - itemIds
3946
    """
3947
    self.send_getOrdersForItemIds(itemIds)
3948
    return self.recv_getOrdersForItemIds()
3949
 
3950
  def send_getOrdersForItemIds(self, itemIds):
3951
    self._oprot.writeMessageBegin('getOrdersForItemIds', TMessageType.CALL, self._seqid)
3952
    args = getOrdersForItemIds_args()
3953
    args.itemIds = itemIds
3954
    args.write(self._oprot)
3955
    self._oprot.writeMessageEnd()
3956
    self._oprot.trans.flush()
3957
 
3958
  def recv_getOrdersForItemIds(self, ):
3959
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3960
    if mtype == TMessageType.EXCEPTION:
3961
      x = TApplicationException()
3962
      x.read(self._iprot)
3963
      self._iprot.readMessageEnd()
3964
      raise x
3965
    result = getOrdersForItemIds_result()
3966
    result.read(self._iprot)
3967
    self._iprot.readMessageEnd()
3968
    if result.success is not None:
3969
      return result.success
3970
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForItemIds failed: unknown result");
3971
 
4247 rajveer 3972
  def markOrderCancellationRequestReceived(self, orderId):
3973
    """
3974
    Mark order as cancellation request received. If customer sends request of cancellation of
3975
    a particular order, this method will be called. It will just change status of the order
3976
    depending on its current status. It also records the previous status, so that we can move
3977
    back to that status if cancellation request is denied.
4018 chandransh 3978
 
4247 rajveer 3979
    Parameters:
3980
     - orderId
3981
    """
3982
    self.send_markOrderCancellationRequestReceived(orderId)
3983
    self.recv_markOrderCancellationRequestReceived()
3984
 
3985
  def send_markOrderCancellationRequestReceived(self, orderId):
3986
    self._oprot.writeMessageBegin('markOrderCancellationRequestReceived', TMessageType.CALL, self._seqid)
3987
    args = markOrderCancellationRequestReceived_args()
3988
    args.orderId = orderId
3989
    args.write(self._oprot)
3990
    self._oprot.writeMessageEnd()
3991
    self._oprot.trans.flush()
3992
 
3993
  def recv_markOrderCancellationRequestReceived(self, ):
3994
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
3995
    if mtype == TMessageType.EXCEPTION:
3996
      x = TApplicationException()
3997
      x.read(self._iprot)
3998
      self._iprot.readMessageEnd()
3999
      raise x
4000
    result = markOrderCancellationRequestReceived_result()
4001
    result.read(self._iprot)
4002
    self._iprot.readMessageEnd()
4003
    if result.ex is not None:
4004
      raise result.ex
4005
    return
4006
 
4007
  def markOrderCancellationRequestConfirmed(self, orderId):
4008
    """
4009
    If we decide to to cancel order, CRM will call this method to move the status of order to
4010
    cancellation request confirmed. After this OM will be able to cancel the order.
4011
 
4012
    Parameters:
4013
     - orderId
4014
    """
4015
    self.send_markOrderCancellationRequestConfirmed(orderId)
4016
    self.recv_markOrderCancellationRequestConfirmed()
4017
 
4018
  def send_markOrderCancellationRequestConfirmed(self, orderId):
4019
    self._oprot.writeMessageBegin('markOrderCancellationRequestConfirmed', TMessageType.CALL, self._seqid)
4020
    args = markOrderCancellationRequestConfirmed_args()
4021
    args.orderId = orderId
4022
    args.write(self._oprot)
4023
    self._oprot.writeMessageEnd()
4024
    self._oprot.trans.flush()
4025
 
4026
  def recv_markOrderCancellationRequestConfirmed(self, ):
4027
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4028
    if mtype == TMessageType.EXCEPTION:
4029
      x = TApplicationException()
4030
      x.read(self._iprot)
4031
      self._iprot.readMessageEnd()
4032
      raise x
4033
    result = markOrderCancellationRequestConfirmed_result()
4034
    result.read(self._iprot)
4035
    self._iprot.readMessageEnd()
4036
    if result.ex is not None:
4037
      raise result.ex
4038
    return
4039
 
4040
  def markOrderCancellationRequestDenied(self, orderId):
4041
    """
4042
    If we decide to not to cancel order, we will move the order ro previous status.
4043
 
4044
    Parameters:
4045
     - orderId
4046
    """
4047
    self.send_markOrderCancellationRequestDenied(orderId)
4048
    self.recv_markOrderCancellationRequestDenied()
4049
 
4050
  def send_markOrderCancellationRequestDenied(self, orderId):
4051
    self._oprot.writeMessageBegin('markOrderCancellationRequestDenied', TMessageType.CALL, self._seqid)
4052
    args = markOrderCancellationRequestDenied_args()
4053
    args.orderId = orderId
4054
    args.write(self._oprot)
4055
    self._oprot.writeMessageEnd()
4056
    self._oprot.trans.flush()
4057
 
4058
  def recv_markOrderCancellationRequestDenied(self, ):
4059
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4060
    if mtype == TMessageType.EXCEPTION:
4061
      x = TApplicationException()
4062
      x.read(self._iprot)
4063
      self._iprot.readMessageEnd()
4064
      raise x
4065
    result = markOrderCancellationRequestDenied_result()
4066
    result.read(self._iprot)
4067
    self._iprot.readMessageEnd()
4068
    if result.ex is not None:
4069
      raise result.ex
4070
    return
4071
 
4258 rajveer 4072
  def markTransactionAsPaymentFlagRemoved(self, transactionId):
4247 rajveer 4073
    """
4258 rajveer 4074
    If we and/or payment gateway has decided to accept the payment, this method needs to be called.
4075
    Changed transaction and all orders status to payment accepted.
4247 rajveer 4076
 
4077
    Parameters:
4258 rajveer 4078
     - transactionId
4247 rajveer 4079
    """
4258 rajveer 4080
    self.send_markTransactionAsPaymentFlagRemoved(transactionId)
4081
    self.recv_markTransactionAsPaymentFlagRemoved()
4247 rajveer 4082
 
4258 rajveer 4083
  def send_markTransactionAsPaymentFlagRemoved(self, transactionId):
4084
    self._oprot.writeMessageBegin('markTransactionAsPaymentFlagRemoved', TMessageType.CALL, self._seqid)
4085
    args = markTransactionAsPaymentFlagRemoved_args()
4086
    args.transactionId = transactionId
4247 rajveer 4087
    args.write(self._oprot)
4088
    self._oprot.writeMessageEnd()
4089
    self._oprot.trans.flush()
4090
 
4258 rajveer 4091
  def recv_markTransactionAsPaymentFlagRemoved(self, ):
4247 rajveer 4092
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4093
    if mtype == TMessageType.EXCEPTION:
4094
      x = TApplicationException()
4095
      x.read(self._iprot)
4096
      self._iprot.readMessageEnd()
4097
      raise x
4258 rajveer 4098
    result = markTransactionAsPaymentFlagRemoved_result()
4247 rajveer 4099
    result.read(self._iprot)
4100
    self._iprot.readMessageEnd()
4101
    if result.ex is not None:
4102
      raise result.ex
4103
    return
4104
 
4259 anupam.sin 4105
  def refundTransaction(self, transactionId, refundedBy, reason):
4106
    """
4107
    This method is called when a flagged payment is deemed unserviceable and the corresponding orders
4108
    need to be cancelled
4247 rajveer 4109
 
4259 anupam.sin 4110
    Parameters:
4111
     - transactionId
4112
     - refundedBy
4113
     - reason
4114
    """
4115
    self.send_refundTransaction(transactionId, refundedBy, reason)
4116
    self.recv_refundTransaction()
4117
 
4118
  def send_refundTransaction(self, transactionId, refundedBy, reason):
4119
    self._oprot.writeMessageBegin('refundTransaction', TMessageType.CALL, self._seqid)
4120
    args = refundTransaction_args()
4121
    args.transactionId = transactionId
4122
    args.refundedBy = refundedBy
4123
    args.reason = reason
4124
    args.write(self._oprot)
4125
    self._oprot.writeMessageEnd()
4126
    self._oprot.trans.flush()
4127
 
4128
  def recv_refundTransaction(self, ):
4129
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4130
    if mtype == TMessageType.EXCEPTION:
4131
      x = TApplicationException()
4132
      x.read(self._iprot)
4133
      self._iprot.readMessageEnd()
4134
      raise x
4135
    result = refundTransaction_result()
4136
    result.read(self._iprot)
4137
    self._iprot.readMessageEnd()
4138
    if result.ex is not None:
4139
      raise result.ex
4140
    return
4141
 
4324 mandeep.dh 4142
  def updateShipmentAddress(self, orderId, addressId):
4143
    """
4144
    Updates shipment address of an order. Delivery and shipping date estimates
4145
    etc. are also updated here.
4146
 
4147
    Throws TransactionServiceException in case address change is not
4148
    possible due to certain reasons such as new pincode in address is
4149
    not serviceable etc.
4150
 
4151
    Parameters:
4152
     - orderId
4153
     - addressId
4154
    """
4155
    self.send_updateShipmentAddress(orderId, addressId)
4156
    self.recv_updateShipmentAddress()
4157
 
4158
  def send_updateShipmentAddress(self, orderId, addressId):
4159
    self._oprot.writeMessageBegin('updateShipmentAddress', TMessageType.CALL, self._seqid)
4160
    args = updateShipmentAddress_args()
4161
    args.orderId = orderId
4162
    args.addressId = addressId
4163
    args.write(self._oprot)
4164
    self._oprot.writeMessageEnd()
4165
    self._oprot.trans.flush()
4166
 
4167
  def recv_updateShipmentAddress(self, ):
4168
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4169
    if mtype == TMessageType.EXCEPTION:
4170
      x = TApplicationException()
4171
      x.read(self._iprot)
4172
      self._iprot.readMessageEnd()
4173
      raise x
4174
    result = updateShipmentAddress_result()
4175
    result.read(self._iprot)
4176
    self._iprot.readMessageEnd()
4177
    if result.ex is not None:
4178
      raise result.ex
4179
    return
4180
 
4285 rajveer 4181
  def acceptOrdersForItemId(self, itemId, inventory):
4182
    """
4183
    Marks the orders as ACCEPTED for the given itemId and inventory. It also updates the accepted timestamp. If the
4184
    given order is not a COD order, it also captures the payment if the same has not been captured.
4259 anupam.sin 4185
 
4285 rajveer 4186
    Parameters:
4187
     - itemId
4188
     - inventory
4189
    """
4190
    self.send_acceptOrdersForItemId(itemId, inventory)
4191
    return self.recv_acceptOrdersForItemId()
4192
 
4193
  def send_acceptOrdersForItemId(self, itemId, inventory):
4194
    self._oprot.writeMessageBegin('acceptOrdersForItemId', TMessageType.CALL, self._seqid)
4195
    args = acceptOrdersForItemId_args()
4196
    args.itemId = itemId
4197
    args.inventory = inventory
4198
    args.write(self._oprot)
4199
    self._oprot.writeMessageEnd()
4200
    self._oprot.trans.flush()
4201
 
4202
  def recv_acceptOrdersForItemId(self, ):
4203
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4204
    if mtype == TMessageType.EXCEPTION:
4205
      x = TApplicationException()
4206
      x.read(self._iprot)
4207
      self._iprot.readMessageEnd()
4208
      raise x
4209
    result = acceptOrdersForItemId_result()
4210
    result.read(self._iprot)
4211
    self._iprot.readMessageEnd()
4212
    if result.success is not None:
4213
      return result.success
4214
    if result.ex is not None:
4215
      raise result.ex
4216
    raise TApplicationException(TApplicationException.MISSING_RESULT, "acceptOrdersForItemId failed: unknown result");
4217
 
4369 rajveer 4218
  def markOrdersAsPORaised(self, vendorId, itemId, quantity, estimate, isReminder):
4303 rajveer 4219
    """
4220
    Parameters:
4221
     - vendorId
4222
     - itemId
4223
     - quantity
4224
     - estimate
4369 rajveer 4225
     - isReminder
4303 rajveer 4226
    """
4369 rajveer 4227
    self.send_markOrdersAsPORaised(vendorId, itemId, quantity, estimate, isReminder)
4303 rajveer 4228
    self.recv_markOrdersAsPORaised()
4285 rajveer 4229
 
4369 rajveer 4230
  def send_markOrdersAsPORaised(self, vendorId, itemId, quantity, estimate, isReminder):
4303 rajveer 4231
    self._oprot.writeMessageBegin('markOrdersAsPORaised', TMessageType.CALL, self._seqid)
4232
    args = markOrdersAsPORaised_args()
4233
    args.vendorId = vendorId
4234
    args.itemId = itemId
4235
    args.quantity = quantity
4236
    args.estimate = estimate
4369 rajveer 4237
    args.isReminder = isReminder
4303 rajveer 4238
    args.write(self._oprot)
4239
    self._oprot.writeMessageEnd()
4240
    self._oprot.trans.flush()
4241
 
4242
  def recv_markOrdersAsPORaised(self, ):
4243
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4244
    if mtype == TMessageType.EXCEPTION:
4245
      x = TApplicationException()
4246
      x.read(self._iprot)
4247
      self._iprot.readMessageEnd()
4248
      raise x
4249
    result = markOrdersAsPORaised_result()
4250
    result.read(self._iprot)
4251
    self._iprot.readMessageEnd()
4252
    if result.ex is not None:
4253
      raise result.ex
4254
    return
4255
 
4369 rajveer 4256
  def markOrdersAsReversalInitiated(self, vendorId, itemId, quantity, estimate, isReminder):
4303 rajveer 4257
    """
4258
    Parameters:
4259
     - vendorId
4260
     - itemId
4261
     - quantity
4262
     - estimate
4369 rajveer 4263
     - isReminder
4303 rajveer 4264
    """
4369 rajveer 4265
    self.send_markOrdersAsReversalInitiated(vendorId, itemId, quantity, estimate, isReminder)
4303 rajveer 4266
    self.recv_markOrdersAsReversalInitiated()
4267
 
4369 rajveer 4268
  def send_markOrdersAsReversalInitiated(self, vendorId, itemId, quantity, estimate, isReminder):
4303 rajveer 4269
    self._oprot.writeMessageBegin('markOrdersAsReversalInitiated', TMessageType.CALL, self._seqid)
4270
    args = markOrdersAsReversalInitiated_args()
4271
    args.vendorId = vendorId
4272
    args.itemId = itemId
4273
    args.quantity = quantity
4274
    args.estimate = estimate
4369 rajveer 4275
    args.isReminder = isReminder
4303 rajveer 4276
    args.write(self._oprot)
4277
    self._oprot.writeMessageEnd()
4278
    self._oprot.trans.flush()
4279
 
4280
  def recv_markOrdersAsReversalInitiated(self, ):
4281
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4282
    if mtype == TMessageType.EXCEPTION:
4283
      x = TApplicationException()
4284
      x.read(self._iprot)
4285
      self._iprot.readMessageEnd()
4286
      raise x
4287
    result = markOrdersAsReversalInitiated_result()
4288
    result.read(self._iprot)
4289
    self._iprot.readMessageEnd()
4290
    if result.ex is not None:
4291
      raise result.ex
4292
    return
4293
 
4369 rajveer 4294
  def markOrdersAsNotAvailabke(self, vendorId, itemId, quantity, estimate, isReminder):
4303 rajveer 4295
    """
4296
    Parameters:
4297
     - vendorId
4298
     - itemId
4299
     - quantity
4300
     - estimate
4369 rajveer 4301
     - isReminder
4303 rajveer 4302
    """
4369 rajveer 4303
    self.send_markOrdersAsNotAvailabke(vendorId, itemId, quantity, estimate, isReminder)
4303 rajveer 4304
    self.recv_markOrdersAsNotAvailabke()
4305
 
4369 rajveer 4306
  def send_markOrdersAsNotAvailabke(self, vendorId, itemId, quantity, estimate, isReminder):
4303 rajveer 4307
    self._oprot.writeMessageBegin('markOrdersAsNotAvailabke', TMessageType.CALL, self._seqid)
4308
    args = markOrdersAsNotAvailabke_args()
4309
    args.vendorId = vendorId
4310
    args.itemId = itemId
4311
    args.quantity = quantity
4312
    args.estimate = estimate
4369 rajveer 4313
    args.isReminder = isReminder
4303 rajveer 4314
    args.write(self._oprot)
4315
    self._oprot.writeMessageEnd()
4316
    self._oprot.trans.flush()
4317
 
4318
  def recv_markOrdersAsNotAvailabke(self, ):
4319
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4320
    if mtype == TMessageType.EXCEPTION:
4321
      x = TApplicationException()
4322
      x.read(self._iprot)
4323
      self._iprot.readMessageEnd()
4324
      raise x
4325
    result = markOrdersAsNotAvailabke_result()
4326
    result.read(self._iprot)
4327
    self._iprot.readMessageEnd()
4328
    if result.ex is not None:
4329
      raise result.ex
4330
    return
4331
 
4369 rajveer 4332
  def markOrdersAsTimeout(self, vendorId):
4333
    """
4334
    Parameters:
4335
     - vendorId
4336
    """
4337
    self.send_markOrdersAsTimeout(vendorId)
4338
    return self.recv_markOrdersAsTimeout()
4303 rajveer 4339
 
4369 rajveer 4340
  def send_markOrdersAsTimeout(self, vendorId):
4341
    self._oprot.writeMessageBegin('markOrdersAsTimeout', TMessageType.CALL, self._seqid)
4342
    args = markOrdersAsTimeout_args()
4343
    args.vendorId = vendorId
4344
    args.write(self._oprot)
4345
    self._oprot.writeMessageEnd()
4346
    self._oprot.trans.flush()
4347
 
4348
  def recv_markOrdersAsTimeout(self, ):
4349
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4350
    if mtype == TMessageType.EXCEPTION:
4351
      x = TApplicationException()
4352
      x.read(self._iprot)
4353
      self._iprot.readMessageEnd()
4354
      raise x
4355
    result = markOrdersAsTimeout_result()
4356
    result.read(self._iprot)
4357
    self._iprot.readMessageEnd()
4358
    if result.success is not None:
4359
      return result.success
4360
    if result.ex is not None:
4361
      raise result.ex
4362
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrdersAsTimeout failed: unknown result");
4363
 
4662 rajveer 4364
  def markOrderAsLostInTransit(self, orderId):
4365
    """
4366
    Mark order as LOST_IN_TRANSIT
4367
 
4368
    Parameters:
4369
     - orderId
4370
    """
4371
    self.send_markOrderAsLostInTransit(orderId)
4372
    return self.recv_markOrderAsLostInTransit()
4373
 
4374
  def send_markOrderAsLostInTransit(self, orderId):
4375
    self._oprot.writeMessageBegin('markOrderAsLostInTransit', TMessageType.CALL, self._seqid)
4376
    args = markOrderAsLostInTransit_args()
4377
    args.orderId = orderId
4378
    args.write(self._oprot)
4379
    self._oprot.writeMessageEnd()
4380
    self._oprot.trans.flush()
4381
 
4382
  def recv_markOrderAsLostInTransit(self, ):
4383
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4384
    if mtype == TMessageType.EXCEPTION:
4385
      x = TApplicationException()
4386
      x.read(self._iprot)
4387
      self._iprot.readMessageEnd()
4388
      raise x
4389
    result = markOrderAsLostInTransit_result()
4390
    result.read(self._iprot)
4391
    self._iprot.readMessageEnd()
4392
    if result.success is not None:
4393
      return result.success
4394
    if result.ex is not None:
4395
      raise result.ex
4396
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markOrderAsLostInTransit failed: unknown result");
4397
 
4386 anupam.sin 4398
  def getOrderForAwb(self, awb):
4399
    """
4400
    Returns the order corresponding to an AWB number
4369 rajveer 4401
 
4386 anupam.sin 4402
    Parameters:
4403
     - awb
4404
    """
4405
    self.send_getOrderForAwb(awb)
4406
    return self.recv_getOrderForAwb()
4407
 
4408
  def send_getOrderForAwb(self, awb):
4409
    self._oprot.writeMessageBegin('getOrderForAwb', TMessageType.CALL, self._seqid)
4410
    args = getOrderForAwb_args()
4411
    args.awb = awb
4412
    args.write(self._oprot)
4413
    self._oprot.writeMessageEnd()
4414
    self._oprot.trans.flush()
4415
 
4416
  def recv_getOrderForAwb(self, ):
4417
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4418
    if mtype == TMessageType.EXCEPTION:
4419
      x = TApplicationException()
4420
      x.read(self._iprot)
4421
      self._iprot.readMessageEnd()
4422
      raise x
4423
    result = getOrderForAwb_result()
4424
    result.read(self._iprot)
4425
    self._iprot.readMessageEnd()
4426
    if result.success is not None:
4427
      return result.success
4428
    if result.ex is not None:
4429
      raise result.ex
4430
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderForAwb failed: unknown result");
4431
 
4910 phani.kuma 4432
  def getOrdersForProviderForStatus(self, logistics_provider_id, order_status_list):
4506 phani.kuma 4433
    """
4910 phani.kuma 4434
    Returns the order corresponding to a logistics provider id for a given list of order status
4386 anupam.sin 4435
 
4506 phani.kuma 4436
    Parameters:
4437
     - logistics_provider_id
4910 phani.kuma 4438
     - order_status_list
4506 phani.kuma 4439
    """
4910 phani.kuma 4440
    self.send_getOrdersForProviderForStatus(logistics_provider_id, order_status_list)
4506 phani.kuma 4441
    return self.recv_getOrdersForProviderForStatus()
4442
 
4910 phani.kuma 4443
  def send_getOrdersForProviderForStatus(self, logistics_provider_id, order_status_list):
4506 phani.kuma 4444
    self._oprot.writeMessageBegin('getOrdersForProviderForStatus', TMessageType.CALL, self._seqid)
4445
    args = getOrdersForProviderForStatus_args()
4446
    args.logistics_provider_id = logistics_provider_id
4910 phani.kuma 4447
    args.order_status_list = order_status_list
4506 phani.kuma 4448
    args.write(self._oprot)
4449
    self._oprot.writeMessageEnd()
4450
    self._oprot.trans.flush()
4451
 
4452
  def recv_getOrdersForProviderForStatus(self, ):
4453
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4454
    if mtype == TMessageType.EXCEPTION:
4455
      x = TApplicationException()
4456
      x.read(self._iprot)
4457
      self._iprot.readMessageEnd()
4458
      raise x
4459
    result = getOrdersForProviderForStatus_result()
4460
    result.read(self._iprot)
4461
    self._iprot.readMessageEnd()
4462
    if result.success is not None:
4463
      return result.success
4464
    if result.ex is not None:
4465
      raise result.ex
4466
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersForProviderForStatus failed: unknown result");
4467
 
4600 varun.gupt 4468
  def getBilledOrdersForVendor(self, vendorId, billingDateFrom, billingDateTo):
4469
    """
4470
    Returns list of orders fullfiled from a certain vendor and billed in a given date range
4506 phani.kuma 4471
 
4600 varun.gupt 4472
    Parameters:
4473
     - vendorId
4474
     - billingDateFrom
4475
     - billingDateTo
4476
    """
4477
    self.send_getBilledOrdersForVendor(vendorId, billingDateFrom, billingDateTo)
4478
    return self.recv_getBilledOrdersForVendor()
4479
 
4480
  def send_getBilledOrdersForVendor(self, vendorId, billingDateFrom, billingDateTo):
4481
    self._oprot.writeMessageBegin('getBilledOrdersForVendor', TMessageType.CALL, self._seqid)
4482
    args = getBilledOrdersForVendor_args()
4483
    args.vendorId = vendorId
4484
    args.billingDateFrom = billingDateFrom
4485
    args.billingDateTo = billingDateTo
4486
    args.write(self._oprot)
4487
    self._oprot.writeMessageEnd()
4488
    self._oprot.trans.flush()
4489
 
4490
  def recv_getBilledOrdersForVendor(self, ):
4491
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4492
    if mtype == TMessageType.EXCEPTION:
4493
      x = TApplicationException()
4494
      x.read(self._iprot)
4495
      self._iprot.readMessageEnd()
4496
      raise x
4497
    result = getBilledOrdersForVendor_result()
4498
    result.read(self._iprot)
4499
    self._iprot.readMessageEnd()
4500
    if result.success is not None:
4501
      return result.success
4502
    if result.ex is not None:
4503
      raise result.ex
4504
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getBilledOrdersForVendor failed: unknown result");
4505
 
4607 rajveer 4506
  def getSlippedSippingDateOrders(self, ):
4507
    self.send_getSlippedSippingDateOrders()
4508
    return self.recv_getSlippedSippingDateOrders()
4509
 
4510
  def send_getSlippedSippingDateOrders(self, ):
4511
    self._oprot.writeMessageBegin('getSlippedSippingDateOrders', TMessageType.CALL, self._seqid)
4512
    args = getSlippedSippingDateOrders_args()
4513
    args.write(self._oprot)
4514
    self._oprot.writeMessageEnd()
4515
    self._oprot.trans.flush()
4516
 
4517
  def recv_getSlippedSippingDateOrders(self, ):
4518
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4519
    if mtype == TMessageType.EXCEPTION:
4520
      x = TApplicationException()
4521
      x.read(self._iprot)
4522
      self._iprot.readMessageEnd()
4523
      raise x
4524
    result = getSlippedSippingDateOrders_result()
4525
    result.read(self._iprot)
4526
    self._iprot.readMessageEnd()
4527
    if result.success is not None:
4528
      return result.success
4529
    if result.ex is not None:
4530
      raise result.ex
4531
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSlippedSippingDateOrders failed: unknown result");
4532
 
4709 rajveer 4533
  def getCancelledOrders(self, cancelDateFrom, cancelDateTo):
4534
    """
4535
    Parameters:
4536
     - cancelDateFrom
4537
     - cancelDateTo
4538
    """
4539
    self.send_getCancelledOrders(cancelDateFrom, cancelDateTo)
4540
    return self.recv_getCancelledOrders()
4541
 
4542
  def send_getCancelledOrders(self, cancelDateFrom, cancelDateTo):
4543
    self._oprot.writeMessageBegin('getCancelledOrders', TMessageType.CALL, self._seqid)
4544
    args = getCancelledOrders_args()
4545
    args.cancelDateFrom = cancelDateFrom
4546
    args.cancelDateTo = cancelDateTo
4547
    args.write(self._oprot)
4548
    self._oprot.writeMessageEnd()
4549
    self._oprot.trans.flush()
4550
 
4551
  def recv_getCancelledOrders(self, ):
4552
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4553
    if mtype == TMessageType.EXCEPTION:
4554
      x = TApplicationException()
4555
      x.read(self._iprot)
4556
      self._iprot.readMessageEnd()
4557
      raise x
4558
    result = getCancelledOrders_result()
4559
    result.read(self._iprot)
4560
    self._iprot.readMessageEnd()
4561
    if result.success is not None:
4562
      return result.success
4563
    if result.ex is not None:
4564
      raise result.ex
4565
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getCancelledOrders failed: unknown result");
4566
 
4600 varun.gupt 4567
  def saveBluedartSettlements(self, mapAWBAndAmount):
4568
    """
4569
    Parameters:
4570
     - mapAWBAndAmount
4571
    """
4572
    self.send_saveBluedartSettlements(mapAWBAndAmount)
4573
    self.recv_saveBluedartSettlements()
4574
 
4575
  def send_saveBluedartSettlements(self, mapAWBAndAmount):
4576
    self._oprot.writeMessageBegin('saveBluedartSettlements', TMessageType.CALL, self._seqid)
4577
    args = saveBluedartSettlements_args()
4578
    args.mapAWBAndAmount = mapAWBAndAmount
4579
    args.write(self._oprot)
4580
    self._oprot.writeMessageEnd()
4581
    self._oprot.trans.flush()
4582
 
4583
  def recv_saveBluedartSettlements(self, ):
4584
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4585
    if mtype == TMessageType.EXCEPTION:
4586
      x = TApplicationException()
4587
      x.read(self._iprot)
4588
      self._iprot.readMessageEnd()
4589
      raise x
4590
    result = saveBluedartSettlements_result()
4591
    result.read(self._iprot)
4592
    self._iprot.readMessageEnd()
4593
    if result.ex is not None:
4594
      raise result.ex
4595
    return
4596
 
4905 varun.gupt 4597
  def savePaymentSettlements(self, settlementDate, paymentGatewayId, referenceId, serviceTax, otherCharges, netCollection):
4600 varun.gupt 4598
    """
4599
    Parameters:
4600
     - settlementDate
4601
     - paymentGatewayId
4905 varun.gupt 4602
     - referenceId
4600 varun.gupt 4603
     - serviceTax
4604
     - otherCharges
4605
     - netCollection
4606
    """
4905 varun.gupt 4607
    self.send_savePaymentSettlements(settlementDate, paymentGatewayId, referenceId, serviceTax, otherCharges, netCollection)
4600 varun.gupt 4608
    self.recv_savePaymentSettlements()
4609
 
4905 varun.gupt 4610
  def send_savePaymentSettlements(self, settlementDate, paymentGatewayId, referenceId, serviceTax, otherCharges, netCollection):
4600 varun.gupt 4611
    self._oprot.writeMessageBegin('savePaymentSettlements', TMessageType.CALL, self._seqid)
4612
    args = savePaymentSettlements_args()
4613
    args.settlementDate = settlementDate
4614
    args.paymentGatewayId = paymentGatewayId
4905 varun.gupt 4615
    args.referenceId = referenceId
4600 varun.gupt 4616
    args.serviceTax = serviceTax
4617
    args.otherCharges = otherCharges
4618
    args.netCollection = netCollection
4619
    args.write(self._oprot)
4620
    self._oprot.writeMessageEnd()
4621
    self._oprot.trans.flush()
4622
 
4623
  def recv_savePaymentSettlements(self, ):
4624
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4625
    if mtype == TMessageType.EXCEPTION:
4626
      x = TApplicationException()
4627
      x.read(self._iprot)
4628
      self._iprot.readMessageEnd()
4629
      raise x
4630
    result = savePaymentSettlements_result()
4631
    result.read(self._iprot)
4632
    self._iprot.readMessageEnd()
4633
    if result.ex is not None:
4634
      raise result.ex
4635
    return
4636
 
4637
  def saveEBSSettlementSummary(self, settlementId, settlementDate, transactionDateFrom, transactionDateTo, amount):
4638
    """
4639
    Parameters:
4640
     - settlementId
4641
     - settlementDate
4642
     - transactionDateFrom
4643
     - transactionDateTo
4644
     - amount
4645
    """
4646
    self.send_saveEBSSettlementSummary(settlementId, settlementDate, transactionDateFrom, transactionDateTo, amount)
4647
    self.recv_saveEBSSettlementSummary()
4648
 
4649
  def send_saveEBSSettlementSummary(self, settlementId, settlementDate, transactionDateFrom, transactionDateTo, amount):
4650
    self._oprot.writeMessageBegin('saveEBSSettlementSummary', TMessageType.CALL, self._seqid)
4651
    args = saveEBSSettlementSummary_args()
4652
    args.settlementId = settlementId
4653
    args.settlementDate = settlementDate
4654
    args.transactionDateFrom = transactionDateFrom
4655
    args.transactionDateTo = transactionDateTo
4656
    args.amount = amount
4657
    args.write(self._oprot)
4658
    self._oprot.writeMessageEnd()
4659
    self._oprot.trans.flush()
4660
 
4661
  def recv_saveEBSSettlementSummary(self, ):
4662
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4663
    if mtype == TMessageType.EXCEPTION:
4664
      x = TApplicationException()
4665
      x.read(self._iprot)
4666
      self._iprot.readMessageEnd()
4667
      raise x
4668
    result = saveEBSSettlementSummary_result()
4669
    result.read(self._iprot)
4670
    self._iprot.readMessageEnd()
4671
    if result.ex is not None:
4672
      raise result.ex
4673
    return
4674
 
5386 phani.kuma 4675
  def getSettlementForPrepaid(self, referenceId, isRefund):
4600 varun.gupt 4676
    """
4677
    Parameters:
5189 varun.gupt 4678
     - referenceId
4679
     - isRefund
4600 varun.gupt 4680
    """
5386 phani.kuma 4681
    self.send_getSettlementForPrepaid(referenceId, isRefund)
4682
    return self.recv_getSettlementForPrepaid()
4600 varun.gupt 4683
 
5386 phani.kuma 4684
  def send_getSettlementForPrepaid(self, referenceId, isRefund):
4685
    self._oprot.writeMessageBegin('getSettlementForPrepaid', TMessageType.CALL, self._seqid)
4686
    args = getSettlementForPrepaid_args()
5189 varun.gupt 4687
    args.referenceId = referenceId
4688
    args.isRefund = isRefund
4600 varun.gupt 4689
    args.write(self._oprot)
4690
    self._oprot.writeMessageEnd()
4691
    self._oprot.trans.flush()
4692
 
5386 phani.kuma 4693
  def recv_getSettlementForPrepaid(self, ):
4600 varun.gupt 4694
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4695
    if mtype == TMessageType.EXCEPTION:
4696
      x = TApplicationException()
4697
      x.read(self._iprot)
4698
      self._iprot.readMessageEnd()
4699
      raise x
5386 phani.kuma 4700
    result = getSettlementForPrepaid_result()
4600 varun.gupt 4701
    result.read(self._iprot)
4702
    self._iprot.readMessageEnd()
4703
    if result.success is not None:
4704
      return result.success
4705
    if result.ex is not None:
4706
      raise result.ex
5386 phani.kuma 4707
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSettlementForPrepaid failed: unknown result");
4600 varun.gupt 4708
 
5386 phani.kuma 4709
  def getSettlementForCod(self, orderId, isRefund):
4710
    """
4711
    Parameters:
4712
     - orderId
4713
     - isRefund
4714
    """
4715
    self.send_getSettlementForCod(orderId, isRefund)
4716
    return self.recv_getSettlementForCod()
4717
 
4718
  def send_getSettlementForCod(self, orderId, isRefund):
4719
    self._oprot.writeMessageBegin('getSettlementForCod', TMessageType.CALL, self._seqid)
4720
    args = getSettlementForCod_args()
4721
    args.orderId = orderId
4722
    args.isRefund = isRefund
4723
    args.write(self._oprot)
4724
    self._oprot.writeMessageEnd()
4725
    self._oprot.trans.flush()
4726
 
4727
  def recv_getSettlementForCod(self, ):
4728
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4729
    if mtype == TMessageType.EXCEPTION:
4730
      x = TApplicationException()
4731
      x.read(self._iprot)
4732
      self._iprot.readMessageEnd()
4733
      raise x
4734
    result = getSettlementForCod_result()
4735
    result.read(self._iprot)
4736
    self._iprot.readMessageEnd()
4737
    if result.success is not None:
4738
      return result.success
4739
    if result.ex is not None:
4740
      raise result.ex
4741
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSettlementForCod failed: unknown result");
4742
 
4600 varun.gupt 4743
  def getEBSSettlementSummaries(self, ):
4744
    self.send_getEBSSettlementSummaries()
4745
    return self.recv_getEBSSettlementSummaries()
4746
 
4747
  def send_getEBSSettlementSummaries(self, ):
4748
    self._oprot.writeMessageBegin('getEBSSettlementSummaries', TMessageType.CALL, self._seqid)
4749
    args = getEBSSettlementSummaries_args()
4750
    args.write(self._oprot)
4751
    self._oprot.writeMessageEnd()
4752
    self._oprot.trans.flush()
4753
 
4754
  def recv_getEBSSettlementSummaries(self, ):
4755
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4756
    if mtype == TMessageType.EXCEPTION:
4757
      x = TApplicationException()
4758
      x.read(self._iprot)
4759
      self._iprot.readMessageEnd()
4760
      raise x
4761
    result = getEBSSettlementSummaries_result()
4762
    result.read(self._iprot)
4763
    self._iprot.readMessageEnd()
4764
    if result.success is not None:
4765
      return result.success
4766
    if result.ex is not None:
4767
      raise result.ex
4768
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEBSSettlementSummaries failed: unknown result");
4769
 
4770
  def markEBSSettlementUploaded(self, settlementId):
4771
    """
4772
    Parameters:
4773
     - settlementId
4774
    """
4775
    self.send_markEBSSettlementUploaded(settlementId)
4776
    self.recv_markEBSSettlementUploaded()
4777
 
4778
  def send_markEBSSettlementUploaded(self, settlementId):
4779
    self._oprot.writeMessageBegin('markEBSSettlementUploaded', TMessageType.CALL, self._seqid)
4780
    args = markEBSSettlementUploaded_args()
4781
    args.settlementId = settlementId
4782
    args.write(self._oprot)
4783
    self._oprot.writeMessageEnd()
4784
    self._oprot.trans.flush()
4785
 
4786
  def recv_markEBSSettlementUploaded(self, ):
4787
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4788
    if mtype == TMessageType.EXCEPTION:
4789
      x = TApplicationException()
4790
      x.read(self._iprot)
4791
      self._iprot.readMessageEnd()
4792
      raise x
4793
    result = markEBSSettlementUploaded_result()
4794
    result.read(self._iprot)
4795
    self._iprot.readMessageEnd()
4796
    if result.ex is not None:
4797
      raise result.ex
4798
    return
4799
 
4800
  def getEBSSettlementDate(self, settlementId):
4801
    """
4802
    Parameters:
4803
     - settlementId
4804
    """
4805
    self.send_getEBSSettlementDate(settlementId)
4806
    return self.recv_getEBSSettlementDate()
4807
 
4808
  def send_getEBSSettlementDate(self, settlementId):
4809
    self._oprot.writeMessageBegin('getEBSSettlementDate', TMessageType.CALL, self._seqid)
4810
    args = getEBSSettlementDate_args()
4811
    args.settlementId = settlementId
4812
    args.write(self._oprot)
4813
    self._oprot.writeMessageEnd()
4814
    self._oprot.trans.flush()
4815
 
4816
  def recv_getEBSSettlementDate(self, ):
4817
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4818
    if mtype == TMessageType.EXCEPTION:
4819
      x = TApplicationException()
4820
      x.read(self._iprot)
4821
      self._iprot.readMessageEnd()
4822
      raise x
4823
    result = getEBSSettlementDate_result()
4824
    result.read(self._iprot)
4825
    self._iprot.readMessageEnd()
4826
    if result.success is not None:
4827
      return result.success
4828
    if result.ex is not None:
4829
      raise result.ex
4830
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getEBSSettlementDate failed: unknown result");
4831
 
4715 varun.gupt 4832
  def getSettlementsByDate(self, settlementDateFrom, settlementDateTo, isRefund):
4833
    """
4834
    Parameters:
4835
     - settlementDateFrom
4836
     - settlementDateTo
4837
     - isRefund
4838
    """
4839
    self.send_getSettlementsByDate(settlementDateFrom, settlementDateTo, isRefund)
4840
    return self.recv_getSettlementsByDate()
4600 varun.gupt 4841
 
4715 varun.gupt 4842
  def send_getSettlementsByDate(self, settlementDateFrom, settlementDateTo, isRefund):
4843
    self._oprot.writeMessageBegin('getSettlementsByDate', TMessageType.CALL, self._seqid)
4844
    args = getSettlementsByDate_args()
4845
    args.settlementDateFrom = settlementDateFrom
4846
    args.settlementDateTo = settlementDateTo
4847
    args.isRefund = isRefund
4848
    args.write(self._oprot)
4849
    self._oprot.writeMessageEnd()
4850
    self._oprot.trans.flush()
4851
 
4852
  def recv_getSettlementsByDate(self, ):
4853
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4854
    if mtype == TMessageType.EXCEPTION:
4855
      x = TApplicationException()
4856
      x.read(self._iprot)
4857
      self._iprot.readMessageEnd()
4858
      raise x
4859
    result = getSettlementsByDate_result()
4860
    result.read(self._iprot)
4861
    self._iprot.readMessageEnd()
4862
    if result.success is not None:
4863
      return result.success
4864
    if result.ex is not None:
4865
      raise result.ex
4866
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSettlementsByDate failed: unknown result");
4867
 
4868
  def getReshippedOrderIds(self, orderIds):
4869
    """
4870
    Returns list of Order Ids, which belong to reshiped orders, shortlisted from a given list of Order Ids
4871
 
4872
    Parameters:
4873
     - orderIds
4874
    """
4875
    self.send_getReshippedOrderIds(orderIds)
4876
    return self.recv_getReshippedOrderIds()
4877
 
4878
  def send_getReshippedOrderIds(self, orderIds):
4879
    self._oprot.writeMessageBegin('getReshippedOrderIds', TMessageType.CALL, self._seqid)
4880
    args = getReshippedOrderIds_args()
4881
    args.orderIds = orderIds
4882
    args.write(self._oprot)
4883
    self._oprot.writeMessageEnd()
4884
    self._oprot.trans.flush()
4885
 
4886
  def recv_getReshippedOrderIds(self, ):
4887
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4888
    if mtype == TMessageType.EXCEPTION:
4889
      x = TApplicationException()
4890
      x.read(self._iprot)
4891
      self._iprot.readMessageEnd()
4892
      raise x
4893
    result = getReshippedOrderIds_result()
4894
    result.read(self._iprot)
4895
    self._iprot.readMessageEnd()
4896
    if result.success is not None:
4897
      return result.success
4898
    if result.ex is not None:
4899
      raise result.ex
4900
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getReshippedOrderIds failed: unknown result");
4901
 
4875 varun.gupt 4902
  def getOrdersWhereVendorNotPaid(self, vendorId):
4903
    """
4904
    Parameters:
4905
     - vendorId
4906
    """
4907
    self.send_getOrdersWhereVendorNotPaid(vendorId)
4908
    return self.recv_getOrdersWhereVendorNotPaid()
4757 mandeep.dh 4909
 
4875 varun.gupt 4910
  def send_getOrdersWhereVendorNotPaid(self, vendorId):
4911
    self._oprot.writeMessageBegin('getOrdersWhereVendorNotPaid', TMessageType.CALL, self._seqid)
4912
    args = getOrdersWhereVendorNotPaid_args()
4913
    args.vendorId = vendorId
4914
    args.write(self._oprot)
4915
    self._oprot.writeMessageEnd()
4916
    self._oprot.trans.flush()
4917
 
4918
  def recv_getOrdersWhereVendorNotPaid(self, ):
4919
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4920
    if mtype == TMessageType.EXCEPTION:
4921
      x = TApplicationException()
4922
      x.read(self._iprot)
4923
      self._iprot.readMessageEnd()
4924
      raise x
4925
    result = getOrdersWhereVendorNotPaid_result()
4926
    result.read(self._iprot)
4927
    self._iprot.readMessageEnd()
4928
    if result.success is not None:
4929
      return result.success
4930
    if result.ex is not None:
4931
      raise result.ex
4932
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrdersWhereVendorNotPaid failed: unknown result");
4933
 
5031 varun.gupt 4934
  def getStatusDistributionOfOrders(self, startDate, endDate):
4935
    """
4936
    Parameters:
4937
     - startDate
4938
     - endDate
4939
    """
4940
    self.send_getStatusDistributionOfOrders(startDate, endDate)
4941
    return self.recv_getStatusDistributionOfOrders()
4875 varun.gupt 4942
 
5031 varun.gupt 4943
  def send_getStatusDistributionOfOrders(self, startDate, endDate):
4944
    self._oprot.writeMessageBegin('getStatusDistributionOfOrders', TMessageType.CALL, self._seqid)
4945
    args = getStatusDistributionOfOrders_args()
4946
    args.startDate = startDate
4947
    args.endDate = endDate
4948
    args.write(self._oprot)
4949
    self._oprot.writeMessageEnd()
4950
    self._oprot.trans.flush()
4951
 
4952
  def recv_getStatusDistributionOfOrders(self, ):
4953
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4954
    if mtype == TMessageType.EXCEPTION:
4955
      x = TApplicationException()
4956
      x.read(self._iprot)
4957
      self._iprot.readMessageEnd()
4958
      raise x
4959
    result = getStatusDistributionOfOrders_result()
4960
    result.read(self._iprot)
4961
    self._iprot.readMessageEnd()
4962
    if result.success is not None:
4963
      return result.success
4964
    if result.ex is not None:
4965
      raise result.ex
4966
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStatusDistributionOfOrders failed: unknown result");
4967
 
5067 varun.gupt 4968
  def getOrderIdsForStatus(self, status, startDatetime, endDatetime):
4969
    """
4970
    Parameters:
4971
     - status
4972
     - startDatetime
4973
     - endDatetime
4974
    """
4975
    self.send_getOrderIdsForStatus(status, startDatetime, endDatetime)
4976
    return self.recv_getOrderIdsForStatus()
5031 varun.gupt 4977
 
5067 varun.gupt 4978
  def send_getOrderIdsForStatus(self, status, startDatetime, endDatetime):
4979
    self._oprot.writeMessageBegin('getOrderIdsForStatus', TMessageType.CALL, self._seqid)
4980
    args = getOrderIdsForStatus_args()
4981
    args.status = status
4982
    args.startDatetime = startDatetime
4983
    args.endDatetime = endDatetime
4984
    args.write(self._oprot)
4985
    self._oprot.writeMessageEnd()
4986
    self._oprot.trans.flush()
4987
 
4988
  def recv_getOrderIdsForStatus(self, ):
4989
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
4990
    if mtype == TMessageType.EXCEPTION:
4991
      x = TApplicationException()
4992
      x.read(self._iprot)
4993
      self._iprot.readMessageEnd()
4994
      raise x
4995
    result = getOrderIdsForStatus_result()
4996
    result.read(self._iprot)
4997
    self._iprot.readMessageEnd()
4998
    if result.success is not None:
4999
      return result.success
5000
    if result.ex is not None:
5001
      raise result.ex
5002
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getOrderIdsForStatus failed: unknown result");
5003
 
5348 anupam.sin 5004
  def updateCODAgent(self, agent, orderId):
5005
    """
5006
    Updates the agent who handled the COD verification call
5007
 
5008
    Parameters:
5009
     - agent
5010
     - orderId
5011
    """
5012
    self.send_updateCODAgent(agent, orderId)
5013
    self.recv_updateCODAgent()
5014
 
5015
  def send_updateCODAgent(self, agent, orderId):
5016
    self._oprot.writeMessageBegin('updateCODAgent', TMessageType.CALL, self._seqid)
5017
    args = updateCODAgent_args()
5018
    args.agent = agent
5019
    args.orderId = orderId
5020
    args.write(self._oprot)
5021
    self._oprot.writeMessageEnd()
5022
    self._oprot.trans.flush()
5023
 
5024
  def recv_updateCODAgent(self, ):
5025
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5026
    if mtype == TMessageType.EXCEPTION:
5027
      x = TApplicationException()
5028
      x.read(self._iprot)
5029
      self._iprot.readMessageEnd()
5030
      raise x
5031
    result = updateCODAgent_result()
5032
    result.read(self._iprot)
5033
    self._iprot.readMessageEnd()
5034
    if result.ex is not None:
5035
      raise result.ex
5036
    return
5037
 
5099 varun.gupt 5038
  def updateOrderAsPaidToVendor(self, orderId):
5039
    """
5040
    Parameters:
5041
     - orderId
5042
    """
5043
    self.send_updateOrderAsPaidToVendor(orderId)
5044
    self.recv_updateOrderAsPaidToVendor()
5067 varun.gupt 5045
 
5099 varun.gupt 5046
  def send_updateOrderAsPaidToVendor(self, orderId):
5047
    self._oprot.writeMessageBegin('updateOrderAsPaidToVendor', TMessageType.CALL, self._seqid)
5048
    args = updateOrderAsPaidToVendor_args()
5049
    args.orderId = orderId
5050
    args.write(self._oprot)
5051
    self._oprot.writeMessageEnd()
5052
    self._oprot.trans.flush()
5053
 
5054
  def recv_updateOrderAsPaidToVendor(self, ):
5055
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5056
    if mtype == TMessageType.EXCEPTION:
5057
      x = TApplicationException()
5058
      x.read(self._iprot)
5059
      self._iprot.readMessageEnd()
5060
      raise x
5061
    result = updateOrderAsPaidToVendor_result()
5062
    result.read(self._iprot)
5063
    self._iprot.readMessageEnd()
5064
    if result.ex is not None:
5065
      raise result.ex
5066
    return
5067
 
5386 phani.kuma 5068
  def updateOrderOnlyAsPaidToVendor(self, orderId):
5069
    """
5070
    Parameters:
5071
     - orderId
5072
    """
5073
    self.send_updateOrderOnlyAsPaidToVendor(orderId)
5074
    self.recv_updateOrderOnlyAsPaidToVendor()
5075
 
5076
  def send_updateOrderOnlyAsPaidToVendor(self, orderId):
5077
    self._oprot.writeMessageBegin('updateOrderOnlyAsPaidToVendor', TMessageType.CALL, self._seqid)
5078
    args = updateOrderOnlyAsPaidToVendor_args()
5079
    args.orderId = orderId
5080
    args.write(self._oprot)
5081
    self._oprot.writeMessageEnd()
5082
    self._oprot.trans.flush()
5083
 
5084
  def recv_updateOrderOnlyAsPaidToVendor(self, ):
5085
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5086
    if mtype == TMessageType.EXCEPTION:
5087
      x = TApplicationException()
5088
      x.read(self._iprot)
5089
      self._iprot.readMessageEnd()
5090
      raise x
5091
    result = updateOrderOnlyAsPaidToVendor_result()
5092
    result.read(self._iprot)
5093
    self._iprot.readMessageEnd()
5094
    if result.ex is not None:
5095
      raise result.ex
5096
    return
5097
 
5208 varun.gupt 5098
  def getRefundedOrdersMarkedPaid(self, ):
5099
    self.send_getRefundedOrdersMarkedPaid()
5100
    return self.recv_getRefundedOrdersMarkedPaid()
5099 varun.gupt 5101
 
5208 varun.gupt 5102
  def send_getRefundedOrdersMarkedPaid(self, ):
5103
    self._oprot.writeMessageBegin('getRefundedOrdersMarkedPaid', TMessageType.CALL, self._seqid)
5104
    args = getRefundedOrdersMarkedPaid_args()
5105
    args.write(self._oprot)
5106
    self._oprot.writeMessageEnd()
5107
    self._oprot.trans.flush()
5108
 
5109
  def recv_getRefundedOrdersMarkedPaid(self, ):
5110
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
5111
    if mtype == TMessageType.EXCEPTION:
5112
      x = TApplicationException()
5113
      x.read(self._iprot)
5114
      self._iprot.readMessageEnd()
5115
      raise x
5116
    result = getRefundedOrdersMarkedPaid_result()
5117
    result.read(self._iprot)
5118
    self._iprot.readMessageEnd()
5119
    if result.success is not None:
5120
      return result.success
5121
    if result.ex is not None:
5122
      raise result.ex
5123
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getRefundedOrdersMarkedPaid failed: unknown result");
5124
 
5125
 
3376 rajveer 5126
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
94 ashish 5127
  def __init__(self, handler):
3376 rajveer 5128
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
94 ashish 5129
    self._processMap["createTransaction"] = Processor.process_createTransaction
5130
    self._processMap["getTransaction"] = Processor.process_getTransaction
5131
    self._processMap["getTransactionsForCustomer"] = Processor.process_getTransactionsForCustomer
132 ashish 5132
    self._processMap["getTransactionsForShoppingCartId"] = Processor.process_getTransactionsForShoppingCartId
94 ashish 5133
    self._processMap["getTransactionStatus"] = Processor.process_getTransactionStatus
5134
    self._processMap["changeTransactionStatus"] = Processor.process_changeTransactionStatus
1398 varun.gupt 5135
    self._processMap["enqueueTransactionInfoEmail"] = Processor.process_enqueueTransactionInfoEmail
483 rajveer 5136
    self._processMap["getAllOrders"] = Processor.process_getAllOrders
4133 chandransh 5137
    self._processMap["getOrdersInBatch"] = Processor.process_getOrdersInBatch
5138
    self._processMap["getOrderCount"] = Processor.process_getOrderCount
999 varun.gupt 5139
    self._processMap["getOrdersByBillingDate"] = Processor.process_getOrdersByBillingDate
3427 chandransh 5140
    self._processMap["getOrdersByShippingDate"] = Processor.process_getOrdersByShippingDate
1382 varun.gupt 5141
    self._processMap["getReturnableOrdersForCustomer"] = Processor.process_getReturnableOrdersForCustomer
5142
    self._processMap["getCancellableOrdersForCustomer"] = Processor.process_getCancellableOrdersForCustomer
483 rajveer 5143
    self._processMap["changeOrderStatus"] = Processor.process_changeOrderStatus
5144
    self._processMap["getOrdersForTransaction"] = Processor.process_getOrdersForTransaction
5145
    self._processMap["getOrdersForCustomer"] = Processor.process_getOrdersForCustomer
5146
    self._processMap["createOrder"] = Processor.process_createOrder
5147
    self._processMap["getOrder"] = Processor.process_getOrder
5148
    self._processMap["getLineItemsForOrder"] = Processor.process_getLineItemsForOrder
4999 phani.kuma 5149
    self._processMap["getOrderList"] = Processor.process_getOrderList
5386 phani.kuma 5150
    self._processMap["getOrderListForVendor"] = Processor.process_getOrderListForVendor
1528 ankur.sing 5151
    self._processMap["getOrderForCustomer"] = Processor.process_getOrderForCustomer
3064 chandransh 5152
    self._processMap["getAlerts"] = Processor.process_getAlerts
4394 rajveer 5153
    self._processMap["addAlert"] = Processor.process_addAlert
4444 rajveer 5154
    self._processMap["markAlertsAsSeen"] = Processor.process_markAlertsAsSeen
3064 chandransh 5155
    self._processMap["getValidOrderCount"] = Processor.process_getValidOrderCount
5156
    self._processMap["getNoOfCustomersWithSuccessfulTransaction"] = Processor.process_getNoOfCustomersWithSuccessfulTransaction
5157
    self._processMap["getValidOrdersAmountRange"] = Processor.process_getValidOrdersAmountRange
5158
    self._processMap["getValidOrders"] = Processor.process_getValidOrders
1220 chandransh 5159
    self._processMap["batchOrders"] = Processor.process_batchOrders
1208 chandransh 5160
    self._processMap["markOrderAsOutOfStock"] = Processor.process_markOrderAsOutOfStock
3064 chandransh 5161
    self._processMap["verifyOrder"] = Processor.process_verifyOrder
5162
    self._processMap["acceptOrder"] = Processor.process_acceptOrder
5163
    self._processMap["addBillingDetails"] = Processor.process_addBillingDetails
4579 rajveer 5164
    self._processMap["addInvoiceNumber"] = Processor.process_addInvoiceNumber
4410 rajveer 5165
    self._processMap["markOrdersAsShippedFromWarehouse"] = Processor.process_markOrdersAsShippedFromWarehouse
1113 chandransh 5166
    self._processMap["markOrdersAsPickedUp"] = Processor.process_markOrdersAsPickedUp
4910 phani.kuma 5167
    self._processMap["getOrdersNotPickedUp"] = Processor.process_getOrdersNotPickedUp
1132 chandransh 5168
    self._processMap["markOrdersAsDelivered"] = Processor.process_markOrdersAsDelivered
4910 phani.kuma 5169
    self._processMap["markAsRTOrders"] = Processor.process_markAsRTOrders
5170
    self._processMap["getRTOrders"] = Processor.process_getRTOrders
1246 chandransh 5171
    self._processMap["updateNonDeliveryReason"] = Processor.process_updateNonDeliveryReason
4910 phani.kuma 5172
    self._processMap["getNonDeliveredOrdersbyCourier"] = Processor.process_getNonDeliveredOrdersbyCourier
5173
    self._processMap["markOrdersAsLocalConnected"] = Processor.process_markOrdersAsLocalConnected
5174
    self._processMap["getOrdersNotLocalConnected"] = Processor.process_getOrdersNotLocalConnected
5175
    self._processMap["markOrdersAsDestinationCityReached"] = Processor.process_markOrdersAsDestinationCityReached
5176
    self._processMap["markOrdersAsFirstDeliveryAttempted"] = Processor.process_markOrdersAsFirstDeliveryAttempted
1408 ankur.sing 5177
    self._processMap["getUndeliveredOrders"] = Processor.process_getUndeliveredOrders
4783 phani.kuma 5178
    self._processMap["getUndeliveredOrdersExpectedDeliveryDateNotMet"] = Processor.process_getUndeliveredOrdersExpectedDeliveryDateNotMet
2536 chandransh 5179
    self._processMap["toggleDOAFlag"] = Processor.process_toggleDOAFlag
4712 rajveer 5180
    self._processMap["markOrderAsDelivered"] = Processor.process_markOrderAsDelivered
4454 rajveer 5181
    self._processMap["markOrderDoaRequestReceived"] = Processor.process_markOrderDoaRequestReceived
5182
    self._processMap["markOrderDoaRequestAuthorized"] = Processor.process_markOrderDoaRequestAuthorized
4488 rajveer 5183
    self._processMap["markOrderReturnRequestReceived"] = Processor.process_markOrderReturnRequestReceived
5184
    self._processMap["markOrderReturnRequestAuthorized"] = Processor.process_markOrderReturnRequestAuthorized
2536 chandransh 5185
    self._processMap["requestPickupNumber"] = Processor.process_requestPickupNumber
5186
    self._processMap["authorizePickup"] = Processor.process_authorizePickup
2764 chandransh 5187
    self._processMap["markDoasAsPickedUp"] = Processor.process_markDoasAsPickedUp
4910 phani.kuma 5188
    self._processMap["getDoasNotPickedUp"] = Processor.process_getDoasNotPickedUp
4741 phani.kuma 5189
    self._processMap["markReturnOrdersAsPickedUp"] = Processor.process_markReturnOrdersAsPickedUp
4910 phani.kuma 5190
    self._processMap["getReturnOrdersNotPickedUp"] = Processor.process_getReturnOrdersNotPickedUp
2616 chandransh 5191
    self._processMap["receiveReturn"] = Processor.process_receiveReturn
2591 chandransh 5192
    self._processMap["validateDoa"] = Processor.process_validateDoa
4495 rajveer 5193
    self._processMap["validateReturnProduct"] = Processor.process_validateReturnProduct
2616 chandransh 5194
    self._processMap["reshipOrder"] = Processor.process_reshipOrder
5195
    self._processMap["refundOrder"] = Processor.process_refundOrder
2690 chandransh 5196
    self._processMap["getReturnOrders"] = Processor.process_getReturnOrders
2700 chandransh 5197
    self._processMap["getReturnOrder"] = Processor.process_getReturnOrder
2690 chandransh 5198
    self._processMap["processReturn"] = Processor.process_processReturn
3451 chandransh 5199
    self._processMap["updateWeight"] = Processor.process_updateWeight
3469 chandransh 5200
    self._processMap["changeItem"] = Processor.process_changeItem
5201
    self._processMap["shiftToWarehouse"] = Processor.process_shiftToWarehouse
3553 chandransh 5202
    self._processMap["addDelayReason"] = Processor.process_addDelayReason
3956 chandransh 5203
    self._processMap["reconcileCodCollection"] = Processor.process_reconcileCodCollection
4008 mandeep.dh 5204
    self._processMap["getTransactionsRequiringExtraProcessing"] = Processor.process_getTransactionsRequiringExtraProcessing
5205
    self._processMap["markTransactionAsProcessed"] = Processor.process_markTransactionAsProcessed
4018 chandransh 5206
    self._processMap["getItemWiseRiskyOrdersCount"] = Processor.process_getItemWiseRiskyOrdersCount
4295 varun.gupt 5207
    self._processMap["getOrdersForItemIds"] = Processor.process_getOrdersForItemIds
4247 rajveer 5208
    self._processMap["markOrderCancellationRequestReceived"] = Processor.process_markOrderCancellationRequestReceived
5209
    self._processMap["markOrderCancellationRequestConfirmed"] = Processor.process_markOrderCancellationRequestConfirmed
5210
    self._processMap["markOrderCancellationRequestDenied"] = Processor.process_markOrderCancellationRequestDenied
4258 rajveer 5211
    self._processMap["markTransactionAsPaymentFlagRemoved"] = Processor.process_markTransactionAsPaymentFlagRemoved
4259 anupam.sin 5212
    self._processMap["refundTransaction"] = Processor.process_refundTransaction
4324 mandeep.dh 5213
    self._processMap["updateShipmentAddress"] = Processor.process_updateShipmentAddress
4285 rajveer 5214
    self._processMap["acceptOrdersForItemId"] = Processor.process_acceptOrdersForItemId
4303 rajveer 5215
    self._processMap["markOrdersAsPORaised"] = Processor.process_markOrdersAsPORaised
5216
    self._processMap["markOrdersAsReversalInitiated"] = Processor.process_markOrdersAsReversalInitiated
5217
    self._processMap["markOrdersAsNotAvailabke"] = Processor.process_markOrdersAsNotAvailabke
4369 rajveer 5218
    self._processMap["markOrdersAsTimeout"] = Processor.process_markOrdersAsTimeout
4662 rajveer 5219
    self._processMap["markOrderAsLostInTransit"] = Processor.process_markOrderAsLostInTransit
4386 anupam.sin 5220
    self._processMap["getOrderForAwb"] = Processor.process_getOrderForAwb
4506 phani.kuma 5221
    self._processMap["getOrdersForProviderForStatus"] = Processor.process_getOrdersForProviderForStatus
4600 varun.gupt 5222
    self._processMap["getBilledOrdersForVendor"] = Processor.process_getBilledOrdersForVendor
4607 rajveer 5223
    self._processMap["getSlippedSippingDateOrders"] = Processor.process_getSlippedSippingDateOrders
4709 rajveer 5224
    self._processMap["getCancelledOrders"] = Processor.process_getCancelledOrders
4600 varun.gupt 5225
    self._processMap["saveBluedartSettlements"] = Processor.process_saveBluedartSettlements
5226
    self._processMap["savePaymentSettlements"] = Processor.process_savePaymentSettlements
5227
    self._processMap["saveEBSSettlementSummary"] = Processor.process_saveEBSSettlementSummary
5386 phani.kuma 5228
    self._processMap["getSettlementForPrepaid"] = Processor.process_getSettlementForPrepaid
5229
    self._processMap["getSettlementForCod"] = Processor.process_getSettlementForCod
4600 varun.gupt 5230
    self._processMap["getEBSSettlementSummaries"] = Processor.process_getEBSSettlementSummaries
5231
    self._processMap["markEBSSettlementUploaded"] = Processor.process_markEBSSettlementUploaded
5232
    self._processMap["getEBSSettlementDate"] = Processor.process_getEBSSettlementDate
4715 varun.gupt 5233
    self._processMap["getSettlementsByDate"] = Processor.process_getSettlementsByDate
5234
    self._processMap["getReshippedOrderIds"] = Processor.process_getReshippedOrderIds
4875 varun.gupt 5235
    self._processMap["getOrdersWhereVendorNotPaid"] = Processor.process_getOrdersWhereVendorNotPaid
5031 varun.gupt 5236
    self._processMap["getStatusDistributionOfOrders"] = Processor.process_getStatusDistributionOfOrders
5067 varun.gupt 5237
    self._processMap["getOrderIdsForStatus"] = Processor.process_getOrderIdsForStatus
5348 anupam.sin 5238
    self._processMap["updateCODAgent"] = Processor.process_updateCODAgent
5099 varun.gupt 5239
    self._processMap["updateOrderAsPaidToVendor"] = Processor.process_updateOrderAsPaidToVendor
5386 phani.kuma 5240
    self._processMap["updateOrderOnlyAsPaidToVendor"] = Processor.process_updateOrderOnlyAsPaidToVendor
5208 varun.gupt 5241
    self._processMap["getRefundedOrdersMarkedPaid"] = Processor.process_getRefundedOrdersMarkedPaid
94 ashish 5242
 
5243
  def process(self, iprot, oprot):
5244
    (name, type, seqid) = iprot.readMessageBegin()
5245
    if name not in self._processMap:
5246
      iprot.skip(TType.STRUCT)
5247
      iprot.readMessageEnd()
5248
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
5249
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
5250
      x.write(oprot)
5251
      oprot.writeMessageEnd()
5252
      oprot.trans.flush()
5253
      return
5254
    else:
5255
      self._processMap[name](self, seqid, iprot, oprot)
5256
    return True
5257
 
5258
  def process_createTransaction(self, seqid, iprot, oprot):
5259
    args = createTransaction_args()
5260
    args.read(iprot)
5261
    iprot.readMessageEnd()
5262
    result = createTransaction_result()
5263
    try:
132 ashish 5264
      result.success = self._handler.createTransaction(args.transaction)
94 ashish 5265
    except TransactionServiceException, ex:
5266
      result.ex = ex
5267
    oprot.writeMessageBegin("createTransaction", TMessageType.REPLY, seqid)
5268
    result.write(oprot)
5269
    oprot.writeMessageEnd()
5270
    oprot.trans.flush()
5271
 
5272
  def process_getTransaction(self, seqid, iprot, oprot):
5273
    args = getTransaction_args()
5274
    args.read(iprot)
5275
    iprot.readMessageEnd()
5276
    result = getTransaction_result()
5277
    try:
5278
      result.success = self._handler.getTransaction(args.id)
5279
    except TransactionServiceException, ex:
5280
      result.ex = ex
5281
    oprot.writeMessageBegin("getTransaction", TMessageType.REPLY, seqid)
5282
    result.write(oprot)
5283
    oprot.writeMessageEnd()
5284
    oprot.trans.flush()
5285
 
5286
  def process_getTransactionsForCustomer(self, seqid, iprot, oprot):
5287
    args = getTransactionsForCustomer_args()
5288
    args.read(iprot)
5289
    iprot.readMessageEnd()
5290
    result = getTransactionsForCustomer_result()
5291
    try:
5292
      result.success = self._handler.getTransactionsForCustomer(args.customerId, args.from_date, args.to_date, args.status)
5293
    except TransactionServiceException, ex:
5294
      result.ex = ex
5295
    oprot.writeMessageBegin("getTransactionsForCustomer", TMessageType.REPLY, seqid)
5296
    result.write(oprot)
5297
    oprot.writeMessageEnd()
5298
    oprot.trans.flush()
5299
 
132 ashish 5300
  def process_getTransactionsForShoppingCartId(self, seqid, iprot, oprot):
5301
    args = getTransactionsForShoppingCartId_args()
5302
    args.read(iprot)
5303
    iprot.readMessageEnd()
5304
    result = getTransactionsForShoppingCartId_result()
5305
    try:
5306
      result.success = self._handler.getTransactionsForShoppingCartId(args.shoppingCartId)
5307
    except TransactionServiceException, ex:
5308
      result.ex = ex
5309
    oprot.writeMessageBegin("getTransactionsForShoppingCartId", TMessageType.REPLY, seqid)
5310
    result.write(oprot)
5311
    oprot.writeMessageEnd()
5312
    oprot.trans.flush()
5313
 
94 ashish 5314
  def process_getTransactionStatus(self, seqid, iprot, oprot):
5315
    args = getTransactionStatus_args()
5316
    args.read(iprot)
5317
    iprot.readMessageEnd()
5318
    result = getTransactionStatus_result()
5319
    try:
5320
      result.success = self._handler.getTransactionStatus(args.transactionId)
5321
    except TransactionServiceException, ex:
5322
      result.ex = ex
5323
    oprot.writeMessageBegin("getTransactionStatus", TMessageType.REPLY, seqid)
5324
    result.write(oprot)
5325
    oprot.writeMessageEnd()
5326
    oprot.trans.flush()
5327
 
5328
  def process_changeTransactionStatus(self, seqid, iprot, oprot):
5329
    args = changeTransactionStatus_args()
5330
    args.read(iprot)
5331
    iprot.readMessageEnd()
5332
    result = changeTransactionStatus_result()
5333
    try:
5387 rajveer 5334
      result.success = self._handler.changeTransactionStatus(args.transactionId, args.status, args.description, args.selfPickup)
94 ashish 5335
    except TransactionServiceException, ex:
5336
      result.ex = ex
5337
    oprot.writeMessageBegin("changeTransactionStatus", TMessageType.REPLY, seqid)
5338
    result.write(oprot)
5339
    oprot.writeMessageEnd()
5340
    oprot.trans.flush()
5341
 
1398 varun.gupt 5342
  def process_enqueueTransactionInfoEmail(self, seqid, iprot, oprot):
5343
    args = enqueueTransactionInfoEmail_args()
1382 varun.gupt 5344
    args.read(iprot)
5345
    iprot.readMessageEnd()
1398 varun.gupt 5346
    result = enqueueTransactionInfoEmail_result()
1382 varun.gupt 5347
    try:
1398 varun.gupt 5348
      result.success = self._handler.enqueueTransactionInfoEmail(args.transactionId)
1382 varun.gupt 5349
    except TransactionServiceException, ex:
5350
      result.ex = ex
1398 varun.gupt 5351
    oprot.writeMessageBegin("enqueueTransactionInfoEmail", TMessageType.REPLY, seqid)
1382 varun.gupt 5352
    result.write(oprot)
5353
    oprot.writeMessageEnd()
5354
    oprot.trans.flush()
5355
 
483 rajveer 5356
  def process_getAllOrders(self, seqid, iprot, oprot):
5357
    args = getAllOrders_args()
94 ashish 5358
    args.read(iprot)
5359
    iprot.readMessageEnd()
483 rajveer 5360
    result = getAllOrders_result()
94 ashish 5361
    try:
4801 anupam.sin 5362
      result.success = self._handler.getAllOrders(args.statuses, args.from_date, args.to_date, args.warehouse_id)
94 ashish 5363
    except TransactionServiceException, ex:
5364
      result.ex = ex
483 rajveer 5365
    oprot.writeMessageBegin("getAllOrders", TMessageType.REPLY, seqid)
94 ashish 5366
    result.write(oprot)
5367
    oprot.writeMessageEnd()
5368
    oprot.trans.flush()
5369
 
4133 chandransh 5370
  def process_getOrdersInBatch(self, seqid, iprot, oprot):
5371
    args = getOrdersInBatch_args()
5372
    args.read(iprot)
5373
    iprot.readMessageEnd()
5374
    result = getOrdersInBatch_result()
5375
    try:
5376
      result.success = self._handler.getOrdersInBatch(args.statuses, args.offset, args.limit, args.warehouse_id)
5377
    except TransactionServiceException, ex:
5378
      result.ex = ex
5379
    oprot.writeMessageBegin("getOrdersInBatch", TMessageType.REPLY, seqid)
5380
    result.write(oprot)
5381
    oprot.writeMessageEnd()
5382
    oprot.trans.flush()
5383
 
5384
  def process_getOrderCount(self, seqid, iprot, oprot):
5385
    args = getOrderCount_args()
5386
    args.read(iprot)
5387
    iprot.readMessageEnd()
5388
    result = getOrderCount_result()
5389
    try:
5390
      result.success = self._handler.getOrderCount(args.statuses, args.warehouseId)
5391
    except TransactionServiceException, ex:
5392
      result.ex = ex
5393
    oprot.writeMessageBegin("getOrderCount", TMessageType.REPLY, seqid)
5394
    result.write(oprot)
5395
    oprot.writeMessageEnd()
5396
    oprot.trans.flush()
5397
 
999 varun.gupt 5398
  def process_getOrdersByBillingDate(self, seqid, iprot, oprot):
5399
    args = getOrdersByBillingDate_args()
5400
    args.read(iprot)
5401
    iprot.readMessageEnd()
5402
    result = getOrdersByBillingDate_result()
5403
    try:
5404
      result.success = self._handler.getOrdersByBillingDate(args.status, args.start_billing_date, args.end_billing_date, args.warehouse_id)
5405
    except TransactionServiceException, ex:
5406
      result.ex = ex
5407
    oprot.writeMessageBegin("getOrdersByBillingDate", TMessageType.REPLY, seqid)
5408
    result.write(oprot)
5409
    oprot.writeMessageEnd()
5410
    oprot.trans.flush()
5411
 
3427 chandransh 5412
  def process_getOrdersByShippingDate(self, seqid, iprot, oprot):
5413
    args = getOrdersByShippingDate_args()
5414
    args.read(iprot)
5415
    iprot.readMessageEnd()
5416
    result = getOrdersByShippingDate_result()
5417
    try:
3451 chandransh 5418
      result.success = self._handler.getOrdersByShippingDate(args.fromShippingDate, args.toShippingDate, args.providerId, args.warehouseId, args.cod)
3427 chandransh 5419
    except TransactionServiceException, ex:
5420
      result.ex = ex
5421
    oprot.writeMessageBegin("getOrdersByShippingDate", TMessageType.REPLY, seqid)
5422
    result.write(oprot)
5423
    oprot.writeMessageEnd()
5424
    oprot.trans.flush()
5425
 
1382 varun.gupt 5426
  def process_getReturnableOrdersForCustomer(self, seqid, iprot, oprot):
5427
    args = getReturnableOrdersForCustomer_args()
5428
    args.read(iprot)
5429
    iprot.readMessageEnd()
5430
    result = getReturnableOrdersForCustomer_result()
5431
    try:
5432
      result.success = self._handler.getReturnableOrdersForCustomer(args.customer_id, args.limit)
5433
    except TransactionServiceException, ex:
5434
      result.ex = ex
5435
    oprot.writeMessageBegin("getReturnableOrdersForCustomer", TMessageType.REPLY, seqid)
5436
    result.write(oprot)
5437
    oprot.writeMessageEnd()
5438
    oprot.trans.flush()
5439
 
5440
  def process_getCancellableOrdersForCustomer(self, seqid, iprot, oprot):
5441
    args = getCancellableOrdersForCustomer_args()
5442
    args.read(iprot)
5443
    iprot.readMessageEnd()
5444
    result = getCancellableOrdersForCustomer_result()
5445
    try:
5446
      result.success = self._handler.getCancellableOrdersForCustomer(args.customer_id, args.limit)
5447
    except TransactionServiceException, ex:
5448
      result.ex = ex
5449
    oprot.writeMessageBegin("getCancellableOrdersForCustomer", TMessageType.REPLY, seqid)
5450
    result.write(oprot)
5451
    oprot.writeMessageEnd()
5452
    oprot.trans.flush()
5453
 
483 rajveer 5454
  def process_changeOrderStatus(self, seqid, iprot, oprot):
5455
    args = changeOrderStatus_args()
94 ashish 5456
    args.read(iprot)
5457
    iprot.readMessageEnd()
483 rajveer 5458
    result = changeOrderStatus_result()
94 ashish 5459
    try:
483 rajveer 5460
      result.success = self._handler.changeOrderStatus(args.orderId, args.status, args.description)
94 ashish 5461
    except TransactionServiceException, ex:
5462
      result.ex = ex
483 rajveer 5463
    oprot.writeMessageBegin("changeOrderStatus", TMessageType.REPLY, seqid)
94 ashish 5464
    result.write(oprot)
5465
    oprot.writeMessageEnd()
5466
    oprot.trans.flush()
5467
 
483 rajveer 5468
  def process_getOrdersForTransaction(self, seqid, iprot, oprot):
5469
    args = getOrdersForTransaction_args()
94 ashish 5470
    args.read(iprot)
5471
    iprot.readMessageEnd()
483 rajveer 5472
    result = getOrdersForTransaction_result()
94 ashish 5473
    try:
1528 ankur.sing 5474
      result.success = self._handler.getOrdersForTransaction(args.transactionId, args.customerId)
94 ashish 5475
    except TransactionServiceException, ex:
5476
      result.ex = ex
483 rajveer 5477
    oprot.writeMessageBegin("getOrdersForTransaction", TMessageType.REPLY, seqid)
94 ashish 5478
    result.write(oprot)
5479
    oprot.writeMessageEnd()
5480
    oprot.trans.flush()
5481
 
483 rajveer 5482
  def process_getOrdersForCustomer(self, seqid, iprot, oprot):
5483
    args = getOrdersForCustomer_args()
94 ashish 5484
    args.read(iprot)
5485
    iprot.readMessageEnd()
483 rajveer 5486
    result = getOrdersForCustomer_result()
94 ashish 5487
    try:
3014 chandransh 5488
      result.success = self._handler.getOrdersForCustomer(args.customerId, args.from_date, args.to_date, args.statuses)
94 ashish 5489
    except TransactionServiceException, ex:
5490
      result.ex = ex
483 rajveer 5491
    oprot.writeMessageBegin("getOrdersForCustomer", TMessageType.REPLY, seqid)
94 ashish 5492
    result.write(oprot)
5493
    oprot.writeMessageEnd()
5494
    oprot.trans.flush()
5495
 
483 rajveer 5496
  def process_createOrder(self, seqid, iprot, oprot):
5497
    args = createOrder_args()
94 ashish 5498
    args.read(iprot)
5499
    iprot.readMessageEnd()
483 rajveer 5500
    result = createOrder_result()
94 ashish 5501
    try:
483 rajveer 5502
      result.success = self._handler.createOrder(args.order)
94 ashish 5503
    except TransactionServiceException, ex:
5504
      result.ex = ex
483 rajveer 5505
    oprot.writeMessageBegin("createOrder", TMessageType.REPLY, seqid)
94 ashish 5506
    result.write(oprot)
5507
    oprot.writeMessageEnd()
5508
    oprot.trans.flush()
5509
 
483 rajveer 5510
  def process_getOrder(self, seqid, iprot, oprot):
5511
    args = getOrder_args()
94 ashish 5512
    args.read(iprot)
5513
    iprot.readMessageEnd()
483 rajveer 5514
    result = getOrder_result()
94 ashish 5515
    try:
483 rajveer 5516
      result.success = self._handler.getOrder(args.id)
94 ashish 5517
    except TransactionServiceException, ex:
5518
      result.ex = ex
483 rajveer 5519
    oprot.writeMessageBegin("getOrder", TMessageType.REPLY, seqid)
94 ashish 5520
    result.write(oprot)
5521
    oprot.writeMessageEnd()
5522
    oprot.trans.flush()
5523
 
483 rajveer 5524
  def process_getLineItemsForOrder(self, seqid, iprot, oprot):
5525
    args = getLineItemsForOrder_args()
94 ashish 5526
    args.read(iprot)
5527
    iprot.readMessageEnd()
483 rajveer 5528
    result = getLineItemsForOrder_result()
94 ashish 5529
    try:
483 rajveer 5530
      result.success = self._handler.getLineItemsForOrder(args.orderId)
94 ashish 5531
    except TransactionServiceException, ex:
5532
      result.ex = ex
483 rajveer 5533
    oprot.writeMessageBegin("getLineItemsForOrder", TMessageType.REPLY, seqid)
94 ashish 5534
    result.write(oprot)
5535
    oprot.writeMessageEnd()
5536
    oprot.trans.flush()
5537
 
4999 phani.kuma 5538
  def process_getOrderList(self, seqid, iprot, oprot):
5539
    args = getOrderList_args()
5540
    args.read(iprot)
5541
    iprot.readMessageEnd()
5542
    result = getOrderList_result()
5543
    result.success = self._handler.getOrderList(args.order_ids)
5544
    oprot.writeMessageBegin("getOrderList", TMessageType.REPLY, seqid)
5545
    result.write(oprot)
5546
    oprot.writeMessageEnd()
5547
    oprot.trans.flush()
5548
 
5386 phani.kuma 5549
  def process_getOrderListForVendor(self, seqid, iprot, oprot):
5550
    args = getOrderListForVendor_args()
5551
    args.read(iprot)
5552
    iprot.readMessageEnd()
5553
    result = getOrderListForVendor_result()
5554
    result.success = self._handler.getOrderListForVendor(args.order_ids, args.vendorId)
5555
    oprot.writeMessageBegin("getOrderListForVendor", TMessageType.REPLY, seqid)
5556
    result.write(oprot)
5557
    oprot.writeMessageEnd()
5558
    oprot.trans.flush()
5559
 
1528 ankur.sing 5560
  def process_getOrderForCustomer(self, seqid, iprot, oprot):
5561
    args = getOrderForCustomer_args()
5562
    args.read(iprot)
5563
    iprot.readMessageEnd()
5564
    result = getOrderForCustomer_result()
5565
    try:
5566
      result.success = self._handler.getOrderForCustomer(args.orderId, args.customerId)
5567
    except TransactionServiceException, ex:
5568
      result.ex = ex
5569
    oprot.writeMessageBegin("getOrderForCustomer", TMessageType.REPLY, seqid)
5570
    result.write(oprot)
5571
    oprot.writeMessageEnd()
5572
    oprot.trans.flush()
5573
 
3064 chandransh 5574
  def process_getAlerts(self, seqid, iprot, oprot):
5575
    args = getAlerts_args()
5576
    args.read(iprot)
5577
    iprot.readMessageEnd()
5578
    result = getAlerts_result()
4444 rajveer 5579
    result.success = self._handler.getAlerts(args.type, args.warehouseId, args.status, args.timestamp)
3064 chandransh 5580
    oprot.writeMessageBegin("getAlerts", TMessageType.REPLY, seqid)
5581
    result.write(oprot)
5582
    oprot.writeMessageEnd()
5583
    oprot.trans.flush()
5584
 
4394 rajveer 5585
  def process_addAlert(self, seqid, iprot, oprot):
5586
    args = addAlert_args()
3064 chandransh 5587
    args.read(iprot)
5588
    iprot.readMessageEnd()
4394 rajveer 5589
    result = addAlert_result()
4444 rajveer 5590
    self._handler.addAlert(args.type, args.warehouseId, args.description)
4394 rajveer 5591
    oprot.writeMessageBegin("addAlert", TMessageType.REPLY, seqid)
3064 chandransh 5592
    result.write(oprot)
5593
    oprot.writeMessageEnd()
5594
    oprot.trans.flush()
5595
 
4444 rajveer 5596
  def process_markAlertsAsSeen(self, seqid, iprot, oprot):
5597
    args = markAlertsAsSeen_args()
5598
    args.read(iprot)
5599
    iprot.readMessageEnd()
5600
    result = markAlertsAsSeen_result()
5601
    self._handler.markAlertsAsSeen(args.warehouseId)
5602
    oprot.writeMessageBegin("markAlertsAsSeen", TMessageType.REPLY, seqid)
5603
    result.write(oprot)
5604
    oprot.writeMessageEnd()
5605
    oprot.trans.flush()
5606
 
3064 chandransh 5607
  def process_getValidOrderCount(self, seqid, iprot, oprot):
5608
    args = getValidOrderCount_args()
5609
    args.read(iprot)
5610
    iprot.readMessageEnd()
5611
    result = getValidOrderCount_result()
5612
    result.success = self._handler.getValidOrderCount()
5613
    oprot.writeMessageBegin("getValidOrderCount", TMessageType.REPLY, seqid)
5614
    result.write(oprot)
5615
    oprot.writeMessageEnd()
5616
    oprot.trans.flush()
5617
 
5618
  def process_getNoOfCustomersWithSuccessfulTransaction(self, seqid, iprot, oprot):
5619
    args = getNoOfCustomersWithSuccessfulTransaction_args()
5620
    args.read(iprot)
5621
    iprot.readMessageEnd()
5622
    result = getNoOfCustomersWithSuccessfulTransaction_result()
5623
    result.success = self._handler.getNoOfCustomersWithSuccessfulTransaction()
5624
    oprot.writeMessageBegin("getNoOfCustomersWithSuccessfulTransaction", TMessageType.REPLY, seqid)
5625
    result.write(oprot)
5626
    oprot.writeMessageEnd()
5627
    oprot.trans.flush()
5628
 
5629
  def process_getValidOrdersAmountRange(self, seqid, iprot, oprot):
5630
    args = getValidOrdersAmountRange_args()
5631
    args.read(iprot)
5632
    iprot.readMessageEnd()
5633
    result = getValidOrdersAmountRange_result()
5634
    result.success = self._handler.getValidOrdersAmountRange()
5635
    oprot.writeMessageBegin("getValidOrdersAmountRange", TMessageType.REPLY, seqid)
5636
    result.write(oprot)
5637
    oprot.writeMessageEnd()
5638
    oprot.trans.flush()
5639
 
5640
  def process_getValidOrders(self, seqid, iprot, oprot):
5641
    args = getValidOrders_args()
5642
    args.read(iprot)
5643
    iprot.readMessageEnd()
5644
    result = getValidOrders_result()
5645
    result.success = self._handler.getValidOrders(args.limit)
5646
    oprot.writeMessageBegin("getValidOrders", TMessageType.REPLY, seqid)
5647
    result.write(oprot)
5648
    oprot.writeMessageEnd()
5649
    oprot.trans.flush()
5650
 
1220 chandransh 5651
  def process_batchOrders(self, seqid, iprot, oprot):
5652
    args = batchOrders_args()
5653
    args.read(iprot)
5654
    iprot.readMessageEnd()
5655
    result = batchOrders_result()
5656
    try:
5657
      result.success = self._handler.batchOrders(args.warehouseId)
5658
    except TransactionServiceException, ex:
5659
      result.ex = ex
5660
    oprot.writeMessageBegin("batchOrders", TMessageType.REPLY, seqid)
5661
    result.write(oprot)
5662
    oprot.writeMessageEnd()
5663
    oprot.trans.flush()
5664
 
1208 chandransh 5665
  def process_markOrderAsOutOfStock(self, seqid, iprot, oprot):
5666
    args = markOrderAsOutOfStock_args()
5667
    args.read(iprot)
5668
    iprot.readMessageEnd()
5669
    result = markOrderAsOutOfStock_result()
5670
    try:
5671
      result.success = self._handler.markOrderAsOutOfStock(args.orderId)
5672
    except TransactionServiceException, ex:
5673
      result.ex = ex
5674
    oprot.writeMessageBegin("markOrderAsOutOfStock", TMessageType.REPLY, seqid)
5675
    result.write(oprot)
5676
    oprot.writeMessageEnd()
5677
    oprot.trans.flush()
5678
 
3064 chandransh 5679
  def process_verifyOrder(self, seqid, iprot, oprot):
5680
    args = verifyOrder_args()
759 chandransh 5681
    args.read(iprot)
5682
    iprot.readMessageEnd()
3064 chandransh 5683
    result = verifyOrder_result()
759 chandransh 5684
    try:
3064 chandransh 5685
      result.success = self._handler.verifyOrder(args.orderId)
759 chandransh 5686
    except TransactionServiceException, ex:
5687
      result.ex = ex
3064 chandransh 5688
    oprot.writeMessageBegin("verifyOrder", TMessageType.REPLY, seqid)
759 chandransh 5689
    result.write(oprot)
5690
    oprot.writeMessageEnd()
5691
    oprot.trans.flush()
5692
 
3064 chandransh 5693
  def process_acceptOrder(self, seqid, iprot, oprot):
5694
    args = acceptOrder_args()
1113 chandransh 5695
    args.read(iprot)
5696
    iprot.readMessageEnd()
3064 chandransh 5697
    result = acceptOrder_result()
1113 chandransh 5698
    try:
3064 chandransh 5699
      result.success = self._handler.acceptOrder(args.orderId)
1113 chandransh 5700
    except TransactionServiceException, ex:
5701
      result.ex = ex
3064 chandransh 5702
    oprot.writeMessageBegin("acceptOrder", TMessageType.REPLY, seqid)
1113 chandransh 5703
    result.write(oprot)
5704
    oprot.writeMessageEnd()
5705
    oprot.trans.flush()
5706
 
3064 chandransh 5707
  def process_addBillingDetails(self, seqid, iprot, oprot):
5708
    args = addBillingDetails_args()
1135 chandransh 5709
    args.read(iprot)
5710
    iprot.readMessageEnd()
3064 chandransh 5711
    result = addBillingDetails_result()
1135 chandransh 5712
    try:
5110 mandeep.dh 5713
      result.success = self._handler.addBillingDetails(args.orderId, args.invoice_number, args.serialNumber, args.itemNumber, args.billed_by, args.jacketNumber, args.billingType, args.fulfilmentWarehouseId, args.authorize)
1135 chandransh 5714
    except TransactionServiceException, ex:
5715
      result.ex = ex
3064 chandransh 5716
    oprot.writeMessageBegin("addBillingDetails", TMessageType.REPLY, seqid)
1135 chandransh 5717
    result.write(oprot)
5718
    oprot.writeMessageEnd()
5719
    oprot.trans.flush()
5720
 
4579 rajveer 5721
  def process_addInvoiceNumber(self, seqid, iprot, oprot):
5722
    args = addInvoiceNumber_args()
5723
    args.read(iprot)
5724
    iprot.readMessageEnd()
5725
    result = addInvoiceNumber_result()
5726
    try:
4763 rajveer 5727
      self._handler.addInvoiceNumber(args.orderId, args.invoiceNumber, args.color)
4579 rajveer 5728
    except TransactionServiceException, ex:
5729
      result.ex = ex
5730
    oprot.writeMessageBegin("addInvoiceNumber", TMessageType.REPLY, seqid)
5731
    result.write(oprot)
5732
    oprot.writeMessageEnd()
5733
    oprot.trans.flush()
5734
 
4410 rajveer 5735
  def process_markOrdersAsShippedFromWarehouse(self, seqid, iprot, oprot):
5736
    args = markOrdersAsShippedFromWarehouse_args()
5737
    args.read(iprot)
5738
    iprot.readMessageEnd()
5739
    result = markOrdersAsShippedFromWarehouse_result()
5740
    try:
4789 rajveer 5741
      result.success = self._handler.markOrdersAsShippedFromWarehouse(args.warehouseId, args.providerId, args.cod, args.orderIds)
4410 rajveer 5742
    except TransactionServiceException, ex:
5743
      result.ex = ex
5744
    oprot.writeMessageBegin("markOrdersAsShippedFromWarehouse", TMessageType.REPLY, seqid)
5745
    result.write(oprot)
5746
    oprot.writeMessageEnd()
5747
    oprot.trans.flush()
5748
 
3064 chandransh 5749
  def process_markOrdersAsPickedUp(self, seqid, iprot, oprot):
5750
    args = markOrdersAsPickedUp_args()
304 ashish 5751
    args.read(iprot)
5752
    iprot.readMessageEnd()
3064 chandransh 5753
    result = markOrdersAsPickedUp_result()
5754
    try:
4910 phani.kuma 5755
      self._handler.markOrdersAsPickedUp(args.providerId, args.pickupDetails)
3064 chandransh 5756
    except TransactionServiceException, ex:
5757
      result.ex = ex
5758
    oprot.writeMessageBegin("markOrdersAsPickedUp", TMessageType.REPLY, seqid)
304 ashish 5759
    result.write(oprot)
5760
    oprot.writeMessageEnd()
5761
    oprot.trans.flush()
94 ashish 5762
 
4910 phani.kuma 5763
  def process_getOrdersNotPickedUp(self, seqid, iprot, oprot):
5764
    args = getOrdersNotPickedUp_args()
5765
    args.read(iprot)
5766
    iprot.readMessageEnd()
5767
    result = getOrdersNotPickedUp_result()
5768
    result.success = self._handler.getOrdersNotPickedUp(args.providerId)
5769
    oprot.writeMessageBegin("getOrdersNotPickedUp", TMessageType.REPLY, seqid)
5770
    result.write(oprot)
5771
    oprot.writeMessageEnd()
5772
    oprot.trans.flush()
5773
 
3064 chandransh 5774
  def process_markOrdersAsDelivered(self, seqid, iprot, oprot):
5775
    args = markOrdersAsDelivered_args()
304 ashish 5776
    args.read(iprot)
5777
    iprot.readMessageEnd()
3064 chandransh 5778
    result = markOrdersAsDelivered_result()
5779
    try:
5780
      self._handler.markOrdersAsDelivered(args.providerId, args.deliveredOrders)
5781
    except TransactionServiceException, ex:
5782
      result.ex = ex
5783
    oprot.writeMessageBegin("markOrdersAsDelivered", TMessageType.REPLY, seqid)
304 ashish 5784
    result.write(oprot)
5785
    oprot.writeMessageEnd()
5786
    oprot.trans.flush()
5787
 
4910 phani.kuma 5788
  def process_markAsRTOrders(self, seqid, iprot, oprot):
5789
    args = markAsRTOrders_args()
1596 ankur.sing 5790
    args.read(iprot)
5791
    iprot.readMessageEnd()
4910 phani.kuma 5792
    result = markAsRTOrders_result()
3064 chandransh 5793
    try:
4910 phani.kuma 5794
      self._handler.markAsRTOrders(args.providerId, args.returnedOrders)
3064 chandransh 5795
    except TransactionServiceException, ex:
5796
      result.ex = ex
4910 phani.kuma 5797
    oprot.writeMessageBegin("markAsRTOrders", TMessageType.REPLY, seqid)
1596 ankur.sing 5798
    result.write(oprot)
5799
    oprot.writeMessageEnd()
5800
    oprot.trans.flush()
304 ashish 5801
 
4910 phani.kuma 5802
  def process_getRTOrders(self, seqid, iprot, oprot):
5803
    args = getRTOrders_args()
5804
    args.read(iprot)
5805
    iprot.readMessageEnd()
5806
    result = getRTOrders_result()
5807
    result.success = self._handler.getRTOrders(args.providerId)
5808
    oprot.writeMessageBegin("getRTOrders", TMessageType.REPLY, seqid)
5809
    result.write(oprot)
5810
    oprot.writeMessageEnd()
5811
    oprot.trans.flush()
5812
 
3064 chandransh 5813
  def process_updateNonDeliveryReason(self, seqid, iprot, oprot):
5814
    args = updateNonDeliveryReason_args()
1627 ankur.sing 5815
    args.read(iprot)
5816
    iprot.readMessageEnd()
3064 chandransh 5817
    result = updateNonDeliveryReason_result()
5818
    try:
4910 phani.kuma 5819
      self._handler.updateNonDeliveryReason(args.providerId, args.undeliveredOrders)
3064 chandransh 5820
    except TransactionServiceException, ex:
5821
      result.ex = ex
5822
    oprot.writeMessageBegin("updateNonDeliveryReason", TMessageType.REPLY, seqid)
1627 ankur.sing 5823
    result.write(oprot)
5824
    oprot.writeMessageEnd()
5825
    oprot.trans.flush()
1596 ankur.sing 5826
 
4910 phani.kuma 5827
  def process_getNonDeliveredOrdersbyCourier(self, seqid, iprot, oprot):
5828
    args = getNonDeliveredOrdersbyCourier_args()
5829
    args.read(iprot)
5830
    iprot.readMessageEnd()
5831
    result = getNonDeliveredOrdersbyCourier_result()
5832
    result.success = self._handler.getNonDeliveredOrdersbyCourier(args.providerId)
5833
    oprot.writeMessageBegin("getNonDeliveredOrdersbyCourier", TMessageType.REPLY, seqid)
5834
    result.write(oprot)
5835
    oprot.writeMessageEnd()
5836
    oprot.trans.flush()
5837
 
5838
  def process_markOrdersAsLocalConnected(self, seqid, iprot, oprot):
5839
    args = markOrdersAsLocalConnected_args()
5840
    args.read(iprot)
5841
    iprot.readMessageEnd()
5842
    result = markOrdersAsLocalConnected_result()
5843
    try:
5844
      self._handler.markOrdersAsLocalConnected(args.providerId, args.local_connected_orders)
5845
    except TransactionServiceException, ex:
5846
      result.ex = ex
5847
    oprot.writeMessageBegin("markOrdersAsLocalConnected", TMessageType.REPLY, seqid)
5848
    result.write(oprot)
5849
    oprot.writeMessageEnd()
5850
    oprot.trans.flush()
5851
 
5852
  def process_getOrdersNotLocalConnected(self, seqid, iprot, oprot):
5853
    args = getOrdersNotLocalConnected_args()
5854
    args.read(iprot)
5855
    iprot.readMessageEnd()
5856
    result = getOrdersNotLocalConnected_result()
5857
    result.success = self._handler.getOrdersNotLocalConnected(args.providerId)
5858
    oprot.writeMessageBegin("getOrdersNotLocalConnected", TMessageType.REPLY, seqid)
5859
    result.write(oprot)
5860
    oprot.writeMessageEnd()
5861
    oprot.trans.flush()
5862
 
5863
  def process_markOrdersAsDestinationCityReached(self, seqid, iprot, oprot):
5864
    args = markOrdersAsDestinationCityReached_args()
5865
    args.read(iprot)
5866
    iprot.readMessageEnd()
5867
    result = markOrdersAsDestinationCityReached_result()
5868
    try:
5869
      self._handler.markOrdersAsDestinationCityReached(args.providerId, args.destination_city_reached_orders)
5870
    except TransactionServiceException, ex:
5871
      result.ex = ex
5872
    oprot.writeMessageBegin("markOrdersAsDestinationCityReached", TMessageType.REPLY, seqid)
5873
    result.write(oprot)
5874
    oprot.writeMessageEnd()
5875
    oprot.trans.flush()
5876
 
5877
  def process_markOrdersAsFirstDeliveryAttempted(self, seqid, iprot, oprot):
5878
    args = markOrdersAsFirstDeliveryAttempted_args()
5879
    args.read(iprot)
5880
    iprot.readMessageEnd()
5881
    result = markOrdersAsFirstDeliveryAttempted_result()
5882
    try:
5883
      self._handler.markOrdersAsFirstDeliveryAttempted(args.providerId, args.first_atdl_orders)
5884
    except TransactionServiceException, ex:
5885
      result.ex = ex
5886
    oprot.writeMessageBegin("markOrdersAsFirstDeliveryAttempted", TMessageType.REPLY, seqid)
5887
    result.write(oprot)
5888
    oprot.writeMessageEnd()
5889
    oprot.trans.flush()
5890
 
3064 chandransh 5891
  def process_getUndeliveredOrders(self, seqid, iprot, oprot):
5892
    args = getUndeliveredOrders_args()
1627 ankur.sing 5893
    args.read(iprot)
5894
    iprot.readMessageEnd()
3064 chandransh 5895
    result = getUndeliveredOrders_result()
5896
    result.success = self._handler.getUndeliveredOrders(args.providerId, args.warehouseId)
5897
    oprot.writeMessageBegin("getUndeliveredOrders", TMessageType.REPLY, seqid)
1627 ankur.sing 5898
    result.write(oprot)
5899
    oprot.writeMessageEnd()
5900
    oprot.trans.flush()
5901
 
4783 phani.kuma 5902
  def process_getUndeliveredOrdersExpectedDeliveryDateNotMet(self, seqid, iprot, oprot):
5903
    args = getUndeliveredOrdersExpectedDeliveryDateNotMet_args()
5904
    args.read(iprot)
5905
    iprot.readMessageEnd()
5906
    result = getUndeliveredOrdersExpectedDeliveryDateNotMet_result()
5907
    result.success = self._handler.getUndeliveredOrdersExpectedDeliveryDateNotMet()
5908
    oprot.writeMessageBegin("getUndeliveredOrdersExpectedDeliveryDateNotMet", TMessageType.REPLY, seqid)
5909
    result.write(oprot)
5910
    oprot.writeMessageEnd()
5911
    oprot.trans.flush()
5912
 
2536 chandransh 5913
  def process_toggleDOAFlag(self, seqid, iprot, oprot):
5914
    args = toggleDOAFlag_args()
5915
    args.read(iprot)
5916
    iprot.readMessageEnd()
5917
    result = toggleDOAFlag_result()
5918
    try:
5919
      result.success = self._handler.toggleDOAFlag(args.orderId)
5920
    except TransactionServiceException, ex:
5921
      result.ex = ex
5922
    oprot.writeMessageBegin("toggleDOAFlag", TMessageType.REPLY, seqid)
5923
    result.write(oprot)
5924
    oprot.writeMessageEnd()
5925
    oprot.trans.flush()
1886 ankur.sing 5926
 
4712 rajveer 5927
  def process_markOrderAsDelivered(self, seqid, iprot, oprot):
5928
    args = markOrderAsDelivered_args()
5929
    args.read(iprot)
5930
    iprot.readMessageEnd()
5931
    result = markOrderAsDelivered_result()
5932
    try:
5933
      self._handler.markOrderAsDelivered(args.orderId, args.deliveryTimestamp, args.receiver)
5934
    except TransactionServiceException, ex:
5935
      result.ex = ex
5936
    oprot.writeMessageBegin("markOrderAsDelivered", TMessageType.REPLY, seqid)
5937
    result.write(oprot)
5938
    oprot.writeMessageEnd()
5939
    oprot.trans.flush()
5940
 
4454 rajveer 5941
  def process_markOrderDoaRequestReceived(self, seqid, iprot, oprot):
5942
    args = markOrderDoaRequestReceived_args()
5943
    args.read(iprot)
5944
    iprot.readMessageEnd()
5945
    result = markOrderDoaRequestReceived_result()
5946
    try:
5947
      result.success = self._handler.markOrderDoaRequestReceived(args.orderId)
5948
    except TransactionServiceException, ex:
5949
      result.ex = ex
5950
    oprot.writeMessageBegin("markOrderDoaRequestReceived", TMessageType.REPLY, seqid)
5951
    result.write(oprot)
5952
    oprot.writeMessageEnd()
5953
    oprot.trans.flush()
5954
 
5955
  def process_markOrderDoaRequestAuthorized(self, seqid, iprot, oprot):
5956
    args = markOrderDoaRequestAuthorized_args()
5957
    args.read(iprot)
5958
    iprot.readMessageEnd()
5959
    result = markOrderDoaRequestAuthorized_result()
5960
    try:
5961
      result.success = self._handler.markOrderDoaRequestAuthorized(args.orderId, args.isAuthorized)
5962
    except TransactionServiceException, ex:
5963
      result.ex = ex
5964
    oprot.writeMessageBegin("markOrderDoaRequestAuthorized", TMessageType.REPLY, seqid)
5965
    result.write(oprot)
5966
    oprot.writeMessageEnd()
5967
    oprot.trans.flush()
5968
 
4488 rajveer 5969
  def process_markOrderReturnRequestReceived(self, seqid, iprot, oprot):
5970
    args = markOrderReturnRequestReceived_args()
5971
    args.read(iprot)
5972
    iprot.readMessageEnd()
5973
    result = markOrderReturnRequestReceived_result()
5974
    try:
5975
      result.success = self._handler.markOrderReturnRequestReceived(args.orderId)
5976
    except TransactionServiceException, ex:
5977
      result.ex = ex
5978
    oprot.writeMessageBegin("markOrderReturnRequestReceived", TMessageType.REPLY, seqid)
5979
    result.write(oprot)
5980
    oprot.writeMessageEnd()
5981
    oprot.trans.flush()
5982
 
5983
  def process_markOrderReturnRequestAuthorized(self, seqid, iprot, oprot):
5984
    args = markOrderReturnRequestAuthorized_args()
5985
    args.read(iprot)
5986
    iprot.readMessageEnd()
5987
    result = markOrderReturnRequestAuthorized_result()
5988
    try:
5989
      result.success = self._handler.markOrderReturnRequestAuthorized(args.orderId, args.isAuthorized)
5990
    except TransactionServiceException, ex:
5991
      result.ex = ex
5992
    oprot.writeMessageBegin("markOrderReturnRequestAuthorized", TMessageType.REPLY, seqid)
5993
    result.write(oprot)
5994
    oprot.writeMessageEnd()
5995
    oprot.trans.flush()
5996
 
2536 chandransh 5997
  def process_requestPickupNumber(self, seqid, iprot, oprot):
5998
    args = requestPickupNumber_args()
5999
    args.read(iprot)
6000
    iprot.readMessageEnd()
6001
    result = requestPickupNumber_result()
6002
    try:
4579 rajveer 6003
      result.success = self._handler.requestPickupNumber(args.orderId, args.providerId)
2536 chandransh 6004
    except TransactionServiceException, ex:
6005
      result.ex = ex
6006
    oprot.writeMessageBegin("requestPickupNumber", TMessageType.REPLY, seqid)
6007
    result.write(oprot)
6008
    oprot.writeMessageEnd()
6009
    oprot.trans.flush()
6010
 
6011
  def process_authorizePickup(self, seqid, iprot, oprot):
6012
    args = authorizePickup_args()
6013
    args.read(iprot)
6014
    iprot.readMessageEnd()
6015
    result = authorizePickup_result()
6016
    try:
4602 rajveer 6017
      result.success = self._handler.authorizePickup(args.orderId, args.pickupNumber, args.providerId)
2536 chandransh 6018
    except TransactionServiceException, ex:
6019
      result.ex = ex
6020
    oprot.writeMessageBegin("authorizePickup", TMessageType.REPLY, seqid)
6021
    result.write(oprot)
6022
    oprot.writeMessageEnd()
6023
    oprot.trans.flush()
6024
 
2764 chandransh 6025
  def process_markDoasAsPickedUp(self, seqid, iprot, oprot):
6026
    args = markDoasAsPickedUp_args()
6027
    args.read(iprot)
6028
    iprot.readMessageEnd()
6029
    result = markDoasAsPickedUp_result()
4910 phani.kuma 6030
    self._handler.markDoasAsPickedUp(args.providerId, args.pickupDetails)
2764 chandransh 6031
    oprot.writeMessageBegin("markDoasAsPickedUp", TMessageType.REPLY, seqid)
6032
    result.write(oprot)
6033
    oprot.writeMessageEnd()
6034
    oprot.trans.flush()
6035
 
4910 phani.kuma 6036
  def process_getDoasNotPickedUp(self, seqid, iprot, oprot):
6037
    args = getDoasNotPickedUp_args()
6038
    args.read(iprot)
6039
    iprot.readMessageEnd()
6040
    result = getDoasNotPickedUp_result()
6041
    result.success = self._handler.getDoasNotPickedUp(args.providerId)
6042
    oprot.writeMessageBegin("getDoasNotPickedUp", TMessageType.REPLY, seqid)
6043
    result.write(oprot)
6044
    oprot.writeMessageEnd()
6045
    oprot.trans.flush()
6046
 
4741 phani.kuma 6047
  def process_markReturnOrdersAsPickedUp(self, seqid, iprot, oprot):
6048
    args = markReturnOrdersAsPickedUp_args()
6049
    args.read(iprot)
6050
    iprot.readMessageEnd()
6051
    result = markReturnOrdersAsPickedUp_result()
4910 phani.kuma 6052
    self._handler.markReturnOrdersAsPickedUp(args.providerId, args.pickupDetails)
4741 phani.kuma 6053
    oprot.writeMessageBegin("markReturnOrdersAsPickedUp", TMessageType.REPLY, seqid)
6054
    result.write(oprot)
6055
    oprot.writeMessageEnd()
6056
    oprot.trans.flush()
6057
 
4910 phani.kuma 6058
  def process_getReturnOrdersNotPickedUp(self, seqid, iprot, oprot):
6059
    args = getReturnOrdersNotPickedUp_args()
6060
    args.read(iprot)
6061
    iprot.readMessageEnd()
6062
    result = getReturnOrdersNotPickedUp_result()
6063
    result.success = self._handler.getReturnOrdersNotPickedUp(args.providerId)
6064
    oprot.writeMessageBegin("getReturnOrdersNotPickedUp", TMessageType.REPLY, seqid)
6065
    result.write(oprot)
6066
    oprot.writeMessageEnd()
6067
    oprot.trans.flush()
6068
 
2616 chandransh 6069
  def process_receiveReturn(self, seqid, iprot, oprot):
6070
    args = receiveReturn_args()
2591 chandransh 6071
    args.read(iprot)
6072
    iprot.readMessageEnd()
2616 chandransh 6073
    result = receiveReturn_result()
2591 chandransh 6074
    try:
4479 rajveer 6075
      result.success = self._handler.receiveReturn(args.orderId, args.receiveCondition)
2591 chandransh 6076
    except TransactionServiceException, ex:
6077
      result.ex = ex
2616 chandransh 6078
    oprot.writeMessageBegin("receiveReturn", TMessageType.REPLY, seqid)
2591 chandransh 6079
    result.write(oprot)
6080
    oprot.writeMessageEnd()
6081
    oprot.trans.flush()
2536 chandransh 6082
 
2591 chandransh 6083
  def process_validateDoa(self, seqid, iprot, oprot):
6084
    args = validateDoa_args()
6085
    args.read(iprot)
6086
    iprot.readMessageEnd()
6087
    result = validateDoa_result()
6088
    try:
6089
      result.success = self._handler.validateDoa(args.orderId, args.isValid)
6090
    except TransactionServiceException, ex:
6091
      result.ex = ex
6092
    oprot.writeMessageBegin("validateDoa", TMessageType.REPLY, seqid)
6093
    result.write(oprot)
6094
    oprot.writeMessageEnd()
6095
    oprot.trans.flush()
6096
 
4495 rajveer 6097
  def process_validateReturnProduct(self, seqid, iprot, oprot):
6098
    args = validateReturnProduct_args()
6099
    args.read(iprot)
6100
    iprot.readMessageEnd()
6101
    result = validateReturnProduct_result()
6102
    try:
6103
      result.success = self._handler.validateReturnProduct(args.orderId, args.isUsable)
6104
    except TransactionServiceException, ex:
6105
      result.ex = ex
6106
    oprot.writeMessageBegin("validateReturnProduct", TMessageType.REPLY, seqid)
6107
    result.write(oprot)
6108
    oprot.writeMessageEnd()
6109
    oprot.trans.flush()
6110
 
2616 chandransh 6111
  def process_reshipOrder(self, seqid, iprot, oprot):
6112
    args = reshipOrder_args()
6113
    args.read(iprot)
6114
    iprot.readMessageEnd()
6115
    result = reshipOrder_result()
6116
    try:
6117
      result.success = self._handler.reshipOrder(args.orderId)
6118
    except TransactionServiceException, ex:
6119
      result.ex = ex
6120
    oprot.writeMessageBegin("reshipOrder", TMessageType.REPLY, seqid)
6121
    result.write(oprot)
6122
    oprot.writeMessageEnd()
6123
    oprot.trans.flush()
2591 chandransh 6124
 
2616 chandransh 6125
  def process_refundOrder(self, seqid, iprot, oprot):
6126
    args = refundOrder_args()
6127
    args.read(iprot)
6128
    iprot.readMessageEnd()
6129
    result = refundOrder_result()
6130
    try:
3226 chandransh 6131
      result.success = self._handler.refundOrder(args.orderId, args.refundedBy, args.reason)
2616 chandransh 6132
    except TransactionServiceException, ex:
6133
      result.ex = ex
6134
    oprot.writeMessageBegin("refundOrder", TMessageType.REPLY, seqid)
6135
    result.write(oprot)
6136
    oprot.writeMessageEnd()
6137
    oprot.trans.flush()
6138
 
2690 chandransh 6139
  def process_getReturnOrders(self, seqid, iprot, oprot):
6140
    args = getReturnOrders_args()
6141
    args.read(iprot)
6142
    iprot.readMessageEnd()
6143
    result = getReturnOrders_result()
6144
    result.success = self._handler.getReturnOrders(args.warehouseId, args.fromDate, args.toDate)
6145
    oprot.writeMessageBegin("getReturnOrders", TMessageType.REPLY, seqid)
6146
    result.write(oprot)
6147
    oprot.writeMessageEnd()
6148
    oprot.trans.flush()
2616 chandransh 6149
 
2700 chandransh 6150
  def process_getReturnOrder(self, seqid, iprot, oprot):
6151
    args = getReturnOrder_args()
6152
    args.read(iprot)
6153
    iprot.readMessageEnd()
6154
    result = getReturnOrder_result()
6155
    try:
6156
      result.success = self._handler.getReturnOrder(args.id)
6157
    except TransactionServiceException, ex:
6158
      result.ex = ex
6159
    oprot.writeMessageBegin("getReturnOrder", TMessageType.REPLY, seqid)
6160
    result.write(oprot)
6161
    oprot.writeMessageEnd()
6162
    oprot.trans.flush()
6163
 
2690 chandransh 6164
  def process_processReturn(self, seqid, iprot, oprot):
6165
    args = processReturn_args()
6166
    args.read(iprot)
6167
    iprot.readMessageEnd()
6168
    result = processReturn_result()
6169
    try:
6170
      self._handler.processReturn(args.returnOrderId)
6171
    except TransactionServiceException, ex:
6172
      result.ex = ex
6173
    oprot.writeMessageBegin("processReturn", TMessageType.REPLY, seqid)
6174
    result.write(oprot)
6175
    oprot.writeMessageEnd()
6176
    oprot.trans.flush()
6177
 
3451 chandransh 6178
  def process_updateWeight(self, seqid, iprot, oprot):
6179
    args = updateWeight_args()
6180
    args.read(iprot)
6181
    iprot.readMessageEnd()
6182
    result = updateWeight_result()
6183
    try:
6184
      result.success = self._handler.updateWeight(args.orderId, args.weight)
6185
    except TransactionServiceException, ex:
6186
      result.ex = ex
6187
    oprot.writeMessageBegin("updateWeight", TMessageType.REPLY, seqid)
6188
    result.write(oprot)
6189
    oprot.writeMessageEnd()
6190
    oprot.trans.flush()
2819 chandransh 6191
 
3469 chandransh 6192
  def process_changeItem(self, seqid, iprot, oprot):
6193
    args = changeItem_args()
6194
    args.read(iprot)
6195
    iprot.readMessageEnd()
6196
    result = changeItem_result()
6197
    try:
6198
      result.success = self._handler.changeItem(args.orderId, args.itemId)
6199
    except TransactionServiceException, ex:
6200
      result.ex = ex
6201
    oprot.writeMessageBegin("changeItem", TMessageType.REPLY, seqid)
6202
    result.write(oprot)
6203
    oprot.writeMessageEnd()
6204
    oprot.trans.flush()
3451 chandransh 6205
 
3469 chandransh 6206
  def process_shiftToWarehouse(self, seqid, iprot, oprot):
6207
    args = shiftToWarehouse_args()
6208
    args.read(iprot)
6209
    iprot.readMessageEnd()
6210
    result = shiftToWarehouse_result()
6211
    try:
6212
      result.success = self._handler.shiftToWarehouse(args.orderId, args.warehouseId)
6213
    except TransactionServiceException, ex:
6214
      result.ex = ex
6215
    oprot.writeMessageBegin("shiftToWarehouse", TMessageType.REPLY, seqid)
6216
    result.write(oprot)
6217
    oprot.writeMessageEnd()
6218
    oprot.trans.flush()
6219
 
3553 chandransh 6220
  def process_addDelayReason(self, seqid, iprot, oprot):
6221
    args = addDelayReason_args()
6222
    args.read(iprot)
6223
    iprot.readMessageEnd()
6224
    result = addDelayReason_result()
6225
    try:
4647 rajveer 6226
      result.success = self._handler.addDelayReason(args.orderId, args.delayReason, args.furtherDelay, args.delayReasonText)
3553 chandransh 6227
    except TransactionServiceException, ex:
6228
      result.ex = ex
6229
    oprot.writeMessageBegin("addDelayReason", TMessageType.REPLY, seqid)
6230
    result.write(oprot)
6231
    oprot.writeMessageEnd()
6232
    oprot.trans.flush()
3469 chandransh 6233
 
3956 chandransh 6234
  def process_reconcileCodCollection(self, seqid, iprot, oprot):
6235
    args = reconcileCodCollection_args()
6236
    args.read(iprot)
6237
    iprot.readMessageEnd()
6238
    result = reconcileCodCollection_result()
6239
    try:
6240
      result.success = self._handler.reconcileCodCollection(args.collectedAmountMap, args.xferBy, args.xferTxnId, args.xferDate)
6241
    except TransactionServiceException, ex:
6242
      result.ex = ex
6243
    oprot.writeMessageBegin("reconcileCodCollection", TMessageType.REPLY, seqid)
6244
    result.write(oprot)
6245
    oprot.writeMessageEnd()
6246
    oprot.trans.flush()
3553 chandransh 6247
 
4008 mandeep.dh 6248
  def process_getTransactionsRequiringExtraProcessing(self, seqid, iprot, oprot):
6249
    args = getTransactionsRequiringExtraProcessing_args()
6250
    args.read(iprot)
6251
    iprot.readMessageEnd()
6252
    result = getTransactionsRequiringExtraProcessing_result()
6253
    result.success = self._handler.getTransactionsRequiringExtraProcessing(args.category)
6254
    oprot.writeMessageBegin("getTransactionsRequiringExtraProcessing", TMessageType.REPLY, seqid)
6255
    result.write(oprot)
6256
    oprot.writeMessageEnd()
6257
    oprot.trans.flush()
3956 chandransh 6258
 
4008 mandeep.dh 6259
  def process_markTransactionAsProcessed(self, seqid, iprot, oprot):
6260
    args = markTransactionAsProcessed_args()
6261
    args.read(iprot)
6262
    iprot.readMessageEnd()
6263
    result = markTransactionAsProcessed_result()
6264
    self._handler.markTransactionAsProcessed(args.transactionId, args.category)
6265
    oprot.writeMessageBegin("markTransactionAsProcessed", TMessageType.REPLY, seqid)
6266
    result.write(oprot)
6267
    oprot.writeMessageEnd()
6268
    oprot.trans.flush()
6269
 
4018 chandransh 6270
  def process_getItemWiseRiskyOrdersCount(self, seqid, iprot, oprot):
6271
    args = getItemWiseRiskyOrdersCount_args()
6272
    args.read(iprot)
6273
    iprot.readMessageEnd()
6274
    result = getItemWiseRiskyOrdersCount_result()
6275
    result.success = self._handler.getItemWiseRiskyOrdersCount()
6276
    oprot.writeMessageBegin("getItemWiseRiskyOrdersCount", TMessageType.REPLY, seqid)
6277
    result.write(oprot)
6278
    oprot.writeMessageEnd()
6279
    oprot.trans.flush()
4008 mandeep.dh 6280
 
4295 varun.gupt 6281
  def process_getOrdersForItemIds(self, seqid, iprot, oprot):
6282
    args = getOrdersForItemIds_args()
6283
    args.read(iprot)
6284
    iprot.readMessageEnd()
6285
    result = getOrdersForItemIds_result()
6286
    result.success = self._handler.getOrdersForItemIds(args.itemIds)
6287
    oprot.writeMessageBegin("getOrdersForItemIds", TMessageType.REPLY, seqid)
6288
    result.write(oprot)
6289
    oprot.writeMessageEnd()
6290
    oprot.trans.flush()
6291
 
4247 rajveer 6292
  def process_markOrderCancellationRequestReceived(self, seqid, iprot, oprot):
6293
    args = markOrderCancellationRequestReceived_args()
6294
    args.read(iprot)
6295
    iprot.readMessageEnd()
6296
    result = markOrderCancellationRequestReceived_result()
6297
    try:
6298
      self._handler.markOrderCancellationRequestReceived(args.orderId)
6299
    except TransactionServiceException, ex:
6300
      result.ex = ex
6301
    oprot.writeMessageBegin("markOrderCancellationRequestReceived", TMessageType.REPLY, seqid)
6302
    result.write(oprot)
6303
    oprot.writeMessageEnd()
6304
    oprot.trans.flush()
4018 chandransh 6305
 
4247 rajveer 6306
  def process_markOrderCancellationRequestConfirmed(self, seqid, iprot, oprot):
6307
    args = markOrderCancellationRequestConfirmed_args()
6308
    args.read(iprot)
6309
    iprot.readMessageEnd()
6310
    result = markOrderCancellationRequestConfirmed_result()
6311
    try:
6312
      self._handler.markOrderCancellationRequestConfirmed(args.orderId)
6313
    except TransactionServiceException, ex:
6314
      result.ex = ex
6315
    oprot.writeMessageBegin("markOrderCancellationRequestConfirmed", TMessageType.REPLY, seqid)
6316
    result.write(oprot)
6317
    oprot.writeMessageEnd()
6318
    oprot.trans.flush()
6319
 
6320
  def process_markOrderCancellationRequestDenied(self, seqid, iprot, oprot):
6321
    args = markOrderCancellationRequestDenied_args()
6322
    args.read(iprot)
6323
    iprot.readMessageEnd()
6324
    result = markOrderCancellationRequestDenied_result()
6325
    try:
6326
      self._handler.markOrderCancellationRequestDenied(args.orderId)
6327
    except TransactionServiceException, ex:
6328
      result.ex = ex
6329
    oprot.writeMessageBegin("markOrderCancellationRequestDenied", TMessageType.REPLY, seqid)
6330
    result.write(oprot)
6331
    oprot.writeMessageEnd()
6332
    oprot.trans.flush()
6333
 
4258 rajveer 6334
  def process_markTransactionAsPaymentFlagRemoved(self, seqid, iprot, oprot):
6335
    args = markTransactionAsPaymentFlagRemoved_args()
4247 rajveer 6336
    args.read(iprot)
6337
    iprot.readMessageEnd()
4258 rajveer 6338
    result = markTransactionAsPaymentFlagRemoved_result()
4247 rajveer 6339
    try:
4258 rajveer 6340
      self._handler.markTransactionAsPaymentFlagRemoved(args.transactionId)
4247 rajveer 6341
    except TransactionServiceException, ex:
6342
      result.ex = ex
4258 rajveer 6343
    oprot.writeMessageBegin("markTransactionAsPaymentFlagRemoved", TMessageType.REPLY, seqid)
4247 rajveer 6344
    result.write(oprot)
6345
    oprot.writeMessageEnd()
6346
    oprot.trans.flush()
6347
 
4259 anupam.sin 6348
  def process_refundTransaction(self, seqid, iprot, oprot):
6349
    args = refundTransaction_args()
6350
    args.read(iprot)
6351
    iprot.readMessageEnd()
6352
    result = refundTransaction_result()
6353
    try:
6354
      self._handler.refundTransaction(args.transactionId, args.refundedBy, args.reason)
6355
    except TransactionServiceException, ex:
6356
      result.ex = ex
6357
    oprot.writeMessageBegin("refundTransaction", TMessageType.REPLY, seqid)
6358
    result.write(oprot)
6359
    oprot.writeMessageEnd()
6360
    oprot.trans.flush()
4247 rajveer 6361
 
4324 mandeep.dh 6362
  def process_updateShipmentAddress(self, seqid, iprot, oprot):
6363
    args = updateShipmentAddress_args()
6364
    args.read(iprot)
6365
    iprot.readMessageEnd()
6366
    result = updateShipmentAddress_result()
6367
    try:
6368
      self._handler.updateShipmentAddress(args.orderId, args.addressId)
6369
    except TransactionServiceException, ex:
6370
      result.ex = ex
6371
    oprot.writeMessageBegin("updateShipmentAddress", TMessageType.REPLY, seqid)
6372
    result.write(oprot)
6373
    oprot.writeMessageEnd()
6374
    oprot.trans.flush()
6375
 
4285 rajveer 6376
  def process_acceptOrdersForItemId(self, seqid, iprot, oprot):
6377
    args = acceptOrdersForItemId_args()
6378
    args.read(iprot)
6379
    iprot.readMessageEnd()
6380
    result = acceptOrdersForItemId_result()
6381
    try:
6382
      result.success = self._handler.acceptOrdersForItemId(args.itemId, args.inventory)
6383
    except TransactionServiceException, ex:
6384
      result.ex = ex
6385
    oprot.writeMessageBegin("acceptOrdersForItemId", TMessageType.REPLY, seqid)
6386
    result.write(oprot)
6387
    oprot.writeMessageEnd()
6388
    oprot.trans.flush()
4259 anupam.sin 6389
 
4303 rajveer 6390
  def process_markOrdersAsPORaised(self, seqid, iprot, oprot):
6391
    args = markOrdersAsPORaised_args()
6392
    args.read(iprot)
6393
    iprot.readMessageEnd()
6394
    result = markOrdersAsPORaised_result()
6395
    try:
4369 rajveer 6396
      self._handler.markOrdersAsPORaised(args.vendorId, args.itemId, args.quantity, args.estimate, args.isReminder)
4303 rajveer 6397
    except TransactionServiceException, ex:
6398
      result.ex = ex
6399
    oprot.writeMessageBegin("markOrdersAsPORaised", TMessageType.REPLY, seqid)
6400
    result.write(oprot)
6401
    oprot.writeMessageEnd()
6402
    oprot.trans.flush()
4285 rajveer 6403
 
4303 rajveer 6404
  def process_markOrdersAsReversalInitiated(self, seqid, iprot, oprot):
6405
    args = markOrdersAsReversalInitiated_args()
6406
    args.read(iprot)
6407
    iprot.readMessageEnd()
6408
    result = markOrdersAsReversalInitiated_result()
6409
    try:
4369 rajveer 6410
      self._handler.markOrdersAsReversalInitiated(args.vendorId, args.itemId, args.quantity, args.estimate, args.isReminder)
4303 rajveer 6411
    except TransactionServiceException, ex:
6412
      result.ex = ex
6413
    oprot.writeMessageBegin("markOrdersAsReversalInitiated", TMessageType.REPLY, seqid)
6414
    result.write(oprot)
6415
    oprot.writeMessageEnd()
6416
    oprot.trans.flush()
6417
 
6418
  def process_markOrdersAsNotAvailabke(self, seqid, iprot, oprot):
6419
    args = markOrdersAsNotAvailabke_args()
6420
    args.read(iprot)
6421
    iprot.readMessageEnd()
6422
    result = markOrdersAsNotAvailabke_result()
6423
    try:
4369 rajveer 6424
      self._handler.markOrdersAsNotAvailabke(args.vendorId, args.itemId, args.quantity, args.estimate, args.isReminder)
4303 rajveer 6425
    except TransactionServiceException, ex:
6426
      result.ex = ex
6427
    oprot.writeMessageBegin("markOrdersAsNotAvailabke", TMessageType.REPLY, seqid)
6428
    result.write(oprot)
6429
    oprot.writeMessageEnd()
6430
    oprot.trans.flush()
6431
 
4369 rajveer 6432
  def process_markOrdersAsTimeout(self, seqid, iprot, oprot):
6433
    args = markOrdersAsTimeout_args()
6434
    args.read(iprot)
6435
    iprot.readMessageEnd()
6436
    result = markOrdersAsTimeout_result()
6437
    try:
6438
      result.success = self._handler.markOrdersAsTimeout(args.vendorId)
6439
    except TransactionServiceException, ex:
6440
      result.ex = ex
6441
    oprot.writeMessageBegin("markOrdersAsTimeout", TMessageType.REPLY, seqid)
6442
    result.write(oprot)
6443
    oprot.writeMessageEnd()
6444
    oprot.trans.flush()
4303 rajveer 6445
 
4662 rajveer 6446
  def process_markOrderAsLostInTransit(self, seqid, iprot, oprot):
6447
    args = markOrderAsLostInTransit_args()
6448
    args.read(iprot)
6449
    iprot.readMessageEnd()
6450
    result = markOrderAsLostInTransit_result()
6451
    try:
6452
      result.success = self._handler.markOrderAsLostInTransit(args.orderId)
6453
    except TransactionServiceException, ex:
6454
      result.ex = ex
6455
    oprot.writeMessageBegin("markOrderAsLostInTransit", TMessageType.REPLY, seqid)
6456
    result.write(oprot)
6457
    oprot.writeMessageEnd()
6458
    oprot.trans.flush()
6459
 
4386 anupam.sin 6460
  def process_getOrderForAwb(self, seqid, iprot, oprot):
6461
    args = getOrderForAwb_args()
6462
    args.read(iprot)
6463
    iprot.readMessageEnd()
6464
    result = getOrderForAwb_result()
6465
    try:
6466
      result.success = self._handler.getOrderForAwb(args.awb)
6467
    except TransactionServiceException, ex:
6468
      result.ex = ex
6469
    oprot.writeMessageBegin("getOrderForAwb", TMessageType.REPLY, seqid)
6470
    result.write(oprot)
6471
    oprot.writeMessageEnd()
6472
    oprot.trans.flush()
4369 rajveer 6473
 
4506 phani.kuma 6474
  def process_getOrdersForProviderForStatus(self, seqid, iprot, oprot):
6475
    args = getOrdersForProviderForStatus_args()
6476
    args.read(iprot)
6477
    iprot.readMessageEnd()
6478
    result = getOrdersForProviderForStatus_result()
6479
    try:
4910 phani.kuma 6480
      result.success = self._handler.getOrdersForProviderForStatus(args.logistics_provider_id, args.order_status_list)
4506 phani.kuma 6481
    except TransactionServiceException, ex:
6482
      result.ex = ex
6483
    oprot.writeMessageBegin("getOrdersForProviderForStatus", TMessageType.REPLY, seqid)
6484
    result.write(oprot)
6485
    oprot.writeMessageEnd()
6486
    oprot.trans.flush()
4386 anupam.sin 6487
 
4600 varun.gupt 6488
  def process_getBilledOrdersForVendor(self, seqid, iprot, oprot):
6489
    args = getBilledOrdersForVendor_args()
6490
    args.read(iprot)
6491
    iprot.readMessageEnd()
6492
    result = getBilledOrdersForVendor_result()
6493
    try:
6494
      result.success = self._handler.getBilledOrdersForVendor(args.vendorId, args.billingDateFrom, args.billingDateTo)
6495
    except TransactionServiceException, ex:
6496
      result.ex = ex
6497
    oprot.writeMessageBegin("getBilledOrdersForVendor", TMessageType.REPLY, seqid)
6498
    result.write(oprot)
6499
    oprot.writeMessageEnd()
6500
    oprot.trans.flush()
4506 phani.kuma 6501
 
4607 rajveer 6502
  def process_getSlippedSippingDateOrders(self, seqid, iprot, oprot):
6503
    args = getSlippedSippingDateOrders_args()
6504
    args.read(iprot)
6505
    iprot.readMessageEnd()
6506
    result = getSlippedSippingDateOrders_result()
6507
    try:
6508
      result.success = self._handler.getSlippedSippingDateOrders()
6509
    except TransactionServiceException, ex:
6510
      result.ex = ex
6511
    oprot.writeMessageBegin("getSlippedSippingDateOrders", TMessageType.REPLY, seqid)
6512
    result.write(oprot)
6513
    oprot.writeMessageEnd()
6514
    oprot.trans.flush()
6515
 
4709 rajveer 6516
  def process_getCancelledOrders(self, seqid, iprot, oprot):
6517
    args = getCancelledOrders_args()
6518
    args.read(iprot)
6519
    iprot.readMessageEnd()
6520
    result = getCancelledOrders_result()
6521
    try:
6522
      result.success = self._handler.getCancelledOrders(args.cancelDateFrom, args.cancelDateTo)
6523
    except TransactionServiceException, ex:
6524
      result.ex = ex
6525
    oprot.writeMessageBegin("getCancelledOrders", TMessageType.REPLY, seqid)
6526
    result.write(oprot)
6527
    oprot.writeMessageEnd()
6528
    oprot.trans.flush()
6529
 
4600 varun.gupt 6530
  def process_saveBluedartSettlements(self, seqid, iprot, oprot):
6531
    args = saveBluedartSettlements_args()
6532
    args.read(iprot)
6533
    iprot.readMessageEnd()
6534
    result = saveBluedartSettlements_result()
6535
    try:
6536
      self._handler.saveBluedartSettlements(args.mapAWBAndAmount)
6537
    except TransactionServiceException, ex:
6538
      result.ex = ex
6539
    oprot.writeMessageBegin("saveBluedartSettlements", TMessageType.REPLY, seqid)
6540
    result.write(oprot)
6541
    oprot.writeMessageEnd()
6542
    oprot.trans.flush()
6543
 
6544
  def process_savePaymentSettlements(self, seqid, iprot, oprot):
6545
    args = savePaymentSettlements_args()
6546
    args.read(iprot)
6547
    iprot.readMessageEnd()
6548
    result = savePaymentSettlements_result()
6549
    try:
4905 varun.gupt 6550
      self._handler.savePaymentSettlements(args.settlementDate, args.paymentGatewayId, args.referenceId, args.serviceTax, args.otherCharges, args.netCollection)
4600 varun.gupt 6551
    except TransactionServiceException, ex:
6552
      result.ex = ex
6553
    oprot.writeMessageBegin("savePaymentSettlements", TMessageType.REPLY, seqid)
6554
    result.write(oprot)
6555
    oprot.writeMessageEnd()
6556
    oprot.trans.flush()
6557
 
6558
  def process_saveEBSSettlementSummary(self, seqid, iprot, oprot):
6559
    args = saveEBSSettlementSummary_args()
6560
    args.read(iprot)
6561
    iprot.readMessageEnd()
6562
    result = saveEBSSettlementSummary_result()
6563
    try:
6564
      self._handler.saveEBSSettlementSummary(args.settlementId, args.settlementDate, args.transactionDateFrom, args.transactionDateTo, args.amount)
6565
    except TransactionServiceException, ex:
6566
      result.ex = ex
6567
    oprot.writeMessageBegin("saveEBSSettlementSummary", TMessageType.REPLY, seqid)
6568
    result.write(oprot)
6569
    oprot.writeMessageEnd()
6570
    oprot.trans.flush()
6571
 
5386 phani.kuma 6572
  def process_getSettlementForPrepaid(self, seqid, iprot, oprot):
6573
    args = getSettlementForPrepaid_args()
4600 varun.gupt 6574
    args.read(iprot)
6575
    iprot.readMessageEnd()
5386 phani.kuma 6576
    result = getSettlementForPrepaid_result()
4600 varun.gupt 6577
    try:
5386 phani.kuma 6578
      result.success = self._handler.getSettlementForPrepaid(args.referenceId, args.isRefund)
4600 varun.gupt 6579
    except TransactionServiceException, ex:
6580
      result.ex = ex
5386 phani.kuma 6581
    oprot.writeMessageBegin("getSettlementForPrepaid", TMessageType.REPLY, seqid)
4600 varun.gupt 6582
    result.write(oprot)
6583
    oprot.writeMessageEnd()
6584
    oprot.trans.flush()
6585
 
5386 phani.kuma 6586
  def process_getSettlementForCod(self, seqid, iprot, oprot):
6587
    args = getSettlementForCod_args()
6588
    args.read(iprot)
6589
    iprot.readMessageEnd()
6590
    result = getSettlementForCod_result()
6591
    try:
6592
      result.success = self._handler.getSettlementForCod(args.orderId, args.isRefund)
6593
    except TransactionServiceException, ex:
6594
      result.ex = ex
6595
    oprot.writeMessageBegin("getSettlementForCod", TMessageType.REPLY, seqid)
6596
    result.write(oprot)
6597
    oprot.writeMessageEnd()
6598
    oprot.trans.flush()
6599
 
4600 varun.gupt 6600
  def process_getEBSSettlementSummaries(self, seqid, iprot, oprot):
6601
    args = getEBSSettlementSummaries_args()
6602
    args.read(iprot)
6603
    iprot.readMessageEnd()
6604
    result = getEBSSettlementSummaries_result()
6605
    try:
6606
      result.success = self._handler.getEBSSettlementSummaries()
6607
    except TransactionServiceException, ex:
6608
      result.ex = ex
6609
    oprot.writeMessageBegin("getEBSSettlementSummaries", TMessageType.REPLY, seqid)
6610
    result.write(oprot)
6611
    oprot.writeMessageEnd()
6612
    oprot.trans.flush()
6613
 
6614
  def process_markEBSSettlementUploaded(self, seqid, iprot, oprot):
6615
    args = markEBSSettlementUploaded_args()
6616
    args.read(iprot)
6617
    iprot.readMessageEnd()
6618
    result = markEBSSettlementUploaded_result()
6619
    try:
6620
      self._handler.markEBSSettlementUploaded(args.settlementId)
6621
    except TransactionServiceException, ex:
6622
      result.ex = ex
6623
    oprot.writeMessageBegin("markEBSSettlementUploaded", TMessageType.REPLY, seqid)
6624
    result.write(oprot)
6625
    oprot.writeMessageEnd()
6626
    oprot.trans.flush()
6627
 
6628
  def process_getEBSSettlementDate(self, seqid, iprot, oprot):
6629
    args = getEBSSettlementDate_args()
6630
    args.read(iprot)
6631
    iprot.readMessageEnd()
6632
    result = getEBSSettlementDate_result()
6633
    try:
6634
      result.success = self._handler.getEBSSettlementDate(args.settlementId)
6635
    except TransactionServiceException, ex:
6636
      result.ex = ex
6637
    oprot.writeMessageBegin("getEBSSettlementDate", TMessageType.REPLY, seqid)
6638
    result.write(oprot)
6639
    oprot.writeMessageEnd()
6640
    oprot.trans.flush()
6641
 
4715 varun.gupt 6642
  def process_getSettlementsByDate(self, seqid, iprot, oprot):
6643
    args = getSettlementsByDate_args()
6644
    args.read(iprot)
6645
    iprot.readMessageEnd()
6646
    result = getSettlementsByDate_result()
6647
    try:
6648
      result.success = self._handler.getSettlementsByDate(args.settlementDateFrom, args.settlementDateTo, args.isRefund)
6649
    except TransactionServiceException, ex:
6650
      result.ex = ex
6651
    oprot.writeMessageBegin("getSettlementsByDate", TMessageType.REPLY, seqid)
6652
    result.write(oprot)
6653
    oprot.writeMessageEnd()
6654
    oprot.trans.flush()
4600 varun.gupt 6655
 
4715 varun.gupt 6656
  def process_getReshippedOrderIds(self, seqid, iprot, oprot):
6657
    args = getReshippedOrderIds_args()
6658
    args.read(iprot)
6659
    iprot.readMessageEnd()
6660
    result = getReshippedOrderIds_result()
6661
    try:
6662
      result.success = self._handler.getReshippedOrderIds(args.orderIds)
6663
    except TransactionServiceException, ex:
6664
      result.ex = ex
6665
    oprot.writeMessageBegin("getReshippedOrderIds", TMessageType.REPLY, seqid)
6666
    result.write(oprot)
6667
    oprot.writeMessageEnd()
6668
    oprot.trans.flush()
6669
 
4875 varun.gupt 6670
  def process_getOrdersWhereVendorNotPaid(self, seqid, iprot, oprot):
6671
    args = getOrdersWhereVendorNotPaid_args()
6672
    args.read(iprot)
6673
    iprot.readMessageEnd()
6674
    result = getOrdersWhereVendorNotPaid_result()
6675
    try:
6676
      result.success = self._handler.getOrdersWhereVendorNotPaid(args.vendorId)
6677
    except TransactionServiceException, ex:
6678
      result.ex = ex
6679
    oprot.writeMessageBegin("getOrdersWhereVendorNotPaid", TMessageType.REPLY, seqid)
6680
    result.write(oprot)
6681
    oprot.writeMessageEnd()
6682
    oprot.trans.flush()
4757 mandeep.dh 6683
 
5031 varun.gupt 6684
  def process_getStatusDistributionOfOrders(self, seqid, iprot, oprot):
6685
    args = getStatusDistributionOfOrders_args()
6686
    args.read(iprot)
6687
    iprot.readMessageEnd()
6688
    result = getStatusDistributionOfOrders_result()
6689
    try:
6690
      result.success = self._handler.getStatusDistributionOfOrders(args.startDate, args.endDate)
6691
    except TransactionServiceException, ex:
6692
      result.ex = ex
6693
    oprot.writeMessageBegin("getStatusDistributionOfOrders", TMessageType.REPLY, seqid)
6694
    result.write(oprot)
6695
    oprot.writeMessageEnd()
6696
    oprot.trans.flush()
4875 varun.gupt 6697
 
5067 varun.gupt 6698
  def process_getOrderIdsForStatus(self, seqid, iprot, oprot):
6699
    args = getOrderIdsForStatus_args()
6700
    args.read(iprot)
6701
    iprot.readMessageEnd()
6702
    result = getOrderIdsForStatus_result()
6703
    try:
6704
      result.success = self._handler.getOrderIdsForStatus(args.status, args.startDatetime, args.endDatetime)
6705
    except TransactionServiceException, ex:
6706
      result.ex = ex
6707
    oprot.writeMessageBegin("getOrderIdsForStatus", TMessageType.REPLY, seqid)
6708
    result.write(oprot)
6709
    oprot.writeMessageEnd()
6710
    oprot.trans.flush()
5031 varun.gupt 6711
 
5348 anupam.sin 6712
  def process_updateCODAgent(self, seqid, iprot, oprot):
6713
    args = updateCODAgent_args()
6714
    args.read(iprot)
6715
    iprot.readMessageEnd()
6716
    result = updateCODAgent_result()
6717
    try:
6718
      self._handler.updateCODAgent(args.agent, args.orderId)
6719
    except TransactionServiceException, ex:
6720
      result.ex = ex
6721
    oprot.writeMessageBegin("updateCODAgent", TMessageType.REPLY, seqid)
6722
    result.write(oprot)
6723
    oprot.writeMessageEnd()
6724
    oprot.trans.flush()
6725
 
5099 varun.gupt 6726
  def process_updateOrderAsPaidToVendor(self, seqid, iprot, oprot):
6727
    args = updateOrderAsPaidToVendor_args()
6728
    args.read(iprot)
6729
    iprot.readMessageEnd()
6730
    result = updateOrderAsPaidToVendor_result()
6731
    try:
6732
      self._handler.updateOrderAsPaidToVendor(args.orderId)
6733
    except TransactionServiceException, ex:
6734
      result.ex = ex
6735
    oprot.writeMessageBegin("updateOrderAsPaidToVendor", TMessageType.REPLY, seqid)
6736
    result.write(oprot)
6737
    oprot.writeMessageEnd()
6738
    oprot.trans.flush()
5067 varun.gupt 6739
 
5386 phani.kuma 6740
  def process_updateOrderOnlyAsPaidToVendor(self, seqid, iprot, oprot):
6741
    args = updateOrderOnlyAsPaidToVendor_args()
6742
    args.read(iprot)
6743
    iprot.readMessageEnd()
6744
    result = updateOrderOnlyAsPaidToVendor_result()
6745
    try:
6746
      self._handler.updateOrderOnlyAsPaidToVendor(args.orderId)
6747
    except TransactionServiceException, ex:
6748
      result.ex = ex
6749
    oprot.writeMessageBegin("updateOrderOnlyAsPaidToVendor", TMessageType.REPLY, seqid)
6750
    result.write(oprot)
6751
    oprot.writeMessageEnd()
6752
    oprot.trans.flush()
6753
 
5208 varun.gupt 6754
  def process_getRefundedOrdersMarkedPaid(self, seqid, iprot, oprot):
6755
    args = getRefundedOrdersMarkedPaid_args()
6756
    args.read(iprot)
6757
    iprot.readMessageEnd()
6758
    result = getRefundedOrdersMarkedPaid_result()
6759
    try:
6760
      result.success = self._handler.getRefundedOrdersMarkedPaid()
6761
    except TransactionServiceException, ex:
6762
      result.ex = ex
6763
    oprot.writeMessageBegin("getRefundedOrdersMarkedPaid", TMessageType.REPLY, seqid)
6764
    result.write(oprot)
6765
    oprot.writeMessageEnd()
6766
    oprot.trans.flush()
5099 varun.gupt 6767
 
5208 varun.gupt 6768
 
94 ashish 6769
# HELPER FUNCTIONS AND STRUCTURES
6770
 
6771
class createTransaction_args:
6772
  """
6773
  Attributes:
6774
   - transaction
6775
  """
6776
 
6777
  thrift_spec = (
6778
    None, # 0
6779
    (1, TType.STRUCT, 'transaction', (Transaction, Transaction.thrift_spec), None, ), # 1
6780
  )
6781
 
6782
  def __init__(self, transaction=None,):
6783
    self.transaction = transaction
6784
 
6785
  def read(self, iprot):
6786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6788
      return
6789
    iprot.readStructBegin()
6790
    while True:
6791
      (fname, ftype, fid) = iprot.readFieldBegin()
6792
      if ftype == TType.STOP:
6793
        break
6794
      if fid == 1:
6795
        if ftype == TType.STRUCT:
6796
          self.transaction = Transaction()
6797
          self.transaction.read(iprot)
6798
        else:
6799
          iprot.skip(ftype)
6800
      else:
6801
        iprot.skip(ftype)
6802
      iprot.readFieldEnd()
6803
    iprot.readStructEnd()
6804
 
6805
  def write(self, oprot):
6806
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6807
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6808
      return
6809
    oprot.writeStructBegin('createTransaction_args')
3431 rajveer 6810
    if self.transaction is not None:
94 ashish 6811
      oprot.writeFieldBegin('transaction', TType.STRUCT, 1)
6812
      self.transaction.write(oprot)
6813
      oprot.writeFieldEnd()
6814
    oprot.writeFieldStop()
6815
    oprot.writeStructEnd()
6816
 
3431 rajveer 6817
  def validate(self):
6818
    return
6819
 
6820
 
94 ashish 6821
  def __repr__(self):
6822
    L = ['%s=%r' % (key, value)
6823
      for key, value in self.__dict__.iteritems()]
6824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6825
 
6826
  def __eq__(self, other):
6827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6828
 
6829
  def __ne__(self, other):
6830
    return not (self == other)
6831
 
6832
class createTransaction_result:
6833
  """
6834
  Attributes:
132 ashish 6835
   - success
94 ashish 6836
   - ex
6837
  """
6838
 
6839
  thrift_spec = (
132 ashish 6840
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 6841
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
6842
  )
6843
 
132 ashish 6844
  def __init__(self, success=None, ex=None,):
6845
    self.success = success
94 ashish 6846
    self.ex = ex
6847
 
6848
  def read(self, iprot):
6849
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6850
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6851
      return
6852
    iprot.readStructBegin()
6853
    while True:
6854
      (fname, ftype, fid) = iprot.readFieldBegin()
6855
      if ftype == TType.STOP:
6856
        break
132 ashish 6857
      if fid == 0:
6858
        if ftype == TType.I64:
6859
          self.success = iprot.readI64();
6860
        else:
6861
          iprot.skip(ftype)
6862
      elif fid == 1:
94 ashish 6863
        if ftype == TType.STRUCT:
6864
          self.ex = TransactionServiceException()
6865
          self.ex.read(iprot)
6866
        else:
6867
          iprot.skip(ftype)
6868
      else:
6869
        iprot.skip(ftype)
6870
      iprot.readFieldEnd()
6871
    iprot.readStructEnd()
6872
 
6873
  def write(self, oprot):
6874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6876
      return
6877
    oprot.writeStructBegin('createTransaction_result')
3431 rajveer 6878
    if self.success is not None:
132 ashish 6879
      oprot.writeFieldBegin('success', TType.I64, 0)
6880
      oprot.writeI64(self.success)
6881
      oprot.writeFieldEnd()
3431 rajveer 6882
    if self.ex is not None:
94 ashish 6883
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
6884
      self.ex.write(oprot)
6885
      oprot.writeFieldEnd()
6886
    oprot.writeFieldStop()
6887
    oprot.writeStructEnd()
6888
 
3431 rajveer 6889
  def validate(self):
6890
    return
6891
 
6892
 
94 ashish 6893
  def __repr__(self):
6894
    L = ['%s=%r' % (key, value)
6895
      for key, value in self.__dict__.iteritems()]
6896
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6897
 
6898
  def __eq__(self, other):
6899
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6900
 
6901
  def __ne__(self, other):
6902
    return not (self == other)
6903
 
6904
class getTransaction_args:
6905
  """
6906
  Attributes:
6907
   - id
6908
  """
6909
 
6910
  thrift_spec = (
6911
    None, # 0
6912
    (1, TType.I64, 'id', None, None, ), # 1
6913
  )
6914
 
6915
  def __init__(self, id=None,):
6916
    self.id = id
6917
 
6918
  def read(self, iprot):
6919
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6920
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6921
      return
6922
    iprot.readStructBegin()
6923
    while True:
6924
      (fname, ftype, fid) = iprot.readFieldBegin()
6925
      if ftype == TType.STOP:
6926
        break
6927
      if fid == 1:
6928
        if ftype == TType.I64:
6929
          self.id = iprot.readI64();
6930
        else:
6931
          iprot.skip(ftype)
6932
      else:
6933
        iprot.skip(ftype)
6934
      iprot.readFieldEnd()
6935
    iprot.readStructEnd()
6936
 
6937
  def write(self, oprot):
6938
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6939
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6940
      return
6941
    oprot.writeStructBegin('getTransaction_args')
3431 rajveer 6942
    if self.id is not None:
94 ashish 6943
      oprot.writeFieldBegin('id', TType.I64, 1)
6944
      oprot.writeI64(self.id)
6945
      oprot.writeFieldEnd()
6946
    oprot.writeFieldStop()
6947
    oprot.writeStructEnd()
6948
 
3431 rajveer 6949
  def validate(self):
6950
    return
6951
 
6952
 
94 ashish 6953
  def __repr__(self):
6954
    L = ['%s=%r' % (key, value)
6955
      for key, value in self.__dict__.iteritems()]
6956
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6957
 
6958
  def __eq__(self, other):
6959
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6960
 
6961
  def __ne__(self, other):
6962
    return not (self == other)
6963
 
6964
class getTransaction_result:
6965
  """
6966
  Attributes:
6967
   - success
6968
   - ex
6969
  """
6970
 
6971
  thrift_spec = (
6972
    (0, TType.STRUCT, 'success', (Transaction, Transaction.thrift_spec), None, ), # 0
6973
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
6974
  )
6975
 
6976
  def __init__(self, success=None, ex=None,):
6977
    self.success = success
6978
    self.ex = ex
6979
 
6980
  def read(self, iprot):
6981
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6982
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6983
      return
6984
    iprot.readStructBegin()
6985
    while True:
6986
      (fname, ftype, fid) = iprot.readFieldBegin()
6987
      if ftype == TType.STOP:
6988
        break
6989
      if fid == 0:
6990
        if ftype == TType.STRUCT:
6991
          self.success = Transaction()
6992
          self.success.read(iprot)
6993
        else:
6994
          iprot.skip(ftype)
6995
      elif fid == 1:
6996
        if ftype == TType.STRUCT:
6997
          self.ex = TransactionServiceException()
6998
          self.ex.read(iprot)
6999
        else:
7000
          iprot.skip(ftype)
7001
      else:
7002
        iprot.skip(ftype)
7003
      iprot.readFieldEnd()
7004
    iprot.readStructEnd()
7005
 
7006
  def write(self, oprot):
7007
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7008
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7009
      return
7010
    oprot.writeStructBegin('getTransaction_result')
3431 rajveer 7011
    if self.success is not None:
94 ashish 7012
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
7013
      self.success.write(oprot)
7014
      oprot.writeFieldEnd()
3431 rajveer 7015
    if self.ex is not None:
94 ashish 7016
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7017
      self.ex.write(oprot)
7018
      oprot.writeFieldEnd()
7019
    oprot.writeFieldStop()
7020
    oprot.writeStructEnd()
7021
 
3431 rajveer 7022
  def validate(self):
7023
    return
7024
 
7025
 
94 ashish 7026
  def __repr__(self):
7027
    L = ['%s=%r' % (key, value)
7028
      for key, value in self.__dict__.iteritems()]
7029
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7030
 
7031
  def __eq__(self, other):
7032
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7033
 
7034
  def __ne__(self, other):
7035
    return not (self == other)
7036
 
7037
class getTransactionsForCustomer_args:
7038
  """
7039
  Attributes:
7040
   - customerId
7041
   - from_date
7042
   - to_date
7043
   - status
7044
  """
7045
 
7046
  thrift_spec = (
7047
    None, # 0
7048
    (1, TType.I64, 'customerId', None, None, ), # 1
7049
    (2, TType.I64, 'from_date', None, None, ), # 2
7050
    (3, TType.I64, 'to_date', None, None, ), # 3
7051
    (4, TType.I32, 'status', None, None, ), # 4
7052
  )
7053
 
7054
  def __init__(self, customerId=None, from_date=None, to_date=None, status=None,):
7055
    self.customerId = customerId
7056
    self.from_date = from_date
7057
    self.to_date = to_date
7058
    self.status = status
7059
 
7060
  def read(self, iprot):
7061
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7062
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7063
      return
7064
    iprot.readStructBegin()
7065
    while True:
7066
      (fname, ftype, fid) = iprot.readFieldBegin()
7067
      if ftype == TType.STOP:
7068
        break
7069
      if fid == 1:
7070
        if ftype == TType.I64:
7071
          self.customerId = iprot.readI64();
7072
        else:
7073
          iprot.skip(ftype)
7074
      elif fid == 2:
7075
        if ftype == TType.I64:
7076
          self.from_date = iprot.readI64();
7077
        else:
7078
          iprot.skip(ftype)
7079
      elif fid == 3:
7080
        if ftype == TType.I64:
7081
          self.to_date = iprot.readI64();
7082
        else:
7083
          iprot.skip(ftype)
7084
      elif fid == 4:
7085
        if ftype == TType.I32:
7086
          self.status = iprot.readI32();
7087
        else:
7088
          iprot.skip(ftype)
7089
      else:
7090
        iprot.skip(ftype)
7091
      iprot.readFieldEnd()
7092
    iprot.readStructEnd()
7093
 
7094
  def write(self, oprot):
7095
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7096
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7097
      return
7098
    oprot.writeStructBegin('getTransactionsForCustomer_args')
3431 rajveer 7099
    if self.customerId is not None:
94 ashish 7100
      oprot.writeFieldBegin('customerId', TType.I64, 1)
7101
      oprot.writeI64(self.customerId)
7102
      oprot.writeFieldEnd()
3431 rajveer 7103
    if self.from_date is not None:
94 ashish 7104
      oprot.writeFieldBegin('from_date', TType.I64, 2)
7105
      oprot.writeI64(self.from_date)
7106
      oprot.writeFieldEnd()
3431 rajveer 7107
    if self.to_date is not None:
94 ashish 7108
      oprot.writeFieldBegin('to_date', TType.I64, 3)
7109
      oprot.writeI64(self.to_date)
7110
      oprot.writeFieldEnd()
3431 rajveer 7111
    if self.status is not None:
94 ashish 7112
      oprot.writeFieldBegin('status', TType.I32, 4)
7113
      oprot.writeI32(self.status)
7114
      oprot.writeFieldEnd()
7115
    oprot.writeFieldStop()
7116
    oprot.writeStructEnd()
7117
 
3431 rajveer 7118
  def validate(self):
7119
    return
7120
 
7121
 
94 ashish 7122
  def __repr__(self):
7123
    L = ['%s=%r' % (key, value)
7124
      for key, value in self.__dict__.iteritems()]
7125
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7126
 
7127
  def __eq__(self, other):
7128
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7129
 
7130
  def __ne__(self, other):
7131
    return not (self == other)
7132
 
7133
class getTransactionsForCustomer_result:
7134
  """
7135
  Attributes:
7136
   - success
7137
   - ex
7138
  """
7139
 
7140
  thrift_spec = (
7141
    (0, TType.LIST, 'success', (TType.STRUCT,(Transaction, Transaction.thrift_spec)), None, ), # 0
7142
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
7143
  )
7144
 
7145
  def __init__(self, success=None, ex=None,):
7146
    self.success = success
7147
    self.ex = ex
7148
 
7149
  def read(self, iprot):
7150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7151
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7152
      return
7153
    iprot.readStructBegin()
7154
    while True:
7155
      (fname, ftype, fid) = iprot.readFieldBegin()
7156
      if ftype == TType.STOP:
7157
        break
7158
      if fid == 0:
7159
        if ftype == TType.LIST:
7160
          self.success = []
5031 varun.gupt 7161
          (_etype66, _size63) = iprot.readListBegin()
7162
          for _i67 in xrange(_size63):
7163
            _elem68 = Transaction()
7164
            _elem68.read(iprot)
7165
            self.success.append(_elem68)
94 ashish 7166
          iprot.readListEnd()
7167
        else:
7168
          iprot.skip(ftype)
7169
      elif fid == 1:
7170
        if ftype == TType.STRUCT:
7171
          self.ex = TransactionServiceException()
7172
          self.ex.read(iprot)
7173
        else:
7174
          iprot.skip(ftype)
7175
      else:
7176
        iprot.skip(ftype)
7177
      iprot.readFieldEnd()
7178
    iprot.readStructEnd()
7179
 
7180
  def write(self, oprot):
7181
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7182
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7183
      return
7184
    oprot.writeStructBegin('getTransactionsForCustomer_result')
3431 rajveer 7185
    if self.success is not None:
94 ashish 7186
      oprot.writeFieldBegin('success', TType.LIST, 0)
7187
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5031 varun.gupt 7188
      for iter69 in self.success:
7189
        iter69.write(oprot)
94 ashish 7190
      oprot.writeListEnd()
7191
      oprot.writeFieldEnd()
3431 rajveer 7192
    if self.ex is not None:
94 ashish 7193
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7194
      self.ex.write(oprot)
7195
      oprot.writeFieldEnd()
7196
    oprot.writeFieldStop()
7197
    oprot.writeStructEnd()
7198
 
3431 rajveer 7199
  def validate(self):
7200
    return
7201
 
7202
 
94 ashish 7203
  def __repr__(self):
7204
    L = ['%s=%r' % (key, value)
7205
      for key, value in self.__dict__.iteritems()]
7206
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7207
 
7208
  def __eq__(self, other):
7209
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7210
 
7211
  def __ne__(self, other):
7212
    return not (self == other)
7213
 
132 ashish 7214
class getTransactionsForShoppingCartId_args:
7215
  """
7216
  Attributes:
7217
   - shoppingCartId
7218
  """
7219
 
7220
  thrift_spec = (
7221
    None, # 0
7222
    (1, TType.I64, 'shoppingCartId', None, None, ), # 1
7223
  )
7224
 
7225
  def __init__(self, shoppingCartId=None,):
7226
    self.shoppingCartId = shoppingCartId
7227
 
7228
  def read(self, iprot):
7229
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7230
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7231
      return
7232
    iprot.readStructBegin()
7233
    while True:
7234
      (fname, ftype, fid) = iprot.readFieldBegin()
7235
      if ftype == TType.STOP:
7236
        break
7237
      if fid == 1:
7238
        if ftype == TType.I64:
7239
          self.shoppingCartId = iprot.readI64();
7240
        else:
7241
          iprot.skip(ftype)
7242
      else:
7243
        iprot.skip(ftype)
7244
      iprot.readFieldEnd()
7245
    iprot.readStructEnd()
7246
 
7247
  def write(self, oprot):
7248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7250
      return
7251
    oprot.writeStructBegin('getTransactionsForShoppingCartId_args')
3431 rajveer 7252
    if self.shoppingCartId is not None:
132 ashish 7253
      oprot.writeFieldBegin('shoppingCartId', TType.I64, 1)
7254
      oprot.writeI64(self.shoppingCartId)
7255
      oprot.writeFieldEnd()
7256
    oprot.writeFieldStop()
7257
    oprot.writeStructEnd()
7258
 
3431 rajveer 7259
  def validate(self):
7260
    return
7261
 
7262
 
132 ashish 7263
  def __repr__(self):
7264
    L = ['%s=%r' % (key, value)
7265
      for key, value in self.__dict__.iteritems()]
7266
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7267
 
7268
  def __eq__(self, other):
7269
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7270
 
7271
  def __ne__(self, other):
7272
    return not (self == other)
7273
 
7274
class getTransactionsForShoppingCartId_result:
7275
  """
7276
  Attributes:
7277
   - success
7278
   - ex
7279
  """
7280
 
7281
  thrift_spec = (
7282
    (0, TType.LIST, 'success', (TType.STRUCT,(Transaction, Transaction.thrift_spec)), None, ), # 0
7283
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
7284
  )
7285
 
7286
  def __init__(self, success=None, ex=None,):
7287
    self.success = success
7288
    self.ex = ex
7289
 
7290
  def read(self, iprot):
7291
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7292
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7293
      return
7294
    iprot.readStructBegin()
7295
    while True:
7296
      (fname, ftype, fid) = iprot.readFieldBegin()
7297
      if ftype == TType.STOP:
7298
        break
7299
      if fid == 0:
7300
        if ftype == TType.LIST:
7301
          self.success = []
5031 varun.gupt 7302
          (_etype73, _size70) = iprot.readListBegin()
7303
          for _i74 in xrange(_size70):
7304
            _elem75 = Transaction()
7305
            _elem75.read(iprot)
7306
            self.success.append(_elem75)
132 ashish 7307
          iprot.readListEnd()
7308
        else:
7309
          iprot.skip(ftype)
7310
      elif fid == 1:
7311
        if ftype == TType.STRUCT:
7312
          self.ex = TransactionServiceException()
7313
          self.ex.read(iprot)
7314
        else:
7315
          iprot.skip(ftype)
7316
      else:
7317
        iprot.skip(ftype)
7318
      iprot.readFieldEnd()
7319
    iprot.readStructEnd()
7320
 
7321
  def write(self, oprot):
7322
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7323
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7324
      return
7325
    oprot.writeStructBegin('getTransactionsForShoppingCartId_result')
3431 rajveer 7326
    if self.success is not None:
132 ashish 7327
      oprot.writeFieldBegin('success', TType.LIST, 0)
7328
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5031 varun.gupt 7329
      for iter76 in self.success:
7330
        iter76.write(oprot)
132 ashish 7331
      oprot.writeListEnd()
7332
      oprot.writeFieldEnd()
3431 rajveer 7333
    if self.ex is not None:
132 ashish 7334
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7335
      self.ex.write(oprot)
7336
      oprot.writeFieldEnd()
7337
    oprot.writeFieldStop()
7338
    oprot.writeStructEnd()
7339
 
3431 rajveer 7340
  def validate(self):
7341
    return
7342
 
7343
 
132 ashish 7344
  def __repr__(self):
7345
    L = ['%s=%r' % (key, value)
7346
      for key, value in self.__dict__.iteritems()]
7347
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7348
 
7349
  def __eq__(self, other):
7350
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7351
 
7352
  def __ne__(self, other):
7353
    return not (self == other)
7354
 
94 ashish 7355
class getTransactionStatus_args:
7356
  """
7357
  Attributes:
7358
   - transactionId
7359
  """
7360
 
7361
  thrift_spec = (
7362
    None, # 0
7363
    (1, TType.I64, 'transactionId', None, None, ), # 1
7364
  )
7365
 
7366
  def __init__(self, transactionId=None,):
7367
    self.transactionId = transactionId
7368
 
7369
  def read(self, iprot):
7370
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7371
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7372
      return
7373
    iprot.readStructBegin()
7374
    while True:
7375
      (fname, ftype, fid) = iprot.readFieldBegin()
7376
      if ftype == TType.STOP:
7377
        break
7378
      if fid == 1:
7379
        if ftype == TType.I64:
7380
          self.transactionId = iprot.readI64();
7381
        else:
7382
          iprot.skip(ftype)
7383
      else:
7384
        iprot.skip(ftype)
7385
      iprot.readFieldEnd()
7386
    iprot.readStructEnd()
7387
 
7388
  def write(self, oprot):
7389
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7390
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7391
      return
7392
    oprot.writeStructBegin('getTransactionStatus_args')
3431 rajveer 7393
    if self.transactionId is not None:
94 ashish 7394
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
7395
      oprot.writeI64(self.transactionId)
7396
      oprot.writeFieldEnd()
7397
    oprot.writeFieldStop()
7398
    oprot.writeStructEnd()
7399
 
3431 rajveer 7400
  def validate(self):
7401
    return
7402
 
7403
 
94 ashish 7404
  def __repr__(self):
7405
    L = ['%s=%r' % (key, value)
7406
      for key, value in self.__dict__.iteritems()]
7407
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7408
 
7409
  def __eq__(self, other):
7410
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7411
 
7412
  def __ne__(self, other):
7413
    return not (self == other)
7414
 
7415
class getTransactionStatus_result:
7416
  """
7417
  Attributes:
7418
   - success
7419
   - ex
7420
  """
7421
 
7422
  thrift_spec = (
7423
    (0, TType.I32, 'success', None, None, ), # 0
7424
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
7425
  )
7426
 
7427
  def __init__(self, success=None, ex=None,):
7428
    self.success = success
7429
    self.ex = ex
7430
 
7431
  def read(self, iprot):
7432
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7433
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7434
      return
7435
    iprot.readStructBegin()
7436
    while True:
7437
      (fname, ftype, fid) = iprot.readFieldBegin()
7438
      if ftype == TType.STOP:
7439
        break
7440
      if fid == 0:
7441
        if ftype == TType.I32:
7442
          self.success = iprot.readI32();
7443
        else:
7444
          iprot.skip(ftype)
7445
      elif fid == 1:
7446
        if ftype == TType.STRUCT:
7447
          self.ex = TransactionServiceException()
7448
          self.ex.read(iprot)
7449
        else:
7450
          iprot.skip(ftype)
7451
      else:
7452
        iprot.skip(ftype)
7453
      iprot.readFieldEnd()
7454
    iprot.readStructEnd()
7455
 
7456
  def write(self, oprot):
7457
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7458
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7459
      return
7460
    oprot.writeStructBegin('getTransactionStatus_result')
3431 rajveer 7461
    if self.success is not None:
94 ashish 7462
      oprot.writeFieldBegin('success', TType.I32, 0)
7463
      oprot.writeI32(self.success)
7464
      oprot.writeFieldEnd()
3431 rajveer 7465
    if self.ex is not None:
94 ashish 7466
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7467
      self.ex.write(oprot)
7468
      oprot.writeFieldEnd()
7469
    oprot.writeFieldStop()
7470
    oprot.writeStructEnd()
7471
 
3431 rajveer 7472
  def validate(self):
7473
    return
7474
 
7475
 
94 ashish 7476
  def __repr__(self):
7477
    L = ['%s=%r' % (key, value)
7478
      for key, value in self.__dict__.iteritems()]
7479
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7480
 
7481
  def __eq__(self, other):
7482
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7483
 
7484
  def __ne__(self, other):
7485
    return not (self == other)
7486
 
7487
class changeTransactionStatus_args:
7488
  """
7489
  Attributes:
7490
   - transactionId
7491
   - status
7492
   - description
5387 rajveer 7493
   - selfPickup
94 ashish 7494
  """
7495
 
7496
  thrift_spec = (
7497
    None, # 0
7498
    (1, TType.I64, 'transactionId', None, None, ), # 1
7499
    (2, TType.I32, 'status', None, None, ), # 2
7500
    (3, TType.STRING, 'description', None, None, ), # 3
5387 rajveer 7501
    (4, TType.BOOL, 'selfPickup', None, None, ), # 4
94 ashish 7502
  )
7503
 
5387 rajveer 7504
  def __init__(self, transactionId=None, status=None, description=None, selfPickup=None,):
94 ashish 7505
    self.transactionId = transactionId
7506
    self.status = status
7507
    self.description = description
5387 rajveer 7508
    self.selfPickup = selfPickup
94 ashish 7509
 
7510
  def read(self, iprot):
7511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7513
      return
7514
    iprot.readStructBegin()
7515
    while True:
7516
      (fname, ftype, fid) = iprot.readFieldBegin()
7517
      if ftype == TType.STOP:
7518
        break
7519
      if fid == 1:
7520
        if ftype == TType.I64:
7521
          self.transactionId = iprot.readI64();
7522
        else:
7523
          iprot.skip(ftype)
7524
      elif fid == 2:
7525
        if ftype == TType.I32:
7526
          self.status = iprot.readI32();
7527
        else:
7528
          iprot.skip(ftype)
7529
      elif fid == 3:
7530
        if ftype == TType.STRING:
7531
          self.description = iprot.readString();
7532
        else:
7533
          iprot.skip(ftype)
5387 rajveer 7534
      elif fid == 4:
7535
        if ftype == TType.BOOL:
7536
          self.selfPickup = iprot.readBool();
7537
        else:
7538
          iprot.skip(ftype)
94 ashish 7539
      else:
7540
        iprot.skip(ftype)
7541
      iprot.readFieldEnd()
7542
    iprot.readStructEnd()
7543
 
7544
  def write(self, oprot):
7545
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7546
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7547
      return
7548
    oprot.writeStructBegin('changeTransactionStatus_args')
3431 rajveer 7549
    if self.transactionId is not None:
94 ashish 7550
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
7551
      oprot.writeI64(self.transactionId)
7552
      oprot.writeFieldEnd()
3431 rajveer 7553
    if self.status is not None:
94 ashish 7554
      oprot.writeFieldBegin('status', TType.I32, 2)
7555
      oprot.writeI32(self.status)
7556
      oprot.writeFieldEnd()
3431 rajveer 7557
    if self.description is not None:
94 ashish 7558
      oprot.writeFieldBegin('description', TType.STRING, 3)
7559
      oprot.writeString(self.description)
7560
      oprot.writeFieldEnd()
5387 rajveer 7561
    if self.selfPickup is not None:
7562
      oprot.writeFieldBegin('selfPickup', TType.BOOL, 4)
7563
      oprot.writeBool(self.selfPickup)
7564
      oprot.writeFieldEnd()
94 ashish 7565
    oprot.writeFieldStop()
7566
    oprot.writeStructEnd()
7567
 
3431 rajveer 7568
  def validate(self):
7569
    return
7570
 
7571
 
94 ashish 7572
  def __repr__(self):
7573
    L = ['%s=%r' % (key, value)
7574
      for key, value in self.__dict__.iteritems()]
7575
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7576
 
7577
  def __eq__(self, other):
7578
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7579
 
7580
  def __ne__(self, other):
7581
    return not (self == other)
7582
 
7583
class changeTransactionStatus_result:
7584
  """
7585
  Attributes:
7586
   - success
7587
   - ex
7588
  """
7589
 
7590
  thrift_spec = (
7591
    (0, TType.BOOL, 'success', None, None, ), # 0
7592
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
7593
  )
7594
 
7595
  def __init__(self, success=None, ex=None,):
7596
    self.success = success
7597
    self.ex = ex
7598
 
7599
  def read(self, iprot):
7600
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7601
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7602
      return
7603
    iprot.readStructBegin()
7604
    while True:
7605
      (fname, ftype, fid) = iprot.readFieldBegin()
7606
      if ftype == TType.STOP:
7607
        break
7608
      if fid == 0:
7609
        if ftype == TType.BOOL:
7610
          self.success = iprot.readBool();
7611
        else:
7612
          iprot.skip(ftype)
7613
      elif fid == 1:
7614
        if ftype == TType.STRUCT:
7615
          self.ex = TransactionServiceException()
7616
          self.ex.read(iprot)
7617
        else:
7618
          iprot.skip(ftype)
7619
      else:
7620
        iprot.skip(ftype)
7621
      iprot.readFieldEnd()
7622
    iprot.readStructEnd()
7623
 
7624
  def write(self, oprot):
7625
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7626
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7627
      return
7628
    oprot.writeStructBegin('changeTransactionStatus_result')
3431 rajveer 7629
    if self.success is not None:
94 ashish 7630
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7631
      oprot.writeBool(self.success)
7632
      oprot.writeFieldEnd()
3431 rajveer 7633
    if self.ex is not None:
94 ashish 7634
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7635
      self.ex.write(oprot)
7636
      oprot.writeFieldEnd()
7637
    oprot.writeFieldStop()
7638
    oprot.writeStructEnd()
7639
 
3431 rajveer 7640
  def validate(self):
7641
    return
7642
 
7643
 
94 ashish 7644
  def __repr__(self):
7645
    L = ['%s=%r' % (key, value)
7646
      for key, value in self.__dict__.iteritems()]
7647
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7648
 
7649
  def __eq__(self, other):
7650
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7651
 
7652
  def __ne__(self, other):
7653
    return not (self == other)
7654
 
1398 varun.gupt 7655
class enqueueTransactionInfoEmail_args:
1382 varun.gupt 7656
  """
7657
  Attributes:
7658
   - transactionId
7659
  """
7660
 
7661
  thrift_spec = (
7662
    None, # 0
7663
    (1, TType.I64, 'transactionId', None, None, ), # 1
7664
  )
7665
 
7666
  def __init__(self, transactionId=None,):
7667
    self.transactionId = transactionId
7668
 
7669
  def read(self, iprot):
7670
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7671
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7672
      return
7673
    iprot.readStructBegin()
7674
    while True:
7675
      (fname, ftype, fid) = iprot.readFieldBegin()
7676
      if ftype == TType.STOP:
7677
        break
7678
      if fid == 1:
7679
        if ftype == TType.I64:
7680
          self.transactionId = iprot.readI64();
7681
        else:
7682
          iprot.skip(ftype)
7683
      else:
7684
        iprot.skip(ftype)
7685
      iprot.readFieldEnd()
7686
    iprot.readStructEnd()
7687
 
7688
  def write(self, oprot):
7689
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7690
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7691
      return
1398 varun.gupt 7692
    oprot.writeStructBegin('enqueueTransactionInfoEmail_args')
3431 rajveer 7693
    if self.transactionId is not None:
1382 varun.gupt 7694
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
7695
      oprot.writeI64(self.transactionId)
7696
      oprot.writeFieldEnd()
7697
    oprot.writeFieldStop()
7698
    oprot.writeStructEnd()
7699
 
3431 rajveer 7700
  def validate(self):
7701
    return
7702
 
7703
 
1382 varun.gupt 7704
  def __repr__(self):
7705
    L = ['%s=%r' % (key, value)
7706
      for key, value in self.__dict__.iteritems()]
7707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7708
 
7709
  def __eq__(self, other):
7710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7711
 
7712
  def __ne__(self, other):
7713
    return not (self == other)
7714
 
1398 varun.gupt 7715
class enqueueTransactionInfoEmail_result:
1382 varun.gupt 7716
  """
7717
  Attributes:
7718
   - success
7719
   - ex
7720
  """
7721
 
7722
  thrift_spec = (
7723
    (0, TType.BOOL, 'success', None, None, ), # 0
7724
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
7725
  )
7726
 
7727
  def __init__(self, success=None, ex=None,):
7728
    self.success = success
7729
    self.ex = ex
7730
 
7731
  def read(self, iprot):
7732
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7733
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7734
      return
7735
    iprot.readStructBegin()
7736
    while True:
7737
      (fname, ftype, fid) = iprot.readFieldBegin()
7738
      if ftype == TType.STOP:
7739
        break
7740
      if fid == 0:
7741
        if ftype == TType.BOOL:
7742
          self.success = iprot.readBool();
7743
        else:
7744
          iprot.skip(ftype)
7745
      elif fid == 1:
7746
        if ftype == TType.STRUCT:
7747
          self.ex = TransactionServiceException()
7748
          self.ex.read(iprot)
7749
        else:
7750
          iprot.skip(ftype)
7751
      else:
7752
        iprot.skip(ftype)
7753
      iprot.readFieldEnd()
7754
    iprot.readStructEnd()
7755
 
7756
  def write(self, oprot):
7757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7759
      return
1398 varun.gupt 7760
    oprot.writeStructBegin('enqueueTransactionInfoEmail_result')
3431 rajveer 7761
    if self.success is not None:
1382 varun.gupt 7762
      oprot.writeFieldBegin('success', TType.BOOL, 0)
7763
      oprot.writeBool(self.success)
7764
      oprot.writeFieldEnd()
3431 rajveer 7765
    if self.ex is not None:
1382 varun.gupt 7766
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7767
      self.ex.write(oprot)
7768
      oprot.writeFieldEnd()
7769
    oprot.writeFieldStop()
7770
    oprot.writeStructEnd()
7771
 
3431 rajveer 7772
  def validate(self):
7773
    return
7774
 
7775
 
1382 varun.gupt 7776
  def __repr__(self):
7777
    L = ['%s=%r' % (key, value)
7778
      for key, value in self.__dict__.iteritems()]
7779
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7780
 
7781
  def __eq__(self, other):
7782
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7783
 
7784
  def __ne__(self, other):
7785
    return not (self == other)
7786
 
483 rajveer 7787
class getAllOrders_args:
94 ashish 7788
  """
7789
  Attributes:
4801 anupam.sin 7790
   - statuses
483 rajveer 7791
   - from_date
7792
   - to_date
7793
   - warehouse_id
94 ashish 7794
  """
7795
 
7796
  thrift_spec = (
7797
    None, # 0
4801 anupam.sin 7798
    (1, TType.LIST, 'statuses', (TType.I32,None), None, ), # 1
483 rajveer 7799
    (2, TType.I64, 'from_date', None, None, ), # 2
7800
    (3, TType.I64, 'to_date', None, None, ), # 3
7801
    (4, TType.I64, 'warehouse_id', None, None, ), # 4
94 ashish 7802
  )
7803
 
4801 anupam.sin 7804
  def __init__(self, statuses=None, from_date=None, to_date=None, warehouse_id=None,):
7805
    self.statuses = statuses
483 rajveer 7806
    self.from_date = from_date
7807
    self.to_date = to_date
7808
    self.warehouse_id = warehouse_id
94 ashish 7809
 
7810
  def read(self, iprot):
7811
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7812
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7813
      return
7814
    iprot.readStructBegin()
7815
    while True:
7816
      (fname, ftype, fid) = iprot.readFieldBegin()
7817
      if ftype == TType.STOP:
7818
        break
7819
      if fid == 1:
4801 anupam.sin 7820
        if ftype == TType.LIST:
7821
          self.statuses = []
5031 varun.gupt 7822
          (_etype80, _size77) = iprot.readListBegin()
7823
          for _i81 in xrange(_size77):
7824
            _elem82 = iprot.readI32();
7825
            self.statuses.append(_elem82)
4801 anupam.sin 7826
          iprot.readListEnd()
94 ashish 7827
        else:
7828
          iprot.skip(ftype)
483 rajveer 7829
      elif fid == 2:
7830
        if ftype == TType.I64:
7831
          self.from_date = iprot.readI64();
94 ashish 7832
        else:
7833
          iprot.skip(ftype)
483 rajveer 7834
      elif fid == 3:
7835
        if ftype == TType.I64:
7836
          self.to_date = iprot.readI64();
94 ashish 7837
        else:
7838
          iprot.skip(ftype)
483 rajveer 7839
      elif fid == 4:
94 ashish 7840
        if ftype == TType.I64:
483 rajveer 7841
          self.warehouse_id = iprot.readI64();
94 ashish 7842
        else:
7843
          iprot.skip(ftype)
7844
      else:
7845
        iprot.skip(ftype)
7846
      iprot.readFieldEnd()
7847
    iprot.readStructEnd()
7848
 
7849
  def write(self, oprot):
7850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7852
      return
483 rajveer 7853
    oprot.writeStructBegin('getAllOrders_args')
4801 anupam.sin 7854
    if self.statuses is not None:
7855
      oprot.writeFieldBegin('statuses', TType.LIST, 1)
7856
      oprot.writeListBegin(TType.I32, len(self.statuses))
5031 varun.gupt 7857
      for iter83 in self.statuses:
7858
        oprot.writeI32(iter83)
4801 anupam.sin 7859
      oprot.writeListEnd()
94 ashish 7860
      oprot.writeFieldEnd()
3431 rajveer 7861
    if self.from_date is not None:
483 rajveer 7862
      oprot.writeFieldBegin('from_date', TType.I64, 2)
7863
      oprot.writeI64(self.from_date)
94 ashish 7864
      oprot.writeFieldEnd()
3431 rajveer 7865
    if self.to_date is not None:
483 rajveer 7866
      oprot.writeFieldBegin('to_date', TType.I64, 3)
7867
      oprot.writeI64(self.to_date)
94 ashish 7868
      oprot.writeFieldEnd()
3431 rajveer 7869
    if self.warehouse_id is not None:
483 rajveer 7870
      oprot.writeFieldBegin('warehouse_id', TType.I64, 4)
7871
      oprot.writeI64(self.warehouse_id)
94 ashish 7872
      oprot.writeFieldEnd()
7873
    oprot.writeFieldStop()
7874
    oprot.writeStructEnd()
7875
 
3431 rajveer 7876
  def validate(self):
7877
    return
7878
 
7879
 
94 ashish 7880
  def __repr__(self):
7881
    L = ['%s=%r' % (key, value)
7882
      for key, value in self.__dict__.iteritems()]
7883
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7884
 
7885
  def __eq__(self, other):
7886
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7887
 
7888
  def __ne__(self, other):
7889
    return not (self == other)
7890
 
483 rajveer 7891
class getAllOrders_result:
94 ashish 7892
  """
7893
  Attributes:
7894
   - success
7895
   - ex
7896
  """
7897
 
7898
  thrift_spec = (
483 rajveer 7899
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
94 ashish 7900
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
7901
  )
7902
 
7903
  def __init__(self, success=None, ex=None,):
7904
    self.success = success
7905
    self.ex = ex
7906
 
7907
  def read(self, iprot):
7908
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7909
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7910
      return
7911
    iprot.readStructBegin()
7912
    while True:
7913
      (fname, ftype, fid) = iprot.readFieldBegin()
7914
      if ftype == TType.STOP:
7915
        break
7916
      if fid == 0:
483 rajveer 7917
        if ftype == TType.LIST:
7918
          self.success = []
5031 varun.gupt 7919
          (_etype87, _size84) = iprot.readListBegin()
7920
          for _i88 in xrange(_size84):
7921
            _elem89 = Order()
7922
            _elem89.read(iprot)
7923
            self.success.append(_elem89)
483 rajveer 7924
          iprot.readListEnd()
94 ashish 7925
        else:
7926
          iprot.skip(ftype)
7927
      elif fid == 1:
7928
        if ftype == TType.STRUCT:
7929
          self.ex = TransactionServiceException()
7930
          self.ex.read(iprot)
7931
        else:
7932
          iprot.skip(ftype)
7933
      else:
7934
        iprot.skip(ftype)
7935
      iprot.readFieldEnd()
7936
    iprot.readStructEnd()
7937
 
7938
  def write(self, oprot):
7939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
7940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
7941
      return
483 rajveer 7942
    oprot.writeStructBegin('getAllOrders_result')
3431 rajveer 7943
    if self.success is not None:
483 rajveer 7944
      oprot.writeFieldBegin('success', TType.LIST, 0)
7945
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5031 varun.gupt 7946
      for iter90 in self.success:
7947
        iter90.write(oprot)
483 rajveer 7948
      oprot.writeListEnd()
94 ashish 7949
      oprot.writeFieldEnd()
3431 rajveer 7950
    if self.ex is not None:
94 ashish 7951
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
7952
      self.ex.write(oprot)
7953
      oprot.writeFieldEnd()
7954
    oprot.writeFieldStop()
7955
    oprot.writeStructEnd()
7956
 
3431 rajveer 7957
  def validate(self):
7958
    return
7959
 
7960
 
94 ashish 7961
  def __repr__(self):
7962
    L = ['%s=%r' % (key, value)
7963
      for key, value in self.__dict__.iteritems()]
7964
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
7965
 
7966
  def __eq__(self, other):
7967
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
7968
 
7969
  def __ne__(self, other):
7970
    return not (self == other)
7971
 
4133 chandransh 7972
class getOrdersInBatch_args:
7973
  """
7974
  Attributes:
7975
   - statuses
7976
   - offset
7977
   - limit
7978
   - warehouse_id
7979
  """
7980
 
7981
  thrift_spec = (
7982
    None, # 0
7983
    (1, TType.LIST, 'statuses', (TType.I32,None), None, ), # 1
7984
    (2, TType.I64, 'offset', None, None, ), # 2
7985
    (3, TType.I64, 'limit', None, None, ), # 3
7986
    (4, TType.I64, 'warehouse_id', None, None, ), # 4
7987
  )
7988
 
7989
  def __init__(self, statuses=None, offset=None, limit=None, warehouse_id=None,):
7990
    self.statuses = statuses
7991
    self.offset = offset
7992
    self.limit = limit
7993
    self.warehouse_id = warehouse_id
7994
 
7995
  def read(self, iprot):
7996
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
7997
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
7998
      return
7999
    iprot.readStructBegin()
8000
    while True:
8001
      (fname, ftype, fid) = iprot.readFieldBegin()
8002
      if ftype == TType.STOP:
8003
        break
8004
      if fid == 1:
8005
        if ftype == TType.LIST:
8006
          self.statuses = []
5031 varun.gupt 8007
          (_etype94, _size91) = iprot.readListBegin()
8008
          for _i95 in xrange(_size91):
8009
            _elem96 = iprot.readI32();
8010
            self.statuses.append(_elem96)
4133 chandransh 8011
          iprot.readListEnd()
8012
        else:
8013
          iprot.skip(ftype)
8014
      elif fid == 2:
8015
        if ftype == TType.I64:
8016
          self.offset = iprot.readI64();
8017
        else:
8018
          iprot.skip(ftype)
8019
      elif fid == 3:
8020
        if ftype == TType.I64:
8021
          self.limit = iprot.readI64();
8022
        else:
8023
          iprot.skip(ftype)
8024
      elif fid == 4:
8025
        if ftype == TType.I64:
8026
          self.warehouse_id = iprot.readI64();
8027
        else:
8028
          iprot.skip(ftype)
8029
      else:
8030
        iprot.skip(ftype)
8031
      iprot.readFieldEnd()
8032
    iprot.readStructEnd()
8033
 
8034
  def write(self, oprot):
8035
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8036
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8037
      return
8038
    oprot.writeStructBegin('getOrdersInBatch_args')
8039
    if self.statuses is not None:
8040
      oprot.writeFieldBegin('statuses', TType.LIST, 1)
8041
      oprot.writeListBegin(TType.I32, len(self.statuses))
5031 varun.gupt 8042
      for iter97 in self.statuses:
8043
        oprot.writeI32(iter97)
4133 chandransh 8044
      oprot.writeListEnd()
8045
      oprot.writeFieldEnd()
8046
    if self.offset is not None:
8047
      oprot.writeFieldBegin('offset', TType.I64, 2)
8048
      oprot.writeI64(self.offset)
8049
      oprot.writeFieldEnd()
8050
    if self.limit is not None:
8051
      oprot.writeFieldBegin('limit', TType.I64, 3)
8052
      oprot.writeI64(self.limit)
8053
      oprot.writeFieldEnd()
8054
    if self.warehouse_id is not None:
8055
      oprot.writeFieldBegin('warehouse_id', TType.I64, 4)
8056
      oprot.writeI64(self.warehouse_id)
8057
      oprot.writeFieldEnd()
8058
    oprot.writeFieldStop()
8059
    oprot.writeStructEnd()
8060
 
8061
  def validate(self):
8062
    return
8063
 
8064
 
8065
  def __repr__(self):
8066
    L = ['%s=%r' % (key, value)
8067
      for key, value in self.__dict__.iteritems()]
8068
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8069
 
8070
  def __eq__(self, other):
8071
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8072
 
8073
  def __ne__(self, other):
8074
    return not (self == other)
8075
 
8076
class getOrdersInBatch_result:
8077
  """
8078
  Attributes:
8079
   - success
8080
   - ex
8081
  """
8082
 
8083
  thrift_spec = (
8084
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
8085
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
8086
  )
8087
 
8088
  def __init__(self, success=None, ex=None,):
8089
    self.success = success
8090
    self.ex = ex
8091
 
8092
  def read(self, iprot):
8093
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8094
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8095
      return
8096
    iprot.readStructBegin()
8097
    while True:
8098
      (fname, ftype, fid) = iprot.readFieldBegin()
8099
      if ftype == TType.STOP:
8100
        break
8101
      if fid == 0:
8102
        if ftype == TType.LIST:
8103
          self.success = []
5031 varun.gupt 8104
          (_etype101, _size98) = iprot.readListBegin()
8105
          for _i102 in xrange(_size98):
8106
            _elem103 = Order()
8107
            _elem103.read(iprot)
8108
            self.success.append(_elem103)
4133 chandransh 8109
          iprot.readListEnd()
8110
        else:
8111
          iprot.skip(ftype)
8112
      elif fid == 1:
8113
        if ftype == TType.STRUCT:
8114
          self.ex = TransactionServiceException()
8115
          self.ex.read(iprot)
8116
        else:
8117
          iprot.skip(ftype)
8118
      else:
8119
        iprot.skip(ftype)
8120
      iprot.readFieldEnd()
8121
    iprot.readStructEnd()
8122
 
8123
  def write(self, oprot):
8124
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8125
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8126
      return
8127
    oprot.writeStructBegin('getOrdersInBatch_result')
8128
    if self.success is not None:
8129
      oprot.writeFieldBegin('success', TType.LIST, 0)
8130
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5031 varun.gupt 8131
      for iter104 in self.success:
8132
        iter104.write(oprot)
4133 chandransh 8133
      oprot.writeListEnd()
8134
      oprot.writeFieldEnd()
8135
    if self.ex is not None:
8136
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8137
      self.ex.write(oprot)
8138
      oprot.writeFieldEnd()
8139
    oprot.writeFieldStop()
8140
    oprot.writeStructEnd()
8141
 
8142
  def validate(self):
8143
    return
8144
 
8145
 
8146
  def __repr__(self):
8147
    L = ['%s=%r' % (key, value)
8148
      for key, value in self.__dict__.iteritems()]
8149
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8150
 
8151
  def __eq__(self, other):
8152
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8153
 
8154
  def __ne__(self, other):
8155
    return not (self == other)
8156
 
8157
class getOrderCount_args:
8158
  """
8159
  Attributes:
8160
   - statuses
8161
   - warehouseId
8162
  """
8163
 
8164
  thrift_spec = (
8165
    None, # 0
8166
    (1, TType.LIST, 'statuses', (TType.I32,None), None, ), # 1
8167
    (2, TType.I64, 'warehouseId', None, None, ), # 2
8168
  )
8169
 
8170
  def __init__(self, statuses=None, warehouseId=None,):
8171
    self.statuses = statuses
8172
    self.warehouseId = warehouseId
8173
 
8174
  def read(self, iprot):
8175
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8176
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8177
      return
8178
    iprot.readStructBegin()
8179
    while True:
8180
      (fname, ftype, fid) = iprot.readFieldBegin()
8181
      if ftype == TType.STOP:
8182
        break
8183
      if fid == 1:
8184
        if ftype == TType.LIST:
8185
          self.statuses = []
5031 varun.gupt 8186
          (_etype108, _size105) = iprot.readListBegin()
8187
          for _i109 in xrange(_size105):
8188
            _elem110 = iprot.readI32();
8189
            self.statuses.append(_elem110)
4133 chandransh 8190
          iprot.readListEnd()
8191
        else:
8192
          iprot.skip(ftype)
8193
      elif fid == 2:
8194
        if ftype == TType.I64:
8195
          self.warehouseId = iprot.readI64();
8196
        else:
8197
          iprot.skip(ftype)
8198
      else:
8199
        iprot.skip(ftype)
8200
      iprot.readFieldEnd()
8201
    iprot.readStructEnd()
8202
 
8203
  def write(self, oprot):
8204
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8205
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8206
      return
8207
    oprot.writeStructBegin('getOrderCount_args')
8208
    if self.statuses is not None:
8209
      oprot.writeFieldBegin('statuses', TType.LIST, 1)
8210
      oprot.writeListBegin(TType.I32, len(self.statuses))
5031 varun.gupt 8211
      for iter111 in self.statuses:
8212
        oprot.writeI32(iter111)
4133 chandransh 8213
      oprot.writeListEnd()
8214
      oprot.writeFieldEnd()
8215
    if self.warehouseId is not None:
8216
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
8217
      oprot.writeI64(self.warehouseId)
8218
      oprot.writeFieldEnd()
8219
    oprot.writeFieldStop()
8220
    oprot.writeStructEnd()
8221
 
8222
  def validate(self):
8223
    return
8224
 
8225
 
8226
  def __repr__(self):
8227
    L = ['%s=%r' % (key, value)
8228
      for key, value in self.__dict__.iteritems()]
8229
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8230
 
8231
  def __eq__(self, other):
8232
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8233
 
8234
  def __ne__(self, other):
8235
    return not (self == other)
8236
 
8237
class getOrderCount_result:
8238
  """
8239
  Attributes:
8240
   - success
8241
   - ex
8242
  """
8243
 
8244
  thrift_spec = (
8245
    (0, TType.I32, 'success', None, None, ), # 0
8246
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
8247
  )
8248
 
8249
  def __init__(self, success=None, ex=None,):
8250
    self.success = success
8251
    self.ex = ex
8252
 
8253
  def read(self, iprot):
8254
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8255
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8256
      return
8257
    iprot.readStructBegin()
8258
    while True:
8259
      (fname, ftype, fid) = iprot.readFieldBegin()
8260
      if ftype == TType.STOP:
8261
        break
8262
      if fid == 0:
8263
        if ftype == TType.I32:
8264
          self.success = iprot.readI32();
8265
        else:
8266
          iprot.skip(ftype)
8267
      elif fid == 1:
8268
        if ftype == TType.STRUCT:
8269
          self.ex = TransactionServiceException()
8270
          self.ex.read(iprot)
8271
        else:
8272
          iprot.skip(ftype)
8273
      else:
8274
        iprot.skip(ftype)
8275
      iprot.readFieldEnd()
8276
    iprot.readStructEnd()
8277
 
8278
  def write(self, oprot):
8279
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8280
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8281
      return
8282
    oprot.writeStructBegin('getOrderCount_result')
8283
    if self.success is not None:
8284
      oprot.writeFieldBegin('success', TType.I32, 0)
8285
      oprot.writeI32(self.success)
8286
      oprot.writeFieldEnd()
8287
    if self.ex is not None:
8288
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8289
      self.ex.write(oprot)
8290
      oprot.writeFieldEnd()
8291
    oprot.writeFieldStop()
8292
    oprot.writeStructEnd()
8293
 
8294
  def validate(self):
8295
    return
8296
 
8297
 
8298
  def __repr__(self):
8299
    L = ['%s=%r' % (key, value)
8300
      for key, value in self.__dict__.iteritems()]
8301
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8302
 
8303
  def __eq__(self, other):
8304
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8305
 
8306
  def __ne__(self, other):
8307
    return not (self == other)
8308
 
999 varun.gupt 8309
class getOrdersByBillingDate_args:
8310
  """
8311
  Attributes:
8312
   - status
8313
   - start_billing_date
8314
   - end_billing_date
8315
   - warehouse_id
8316
  """
8317
 
8318
  thrift_spec = (
8319
    None, # 0
8320
    (1, TType.I32, 'status', None, None, ), # 1
8321
    (2, TType.I64, 'start_billing_date', None, None, ), # 2
8322
    (3, TType.I64, 'end_billing_date', None, None, ), # 3
8323
    (4, TType.I64, 'warehouse_id', None, None, ), # 4
8324
  )
8325
 
8326
  def __init__(self, status=None, start_billing_date=None, end_billing_date=None, warehouse_id=None,):
8327
    self.status = status
8328
    self.start_billing_date = start_billing_date
8329
    self.end_billing_date = end_billing_date
8330
    self.warehouse_id = warehouse_id
8331
 
8332
  def read(self, iprot):
8333
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8334
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8335
      return
8336
    iprot.readStructBegin()
8337
    while True:
8338
      (fname, ftype, fid) = iprot.readFieldBegin()
8339
      if ftype == TType.STOP:
8340
        break
8341
      if fid == 1:
8342
        if ftype == TType.I32:
8343
          self.status = iprot.readI32();
8344
        else:
8345
          iprot.skip(ftype)
8346
      elif fid == 2:
8347
        if ftype == TType.I64:
8348
          self.start_billing_date = iprot.readI64();
8349
        else:
8350
          iprot.skip(ftype)
8351
      elif fid == 3:
8352
        if ftype == TType.I64:
8353
          self.end_billing_date = iprot.readI64();
8354
        else:
8355
          iprot.skip(ftype)
8356
      elif fid == 4:
8357
        if ftype == TType.I64:
8358
          self.warehouse_id = iprot.readI64();
8359
        else:
8360
          iprot.skip(ftype)
8361
      else:
8362
        iprot.skip(ftype)
8363
      iprot.readFieldEnd()
8364
    iprot.readStructEnd()
8365
 
8366
  def write(self, oprot):
8367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8369
      return
8370
    oprot.writeStructBegin('getOrdersByBillingDate_args')
3431 rajveer 8371
    if self.status is not None:
999 varun.gupt 8372
      oprot.writeFieldBegin('status', TType.I32, 1)
8373
      oprot.writeI32(self.status)
8374
      oprot.writeFieldEnd()
3431 rajveer 8375
    if self.start_billing_date is not None:
999 varun.gupt 8376
      oprot.writeFieldBegin('start_billing_date', TType.I64, 2)
8377
      oprot.writeI64(self.start_billing_date)
8378
      oprot.writeFieldEnd()
3431 rajveer 8379
    if self.end_billing_date is not None:
999 varun.gupt 8380
      oprot.writeFieldBegin('end_billing_date', TType.I64, 3)
8381
      oprot.writeI64(self.end_billing_date)
8382
      oprot.writeFieldEnd()
3431 rajveer 8383
    if self.warehouse_id is not None:
999 varun.gupt 8384
      oprot.writeFieldBegin('warehouse_id', TType.I64, 4)
8385
      oprot.writeI64(self.warehouse_id)
8386
      oprot.writeFieldEnd()
8387
    oprot.writeFieldStop()
8388
    oprot.writeStructEnd()
8389
 
3431 rajveer 8390
  def validate(self):
8391
    return
8392
 
8393
 
999 varun.gupt 8394
  def __repr__(self):
8395
    L = ['%s=%r' % (key, value)
8396
      for key, value in self.__dict__.iteritems()]
8397
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8398
 
8399
  def __eq__(self, other):
8400
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8401
 
8402
  def __ne__(self, other):
8403
    return not (self == other)
8404
 
8405
class getOrdersByBillingDate_result:
8406
  """
8407
  Attributes:
8408
   - success
8409
   - ex
8410
  """
8411
 
8412
  thrift_spec = (
8413
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
8414
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
8415
  )
8416
 
8417
  def __init__(self, success=None, ex=None,):
8418
    self.success = success
8419
    self.ex = ex
8420
 
8421
  def read(self, iprot):
8422
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8423
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8424
      return
8425
    iprot.readStructBegin()
8426
    while True:
8427
      (fname, ftype, fid) = iprot.readFieldBegin()
8428
      if ftype == TType.STOP:
8429
        break
8430
      if fid == 0:
8431
        if ftype == TType.LIST:
8432
          self.success = []
5031 varun.gupt 8433
          (_etype115, _size112) = iprot.readListBegin()
8434
          for _i116 in xrange(_size112):
8435
            _elem117 = Order()
8436
            _elem117.read(iprot)
8437
            self.success.append(_elem117)
999 varun.gupt 8438
          iprot.readListEnd()
8439
        else:
8440
          iprot.skip(ftype)
8441
      elif fid == 1:
8442
        if ftype == TType.STRUCT:
8443
          self.ex = TransactionServiceException()
8444
          self.ex.read(iprot)
8445
        else:
8446
          iprot.skip(ftype)
8447
      else:
8448
        iprot.skip(ftype)
8449
      iprot.readFieldEnd()
8450
    iprot.readStructEnd()
8451
 
8452
  def write(self, oprot):
8453
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8454
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8455
      return
8456
    oprot.writeStructBegin('getOrdersByBillingDate_result')
3431 rajveer 8457
    if self.success is not None:
999 varun.gupt 8458
      oprot.writeFieldBegin('success', TType.LIST, 0)
8459
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5031 varun.gupt 8460
      for iter118 in self.success:
8461
        iter118.write(oprot)
999 varun.gupt 8462
      oprot.writeListEnd()
8463
      oprot.writeFieldEnd()
3431 rajveer 8464
    if self.ex is not None:
999 varun.gupt 8465
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8466
      self.ex.write(oprot)
8467
      oprot.writeFieldEnd()
8468
    oprot.writeFieldStop()
8469
    oprot.writeStructEnd()
8470
 
3431 rajveer 8471
  def validate(self):
8472
    return
8473
 
8474
 
999 varun.gupt 8475
  def __repr__(self):
8476
    L = ['%s=%r' % (key, value)
8477
      for key, value in self.__dict__.iteritems()]
8478
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8479
 
8480
  def __eq__(self, other):
8481
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8482
 
8483
  def __ne__(self, other):
8484
    return not (self == other)
8485
 
3427 chandransh 8486
class getOrdersByShippingDate_args:
8487
  """
8488
  Attributes:
8489
   - fromShippingDate
8490
   - toShippingDate
8491
   - providerId
8492
   - warehouseId
3451 chandransh 8493
   - cod
3427 chandransh 8494
  """
8495
 
8496
  thrift_spec = (
8497
    None, # 0
8498
    (1, TType.I64, 'fromShippingDate', None, None, ), # 1
8499
    (2, TType.I64, 'toShippingDate', None, None, ), # 2
8500
    (3, TType.I64, 'providerId', None, None, ), # 3
8501
    (4, TType.I64, 'warehouseId', None, None, ), # 4
3451 chandransh 8502
    (5, TType.BOOL, 'cod', None, None, ), # 5
3427 chandransh 8503
  )
8504
 
3451 chandransh 8505
  def __init__(self, fromShippingDate=None, toShippingDate=None, providerId=None, warehouseId=None, cod=None,):
3427 chandransh 8506
    self.fromShippingDate = fromShippingDate
8507
    self.toShippingDate = toShippingDate
8508
    self.providerId = providerId
8509
    self.warehouseId = warehouseId
3451 chandransh 8510
    self.cod = cod
3427 chandransh 8511
 
8512
  def read(self, iprot):
8513
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8514
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8515
      return
8516
    iprot.readStructBegin()
8517
    while True:
8518
      (fname, ftype, fid) = iprot.readFieldBegin()
8519
      if ftype == TType.STOP:
8520
        break
8521
      if fid == 1:
8522
        if ftype == TType.I64:
8523
          self.fromShippingDate = iprot.readI64();
8524
        else:
8525
          iprot.skip(ftype)
8526
      elif fid == 2:
8527
        if ftype == TType.I64:
8528
          self.toShippingDate = iprot.readI64();
8529
        else:
8530
          iprot.skip(ftype)
8531
      elif fid == 3:
8532
        if ftype == TType.I64:
8533
          self.providerId = iprot.readI64();
8534
        else:
8535
          iprot.skip(ftype)
8536
      elif fid == 4:
8537
        if ftype == TType.I64:
8538
          self.warehouseId = iprot.readI64();
8539
        else:
8540
          iprot.skip(ftype)
3451 chandransh 8541
      elif fid == 5:
8542
        if ftype == TType.BOOL:
8543
          self.cod = iprot.readBool();
8544
        else:
8545
          iprot.skip(ftype)
3427 chandransh 8546
      else:
8547
        iprot.skip(ftype)
8548
      iprot.readFieldEnd()
8549
    iprot.readStructEnd()
8550
 
8551
  def write(self, oprot):
8552
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8553
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8554
      return
8555
    oprot.writeStructBegin('getOrdersByShippingDate_args')
3431 rajveer 8556
    if self.fromShippingDate is not None:
3427 chandransh 8557
      oprot.writeFieldBegin('fromShippingDate', TType.I64, 1)
8558
      oprot.writeI64(self.fromShippingDate)
8559
      oprot.writeFieldEnd()
3431 rajveer 8560
    if self.toShippingDate is not None:
3427 chandransh 8561
      oprot.writeFieldBegin('toShippingDate', TType.I64, 2)
8562
      oprot.writeI64(self.toShippingDate)
8563
      oprot.writeFieldEnd()
3431 rajveer 8564
    if self.providerId is not None:
3427 chandransh 8565
      oprot.writeFieldBegin('providerId', TType.I64, 3)
8566
      oprot.writeI64(self.providerId)
8567
      oprot.writeFieldEnd()
3431 rajveer 8568
    if self.warehouseId is not None:
3427 chandransh 8569
      oprot.writeFieldBegin('warehouseId', TType.I64, 4)
8570
      oprot.writeI64(self.warehouseId)
8571
      oprot.writeFieldEnd()
3451 chandransh 8572
    if self.cod is not None:
8573
      oprot.writeFieldBegin('cod', TType.BOOL, 5)
8574
      oprot.writeBool(self.cod)
8575
      oprot.writeFieldEnd()
3427 chandransh 8576
    oprot.writeFieldStop()
8577
    oprot.writeStructEnd()
8578
 
3431 rajveer 8579
  def validate(self):
8580
    return
8581
 
8582
 
3427 chandransh 8583
  def __repr__(self):
8584
    L = ['%s=%r' % (key, value)
8585
      for key, value in self.__dict__.iteritems()]
8586
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8587
 
8588
  def __eq__(self, other):
8589
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8590
 
8591
  def __ne__(self, other):
8592
    return not (self == other)
8593
 
8594
class getOrdersByShippingDate_result:
8595
  """
8596
  Attributes:
8597
   - success
8598
   - ex
8599
  """
8600
 
8601
  thrift_spec = (
8602
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
8603
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
8604
  )
8605
 
8606
  def __init__(self, success=None, ex=None,):
8607
    self.success = success
8608
    self.ex = ex
8609
 
8610
  def read(self, iprot):
8611
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8612
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8613
      return
8614
    iprot.readStructBegin()
8615
    while True:
8616
      (fname, ftype, fid) = iprot.readFieldBegin()
8617
      if ftype == TType.STOP:
8618
        break
8619
      if fid == 0:
8620
        if ftype == TType.LIST:
8621
          self.success = []
5031 varun.gupt 8622
          (_etype122, _size119) = iprot.readListBegin()
8623
          for _i123 in xrange(_size119):
8624
            _elem124 = Order()
8625
            _elem124.read(iprot)
8626
            self.success.append(_elem124)
3427 chandransh 8627
          iprot.readListEnd()
8628
        else:
8629
          iprot.skip(ftype)
8630
      elif fid == 1:
8631
        if ftype == TType.STRUCT:
8632
          self.ex = TransactionServiceException()
8633
          self.ex.read(iprot)
8634
        else:
8635
          iprot.skip(ftype)
8636
      else:
8637
        iprot.skip(ftype)
8638
      iprot.readFieldEnd()
8639
    iprot.readStructEnd()
8640
 
8641
  def write(self, oprot):
8642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8644
      return
8645
    oprot.writeStructBegin('getOrdersByShippingDate_result')
3431 rajveer 8646
    if self.success is not None:
3427 chandransh 8647
      oprot.writeFieldBegin('success', TType.LIST, 0)
8648
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5031 varun.gupt 8649
      for iter125 in self.success:
8650
        iter125.write(oprot)
3427 chandransh 8651
      oprot.writeListEnd()
8652
      oprot.writeFieldEnd()
3431 rajveer 8653
    if self.ex is not None:
3427 chandransh 8654
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8655
      self.ex.write(oprot)
8656
      oprot.writeFieldEnd()
8657
    oprot.writeFieldStop()
8658
    oprot.writeStructEnd()
8659
 
3431 rajveer 8660
  def validate(self):
8661
    return
8662
 
8663
 
3427 chandransh 8664
  def __repr__(self):
8665
    L = ['%s=%r' % (key, value)
8666
      for key, value in self.__dict__.iteritems()]
8667
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8668
 
8669
  def __eq__(self, other):
8670
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8671
 
8672
  def __ne__(self, other):
8673
    return not (self == other)
8674
 
1382 varun.gupt 8675
class getReturnableOrdersForCustomer_args:
8676
  """
8677
  Attributes:
8678
   - customer_id
8679
   - limit
8680
  """
8681
 
8682
  thrift_spec = (
8683
    None, # 0
8684
    (1, TType.I64, 'customer_id', None, None, ), # 1
8685
    (2, TType.I64, 'limit', None, None, ), # 2
8686
  )
8687
 
8688
  def __init__(self, customer_id=None, limit=None,):
8689
    self.customer_id = customer_id
8690
    self.limit = limit
8691
 
8692
  def read(self, iprot):
8693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8695
      return
8696
    iprot.readStructBegin()
8697
    while True:
8698
      (fname, ftype, fid) = iprot.readFieldBegin()
8699
      if ftype == TType.STOP:
8700
        break
8701
      if fid == 1:
8702
        if ftype == TType.I64:
8703
          self.customer_id = iprot.readI64();
8704
        else:
8705
          iprot.skip(ftype)
8706
      elif fid == 2:
8707
        if ftype == TType.I64:
8708
          self.limit = iprot.readI64();
8709
        else:
8710
          iprot.skip(ftype)
8711
      else:
8712
        iprot.skip(ftype)
8713
      iprot.readFieldEnd()
8714
    iprot.readStructEnd()
8715
 
8716
  def write(self, oprot):
8717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8719
      return
8720
    oprot.writeStructBegin('getReturnableOrdersForCustomer_args')
3431 rajveer 8721
    if self.customer_id is not None:
1382 varun.gupt 8722
      oprot.writeFieldBegin('customer_id', TType.I64, 1)
8723
      oprot.writeI64(self.customer_id)
8724
      oprot.writeFieldEnd()
3431 rajveer 8725
    if self.limit is not None:
1382 varun.gupt 8726
      oprot.writeFieldBegin('limit', TType.I64, 2)
8727
      oprot.writeI64(self.limit)
8728
      oprot.writeFieldEnd()
8729
    oprot.writeFieldStop()
8730
    oprot.writeStructEnd()
8731
 
3431 rajveer 8732
  def validate(self):
8733
    return
8734
 
8735
 
1382 varun.gupt 8736
  def __repr__(self):
8737
    L = ['%s=%r' % (key, value)
8738
      for key, value in self.__dict__.iteritems()]
8739
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8740
 
8741
  def __eq__(self, other):
8742
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8743
 
8744
  def __ne__(self, other):
8745
    return not (self == other)
8746
 
8747
class getReturnableOrdersForCustomer_result:
8748
  """
8749
  Attributes:
8750
   - success
8751
   - ex
8752
  """
8753
 
8754
  thrift_spec = (
8755
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
8756
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
8757
  )
8758
 
8759
  def __init__(self, success=None, ex=None,):
8760
    self.success = success
8761
    self.ex = ex
8762
 
8763
  def read(self, iprot):
8764
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8765
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8766
      return
8767
    iprot.readStructBegin()
8768
    while True:
8769
      (fname, ftype, fid) = iprot.readFieldBegin()
8770
      if ftype == TType.STOP:
8771
        break
8772
      if fid == 0:
8773
        if ftype == TType.LIST:
8774
          self.success = []
5031 varun.gupt 8775
          (_etype129, _size126) = iprot.readListBegin()
8776
          for _i130 in xrange(_size126):
8777
            _elem131 = iprot.readI64();
8778
            self.success.append(_elem131)
1382 varun.gupt 8779
          iprot.readListEnd()
8780
        else:
8781
          iprot.skip(ftype)
8782
      elif fid == 1:
8783
        if ftype == TType.STRUCT:
8784
          self.ex = TransactionServiceException()
8785
          self.ex.read(iprot)
8786
        else:
8787
          iprot.skip(ftype)
8788
      else:
8789
        iprot.skip(ftype)
8790
      iprot.readFieldEnd()
8791
    iprot.readStructEnd()
8792
 
8793
  def write(self, oprot):
8794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8796
      return
8797
    oprot.writeStructBegin('getReturnableOrdersForCustomer_result')
3431 rajveer 8798
    if self.success is not None:
1382 varun.gupt 8799
      oprot.writeFieldBegin('success', TType.LIST, 0)
8800
      oprot.writeListBegin(TType.I64, len(self.success))
5031 varun.gupt 8801
      for iter132 in self.success:
8802
        oprot.writeI64(iter132)
1382 varun.gupt 8803
      oprot.writeListEnd()
8804
      oprot.writeFieldEnd()
3431 rajveer 8805
    if self.ex is not None:
1382 varun.gupt 8806
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8807
      self.ex.write(oprot)
8808
      oprot.writeFieldEnd()
8809
    oprot.writeFieldStop()
8810
    oprot.writeStructEnd()
8811
 
3431 rajveer 8812
  def validate(self):
8813
    return
8814
 
8815
 
1382 varun.gupt 8816
  def __repr__(self):
8817
    L = ['%s=%r' % (key, value)
8818
      for key, value in self.__dict__.iteritems()]
8819
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8820
 
8821
  def __eq__(self, other):
8822
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8823
 
8824
  def __ne__(self, other):
8825
    return not (self == other)
8826
 
8827
class getCancellableOrdersForCustomer_args:
8828
  """
8829
  Attributes:
8830
   - customer_id
8831
   - limit
8832
  """
8833
 
8834
  thrift_spec = (
8835
    None, # 0
8836
    (1, TType.I64, 'customer_id', None, None, ), # 1
8837
    (2, TType.I64, 'limit', None, None, ), # 2
8838
  )
8839
 
8840
  def __init__(self, customer_id=None, limit=None,):
8841
    self.customer_id = customer_id
8842
    self.limit = limit
8843
 
8844
  def read(self, iprot):
8845
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8846
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8847
      return
8848
    iprot.readStructBegin()
8849
    while True:
8850
      (fname, ftype, fid) = iprot.readFieldBegin()
8851
      if ftype == TType.STOP:
8852
        break
8853
      if fid == 1:
8854
        if ftype == TType.I64:
8855
          self.customer_id = iprot.readI64();
8856
        else:
8857
          iprot.skip(ftype)
8858
      elif fid == 2:
8859
        if ftype == TType.I64:
8860
          self.limit = iprot.readI64();
8861
        else:
8862
          iprot.skip(ftype)
8863
      else:
8864
        iprot.skip(ftype)
8865
      iprot.readFieldEnd()
8866
    iprot.readStructEnd()
8867
 
8868
  def write(self, oprot):
8869
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8870
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8871
      return
8872
    oprot.writeStructBegin('getCancellableOrdersForCustomer_args')
3431 rajveer 8873
    if self.customer_id is not None:
1382 varun.gupt 8874
      oprot.writeFieldBegin('customer_id', TType.I64, 1)
8875
      oprot.writeI64(self.customer_id)
8876
      oprot.writeFieldEnd()
3431 rajveer 8877
    if self.limit is not None:
1382 varun.gupt 8878
      oprot.writeFieldBegin('limit', TType.I64, 2)
8879
      oprot.writeI64(self.limit)
8880
      oprot.writeFieldEnd()
8881
    oprot.writeFieldStop()
8882
    oprot.writeStructEnd()
8883
 
3431 rajveer 8884
  def validate(self):
8885
    return
8886
 
8887
 
1382 varun.gupt 8888
  def __repr__(self):
8889
    L = ['%s=%r' % (key, value)
8890
      for key, value in self.__dict__.iteritems()]
8891
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8892
 
8893
  def __eq__(self, other):
8894
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8895
 
8896
  def __ne__(self, other):
8897
    return not (self == other)
8898
 
8899
class getCancellableOrdersForCustomer_result:
8900
  """
8901
  Attributes:
8902
   - success
8903
   - ex
8904
  """
8905
 
8906
  thrift_spec = (
8907
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
8908
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
8909
  )
8910
 
8911
  def __init__(self, success=None, ex=None,):
8912
    self.success = success
8913
    self.ex = ex
8914
 
8915
  def read(self, iprot):
8916
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
8917
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
8918
      return
8919
    iprot.readStructBegin()
8920
    while True:
8921
      (fname, ftype, fid) = iprot.readFieldBegin()
8922
      if ftype == TType.STOP:
8923
        break
8924
      if fid == 0:
8925
        if ftype == TType.LIST:
8926
          self.success = []
5031 varun.gupt 8927
          (_etype136, _size133) = iprot.readListBegin()
8928
          for _i137 in xrange(_size133):
8929
            _elem138 = iprot.readI64();
8930
            self.success.append(_elem138)
1382 varun.gupt 8931
          iprot.readListEnd()
8932
        else:
8933
          iprot.skip(ftype)
8934
      elif fid == 1:
8935
        if ftype == TType.STRUCT:
8936
          self.ex = TransactionServiceException()
8937
          self.ex.read(iprot)
8938
        else:
8939
          iprot.skip(ftype)
8940
      else:
8941
        iprot.skip(ftype)
8942
      iprot.readFieldEnd()
8943
    iprot.readStructEnd()
8944
 
8945
  def write(self, oprot):
8946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
8947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
8948
      return
8949
    oprot.writeStructBegin('getCancellableOrdersForCustomer_result')
3431 rajveer 8950
    if self.success is not None:
1382 varun.gupt 8951
      oprot.writeFieldBegin('success', TType.LIST, 0)
8952
      oprot.writeListBegin(TType.I64, len(self.success))
5031 varun.gupt 8953
      for iter139 in self.success:
8954
        oprot.writeI64(iter139)
1382 varun.gupt 8955
      oprot.writeListEnd()
8956
      oprot.writeFieldEnd()
3431 rajveer 8957
    if self.ex is not None:
1382 varun.gupt 8958
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
8959
      self.ex.write(oprot)
8960
      oprot.writeFieldEnd()
8961
    oprot.writeFieldStop()
8962
    oprot.writeStructEnd()
8963
 
3431 rajveer 8964
  def validate(self):
8965
    return
8966
 
8967
 
1382 varun.gupt 8968
  def __repr__(self):
8969
    L = ['%s=%r' % (key, value)
8970
      for key, value in self.__dict__.iteritems()]
8971
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
8972
 
8973
  def __eq__(self, other):
8974
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
8975
 
8976
  def __ne__(self, other):
8977
    return not (self == other)
8978
 
483 rajveer 8979
class changeOrderStatus_args:
94 ashish 8980
  """
8981
  Attributes:
483 rajveer 8982
   - orderId
8983
   - status
8984
   - description
94 ashish 8985
  """
8986
 
8987
  thrift_spec = (
8988
    None, # 0
483 rajveer 8989
    (1, TType.I64, 'orderId', None, None, ), # 1
8990
    (2, TType.I32, 'status', None, None, ), # 2
8991
    (3, TType.STRING, 'description', None, None, ), # 3
94 ashish 8992
  )
8993
 
483 rajveer 8994
  def __init__(self, orderId=None, status=None, description=None,):
8995
    self.orderId = orderId
8996
    self.status = status
8997
    self.description = description
94 ashish 8998
 
8999
  def read(self, iprot):
9000
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9001
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9002
      return
9003
    iprot.readStructBegin()
9004
    while True:
9005
      (fname, ftype, fid) = iprot.readFieldBegin()
9006
      if ftype == TType.STOP:
9007
        break
9008
      if fid == 1:
9009
        if ftype == TType.I64:
483 rajveer 9010
          self.orderId = iprot.readI64();
94 ashish 9011
        else:
9012
          iprot.skip(ftype)
9013
      elif fid == 2:
483 rajveer 9014
        if ftype == TType.I32:
9015
          self.status = iprot.readI32();
94 ashish 9016
        else:
9017
          iprot.skip(ftype)
483 rajveer 9018
      elif fid == 3:
9019
        if ftype == TType.STRING:
9020
          self.description = iprot.readString();
9021
        else:
9022
          iprot.skip(ftype)
94 ashish 9023
      else:
9024
        iprot.skip(ftype)
9025
      iprot.readFieldEnd()
9026
    iprot.readStructEnd()
9027
 
9028
  def write(self, oprot):
9029
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9030
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9031
      return
483 rajveer 9032
    oprot.writeStructBegin('changeOrderStatus_args')
3431 rajveer 9033
    if self.orderId is not None:
483 rajveer 9034
      oprot.writeFieldBegin('orderId', TType.I64, 1)
9035
      oprot.writeI64(self.orderId)
94 ashish 9036
      oprot.writeFieldEnd()
3431 rajveer 9037
    if self.status is not None:
483 rajveer 9038
      oprot.writeFieldBegin('status', TType.I32, 2)
9039
      oprot.writeI32(self.status)
94 ashish 9040
      oprot.writeFieldEnd()
3431 rajveer 9041
    if self.description is not None:
483 rajveer 9042
      oprot.writeFieldBegin('description', TType.STRING, 3)
9043
      oprot.writeString(self.description)
9044
      oprot.writeFieldEnd()
94 ashish 9045
    oprot.writeFieldStop()
9046
    oprot.writeStructEnd()
9047
 
3431 rajveer 9048
  def validate(self):
9049
    return
9050
 
9051
 
94 ashish 9052
  def __repr__(self):
9053
    L = ['%s=%r' % (key, value)
9054
      for key, value in self.__dict__.iteritems()]
9055
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9056
 
9057
  def __eq__(self, other):
9058
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9059
 
9060
  def __ne__(self, other):
9061
    return not (self == other)
9062
 
483 rajveer 9063
class changeOrderStatus_result:
94 ashish 9064
  """
9065
  Attributes:
9066
   - success
9067
   - ex
9068
  """
9069
 
9070
  thrift_spec = (
9071
    (0, TType.BOOL, 'success', None, None, ), # 0
9072
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
9073
  )
9074
 
9075
  def __init__(self, success=None, ex=None,):
9076
    self.success = success
9077
    self.ex = ex
9078
 
9079
  def read(self, iprot):
9080
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9081
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9082
      return
9083
    iprot.readStructBegin()
9084
    while True:
9085
      (fname, ftype, fid) = iprot.readFieldBegin()
9086
      if ftype == TType.STOP:
9087
        break
9088
      if fid == 0:
9089
        if ftype == TType.BOOL:
9090
          self.success = iprot.readBool();
9091
        else:
9092
          iprot.skip(ftype)
9093
      elif fid == 1:
9094
        if ftype == TType.STRUCT:
9095
          self.ex = TransactionServiceException()
9096
          self.ex.read(iprot)
9097
        else:
9098
          iprot.skip(ftype)
9099
      else:
9100
        iprot.skip(ftype)
9101
      iprot.readFieldEnd()
9102
    iprot.readStructEnd()
9103
 
9104
  def write(self, oprot):
9105
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9106
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9107
      return
483 rajveer 9108
    oprot.writeStructBegin('changeOrderStatus_result')
3431 rajveer 9109
    if self.success is not None:
94 ashish 9110
      oprot.writeFieldBegin('success', TType.BOOL, 0)
9111
      oprot.writeBool(self.success)
9112
      oprot.writeFieldEnd()
3431 rajveer 9113
    if self.ex is not None:
94 ashish 9114
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9115
      self.ex.write(oprot)
9116
      oprot.writeFieldEnd()
9117
    oprot.writeFieldStop()
9118
    oprot.writeStructEnd()
9119
 
3431 rajveer 9120
  def validate(self):
9121
    return
9122
 
9123
 
94 ashish 9124
  def __repr__(self):
9125
    L = ['%s=%r' % (key, value)
9126
      for key, value in self.__dict__.iteritems()]
9127
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9128
 
9129
  def __eq__(self, other):
9130
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9131
 
9132
  def __ne__(self, other):
9133
    return not (self == other)
9134
 
3064 chandransh 9135
class getOrdersForTransaction_args:
494 rajveer 9136
  """
9137
  Attributes:
3064 chandransh 9138
   - transactionId
9139
   - customerId
494 rajveer 9140
  """
9141
 
9142
  thrift_spec = (
9143
    None, # 0
3064 chandransh 9144
    (1, TType.I64, 'transactionId', None, None, ), # 1
9145
    (2, TType.I64, 'customerId', None, None, ), # 2
494 rajveer 9146
  )
9147
 
3064 chandransh 9148
  def __init__(self, transactionId=None, customerId=None,):
9149
    self.transactionId = transactionId
9150
    self.customerId = customerId
494 rajveer 9151
 
9152
  def read(self, iprot):
9153
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9154
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9155
      return
9156
    iprot.readStructBegin()
9157
    while True:
9158
      (fname, ftype, fid) = iprot.readFieldBegin()
9159
      if ftype == TType.STOP:
9160
        break
9161
      if fid == 1:
9162
        if ftype == TType.I64:
3064 chandransh 9163
          self.transactionId = iprot.readI64();
494 rajveer 9164
        else:
9165
          iprot.skip(ftype)
9166
      elif fid == 2:
3064 chandransh 9167
        if ftype == TType.I64:
9168
          self.customerId = iprot.readI64();
494 rajveer 9169
        else:
9170
          iprot.skip(ftype)
9171
      else:
9172
        iprot.skip(ftype)
9173
      iprot.readFieldEnd()
9174
    iprot.readStructEnd()
9175
 
9176
  def write(self, oprot):
9177
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9178
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9179
      return
3064 chandransh 9180
    oprot.writeStructBegin('getOrdersForTransaction_args')
3431 rajveer 9181
    if self.transactionId is not None:
3064 chandransh 9182
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
9183
      oprot.writeI64(self.transactionId)
494 rajveer 9184
      oprot.writeFieldEnd()
3431 rajveer 9185
    if self.customerId is not None:
3064 chandransh 9186
      oprot.writeFieldBegin('customerId', TType.I64, 2)
9187
      oprot.writeI64(self.customerId)
494 rajveer 9188
      oprot.writeFieldEnd()
9189
    oprot.writeFieldStop()
9190
    oprot.writeStructEnd()
9191
 
3431 rajveer 9192
  def validate(self):
9193
    return
9194
 
9195
 
494 rajveer 9196
  def __repr__(self):
9197
    L = ['%s=%r' % (key, value)
9198
      for key, value in self.__dict__.iteritems()]
9199
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9200
 
9201
  def __eq__(self, other):
9202
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9203
 
9204
  def __ne__(self, other):
9205
    return not (self == other)
9206
 
3064 chandransh 9207
class getOrdersForTransaction_result:
494 rajveer 9208
  """
9209
  Attributes:
9210
   - success
9211
   - ex
9212
  """
9213
 
9214
  thrift_spec = (
3064 chandransh 9215
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
494 rajveer 9216
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
9217
  )
9218
 
9219
  def __init__(self, success=None, ex=None,):
9220
    self.success = success
9221
    self.ex = ex
9222
 
9223
  def read(self, iprot):
9224
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9225
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9226
      return
9227
    iprot.readStructBegin()
9228
    while True:
9229
      (fname, ftype, fid) = iprot.readFieldBegin()
9230
      if ftype == TType.STOP:
9231
        break
9232
      if fid == 0:
3064 chandransh 9233
        if ftype == TType.LIST:
9234
          self.success = []
5031 varun.gupt 9235
          (_etype143, _size140) = iprot.readListBegin()
9236
          for _i144 in xrange(_size140):
9237
            _elem145 = Order()
9238
            _elem145.read(iprot)
9239
            self.success.append(_elem145)
3064 chandransh 9240
          iprot.readListEnd()
494 rajveer 9241
        else:
9242
          iprot.skip(ftype)
9243
      elif fid == 1:
9244
        if ftype == TType.STRUCT:
9245
          self.ex = TransactionServiceException()
9246
          self.ex.read(iprot)
9247
        else:
9248
          iprot.skip(ftype)
9249
      else:
9250
        iprot.skip(ftype)
9251
      iprot.readFieldEnd()
9252
    iprot.readStructEnd()
9253
 
9254
  def write(self, oprot):
9255
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9256
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9257
      return
3064 chandransh 9258
    oprot.writeStructBegin('getOrdersForTransaction_result')
3431 rajveer 9259
    if self.success is not None:
3064 chandransh 9260
      oprot.writeFieldBegin('success', TType.LIST, 0)
9261
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5031 varun.gupt 9262
      for iter146 in self.success:
9263
        iter146.write(oprot)
3064 chandransh 9264
      oprot.writeListEnd()
494 rajveer 9265
      oprot.writeFieldEnd()
3431 rajveer 9266
    if self.ex is not None:
494 rajveer 9267
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9268
      self.ex.write(oprot)
9269
      oprot.writeFieldEnd()
9270
    oprot.writeFieldStop()
9271
    oprot.writeStructEnd()
9272
 
3431 rajveer 9273
  def validate(self):
9274
    return
9275
 
9276
 
494 rajveer 9277
  def __repr__(self):
9278
    L = ['%s=%r' % (key, value)
9279
      for key, value in self.__dict__.iteritems()]
9280
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9281
 
9282
  def __eq__(self, other):
9283
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9284
 
9285
  def __ne__(self, other):
9286
    return not (self == other)
9287
 
3064 chandransh 9288
class getOrdersForCustomer_args:
1149 chandransh 9289
  """
9290
  Attributes:
3064 chandransh 9291
   - customerId
9292
   - from_date
9293
   - to_date
9294
   - statuses
1149 chandransh 9295
  """
9296
 
9297
  thrift_spec = (
9298
    None, # 0
3064 chandransh 9299
    (1, TType.I64, 'customerId', None, None, ), # 1
9300
    (2, TType.I64, 'from_date', None, None, ), # 2
9301
    (3, TType.I64, 'to_date', None, None, ), # 3
9302
    (4, TType.LIST, 'statuses', (TType.I32,None), None, ), # 4
1149 chandransh 9303
  )
9304
 
3064 chandransh 9305
  def __init__(self, customerId=None, from_date=None, to_date=None, statuses=None,):
9306
    self.customerId = customerId
9307
    self.from_date = from_date
9308
    self.to_date = to_date
9309
    self.statuses = statuses
1149 chandransh 9310
 
9311
  def read(self, iprot):
9312
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9313
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9314
      return
9315
    iprot.readStructBegin()
9316
    while True:
9317
      (fname, ftype, fid) = iprot.readFieldBegin()
9318
      if ftype == TType.STOP:
9319
        break
9320
      if fid == 1:
9321
        if ftype == TType.I64:
3064 chandransh 9322
          self.customerId = iprot.readI64();
1149 chandransh 9323
        else:
9324
          iprot.skip(ftype)
9325
      elif fid == 2:
9326
        if ftype == TType.I64:
3064 chandransh 9327
          self.from_date = iprot.readI64();
1149 chandransh 9328
        else:
9329
          iprot.skip(ftype)
2783 chandransh 9330
      elif fid == 3:
9331
        if ftype == TType.I64:
3064 chandransh 9332
          self.to_date = iprot.readI64();
2783 chandransh 9333
        else:
9334
          iprot.skip(ftype)
9335
      elif fid == 4:
3064 chandransh 9336
        if ftype == TType.LIST:
9337
          self.statuses = []
5031 varun.gupt 9338
          (_etype150, _size147) = iprot.readListBegin()
9339
          for _i151 in xrange(_size147):
9340
            _elem152 = iprot.readI32();
9341
            self.statuses.append(_elem152)
3064 chandransh 9342
          iprot.readListEnd()
2783 chandransh 9343
        else:
9344
          iprot.skip(ftype)
1149 chandransh 9345
      else:
9346
        iprot.skip(ftype)
9347
      iprot.readFieldEnd()
9348
    iprot.readStructEnd()
9349
 
9350
  def write(self, oprot):
9351
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9352
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9353
      return
3064 chandransh 9354
    oprot.writeStructBegin('getOrdersForCustomer_args')
3431 rajveer 9355
    if self.customerId is not None:
3064 chandransh 9356
      oprot.writeFieldBegin('customerId', TType.I64, 1)
9357
      oprot.writeI64(self.customerId)
1149 chandransh 9358
      oprot.writeFieldEnd()
3431 rajveer 9359
    if self.from_date is not None:
3064 chandransh 9360
      oprot.writeFieldBegin('from_date', TType.I64, 2)
9361
      oprot.writeI64(self.from_date)
1149 chandransh 9362
      oprot.writeFieldEnd()
3431 rajveer 9363
    if self.to_date is not None:
3064 chandransh 9364
      oprot.writeFieldBegin('to_date', TType.I64, 3)
9365
      oprot.writeI64(self.to_date)
2783 chandransh 9366
      oprot.writeFieldEnd()
3431 rajveer 9367
    if self.statuses is not None:
3064 chandransh 9368
      oprot.writeFieldBegin('statuses', TType.LIST, 4)
9369
      oprot.writeListBegin(TType.I32, len(self.statuses))
5031 varun.gupt 9370
      for iter153 in self.statuses:
9371
        oprot.writeI32(iter153)
3064 chandransh 9372
      oprot.writeListEnd()
2783 chandransh 9373
      oprot.writeFieldEnd()
1149 chandransh 9374
    oprot.writeFieldStop()
9375
    oprot.writeStructEnd()
9376
 
3431 rajveer 9377
  def validate(self):
9378
    return
9379
 
9380
 
1149 chandransh 9381
  def __repr__(self):
9382
    L = ['%s=%r' % (key, value)
9383
      for key, value in self.__dict__.iteritems()]
9384
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9385
 
9386
  def __eq__(self, other):
9387
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9388
 
9389
  def __ne__(self, other):
9390
    return not (self == other)
9391
 
3064 chandransh 9392
class getOrdersForCustomer_result:
1149 chandransh 9393
  """
9394
  Attributes:
9395
   - success
9396
   - ex
9397
  """
9398
 
9399
  thrift_spec = (
3064 chandransh 9400
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
1149 chandransh 9401
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
9402
  )
9403
 
9404
  def __init__(self, success=None, ex=None,):
9405
    self.success = success
9406
    self.ex = ex
9407
 
9408
  def read(self, iprot):
9409
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9410
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9411
      return
9412
    iprot.readStructBegin()
9413
    while True:
9414
      (fname, ftype, fid) = iprot.readFieldBegin()
9415
      if ftype == TType.STOP:
9416
        break
9417
      if fid == 0:
3064 chandransh 9418
        if ftype == TType.LIST:
9419
          self.success = []
5031 varun.gupt 9420
          (_etype157, _size154) = iprot.readListBegin()
9421
          for _i158 in xrange(_size154):
9422
            _elem159 = Order()
9423
            _elem159.read(iprot)
9424
            self.success.append(_elem159)
3064 chandransh 9425
          iprot.readListEnd()
1149 chandransh 9426
        else:
9427
          iprot.skip(ftype)
9428
      elif fid == 1:
9429
        if ftype == TType.STRUCT:
9430
          self.ex = TransactionServiceException()
9431
          self.ex.read(iprot)
9432
        else:
9433
          iprot.skip(ftype)
9434
      else:
9435
        iprot.skip(ftype)
9436
      iprot.readFieldEnd()
9437
    iprot.readStructEnd()
9438
 
9439
  def write(self, oprot):
9440
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9441
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9442
      return
3064 chandransh 9443
    oprot.writeStructBegin('getOrdersForCustomer_result')
3431 rajveer 9444
    if self.success is not None:
3064 chandransh 9445
      oprot.writeFieldBegin('success', TType.LIST, 0)
9446
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5031 varun.gupt 9447
      for iter160 in self.success:
9448
        iter160.write(oprot)
3064 chandransh 9449
      oprot.writeListEnd()
1149 chandransh 9450
      oprot.writeFieldEnd()
3431 rajveer 9451
    if self.ex is not None:
1149 chandransh 9452
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9453
      self.ex.write(oprot)
9454
      oprot.writeFieldEnd()
9455
    oprot.writeFieldStop()
9456
    oprot.writeStructEnd()
9457
 
3431 rajveer 9458
  def validate(self):
9459
    return
9460
 
9461
 
1149 chandransh 9462
  def __repr__(self):
9463
    L = ['%s=%r' % (key, value)
9464
      for key, value in self.__dict__.iteritems()]
9465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9466
 
9467
  def __eq__(self, other):
9468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9469
 
9470
  def __ne__(self, other):
9471
    return not (self == other)
9472
 
3064 chandransh 9473
class createOrder_args:
921 rajveer 9474
  """
9475
  Attributes:
3064 chandransh 9476
   - order
921 rajveer 9477
  """
9478
 
9479
  thrift_spec = (
9480
    None, # 0
3064 chandransh 9481
    (1, TType.STRUCT, 'order', (Order, Order.thrift_spec), None, ), # 1
921 rajveer 9482
  )
9483
 
3064 chandransh 9484
  def __init__(self, order=None,):
9485
    self.order = order
921 rajveer 9486
 
9487
  def read(self, iprot):
9488
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9489
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9490
      return
9491
    iprot.readStructBegin()
9492
    while True:
9493
      (fname, ftype, fid) = iprot.readFieldBegin()
9494
      if ftype == TType.STOP:
9495
        break
9496
      if fid == 1:
3064 chandransh 9497
        if ftype == TType.STRUCT:
9498
          self.order = Order()
9499
          self.order.read(iprot)
921 rajveer 9500
        else:
9501
          iprot.skip(ftype)
9502
      else:
9503
        iprot.skip(ftype)
9504
      iprot.readFieldEnd()
9505
    iprot.readStructEnd()
9506
 
9507
  def write(self, oprot):
9508
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9509
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9510
      return
3064 chandransh 9511
    oprot.writeStructBegin('createOrder_args')
3431 rajveer 9512
    if self.order is not None:
3064 chandransh 9513
      oprot.writeFieldBegin('order', TType.STRUCT, 1)
9514
      self.order.write(oprot)
921 rajveer 9515
      oprot.writeFieldEnd()
9516
    oprot.writeFieldStop()
9517
    oprot.writeStructEnd()
9518
 
3431 rajveer 9519
  def validate(self):
9520
    return
9521
 
9522
 
921 rajveer 9523
  def __repr__(self):
9524
    L = ['%s=%r' % (key, value)
9525
      for key, value in self.__dict__.iteritems()]
9526
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9527
 
9528
  def __eq__(self, other):
9529
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9530
 
9531
  def __ne__(self, other):
9532
    return not (self == other)
9533
 
3064 chandransh 9534
class createOrder_result:
921 rajveer 9535
  """
9536
  Attributes:
9537
   - success
9538
   - ex
9539
  """
9540
 
9541
  thrift_spec = (
3064 chandransh 9542
    (0, TType.I64, 'success', None, None, ), # 0
921 rajveer 9543
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
9544
  )
9545
 
9546
  def __init__(self, success=None, ex=None,):
9547
    self.success = success
9548
    self.ex = ex
9549
 
9550
  def read(self, iprot):
9551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9553
      return
9554
    iprot.readStructBegin()
9555
    while True:
9556
      (fname, ftype, fid) = iprot.readFieldBegin()
9557
      if ftype == TType.STOP:
9558
        break
9559
      if fid == 0:
3064 chandransh 9560
        if ftype == TType.I64:
9561
          self.success = iprot.readI64();
921 rajveer 9562
        else:
9563
          iprot.skip(ftype)
9564
      elif fid == 1:
9565
        if ftype == TType.STRUCT:
9566
          self.ex = TransactionServiceException()
9567
          self.ex.read(iprot)
9568
        else:
9569
          iprot.skip(ftype)
9570
      else:
9571
        iprot.skip(ftype)
9572
      iprot.readFieldEnd()
9573
    iprot.readStructEnd()
9574
 
9575
  def write(self, oprot):
9576
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9577
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9578
      return
3064 chandransh 9579
    oprot.writeStructBegin('createOrder_result')
3431 rajveer 9580
    if self.success is not None:
3064 chandransh 9581
      oprot.writeFieldBegin('success', TType.I64, 0)
9582
      oprot.writeI64(self.success)
921 rajveer 9583
      oprot.writeFieldEnd()
3431 rajveer 9584
    if self.ex is not None:
921 rajveer 9585
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9586
      self.ex.write(oprot)
9587
      oprot.writeFieldEnd()
9588
    oprot.writeFieldStop()
9589
    oprot.writeStructEnd()
9590
 
3431 rajveer 9591
  def validate(self):
9592
    return
9593
 
9594
 
921 rajveer 9595
  def __repr__(self):
9596
    L = ['%s=%r' % (key, value)
9597
      for key, value in self.__dict__.iteritems()]
9598
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9599
 
9600
  def __eq__(self, other):
9601
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9602
 
9603
  def __ne__(self, other):
9604
    return not (self == other)
9605
 
3064 chandransh 9606
class getOrder_args:
921 rajveer 9607
  """
9608
  Attributes:
3064 chandransh 9609
   - id
921 rajveer 9610
  """
9611
 
9612
  thrift_spec = (
9613
    None, # 0
3064 chandransh 9614
    (1, TType.I64, 'id', None, None, ), # 1
921 rajveer 9615
  )
9616
 
3064 chandransh 9617
  def __init__(self, id=None,):
9618
    self.id = id
921 rajveer 9619
 
9620
  def read(self, iprot):
9621
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9622
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9623
      return
9624
    iprot.readStructBegin()
9625
    while True:
9626
      (fname, ftype, fid) = iprot.readFieldBegin()
9627
      if ftype == TType.STOP:
9628
        break
9629
      if fid == 1:
9630
        if ftype == TType.I64:
3064 chandransh 9631
          self.id = iprot.readI64();
921 rajveer 9632
        else:
9633
          iprot.skip(ftype)
9634
      else:
9635
        iprot.skip(ftype)
9636
      iprot.readFieldEnd()
9637
    iprot.readStructEnd()
9638
 
9639
  def write(self, oprot):
9640
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9641
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9642
      return
3064 chandransh 9643
    oprot.writeStructBegin('getOrder_args')
3431 rajveer 9644
    if self.id is not None:
3064 chandransh 9645
      oprot.writeFieldBegin('id', TType.I64, 1)
9646
      oprot.writeI64(self.id)
921 rajveer 9647
      oprot.writeFieldEnd()
9648
    oprot.writeFieldStop()
9649
    oprot.writeStructEnd()
9650
 
3431 rajveer 9651
  def validate(self):
9652
    return
9653
 
9654
 
921 rajveer 9655
  def __repr__(self):
9656
    L = ['%s=%r' % (key, value)
9657
      for key, value in self.__dict__.iteritems()]
9658
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9659
 
9660
  def __eq__(self, other):
9661
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9662
 
9663
  def __ne__(self, other):
9664
    return not (self == other)
9665
 
3064 chandransh 9666
class getOrder_result:
921 rajveer 9667
  """
9668
  Attributes:
9669
   - success
9670
   - ex
9671
  """
9672
 
9673
  thrift_spec = (
3064 chandransh 9674
    (0, TType.STRUCT, 'success', (Order, Order.thrift_spec), None, ), # 0
921 rajveer 9675
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
9676
  )
9677
 
9678
  def __init__(self, success=None, ex=None,):
9679
    self.success = success
9680
    self.ex = ex
9681
 
9682
  def read(self, iprot):
9683
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9684
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9685
      return
9686
    iprot.readStructBegin()
9687
    while True:
9688
      (fname, ftype, fid) = iprot.readFieldBegin()
9689
      if ftype == TType.STOP:
9690
        break
9691
      if fid == 0:
3064 chandransh 9692
        if ftype == TType.STRUCT:
9693
          self.success = Order()
9694
          self.success.read(iprot)
921 rajveer 9695
        else:
9696
          iprot.skip(ftype)
9697
      elif fid == 1:
9698
        if ftype == TType.STRUCT:
9699
          self.ex = TransactionServiceException()
9700
          self.ex.read(iprot)
9701
        else:
9702
          iprot.skip(ftype)
9703
      else:
9704
        iprot.skip(ftype)
9705
      iprot.readFieldEnd()
9706
    iprot.readStructEnd()
9707
 
9708
  def write(self, oprot):
9709
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9710
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9711
      return
3064 chandransh 9712
    oprot.writeStructBegin('getOrder_result')
3431 rajveer 9713
    if self.success is not None:
3064 chandransh 9714
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
9715
      self.success.write(oprot)
921 rajveer 9716
      oprot.writeFieldEnd()
3431 rajveer 9717
    if self.ex is not None:
921 rajveer 9718
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9719
      self.ex.write(oprot)
9720
      oprot.writeFieldEnd()
9721
    oprot.writeFieldStop()
9722
    oprot.writeStructEnd()
9723
 
3431 rajveer 9724
  def validate(self):
9725
    return
9726
 
9727
 
921 rajveer 9728
  def __repr__(self):
9729
    L = ['%s=%r' % (key, value)
9730
      for key, value in self.__dict__.iteritems()]
9731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9732
 
9733
  def __eq__(self, other):
9734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9735
 
9736
  def __ne__(self, other):
9737
    return not (self == other)
9738
 
3064 chandransh 9739
class getLineItemsForOrder_args:
94 ashish 9740
  """
9741
  Attributes:
3064 chandransh 9742
   - orderId
94 ashish 9743
  """
9744
 
9745
  thrift_spec = (
9746
    None, # 0
3064 chandransh 9747
    (1, TType.I64, 'orderId', None, None, ), # 1
94 ashish 9748
  )
9749
 
3064 chandransh 9750
  def __init__(self, orderId=None,):
9751
    self.orderId = orderId
94 ashish 9752
 
9753
  def read(self, iprot):
9754
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9755
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9756
      return
9757
    iprot.readStructBegin()
9758
    while True:
9759
      (fname, ftype, fid) = iprot.readFieldBegin()
9760
      if ftype == TType.STOP:
9761
        break
9762
      if fid == 1:
9763
        if ftype == TType.I64:
3064 chandransh 9764
          self.orderId = iprot.readI64();
94 ashish 9765
        else:
9766
          iprot.skip(ftype)
9767
      else:
9768
        iprot.skip(ftype)
9769
      iprot.readFieldEnd()
9770
    iprot.readStructEnd()
9771
 
9772
  def write(self, oprot):
9773
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9774
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9775
      return
3064 chandransh 9776
    oprot.writeStructBegin('getLineItemsForOrder_args')
3431 rajveer 9777
    if self.orderId is not None:
3064 chandransh 9778
      oprot.writeFieldBegin('orderId', TType.I64, 1)
9779
      oprot.writeI64(self.orderId)
94 ashish 9780
      oprot.writeFieldEnd()
9781
    oprot.writeFieldStop()
9782
    oprot.writeStructEnd()
9783
 
3431 rajveer 9784
  def validate(self):
9785
    return
9786
 
9787
 
94 ashish 9788
  def __repr__(self):
9789
    L = ['%s=%r' % (key, value)
9790
      for key, value in self.__dict__.iteritems()]
9791
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9792
 
9793
  def __eq__(self, other):
9794
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9795
 
9796
  def __ne__(self, other):
9797
    return not (self == other)
9798
 
3064 chandransh 9799
class getLineItemsForOrder_result:
94 ashish 9800
  """
9801
  Attributes:
9802
   - success
9803
   - ex
9804
  """
9805
 
9806
  thrift_spec = (
3064 chandransh 9807
    (0, TType.LIST, 'success', (TType.STRUCT,(LineItem, LineItem.thrift_spec)), None, ), # 0
94 ashish 9808
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
9809
  )
9810
 
9811
  def __init__(self, success=None, ex=None,):
9812
    self.success = success
9813
    self.ex = ex
9814
 
9815
  def read(self, iprot):
9816
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9817
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9818
      return
9819
    iprot.readStructBegin()
9820
    while True:
9821
      (fname, ftype, fid) = iprot.readFieldBegin()
9822
      if ftype == TType.STOP:
9823
        break
9824
      if fid == 0:
483 rajveer 9825
        if ftype == TType.LIST:
9826
          self.success = []
5031 varun.gupt 9827
          (_etype164, _size161) = iprot.readListBegin()
9828
          for _i165 in xrange(_size161):
9829
            _elem166 = LineItem()
9830
            _elem166.read(iprot)
9831
            self.success.append(_elem166)
483 rajveer 9832
          iprot.readListEnd()
94 ashish 9833
        else:
9834
          iprot.skip(ftype)
9835
      elif fid == 1:
9836
        if ftype == TType.STRUCT:
9837
          self.ex = TransactionServiceException()
9838
          self.ex.read(iprot)
9839
        else:
9840
          iprot.skip(ftype)
9841
      else:
9842
        iprot.skip(ftype)
9843
      iprot.readFieldEnd()
9844
    iprot.readStructEnd()
9845
 
9846
  def write(self, oprot):
9847
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9848
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9849
      return
3064 chandransh 9850
    oprot.writeStructBegin('getLineItemsForOrder_result')
3431 rajveer 9851
    if self.success is not None:
483 rajveer 9852
      oprot.writeFieldBegin('success', TType.LIST, 0)
9853
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5031 varun.gupt 9854
      for iter167 in self.success:
9855
        iter167.write(oprot)
483 rajveer 9856
      oprot.writeListEnd()
94 ashish 9857
      oprot.writeFieldEnd()
3431 rajveer 9858
    if self.ex is not None:
94 ashish 9859
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
9860
      self.ex.write(oprot)
9861
      oprot.writeFieldEnd()
9862
    oprot.writeFieldStop()
9863
    oprot.writeStructEnd()
9864
 
3431 rajveer 9865
  def validate(self):
9866
    return
9867
 
9868
 
94 ashish 9869
  def __repr__(self):
9870
    L = ['%s=%r' % (key, value)
9871
      for key, value in self.__dict__.iteritems()]
9872
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9873
 
9874
  def __eq__(self, other):
9875
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9876
 
9877
  def __ne__(self, other):
9878
    return not (self == other)
9879
 
4999 phani.kuma 9880
class getOrderList_args:
9881
  """
9882
  Attributes:
9883
   - order_ids
9884
  """
9885
 
9886
  thrift_spec = (
9887
    None, # 0
9888
    (1, TType.LIST, 'order_ids', (TType.I64,None), None, ), # 1
9889
  )
9890
 
9891
  def __init__(self, order_ids=None,):
9892
    self.order_ids = order_ids
9893
 
9894
  def read(self, iprot):
9895
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9896
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9897
      return
9898
    iprot.readStructBegin()
9899
    while True:
9900
      (fname, ftype, fid) = iprot.readFieldBegin()
9901
      if ftype == TType.STOP:
9902
        break
9903
      if fid == 1:
9904
        if ftype == TType.LIST:
9905
          self.order_ids = []
5031 varun.gupt 9906
          (_etype171, _size168) = iprot.readListBegin()
9907
          for _i172 in xrange(_size168):
9908
            _elem173 = iprot.readI64();
9909
            self.order_ids.append(_elem173)
4999 phani.kuma 9910
          iprot.readListEnd()
9911
        else:
9912
          iprot.skip(ftype)
9913
      else:
9914
        iprot.skip(ftype)
9915
      iprot.readFieldEnd()
9916
    iprot.readStructEnd()
9917
 
9918
  def write(self, oprot):
9919
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9920
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9921
      return
9922
    oprot.writeStructBegin('getOrderList_args')
9923
    if self.order_ids is not None:
9924
      oprot.writeFieldBegin('order_ids', TType.LIST, 1)
9925
      oprot.writeListBegin(TType.I64, len(self.order_ids))
5031 varun.gupt 9926
      for iter174 in self.order_ids:
9927
        oprot.writeI64(iter174)
4999 phani.kuma 9928
      oprot.writeListEnd()
9929
      oprot.writeFieldEnd()
9930
    oprot.writeFieldStop()
9931
    oprot.writeStructEnd()
9932
 
9933
  def validate(self):
9934
    return
9935
 
9936
 
9937
  def __repr__(self):
9938
    L = ['%s=%r' % (key, value)
9939
      for key, value in self.__dict__.iteritems()]
9940
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
9941
 
9942
  def __eq__(self, other):
9943
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
9944
 
9945
  def __ne__(self, other):
9946
    return not (self == other)
9947
 
9948
class getOrderList_result:
9949
  """
9950
  Attributes:
9951
   - success
9952
  """
9953
 
9954
  thrift_spec = (
9955
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
9956
  )
9957
 
9958
  def __init__(self, success=None,):
9959
    self.success = success
9960
 
9961
  def read(self, iprot):
9962
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
9963
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
9964
      return
9965
    iprot.readStructBegin()
9966
    while True:
9967
      (fname, ftype, fid) = iprot.readFieldBegin()
9968
      if ftype == TType.STOP:
9969
        break
9970
      if fid == 0:
9971
        if ftype == TType.LIST:
9972
          self.success = []
5031 varun.gupt 9973
          (_etype178, _size175) = iprot.readListBegin()
9974
          for _i179 in xrange(_size175):
9975
            _elem180 = Order()
9976
            _elem180.read(iprot)
9977
            self.success.append(_elem180)
4999 phani.kuma 9978
          iprot.readListEnd()
9979
        else:
9980
          iprot.skip(ftype)
9981
      else:
9982
        iprot.skip(ftype)
9983
      iprot.readFieldEnd()
9984
    iprot.readStructEnd()
9985
 
9986
  def write(self, oprot):
9987
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
9988
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
9989
      return
9990
    oprot.writeStructBegin('getOrderList_result')
9991
    if self.success is not None:
9992
      oprot.writeFieldBegin('success', TType.LIST, 0)
9993
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5031 varun.gupt 9994
      for iter181 in self.success:
9995
        iter181.write(oprot)
4999 phani.kuma 9996
      oprot.writeListEnd()
9997
      oprot.writeFieldEnd()
9998
    oprot.writeFieldStop()
9999
    oprot.writeStructEnd()
10000
 
10001
  def validate(self):
10002
    return
10003
 
10004
 
10005
  def __repr__(self):
10006
    L = ['%s=%r' % (key, value)
10007
      for key, value in self.__dict__.iteritems()]
10008
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10009
 
10010
  def __eq__(self, other):
10011
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10012
 
10013
  def __ne__(self, other):
10014
    return not (self == other)
10015
 
5386 phani.kuma 10016
class getOrderListForVendor_args:
10017
  """
10018
  Attributes:
10019
   - order_ids
10020
   - vendorId
10021
  """
10022
 
10023
  thrift_spec = (
10024
    None, # 0
10025
    (1, TType.LIST, 'order_ids', (TType.I64,None), None, ), # 1
10026
    (2, TType.I64, 'vendorId', None, None, ), # 2
10027
  )
10028
 
10029
  def __init__(self, order_ids=None, vendorId=None,):
10030
    self.order_ids = order_ids
10031
    self.vendorId = vendorId
10032
 
10033
  def read(self, iprot):
10034
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10035
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10036
      return
10037
    iprot.readStructBegin()
10038
    while True:
10039
      (fname, ftype, fid) = iprot.readFieldBegin()
10040
      if ftype == TType.STOP:
10041
        break
10042
      if fid == 1:
10043
        if ftype == TType.LIST:
10044
          self.order_ids = []
10045
          (_etype185, _size182) = iprot.readListBegin()
10046
          for _i186 in xrange(_size182):
10047
            _elem187 = iprot.readI64();
10048
            self.order_ids.append(_elem187)
10049
          iprot.readListEnd()
10050
        else:
10051
          iprot.skip(ftype)
10052
      elif fid == 2:
10053
        if ftype == TType.I64:
10054
          self.vendorId = iprot.readI64();
10055
        else:
10056
          iprot.skip(ftype)
10057
      else:
10058
        iprot.skip(ftype)
10059
      iprot.readFieldEnd()
10060
    iprot.readStructEnd()
10061
 
10062
  def write(self, oprot):
10063
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10064
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10065
      return
10066
    oprot.writeStructBegin('getOrderListForVendor_args')
10067
    if self.order_ids is not None:
10068
      oprot.writeFieldBegin('order_ids', TType.LIST, 1)
10069
      oprot.writeListBegin(TType.I64, len(self.order_ids))
10070
      for iter188 in self.order_ids:
10071
        oprot.writeI64(iter188)
10072
      oprot.writeListEnd()
10073
      oprot.writeFieldEnd()
10074
    if self.vendorId is not None:
10075
      oprot.writeFieldBegin('vendorId', TType.I64, 2)
10076
      oprot.writeI64(self.vendorId)
10077
      oprot.writeFieldEnd()
10078
    oprot.writeFieldStop()
10079
    oprot.writeStructEnd()
10080
 
10081
  def validate(self):
10082
    return
10083
 
10084
 
10085
  def __repr__(self):
10086
    L = ['%s=%r' % (key, value)
10087
      for key, value in self.__dict__.iteritems()]
10088
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10089
 
10090
  def __eq__(self, other):
10091
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10092
 
10093
  def __ne__(self, other):
10094
    return not (self == other)
10095
 
10096
class getOrderListForVendor_result:
10097
  """
10098
  Attributes:
10099
   - success
10100
  """
10101
 
10102
  thrift_spec = (
10103
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
10104
  )
10105
 
10106
  def __init__(self, success=None,):
10107
    self.success = success
10108
 
10109
  def read(self, iprot):
10110
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10111
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10112
      return
10113
    iprot.readStructBegin()
10114
    while True:
10115
      (fname, ftype, fid) = iprot.readFieldBegin()
10116
      if ftype == TType.STOP:
10117
        break
10118
      if fid == 0:
10119
        if ftype == TType.LIST:
10120
          self.success = []
10121
          (_etype192, _size189) = iprot.readListBegin()
10122
          for _i193 in xrange(_size189):
10123
            _elem194 = Order()
10124
            _elem194.read(iprot)
10125
            self.success.append(_elem194)
10126
          iprot.readListEnd()
10127
        else:
10128
          iprot.skip(ftype)
10129
      else:
10130
        iprot.skip(ftype)
10131
      iprot.readFieldEnd()
10132
    iprot.readStructEnd()
10133
 
10134
  def write(self, oprot):
10135
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10136
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10137
      return
10138
    oprot.writeStructBegin('getOrderListForVendor_result')
10139
    if self.success is not None:
10140
      oprot.writeFieldBegin('success', TType.LIST, 0)
10141
      oprot.writeListBegin(TType.STRUCT, len(self.success))
10142
      for iter195 in self.success:
10143
        iter195.write(oprot)
10144
      oprot.writeListEnd()
10145
      oprot.writeFieldEnd()
10146
    oprot.writeFieldStop()
10147
    oprot.writeStructEnd()
10148
 
10149
  def validate(self):
10150
    return
10151
 
10152
 
10153
  def __repr__(self):
10154
    L = ['%s=%r' % (key, value)
10155
      for key, value in self.__dict__.iteritems()]
10156
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10157
 
10158
  def __eq__(self, other):
10159
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10160
 
10161
  def __ne__(self, other):
10162
    return not (self == other)
10163
 
3064 chandransh 10164
class getOrderForCustomer_args:
94 ashish 10165
  """
10166
  Attributes:
3064 chandransh 10167
   - orderId
483 rajveer 10168
   - customerId
94 ashish 10169
  """
10170
 
10171
  thrift_spec = (
10172
    None, # 0
3064 chandransh 10173
    (1, TType.I64, 'orderId', None, None, ), # 1
10174
    (2, TType.I64, 'customerId', None, None, ), # 2
94 ashish 10175
  )
10176
 
3064 chandransh 10177
  def __init__(self, orderId=None, customerId=None,):
10178
    self.orderId = orderId
483 rajveer 10179
    self.customerId = customerId
94 ashish 10180
 
10181
  def read(self, iprot):
10182
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10183
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10184
      return
10185
    iprot.readStructBegin()
10186
    while True:
10187
      (fname, ftype, fid) = iprot.readFieldBegin()
10188
      if ftype == TType.STOP:
10189
        break
10190
      if fid == 1:
10191
        if ftype == TType.I64:
3064 chandransh 10192
          self.orderId = iprot.readI64();
94 ashish 10193
        else:
10194
          iprot.skip(ftype)
10195
      elif fid == 2:
10196
        if ftype == TType.I64:
3064 chandransh 10197
          self.customerId = iprot.readI64();
94 ashish 10198
        else:
10199
          iprot.skip(ftype)
10200
      else:
10201
        iprot.skip(ftype)
10202
      iprot.readFieldEnd()
10203
    iprot.readStructEnd()
10204
 
10205
  def write(self, oprot):
10206
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10207
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10208
      return
3064 chandransh 10209
    oprot.writeStructBegin('getOrderForCustomer_args')
3431 rajveer 10210
    if self.orderId is not None:
3064 chandransh 10211
      oprot.writeFieldBegin('orderId', TType.I64, 1)
10212
      oprot.writeI64(self.orderId)
10213
      oprot.writeFieldEnd()
3431 rajveer 10214
    if self.customerId is not None:
3064 chandransh 10215
      oprot.writeFieldBegin('customerId', TType.I64, 2)
483 rajveer 10216
      oprot.writeI64(self.customerId)
94 ashish 10217
      oprot.writeFieldEnd()
10218
    oprot.writeFieldStop()
10219
    oprot.writeStructEnd()
10220
 
3431 rajveer 10221
  def validate(self):
10222
    return
10223
 
10224
 
94 ashish 10225
  def __repr__(self):
10226
    L = ['%s=%r' % (key, value)
10227
      for key, value in self.__dict__.iteritems()]
10228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10229
 
10230
  def __eq__(self, other):
10231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10232
 
10233
  def __ne__(self, other):
10234
    return not (self == other)
10235
 
3064 chandransh 10236
class getOrderForCustomer_result:
94 ashish 10237
  """
10238
  Attributes:
10239
   - success
10240
   - ex
10241
  """
10242
 
10243
  thrift_spec = (
3064 chandransh 10244
    (0, TType.STRUCT, 'success', (Order, Order.thrift_spec), None, ), # 0
94 ashish 10245
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
10246
  )
10247
 
10248
  def __init__(self, success=None, ex=None,):
10249
    self.success = success
10250
    self.ex = ex
10251
 
10252
  def read(self, iprot):
10253
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10254
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10255
      return
10256
    iprot.readStructBegin()
10257
    while True:
10258
      (fname, ftype, fid) = iprot.readFieldBegin()
10259
      if ftype == TType.STOP:
10260
        break
10261
      if fid == 0:
3064 chandransh 10262
        if ftype == TType.STRUCT:
10263
          self.success = Order()
10264
          self.success.read(iprot)
94 ashish 10265
        else:
10266
          iprot.skip(ftype)
10267
      elif fid == 1:
10268
        if ftype == TType.STRUCT:
10269
          self.ex = TransactionServiceException()
10270
          self.ex.read(iprot)
10271
        else:
10272
          iprot.skip(ftype)
10273
      else:
10274
        iprot.skip(ftype)
10275
      iprot.readFieldEnd()
10276
    iprot.readStructEnd()
10277
 
10278
  def write(self, oprot):
10279
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10280
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10281
      return
3064 chandransh 10282
    oprot.writeStructBegin('getOrderForCustomer_result')
3431 rajveer 10283
    if self.success is not None:
3064 chandransh 10284
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
10285
      self.success.write(oprot)
94 ashish 10286
      oprot.writeFieldEnd()
3431 rajveer 10287
    if self.ex is not None:
94 ashish 10288
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
10289
      self.ex.write(oprot)
10290
      oprot.writeFieldEnd()
10291
    oprot.writeFieldStop()
10292
    oprot.writeStructEnd()
10293
 
3431 rajveer 10294
  def validate(self):
10295
    return
10296
 
10297
 
94 ashish 10298
  def __repr__(self):
10299
    L = ['%s=%r' % (key, value)
10300
      for key, value in self.__dict__.iteritems()]
10301
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10302
 
10303
  def __eq__(self, other):
10304
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10305
 
10306
  def __ne__(self, other):
10307
    return not (self == other)
10308
 
3064 chandransh 10309
class getAlerts_args:
94 ashish 10310
  """
10311
  Attributes:
4394 rajveer 10312
   - type
4444 rajveer 10313
   - warehouseId
4394 rajveer 10314
   - status
10315
   - timestamp
94 ashish 10316
  """
10317
 
10318
  thrift_spec = (
10319
    None, # 0
4394 rajveer 10320
    (1, TType.I64, 'type', None, None, ), # 1
4444 rajveer 10321
    (2, TType.I64, 'warehouseId', None, None, ), # 2
10322
    (3, TType.I64, 'status', None, None, ), # 3
10323
    (4, TType.I64, 'timestamp', None, None, ), # 4
94 ashish 10324
  )
10325
 
4444 rajveer 10326
  def __init__(self, type=None, warehouseId=None, status=None, timestamp=None,):
4394 rajveer 10327
    self.type = type
4444 rajveer 10328
    self.warehouseId = warehouseId
4394 rajveer 10329
    self.status = status
10330
    self.timestamp = timestamp
94 ashish 10331
 
10332
  def read(self, iprot):
10333
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10334
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10335
      return
10336
    iprot.readStructBegin()
10337
    while True:
10338
      (fname, ftype, fid) = iprot.readFieldBegin()
10339
      if ftype == TType.STOP:
10340
        break
10341
      if fid == 1:
3064 chandransh 10342
        if ftype == TType.I64:
4394 rajveer 10343
          self.type = iprot.readI64();
94 ashish 10344
        else:
10345
          iprot.skip(ftype)
3064 chandransh 10346
      elif fid == 2:
4394 rajveer 10347
        if ftype == TType.I64:
4444 rajveer 10348
          self.warehouseId = iprot.readI64();
3064 chandransh 10349
        else:
10350
          iprot.skip(ftype)
4394 rajveer 10351
      elif fid == 3:
10352
        if ftype == TType.I64:
4444 rajveer 10353
          self.status = iprot.readI64();
10354
        else:
10355
          iprot.skip(ftype)
10356
      elif fid == 4:
10357
        if ftype == TType.I64:
4394 rajveer 10358
          self.timestamp = iprot.readI64();
10359
        else:
10360
          iprot.skip(ftype)
94 ashish 10361
      else:
10362
        iprot.skip(ftype)
10363
      iprot.readFieldEnd()
10364
    iprot.readStructEnd()
10365
 
10366
  def write(self, oprot):
10367
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10368
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10369
      return
3064 chandransh 10370
    oprot.writeStructBegin('getAlerts_args')
4394 rajveer 10371
    if self.type is not None:
10372
      oprot.writeFieldBegin('type', TType.I64, 1)
10373
      oprot.writeI64(self.type)
94 ashish 10374
      oprot.writeFieldEnd()
4444 rajveer 10375
    if self.warehouseId is not None:
10376
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
10377
      oprot.writeI64(self.warehouseId)
10378
      oprot.writeFieldEnd()
4394 rajveer 10379
    if self.status is not None:
4444 rajveer 10380
      oprot.writeFieldBegin('status', TType.I64, 3)
4394 rajveer 10381
      oprot.writeI64(self.status)
3064 chandransh 10382
      oprot.writeFieldEnd()
4394 rajveer 10383
    if self.timestamp is not None:
4444 rajveer 10384
      oprot.writeFieldBegin('timestamp', TType.I64, 4)
4394 rajveer 10385
      oprot.writeI64(self.timestamp)
10386
      oprot.writeFieldEnd()
94 ashish 10387
    oprot.writeFieldStop()
10388
    oprot.writeStructEnd()
10389
 
3431 rajveer 10390
  def validate(self):
10391
    return
10392
 
10393
 
94 ashish 10394
  def __repr__(self):
10395
    L = ['%s=%r' % (key, value)
10396
      for key, value in self.__dict__.iteritems()]
10397
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10398
 
10399
  def __eq__(self, other):
10400
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10401
 
10402
  def __ne__(self, other):
10403
    return not (self == other)
10404
 
3064 chandransh 10405
class getAlerts_result:
94 ashish 10406
  """
10407
  Attributes:
10408
   - success
10409
  """
10410
 
10411
  thrift_spec = (
3064 chandransh 10412
    (0, TType.LIST, 'success', (TType.STRUCT,(Alert, Alert.thrift_spec)), None, ), # 0
94 ashish 10413
  )
10414
 
3064 chandransh 10415
  def __init__(self, success=None,):
94 ashish 10416
    self.success = success
10417
 
10418
  def read(self, iprot):
10419
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10420
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10421
      return
10422
    iprot.readStructBegin()
10423
    while True:
10424
      (fname, ftype, fid) = iprot.readFieldBegin()
10425
      if ftype == TType.STOP:
10426
        break
10427
      if fid == 0:
3064 chandransh 10428
        if ftype == TType.LIST:
10429
          self.success = []
5386 phani.kuma 10430
          (_etype199, _size196) = iprot.readListBegin()
10431
          for _i200 in xrange(_size196):
10432
            _elem201 = Alert()
10433
            _elem201.read(iprot)
10434
            self.success.append(_elem201)
3064 chandransh 10435
          iprot.readListEnd()
94 ashish 10436
        else:
10437
          iprot.skip(ftype)
10438
      else:
10439
        iprot.skip(ftype)
10440
      iprot.readFieldEnd()
10441
    iprot.readStructEnd()
10442
 
10443
  def write(self, oprot):
10444
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10445
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10446
      return
3064 chandransh 10447
    oprot.writeStructBegin('getAlerts_result')
3431 rajveer 10448
    if self.success is not None:
3064 chandransh 10449
      oprot.writeFieldBegin('success', TType.LIST, 0)
10450
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 10451
      for iter202 in self.success:
10452
        iter202.write(oprot)
3064 chandransh 10453
      oprot.writeListEnd()
94 ashish 10454
      oprot.writeFieldEnd()
10455
    oprot.writeFieldStop()
10456
    oprot.writeStructEnd()
10457
 
3431 rajveer 10458
  def validate(self):
10459
    return
10460
 
10461
 
94 ashish 10462
  def __repr__(self):
10463
    L = ['%s=%r' % (key, value)
10464
      for key, value in self.__dict__.iteritems()]
10465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10466
 
10467
  def __eq__(self, other):
10468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10469
 
10470
  def __ne__(self, other):
10471
    return not (self == other)
10472
 
4394 rajveer 10473
class addAlert_args:
94 ashish 10474
  """
10475
  Attributes:
3064 chandransh 10476
   - type
4444 rajveer 10477
   - warehouseId
4394 rajveer 10478
   - description
94 ashish 10479
  """
10480
 
10481
  thrift_spec = (
10482
    None, # 0
4394 rajveer 10483
    (1, TType.I64, 'type', None, None, ), # 1
4444 rajveer 10484
    (2, TType.I64, 'warehouseId', None, None, ), # 2
10485
    (3, TType.STRING, 'description', None, None, ), # 3
94 ashish 10486
  )
10487
 
4444 rajveer 10488
  def __init__(self, type=None, warehouseId=None, description=None,):
3064 chandransh 10489
    self.type = type
4444 rajveer 10490
    self.warehouseId = warehouseId
4394 rajveer 10491
    self.description = description
94 ashish 10492
 
10493
  def read(self, iprot):
10494
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10495
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10496
      return
10497
    iprot.readStructBegin()
10498
    while True:
10499
      (fname, ftype, fid) = iprot.readFieldBegin()
10500
      if ftype == TType.STOP:
10501
        break
10502
      if fid == 1:
10503
        if ftype == TType.I64:
4394 rajveer 10504
          self.type = iprot.readI64();
94 ashish 10505
        else:
10506
          iprot.skip(ftype)
3064 chandransh 10507
      elif fid == 2:
4444 rajveer 10508
        if ftype == TType.I64:
10509
          self.warehouseId = iprot.readI64();
10510
        else:
10511
          iprot.skip(ftype)
10512
      elif fid == 3:
3064 chandransh 10513
        if ftype == TType.STRING:
4394 rajveer 10514
          self.description = iprot.readString();
3064 chandransh 10515
        else:
10516
          iprot.skip(ftype)
94 ashish 10517
      else:
10518
        iprot.skip(ftype)
10519
      iprot.readFieldEnd()
10520
    iprot.readStructEnd()
10521
 
10522
  def write(self, oprot):
10523
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10524
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10525
      return
4394 rajveer 10526
    oprot.writeStructBegin('addAlert_args')
3431 rajveer 10527
    if self.type is not None:
4394 rajveer 10528
      oprot.writeFieldBegin('type', TType.I64, 1)
3064 chandransh 10529
      oprot.writeI64(self.type)
10530
      oprot.writeFieldEnd()
4444 rajveer 10531
    if self.warehouseId is not None:
10532
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
10533
      oprot.writeI64(self.warehouseId)
10534
      oprot.writeFieldEnd()
4394 rajveer 10535
    if self.description is not None:
4444 rajveer 10536
      oprot.writeFieldBegin('description', TType.STRING, 3)
4394 rajveer 10537
      oprot.writeString(self.description)
3064 chandransh 10538
      oprot.writeFieldEnd()
94 ashish 10539
    oprot.writeFieldStop()
10540
    oprot.writeStructEnd()
10541
 
3431 rajveer 10542
  def validate(self):
10543
    return
10544
 
10545
 
94 ashish 10546
  def __repr__(self):
10547
    L = ['%s=%r' % (key, value)
10548
      for key, value in self.__dict__.iteritems()]
10549
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10550
 
10551
  def __eq__(self, other):
10552
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10553
 
10554
  def __ne__(self, other):
10555
    return not (self == other)
10556
 
4394 rajveer 10557
class addAlert_result:
3064 chandransh 10558
 
10559
  thrift_spec = (
10560
  )
10561
 
10562
  def read(self, iprot):
10563
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10564
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10565
      return
10566
    iprot.readStructBegin()
10567
    while True:
10568
      (fname, ftype, fid) = iprot.readFieldBegin()
10569
      if ftype == TType.STOP:
10570
        break
10571
      else:
10572
        iprot.skip(ftype)
10573
      iprot.readFieldEnd()
10574
    iprot.readStructEnd()
10575
 
10576
  def write(self, oprot):
10577
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10578
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10579
      return
4394 rajveer 10580
    oprot.writeStructBegin('addAlert_result')
3064 chandransh 10581
    oprot.writeFieldStop()
10582
    oprot.writeStructEnd()
10583
 
3431 rajveer 10584
  def validate(self):
10585
    return
10586
 
10587
 
3064 chandransh 10588
  def __repr__(self):
10589
    L = ['%s=%r' % (key, value)
10590
      for key, value in self.__dict__.iteritems()]
10591
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10592
 
10593
  def __eq__(self, other):
10594
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10595
 
10596
  def __ne__(self, other):
10597
    return not (self == other)
10598
 
4444 rajveer 10599
class markAlertsAsSeen_args:
10600
  """
10601
  Attributes:
10602
   - warehouseId
10603
  """
10604
 
10605
  thrift_spec = (
10606
    None, # 0
10607
    (1, TType.I64, 'warehouseId', None, None, ), # 1
10608
  )
10609
 
10610
  def __init__(self, warehouseId=None,):
10611
    self.warehouseId = warehouseId
10612
 
10613
  def read(self, iprot):
10614
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10615
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10616
      return
10617
    iprot.readStructBegin()
10618
    while True:
10619
      (fname, ftype, fid) = iprot.readFieldBegin()
10620
      if ftype == TType.STOP:
10621
        break
10622
      if fid == 1:
10623
        if ftype == TType.I64:
10624
          self.warehouseId = iprot.readI64();
10625
        else:
10626
          iprot.skip(ftype)
10627
      else:
10628
        iprot.skip(ftype)
10629
      iprot.readFieldEnd()
10630
    iprot.readStructEnd()
10631
 
10632
  def write(self, oprot):
10633
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10634
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10635
      return
10636
    oprot.writeStructBegin('markAlertsAsSeen_args')
10637
    if self.warehouseId is not None:
10638
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
10639
      oprot.writeI64(self.warehouseId)
10640
      oprot.writeFieldEnd()
10641
    oprot.writeFieldStop()
10642
    oprot.writeStructEnd()
10643
 
10644
  def validate(self):
10645
    return
10646
 
10647
 
10648
  def __repr__(self):
10649
    L = ['%s=%r' % (key, value)
10650
      for key, value in self.__dict__.iteritems()]
10651
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10652
 
10653
  def __eq__(self, other):
10654
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10655
 
10656
  def __ne__(self, other):
10657
    return not (self == other)
10658
 
10659
class markAlertsAsSeen_result:
10660
 
10661
  thrift_spec = (
10662
  )
10663
 
10664
  def read(self, iprot):
10665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10667
      return
10668
    iprot.readStructBegin()
10669
    while True:
10670
      (fname, ftype, fid) = iprot.readFieldBegin()
10671
      if ftype == TType.STOP:
10672
        break
10673
      else:
10674
        iprot.skip(ftype)
10675
      iprot.readFieldEnd()
10676
    iprot.readStructEnd()
10677
 
10678
  def write(self, oprot):
10679
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10680
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10681
      return
10682
    oprot.writeStructBegin('markAlertsAsSeen_result')
10683
    oprot.writeFieldStop()
10684
    oprot.writeStructEnd()
10685
 
10686
  def validate(self):
10687
    return
10688
 
10689
 
10690
  def __repr__(self):
10691
    L = ['%s=%r' % (key, value)
10692
      for key, value in self.__dict__.iteritems()]
10693
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10694
 
10695
  def __eq__(self, other):
10696
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10697
 
10698
  def __ne__(self, other):
10699
    return not (self == other)
10700
 
3064 chandransh 10701
class getValidOrderCount_args:
10702
 
10703
  thrift_spec = (
10704
  )
10705
 
10706
  def read(self, iprot):
10707
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10708
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10709
      return
10710
    iprot.readStructBegin()
10711
    while True:
10712
      (fname, ftype, fid) = iprot.readFieldBegin()
10713
      if ftype == TType.STOP:
10714
        break
10715
      else:
10716
        iprot.skip(ftype)
10717
      iprot.readFieldEnd()
10718
    iprot.readStructEnd()
10719
 
10720
  def write(self, oprot):
10721
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10722
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10723
      return
10724
    oprot.writeStructBegin('getValidOrderCount_args')
10725
    oprot.writeFieldStop()
10726
    oprot.writeStructEnd()
10727
 
3431 rajveer 10728
  def validate(self):
10729
    return
10730
 
10731
 
3064 chandransh 10732
  def __repr__(self):
10733
    L = ['%s=%r' % (key, value)
10734
      for key, value in self.__dict__.iteritems()]
10735
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10736
 
10737
  def __eq__(self, other):
10738
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10739
 
10740
  def __ne__(self, other):
10741
    return not (self == other)
10742
 
10743
class getValidOrderCount_result:
94 ashish 10744
  """
10745
  Attributes:
10746
   - success
10747
  """
10748
 
10749
  thrift_spec = (
3064 chandransh 10750
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 10751
  )
10752
 
3064 chandransh 10753
  def __init__(self, success=None,):
94 ashish 10754
    self.success = success
10755
 
10756
  def read(self, iprot):
10757
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10758
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10759
      return
10760
    iprot.readStructBegin()
10761
    while True:
10762
      (fname, ftype, fid) = iprot.readFieldBegin()
10763
      if ftype == TType.STOP:
10764
        break
10765
      if fid == 0:
3064 chandransh 10766
        if ftype == TType.I64:
10767
          self.success = iprot.readI64();
94 ashish 10768
        else:
10769
          iprot.skip(ftype)
10770
      else:
10771
        iprot.skip(ftype)
10772
      iprot.readFieldEnd()
10773
    iprot.readStructEnd()
10774
 
10775
  def write(self, oprot):
10776
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10777
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10778
      return
3064 chandransh 10779
    oprot.writeStructBegin('getValidOrderCount_result')
3431 rajveer 10780
    if self.success is not None:
3064 chandransh 10781
      oprot.writeFieldBegin('success', TType.I64, 0)
10782
      oprot.writeI64(self.success)
94 ashish 10783
      oprot.writeFieldEnd()
10784
    oprot.writeFieldStop()
10785
    oprot.writeStructEnd()
10786
 
3431 rajveer 10787
  def validate(self):
10788
    return
10789
 
10790
 
94 ashish 10791
  def __repr__(self):
10792
    L = ['%s=%r' % (key, value)
10793
      for key, value in self.__dict__.iteritems()]
10794
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10795
 
10796
  def __eq__(self, other):
10797
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10798
 
10799
  def __ne__(self, other):
10800
    return not (self == other)
10801
 
3064 chandransh 10802
class getNoOfCustomersWithSuccessfulTransaction_args:
10803
 
10804
  thrift_spec = (
10805
  )
10806
 
10807
  def read(self, iprot):
10808
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10809
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10810
      return
10811
    iprot.readStructBegin()
10812
    while True:
10813
      (fname, ftype, fid) = iprot.readFieldBegin()
10814
      if ftype == TType.STOP:
10815
        break
10816
      else:
10817
        iprot.skip(ftype)
10818
      iprot.readFieldEnd()
10819
    iprot.readStructEnd()
10820
 
10821
  def write(self, oprot):
10822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10824
      return
10825
    oprot.writeStructBegin('getNoOfCustomersWithSuccessfulTransaction_args')
10826
    oprot.writeFieldStop()
10827
    oprot.writeStructEnd()
10828
 
3431 rajveer 10829
  def validate(self):
10830
    return
10831
 
10832
 
3064 chandransh 10833
  def __repr__(self):
10834
    L = ['%s=%r' % (key, value)
10835
      for key, value in self.__dict__.iteritems()]
10836
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10837
 
10838
  def __eq__(self, other):
10839
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10840
 
10841
  def __ne__(self, other):
10842
    return not (self == other)
10843
 
10844
class getNoOfCustomersWithSuccessfulTransaction_result:
94 ashish 10845
  """
10846
  Attributes:
3064 chandransh 10847
   - success
94 ashish 10848
  """
10849
 
10850
  thrift_spec = (
3064 chandransh 10851
    (0, TType.I64, 'success', None, None, ), # 0
94 ashish 10852
  )
10853
 
3064 chandransh 10854
  def __init__(self, success=None,):
10855
    self.success = success
94 ashish 10856
 
10857
  def read(self, iprot):
10858
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10859
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10860
      return
10861
    iprot.readStructBegin()
10862
    while True:
10863
      (fname, ftype, fid) = iprot.readFieldBegin()
10864
      if ftype == TType.STOP:
10865
        break
3064 chandransh 10866
      if fid == 0:
94 ashish 10867
        if ftype == TType.I64:
3064 chandransh 10868
          self.success = iprot.readI64();
94 ashish 10869
        else:
10870
          iprot.skip(ftype)
10871
      else:
10872
        iprot.skip(ftype)
10873
      iprot.readFieldEnd()
10874
    iprot.readStructEnd()
10875
 
10876
  def write(self, oprot):
10877
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10878
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10879
      return
3064 chandransh 10880
    oprot.writeStructBegin('getNoOfCustomersWithSuccessfulTransaction_result')
3431 rajveer 10881
    if self.success is not None:
3064 chandransh 10882
      oprot.writeFieldBegin('success', TType.I64, 0)
10883
      oprot.writeI64(self.success)
94 ashish 10884
      oprot.writeFieldEnd()
10885
    oprot.writeFieldStop()
10886
    oprot.writeStructEnd()
10887
 
3431 rajveer 10888
  def validate(self):
10889
    return
10890
 
10891
 
94 ashish 10892
  def __repr__(self):
10893
    L = ['%s=%r' % (key, value)
10894
      for key, value in self.__dict__.iteritems()]
10895
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10896
 
10897
  def __eq__(self, other):
10898
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10899
 
10900
  def __ne__(self, other):
10901
    return not (self == other)
10902
 
3064 chandransh 10903
class getValidOrdersAmountRange_args:
10904
 
10905
  thrift_spec = (
10906
  )
10907
 
10908
  def read(self, iprot):
10909
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10910
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10911
      return
10912
    iprot.readStructBegin()
10913
    while True:
10914
      (fname, ftype, fid) = iprot.readFieldBegin()
10915
      if ftype == TType.STOP:
10916
        break
10917
      else:
10918
        iprot.skip(ftype)
10919
      iprot.readFieldEnd()
10920
    iprot.readStructEnd()
10921
 
10922
  def write(self, oprot):
10923
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10924
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10925
      return
10926
    oprot.writeStructBegin('getValidOrdersAmountRange_args')
10927
    oprot.writeFieldStop()
10928
    oprot.writeStructEnd()
10929
 
3431 rajveer 10930
  def validate(self):
10931
    return
10932
 
10933
 
3064 chandransh 10934
  def __repr__(self):
10935
    L = ['%s=%r' % (key, value)
10936
      for key, value in self.__dict__.iteritems()]
10937
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
10938
 
10939
  def __eq__(self, other):
10940
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
10941
 
10942
  def __ne__(self, other):
10943
    return not (self == other)
10944
 
10945
class getValidOrdersAmountRange_result:
94 ashish 10946
  """
10947
  Attributes:
10948
   - success
10949
  """
10950
 
10951
  thrift_spec = (
3064 chandransh 10952
    (0, TType.LIST, 'success', (TType.DOUBLE,None), None, ), # 0
94 ashish 10953
  )
10954
 
3064 chandransh 10955
  def __init__(self, success=None,):
94 ashish 10956
    self.success = success
10957
 
10958
  def read(self, iprot):
10959
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
10960
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
10961
      return
10962
    iprot.readStructBegin()
10963
    while True:
10964
      (fname, ftype, fid) = iprot.readFieldBegin()
10965
      if ftype == TType.STOP:
10966
        break
10967
      if fid == 0:
483 rajveer 10968
        if ftype == TType.LIST:
10969
          self.success = []
5386 phani.kuma 10970
          (_etype206, _size203) = iprot.readListBegin()
10971
          for _i207 in xrange(_size203):
10972
            _elem208 = iprot.readDouble();
10973
            self.success.append(_elem208)
483 rajveer 10974
          iprot.readListEnd()
94 ashish 10975
        else:
10976
          iprot.skip(ftype)
10977
      else:
10978
        iprot.skip(ftype)
10979
      iprot.readFieldEnd()
10980
    iprot.readStructEnd()
10981
 
10982
  def write(self, oprot):
10983
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
10984
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
10985
      return
3064 chandransh 10986
    oprot.writeStructBegin('getValidOrdersAmountRange_result')
3431 rajveer 10987
    if self.success is not None:
483 rajveer 10988
      oprot.writeFieldBegin('success', TType.LIST, 0)
3064 chandransh 10989
      oprot.writeListBegin(TType.DOUBLE, len(self.success))
5386 phani.kuma 10990
      for iter209 in self.success:
10991
        oprot.writeDouble(iter209)
483 rajveer 10992
      oprot.writeListEnd()
94 ashish 10993
      oprot.writeFieldEnd()
10994
    oprot.writeFieldStop()
10995
    oprot.writeStructEnd()
10996
 
3431 rajveer 10997
  def validate(self):
10998
    return
10999
 
11000
 
94 ashish 11001
  def __repr__(self):
11002
    L = ['%s=%r' % (key, value)
11003
      for key, value in self.__dict__.iteritems()]
11004
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11005
 
11006
  def __eq__(self, other):
11007
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11008
 
11009
  def __ne__(self, other):
11010
    return not (self == other)
11011
 
3064 chandransh 11012
class getValidOrders_args:
1528 ankur.sing 11013
  """
11014
  Attributes:
3064 chandransh 11015
   - limit
1528 ankur.sing 11016
  """
11017
 
11018
  thrift_spec = (
11019
    None, # 0
3064 chandransh 11020
    (1, TType.I64, 'limit', None, None, ), # 1
1528 ankur.sing 11021
  )
11022
 
3064 chandransh 11023
  def __init__(self, limit=None,):
11024
    self.limit = limit
1528 ankur.sing 11025
 
11026
  def read(self, iprot):
11027
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11028
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11029
      return
11030
    iprot.readStructBegin()
11031
    while True:
11032
      (fname, ftype, fid) = iprot.readFieldBegin()
11033
      if ftype == TType.STOP:
11034
        break
11035
      if fid == 1:
11036
        if ftype == TType.I64:
3064 chandransh 11037
          self.limit = iprot.readI64();
1528 ankur.sing 11038
        else:
11039
          iprot.skip(ftype)
11040
      else:
11041
        iprot.skip(ftype)
11042
      iprot.readFieldEnd()
11043
    iprot.readStructEnd()
11044
 
11045
  def write(self, oprot):
11046
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11047
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11048
      return
3064 chandransh 11049
    oprot.writeStructBegin('getValidOrders_args')
3431 rajveer 11050
    if self.limit is not None:
3064 chandransh 11051
      oprot.writeFieldBegin('limit', TType.I64, 1)
11052
      oprot.writeI64(self.limit)
1528 ankur.sing 11053
      oprot.writeFieldEnd()
11054
    oprot.writeFieldStop()
11055
    oprot.writeStructEnd()
11056
 
3431 rajveer 11057
  def validate(self):
11058
    return
11059
 
11060
 
1528 ankur.sing 11061
  def __repr__(self):
11062
    L = ['%s=%r' % (key, value)
11063
      for key, value in self.__dict__.iteritems()]
11064
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11065
 
11066
  def __eq__(self, other):
11067
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11068
 
11069
  def __ne__(self, other):
11070
    return not (self == other)
11071
 
3064 chandransh 11072
class getValidOrders_result:
1528 ankur.sing 11073
  """
11074
  Attributes:
11075
   - success
11076
  """
11077
 
11078
  thrift_spec = (
3064 chandransh 11079
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
1528 ankur.sing 11080
  )
11081
 
3064 chandransh 11082
  def __init__(self, success=None,):
1528 ankur.sing 11083
    self.success = success
11084
 
11085
  def read(self, iprot):
11086
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11087
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11088
      return
11089
    iprot.readStructBegin()
11090
    while True:
11091
      (fname, ftype, fid) = iprot.readFieldBegin()
11092
      if ftype == TType.STOP:
11093
        break
11094
      if fid == 0:
3064 chandransh 11095
        if ftype == TType.LIST:
11096
          self.success = []
5386 phani.kuma 11097
          (_etype213, _size210) = iprot.readListBegin()
11098
          for _i214 in xrange(_size210):
11099
            _elem215 = Order()
11100
            _elem215.read(iprot)
11101
            self.success.append(_elem215)
3064 chandransh 11102
          iprot.readListEnd()
1528 ankur.sing 11103
        else:
11104
          iprot.skip(ftype)
11105
      else:
11106
        iprot.skip(ftype)
11107
      iprot.readFieldEnd()
11108
    iprot.readStructEnd()
11109
 
11110
  def write(self, oprot):
11111
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11112
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11113
      return
3064 chandransh 11114
    oprot.writeStructBegin('getValidOrders_result')
3431 rajveer 11115
    if self.success is not None:
3064 chandransh 11116
      oprot.writeFieldBegin('success', TType.LIST, 0)
11117
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 11118
      for iter216 in self.success:
11119
        iter216.write(oprot)
3064 chandransh 11120
      oprot.writeListEnd()
1528 ankur.sing 11121
      oprot.writeFieldEnd()
11122
    oprot.writeFieldStop()
11123
    oprot.writeStructEnd()
11124
 
3431 rajveer 11125
  def validate(self):
11126
    return
11127
 
11128
 
1528 ankur.sing 11129
  def __repr__(self):
11130
    L = ['%s=%r' % (key, value)
11131
      for key, value in self.__dict__.iteritems()]
11132
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11133
 
11134
  def __eq__(self, other):
11135
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11136
 
11137
  def __ne__(self, other):
11138
    return not (self == other)
11139
 
1220 chandransh 11140
class batchOrders_args:
11141
  """
11142
  Attributes:
11143
   - warehouseId
11144
  """
11145
 
11146
  thrift_spec = (
11147
    None, # 0
11148
    (1, TType.I64, 'warehouseId', None, None, ), # 1
11149
  )
11150
 
11151
  def __init__(self, warehouseId=None,):
11152
    self.warehouseId = warehouseId
11153
 
11154
  def read(self, iprot):
11155
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11156
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11157
      return
11158
    iprot.readStructBegin()
11159
    while True:
11160
      (fname, ftype, fid) = iprot.readFieldBegin()
11161
      if ftype == TType.STOP:
11162
        break
11163
      if fid == 1:
11164
        if ftype == TType.I64:
11165
          self.warehouseId = iprot.readI64();
11166
        else:
11167
          iprot.skip(ftype)
11168
      else:
11169
        iprot.skip(ftype)
11170
      iprot.readFieldEnd()
11171
    iprot.readStructEnd()
11172
 
11173
  def write(self, oprot):
11174
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11175
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11176
      return
11177
    oprot.writeStructBegin('batchOrders_args')
3431 rajveer 11178
    if self.warehouseId is not None:
1220 chandransh 11179
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
11180
      oprot.writeI64(self.warehouseId)
11181
      oprot.writeFieldEnd()
11182
    oprot.writeFieldStop()
11183
    oprot.writeStructEnd()
11184
 
3431 rajveer 11185
  def validate(self):
11186
    return
11187
 
11188
 
1220 chandransh 11189
  def __repr__(self):
11190
    L = ['%s=%r' % (key, value)
11191
      for key, value in self.__dict__.iteritems()]
11192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11193
 
11194
  def __eq__(self, other):
11195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11196
 
11197
  def __ne__(self, other):
11198
    return not (self == other)
11199
 
11200
class batchOrders_result:
11201
  """
11202
  Attributes:
11203
   - success
11204
   - ex
11205
  """
11206
 
11207
  thrift_spec = (
11208
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
11209
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
11210
  )
11211
 
11212
  def __init__(self, success=None, ex=None,):
11213
    self.success = success
11214
    self.ex = ex
11215
 
11216
  def read(self, iprot):
11217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11219
      return
11220
    iprot.readStructBegin()
11221
    while True:
11222
      (fname, ftype, fid) = iprot.readFieldBegin()
11223
      if ftype == TType.STOP:
11224
        break
11225
      if fid == 0:
11226
        if ftype == TType.LIST:
11227
          self.success = []
5386 phani.kuma 11228
          (_etype220, _size217) = iprot.readListBegin()
11229
          for _i221 in xrange(_size217):
11230
            _elem222 = Order()
11231
            _elem222.read(iprot)
11232
            self.success.append(_elem222)
1220 chandransh 11233
          iprot.readListEnd()
11234
        else:
11235
          iprot.skip(ftype)
11236
      elif fid == 1:
11237
        if ftype == TType.STRUCT:
11238
          self.ex = TransactionServiceException()
11239
          self.ex.read(iprot)
11240
        else:
11241
          iprot.skip(ftype)
11242
      else:
11243
        iprot.skip(ftype)
11244
      iprot.readFieldEnd()
11245
    iprot.readStructEnd()
11246
 
11247
  def write(self, oprot):
11248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11250
      return
11251
    oprot.writeStructBegin('batchOrders_result')
3431 rajveer 11252
    if self.success is not None:
1220 chandransh 11253
      oprot.writeFieldBegin('success', TType.LIST, 0)
11254
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 11255
      for iter223 in self.success:
11256
        iter223.write(oprot)
1220 chandransh 11257
      oprot.writeListEnd()
11258
      oprot.writeFieldEnd()
3431 rajveer 11259
    if self.ex is not None:
1220 chandransh 11260
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
11261
      self.ex.write(oprot)
11262
      oprot.writeFieldEnd()
11263
    oprot.writeFieldStop()
11264
    oprot.writeStructEnd()
11265
 
3431 rajveer 11266
  def validate(self):
11267
    return
11268
 
11269
 
1220 chandransh 11270
  def __repr__(self):
11271
    L = ['%s=%r' % (key, value)
11272
      for key, value in self.__dict__.iteritems()]
11273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11274
 
11275
  def __eq__(self, other):
11276
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11277
 
11278
  def __ne__(self, other):
11279
    return not (self == other)
11280
 
1208 chandransh 11281
class markOrderAsOutOfStock_args:
11282
  """
11283
  Attributes:
11284
   - orderId
11285
  """
11286
 
11287
  thrift_spec = (
11288
    None, # 0
11289
    (1, TType.I64, 'orderId', None, None, ), # 1
11290
  )
11291
 
11292
  def __init__(self, orderId=None,):
11293
    self.orderId = orderId
11294
 
11295
  def read(self, iprot):
11296
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11297
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11298
      return
11299
    iprot.readStructBegin()
11300
    while True:
11301
      (fname, ftype, fid) = iprot.readFieldBegin()
11302
      if ftype == TType.STOP:
11303
        break
11304
      if fid == 1:
11305
        if ftype == TType.I64:
11306
          self.orderId = iprot.readI64();
11307
        else:
11308
          iprot.skip(ftype)
11309
      else:
11310
        iprot.skip(ftype)
11311
      iprot.readFieldEnd()
11312
    iprot.readStructEnd()
11313
 
11314
  def write(self, oprot):
11315
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11316
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11317
      return
11318
    oprot.writeStructBegin('markOrderAsOutOfStock_args')
3431 rajveer 11319
    if self.orderId is not None:
1208 chandransh 11320
      oprot.writeFieldBegin('orderId', TType.I64, 1)
11321
      oprot.writeI64(self.orderId)
11322
      oprot.writeFieldEnd()
11323
    oprot.writeFieldStop()
11324
    oprot.writeStructEnd()
11325
 
3431 rajveer 11326
  def validate(self):
11327
    return
11328
 
11329
 
1208 chandransh 11330
  def __repr__(self):
11331
    L = ['%s=%r' % (key, value)
11332
      for key, value in self.__dict__.iteritems()]
11333
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11334
 
11335
  def __eq__(self, other):
11336
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11337
 
11338
  def __ne__(self, other):
11339
    return not (self == other)
11340
 
11341
class markOrderAsOutOfStock_result:
11342
  """
11343
  Attributes:
11344
   - success
11345
   - ex
11346
  """
11347
 
11348
  thrift_spec = (
11349
    (0, TType.BOOL, 'success', None, None, ), # 0
11350
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
11351
  )
11352
 
11353
  def __init__(self, success=None, ex=None,):
11354
    self.success = success
11355
    self.ex = ex
11356
 
11357
  def read(self, iprot):
11358
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11359
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11360
      return
11361
    iprot.readStructBegin()
11362
    while True:
11363
      (fname, ftype, fid) = iprot.readFieldBegin()
11364
      if ftype == TType.STOP:
11365
        break
11366
      if fid == 0:
11367
        if ftype == TType.BOOL:
11368
          self.success = iprot.readBool();
11369
        else:
11370
          iprot.skip(ftype)
11371
      elif fid == 1:
11372
        if ftype == TType.STRUCT:
11373
          self.ex = TransactionServiceException()
11374
          self.ex.read(iprot)
11375
        else:
11376
          iprot.skip(ftype)
11377
      else:
11378
        iprot.skip(ftype)
11379
      iprot.readFieldEnd()
11380
    iprot.readStructEnd()
11381
 
11382
  def write(self, oprot):
11383
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11384
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11385
      return
11386
    oprot.writeStructBegin('markOrderAsOutOfStock_result')
3431 rajveer 11387
    if self.success is not None:
1208 chandransh 11388
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11389
      oprot.writeBool(self.success)
11390
      oprot.writeFieldEnd()
3431 rajveer 11391
    if self.ex is not None:
1208 chandransh 11392
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
11393
      self.ex.write(oprot)
11394
      oprot.writeFieldEnd()
11395
    oprot.writeFieldStop()
11396
    oprot.writeStructEnd()
11397
 
3431 rajveer 11398
  def validate(self):
11399
    return
11400
 
11401
 
1208 chandransh 11402
  def __repr__(self):
11403
    L = ['%s=%r' % (key, value)
11404
      for key, value in self.__dict__.iteritems()]
11405
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11406
 
11407
  def __eq__(self, other):
11408
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11409
 
11410
  def __ne__(self, other):
11411
    return not (self == other)
11412
 
3064 chandransh 11413
class verifyOrder_args:
759 chandransh 11414
  """
11415
  Attributes:
3064 chandransh 11416
   - orderId
759 chandransh 11417
  """
11418
 
11419
  thrift_spec = (
11420
    None, # 0
3064 chandransh 11421
    (1, TType.I64, 'orderId', None, None, ), # 1
759 chandransh 11422
  )
11423
 
3064 chandransh 11424
  def __init__(self, orderId=None,):
11425
    self.orderId = orderId
759 chandransh 11426
 
11427
  def read(self, iprot):
11428
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11429
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11430
      return
11431
    iprot.readStructBegin()
11432
    while True:
11433
      (fname, ftype, fid) = iprot.readFieldBegin()
11434
      if ftype == TType.STOP:
11435
        break
11436
      if fid == 1:
11437
        if ftype == TType.I64:
3064 chandransh 11438
          self.orderId = iprot.readI64();
759 chandransh 11439
        else:
11440
          iprot.skip(ftype)
11441
      else:
11442
        iprot.skip(ftype)
11443
      iprot.readFieldEnd()
11444
    iprot.readStructEnd()
11445
 
11446
  def write(self, oprot):
11447
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11448
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11449
      return
3064 chandransh 11450
    oprot.writeStructBegin('verifyOrder_args')
3431 rajveer 11451
    if self.orderId is not None:
3064 chandransh 11452
      oprot.writeFieldBegin('orderId', TType.I64, 1)
11453
      oprot.writeI64(self.orderId)
759 chandransh 11454
      oprot.writeFieldEnd()
11455
    oprot.writeFieldStop()
11456
    oprot.writeStructEnd()
11457
 
3431 rajveer 11458
  def validate(self):
11459
    return
11460
 
11461
 
759 chandransh 11462
  def __repr__(self):
11463
    L = ['%s=%r' % (key, value)
11464
      for key, value in self.__dict__.iteritems()]
11465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11466
 
11467
  def __eq__(self, other):
11468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11469
 
11470
  def __ne__(self, other):
11471
    return not (self == other)
11472
 
3064 chandransh 11473
class verifyOrder_result:
759 chandransh 11474
  """
11475
  Attributes:
11476
   - success
11477
   - ex
11478
  """
11479
 
11480
  thrift_spec = (
11481
    (0, TType.BOOL, 'success', None, None, ), # 0
11482
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
11483
  )
11484
 
11485
  def __init__(self, success=None, ex=None,):
11486
    self.success = success
11487
    self.ex = ex
11488
 
11489
  def read(self, iprot):
11490
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11491
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11492
      return
11493
    iprot.readStructBegin()
11494
    while True:
11495
      (fname, ftype, fid) = iprot.readFieldBegin()
11496
      if ftype == TType.STOP:
11497
        break
11498
      if fid == 0:
11499
        if ftype == TType.BOOL:
11500
          self.success = iprot.readBool();
11501
        else:
11502
          iprot.skip(ftype)
11503
      elif fid == 1:
11504
        if ftype == TType.STRUCT:
11505
          self.ex = TransactionServiceException()
11506
          self.ex.read(iprot)
11507
        else:
11508
          iprot.skip(ftype)
11509
      else:
11510
        iprot.skip(ftype)
11511
      iprot.readFieldEnd()
11512
    iprot.readStructEnd()
11513
 
11514
  def write(self, oprot):
11515
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11516
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11517
      return
3064 chandransh 11518
    oprot.writeStructBegin('verifyOrder_result')
3431 rajveer 11519
    if self.success is not None:
759 chandransh 11520
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11521
      oprot.writeBool(self.success)
11522
      oprot.writeFieldEnd()
3431 rajveer 11523
    if self.ex is not None:
759 chandransh 11524
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
11525
      self.ex.write(oprot)
11526
      oprot.writeFieldEnd()
11527
    oprot.writeFieldStop()
11528
    oprot.writeStructEnd()
11529
 
3431 rajveer 11530
  def validate(self):
11531
    return
11532
 
11533
 
759 chandransh 11534
  def __repr__(self):
11535
    L = ['%s=%r' % (key, value)
11536
      for key, value in self.__dict__.iteritems()]
11537
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11538
 
11539
  def __eq__(self, other):
11540
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11541
 
11542
  def __ne__(self, other):
11543
    return not (self == other)
11544
 
3064 chandransh 11545
class acceptOrder_args:
1113 chandransh 11546
  """
11547
  Attributes:
3064 chandransh 11548
   - orderId
1113 chandransh 11549
  """
11550
 
11551
  thrift_spec = (
11552
    None, # 0
3064 chandransh 11553
    (1, TType.I64, 'orderId', None, None, ), # 1
1113 chandransh 11554
  )
11555
 
3064 chandransh 11556
  def __init__(self, orderId=None,):
11557
    self.orderId = orderId
1113 chandransh 11558
 
11559
  def read(self, iprot):
11560
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11561
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11562
      return
11563
    iprot.readStructBegin()
11564
    while True:
11565
      (fname, ftype, fid) = iprot.readFieldBegin()
11566
      if ftype == TType.STOP:
11567
        break
11568
      if fid == 1:
11569
        if ftype == TType.I64:
3064 chandransh 11570
          self.orderId = iprot.readI64();
1113 chandransh 11571
        else:
11572
          iprot.skip(ftype)
11573
      else:
11574
        iprot.skip(ftype)
11575
      iprot.readFieldEnd()
11576
    iprot.readStructEnd()
11577
 
11578
  def write(self, oprot):
11579
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11580
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11581
      return
3064 chandransh 11582
    oprot.writeStructBegin('acceptOrder_args')
3431 rajveer 11583
    if self.orderId is not None:
3064 chandransh 11584
      oprot.writeFieldBegin('orderId', TType.I64, 1)
11585
      oprot.writeI64(self.orderId)
1113 chandransh 11586
      oprot.writeFieldEnd()
11587
    oprot.writeFieldStop()
11588
    oprot.writeStructEnd()
11589
 
3431 rajveer 11590
  def validate(self):
11591
    return
11592
 
11593
 
1113 chandransh 11594
  def __repr__(self):
11595
    L = ['%s=%r' % (key, value)
11596
      for key, value in self.__dict__.iteritems()]
11597
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11598
 
11599
  def __eq__(self, other):
11600
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11601
 
11602
  def __ne__(self, other):
11603
    return not (self == other)
11604
 
3064 chandransh 11605
class acceptOrder_result:
1113 chandransh 11606
  """
11607
  Attributes:
11608
   - success
11609
   - ex
11610
  """
11611
 
11612
  thrift_spec = (
3064 chandransh 11613
    (0, TType.BOOL, 'success', None, None, ), # 0
1113 chandransh 11614
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
11615
  )
11616
 
11617
  def __init__(self, success=None, ex=None,):
11618
    self.success = success
11619
    self.ex = ex
11620
 
11621
  def read(self, iprot):
11622
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11623
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11624
      return
11625
    iprot.readStructBegin()
11626
    while True:
11627
      (fname, ftype, fid) = iprot.readFieldBegin()
11628
      if ftype == TType.STOP:
11629
        break
11630
      if fid == 0:
3064 chandransh 11631
        if ftype == TType.BOOL:
11632
          self.success = iprot.readBool();
1113 chandransh 11633
        else:
11634
          iprot.skip(ftype)
11635
      elif fid == 1:
11636
        if ftype == TType.STRUCT:
11637
          self.ex = TransactionServiceException()
11638
          self.ex.read(iprot)
11639
        else:
11640
          iprot.skip(ftype)
11641
      else:
11642
        iprot.skip(ftype)
11643
      iprot.readFieldEnd()
11644
    iprot.readStructEnd()
11645
 
11646
  def write(self, oprot):
11647
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11648
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11649
      return
3064 chandransh 11650
    oprot.writeStructBegin('acceptOrder_result')
3431 rajveer 11651
    if self.success is not None:
3064 chandransh 11652
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11653
      oprot.writeBool(self.success)
1113 chandransh 11654
      oprot.writeFieldEnd()
3431 rajveer 11655
    if self.ex is not None:
1113 chandransh 11656
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
11657
      self.ex.write(oprot)
11658
      oprot.writeFieldEnd()
11659
    oprot.writeFieldStop()
11660
    oprot.writeStructEnd()
11661
 
3431 rajveer 11662
  def validate(self):
11663
    return
11664
 
11665
 
1113 chandransh 11666
  def __repr__(self):
11667
    L = ['%s=%r' % (key, value)
11668
      for key, value in self.__dict__.iteritems()]
11669
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11670
 
11671
  def __eq__(self, other):
11672
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11673
 
11674
  def __ne__(self, other):
11675
    return not (self == other)
11676
 
3064 chandransh 11677
class addBillingDetails_args:
1135 chandransh 11678
  """
11679
  Attributes:
3064 chandransh 11680
   - orderId
11681
   - invoice_number
4658 mandeep.dh 11682
   - serialNumber
4283 anupam.sin 11683
   - itemNumber
3064 chandransh 11684
   - billed_by
4264 rajveer 11685
   - jacketNumber
4283 anupam.sin 11686
   - billingType
5110 mandeep.dh 11687
   - fulfilmentWarehouseId
4763 rajveer 11688
   - authorize
1135 chandransh 11689
  """
11690
 
11691
  thrift_spec = (
11692
    None, # 0
3064 chandransh 11693
    (1, TType.I64, 'orderId', None, None, ), # 1
11694
    (2, TType.STRING, 'invoice_number', None, None, ), # 2
4658 mandeep.dh 11695
    (3, TType.STRING, 'serialNumber', None, None, ), # 3
4283 anupam.sin 11696
    (4, TType.STRING, 'itemNumber', None, None, ), # 4
11697
    (5, TType.STRING, 'billed_by', None, None, ), # 5
11698
    (6, TType.I64, 'jacketNumber', None, None, ), # 6
11699
    (7, TType.I64, 'billingType', None, None, ), # 7
5110 mandeep.dh 11700
    (8, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 8
4763 rajveer 11701
    (9, TType.BOOL, 'authorize', None, None, ), # 9
1135 chandransh 11702
  )
11703
 
5110 mandeep.dh 11704
  def __init__(self, orderId=None, invoice_number=None, serialNumber=None, itemNumber=None, billed_by=None, jacketNumber=None, billingType=None, fulfilmentWarehouseId=None, authorize=None,):
3064 chandransh 11705
    self.orderId = orderId
11706
    self.invoice_number = invoice_number
4658 mandeep.dh 11707
    self.serialNumber = serialNumber
4283 anupam.sin 11708
    self.itemNumber = itemNumber
3064 chandransh 11709
    self.billed_by = billed_by
4264 rajveer 11710
    self.jacketNumber = jacketNumber
4283 anupam.sin 11711
    self.billingType = billingType
5110 mandeep.dh 11712
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
4763 rajveer 11713
    self.authorize = authorize
1135 chandransh 11714
 
11715
  def read(self, iprot):
11716
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11717
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11718
      return
11719
    iprot.readStructBegin()
11720
    while True:
11721
      (fname, ftype, fid) = iprot.readFieldBegin()
11722
      if ftype == TType.STOP:
11723
        break
11724
      if fid == 1:
11725
        if ftype == TType.I64:
3064 chandransh 11726
          self.orderId = iprot.readI64();
1135 chandransh 11727
        else:
11728
          iprot.skip(ftype)
11729
      elif fid == 2:
3064 chandransh 11730
        if ftype == TType.STRING:
11731
          self.invoice_number = iprot.readString();
1135 chandransh 11732
        else:
11733
          iprot.skip(ftype)
3064 chandransh 11734
      elif fid == 3:
4658 mandeep.dh 11735
        if ftype == TType.STRING:
11736
          self.serialNumber = iprot.readString();
3064 chandransh 11737
        else:
11738
          iprot.skip(ftype)
11739
      elif fid == 4:
11740
        if ftype == TType.STRING:
11741
          self.itemNumber = iprot.readString();
11742
        else:
11743
          iprot.skip(ftype)
11744
      elif fid == 5:
11745
        if ftype == TType.STRING:
4283 anupam.sin 11746
          self.billed_by = iprot.readString();
3064 chandransh 11747
        else:
11748
          iprot.skip(ftype)
11749
      elif fid == 6:
11750
        if ftype == TType.I64:
4283 anupam.sin 11751
          self.jacketNumber = iprot.readI64();
11752
        else:
11753
          iprot.skip(ftype)
11754
      elif fid == 7:
11755
        if ftype == TType.I64:
3064 chandransh 11756
          self.billingType = iprot.readI64();
11757
        else:
11758
          iprot.skip(ftype)
4283 anupam.sin 11759
      elif fid == 8:
11760
        if ftype == TType.I64:
5110 mandeep.dh 11761
          self.fulfilmentWarehouseId = iprot.readI64();
4283 anupam.sin 11762
        else:
11763
          iprot.skip(ftype)
4763 rajveer 11764
      elif fid == 9:
11765
        if ftype == TType.BOOL:
11766
          self.authorize = iprot.readBool();
11767
        else:
11768
          iprot.skip(ftype)
1246 chandransh 11769
      else:
11770
        iprot.skip(ftype)
11771
      iprot.readFieldEnd()
11772
    iprot.readStructEnd()
11773
 
11774
  def write(self, oprot):
11775
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11776
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11777
      return
4283 anupam.sin 11778
    oprot.writeStructBegin('addBillingDetails_args')
3431 rajveer 11779
    if self.orderId is not None:
3064 chandransh 11780
      oprot.writeFieldBegin('orderId', TType.I64, 1)
11781
      oprot.writeI64(self.orderId)
1246 chandransh 11782
      oprot.writeFieldEnd()
4283 anupam.sin 11783
    if self.invoice_number is not None:
11784
      oprot.writeFieldBegin('invoice_number', TType.STRING, 2)
11785
      oprot.writeString(self.invoice_number)
1246 chandransh 11786
      oprot.writeFieldEnd()
4658 mandeep.dh 11787
    if self.serialNumber is not None:
11788
      oprot.writeFieldBegin('serialNumber', TType.STRING, 3)
11789
      oprot.writeString(self.serialNumber)
3064 chandransh 11790
      oprot.writeFieldEnd()
3431 rajveer 11791
    if self.itemNumber is not None:
3064 chandransh 11792
      oprot.writeFieldBegin('itemNumber', TType.STRING, 4)
11793
      oprot.writeString(self.itemNumber)
11794
      oprot.writeFieldEnd()
4283 anupam.sin 11795
    if self.billed_by is not None:
11796
      oprot.writeFieldBegin('billed_by', TType.STRING, 5)
11797
      oprot.writeString(self.billed_by)
3064 chandransh 11798
      oprot.writeFieldEnd()
4283 anupam.sin 11799
    if self.jacketNumber is not None:
11800
      oprot.writeFieldBegin('jacketNumber', TType.I64, 6)
11801
      oprot.writeI64(self.jacketNumber)
11802
      oprot.writeFieldEnd()
3431 rajveer 11803
    if self.billingType is not None:
4283 anupam.sin 11804
      oprot.writeFieldBegin('billingType', TType.I64, 7)
3064 chandransh 11805
      oprot.writeI64(self.billingType)
11806
      oprot.writeFieldEnd()
5110 mandeep.dh 11807
    if self.fulfilmentWarehouseId is not None:
11808
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 8)
11809
      oprot.writeI64(self.fulfilmentWarehouseId)
4283 anupam.sin 11810
      oprot.writeFieldEnd()
4763 rajveer 11811
    if self.authorize is not None:
11812
      oprot.writeFieldBegin('authorize', TType.BOOL, 9)
11813
      oprot.writeBool(self.authorize)
11814
      oprot.writeFieldEnd()
1246 chandransh 11815
    oprot.writeFieldStop()
11816
    oprot.writeStructEnd()
11817
 
3431 rajveer 11818
  def validate(self):
11819
    return
11820
 
11821
 
1246 chandransh 11822
  def __repr__(self):
11823
    L = ['%s=%r' % (key, value)
11824
      for key, value in self.__dict__.iteritems()]
11825
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11826
 
11827
  def __eq__(self, other):
11828
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11829
 
11830
  def __ne__(self, other):
11831
    return not (self == other)
11832
 
4283 anupam.sin 11833
class addBillingDetails_result:
1246 chandransh 11834
  """
11835
  Attributes:
3064 chandransh 11836
   - success
1246 chandransh 11837
   - ex
11838
  """
11839
 
11840
  thrift_spec = (
3064 chandransh 11841
    (0, TType.BOOL, 'success', None, None, ), # 0
1246 chandransh 11842
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
11843
  )
11844
 
3064 chandransh 11845
  def __init__(self, success=None, ex=None,):
11846
    self.success = success
1246 chandransh 11847
    self.ex = ex
11848
 
11849
  def read(self, iprot):
11850
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11851
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11852
      return
11853
    iprot.readStructBegin()
11854
    while True:
11855
      (fname, ftype, fid) = iprot.readFieldBegin()
11856
      if ftype == TType.STOP:
11857
        break
3064 chandransh 11858
      if fid == 0:
11859
        if ftype == TType.BOOL:
11860
          self.success = iprot.readBool();
11861
        else:
11862
          iprot.skip(ftype)
11863
      elif fid == 1:
1246 chandransh 11864
        if ftype == TType.STRUCT:
11865
          self.ex = TransactionServiceException()
11866
          self.ex.read(iprot)
11867
        else:
11868
          iprot.skip(ftype)
11869
      else:
11870
        iprot.skip(ftype)
11871
      iprot.readFieldEnd()
11872
    iprot.readStructEnd()
11873
 
11874
  def write(self, oprot):
11875
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11876
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11877
      return
4283 anupam.sin 11878
    oprot.writeStructBegin('addBillingDetails_result')
3431 rajveer 11879
    if self.success is not None:
3064 chandransh 11880
      oprot.writeFieldBegin('success', TType.BOOL, 0)
11881
      oprot.writeBool(self.success)
11882
      oprot.writeFieldEnd()
3431 rajveer 11883
    if self.ex is not None:
1246 chandransh 11884
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
11885
      self.ex.write(oprot)
11886
      oprot.writeFieldEnd()
11887
    oprot.writeFieldStop()
11888
    oprot.writeStructEnd()
11889
 
3431 rajveer 11890
  def validate(self):
11891
    return
11892
 
11893
 
1246 chandransh 11894
  def __repr__(self):
11895
    L = ['%s=%r' % (key, value)
11896
      for key, value in self.__dict__.iteritems()]
11897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11898
 
11899
  def __eq__(self, other):
11900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11901
 
11902
  def __ne__(self, other):
11903
    return not (self == other)
11904
 
4579 rajveer 11905
class addInvoiceNumber_args:
11906
  """
11907
  Attributes:
11908
   - orderId
11909
   - invoiceNumber
4763 rajveer 11910
   - color
4579 rajveer 11911
  """
11912
 
11913
  thrift_spec = (
11914
    None, # 0
11915
    (1, TType.I64, 'orderId', None, None, ), # 1
11916
    (2, TType.STRING, 'invoiceNumber', None, None, ), # 2
4763 rajveer 11917
    (3, TType.STRING, 'color', None, None, ), # 3
4579 rajveer 11918
  )
11919
 
4763 rajveer 11920
  def __init__(self, orderId=None, invoiceNumber=None, color=None,):
4579 rajveer 11921
    self.orderId = orderId
11922
    self.invoiceNumber = invoiceNumber
4763 rajveer 11923
    self.color = color
4579 rajveer 11924
 
11925
  def read(self, iprot):
11926
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
11927
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
11928
      return
11929
    iprot.readStructBegin()
11930
    while True:
11931
      (fname, ftype, fid) = iprot.readFieldBegin()
11932
      if ftype == TType.STOP:
11933
        break
11934
      if fid == 1:
11935
        if ftype == TType.I64:
11936
          self.orderId = iprot.readI64();
11937
        else:
11938
          iprot.skip(ftype)
11939
      elif fid == 2:
11940
        if ftype == TType.STRING:
11941
          self.invoiceNumber = iprot.readString();
11942
        else:
11943
          iprot.skip(ftype)
4763 rajveer 11944
      elif fid == 3:
11945
        if ftype == TType.STRING:
11946
          self.color = iprot.readString();
11947
        else:
11948
          iprot.skip(ftype)
4579 rajveer 11949
      else:
11950
        iprot.skip(ftype)
11951
      iprot.readFieldEnd()
11952
    iprot.readStructEnd()
11953
 
11954
  def write(self, oprot):
11955
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
11956
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
11957
      return
11958
    oprot.writeStructBegin('addInvoiceNumber_args')
11959
    if self.orderId is not None:
11960
      oprot.writeFieldBegin('orderId', TType.I64, 1)
11961
      oprot.writeI64(self.orderId)
11962
      oprot.writeFieldEnd()
11963
    if self.invoiceNumber is not None:
11964
      oprot.writeFieldBegin('invoiceNumber', TType.STRING, 2)
11965
      oprot.writeString(self.invoiceNumber)
11966
      oprot.writeFieldEnd()
4763 rajveer 11967
    if self.color is not None:
11968
      oprot.writeFieldBegin('color', TType.STRING, 3)
11969
      oprot.writeString(self.color)
11970
      oprot.writeFieldEnd()
4579 rajveer 11971
    oprot.writeFieldStop()
11972
    oprot.writeStructEnd()
11973
 
11974
  def validate(self):
11975
    return
11976
 
11977
 
11978
  def __repr__(self):
11979
    L = ['%s=%r' % (key, value)
11980
      for key, value in self.__dict__.iteritems()]
11981
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
11982
 
11983
  def __eq__(self, other):
11984
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
11985
 
11986
  def __ne__(self, other):
11987
    return not (self == other)
11988
 
11989
class addInvoiceNumber_result:
11990
  """
11991
  Attributes:
11992
   - ex
11993
  """
11994
 
11995
  thrift_spec = (
11996
    None, # 0
11997
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
11998
  )
11999
 
12000
  def __init__(self, ex=None,):
12001
    self.ex = ex
12002
 
12003
  def read(self, iprot):
12004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12006
      return
12007
    iprot.readStructBegin()
12008
    while True:
12009
      (fname, ftype, fid) = iprot.readFieldBegin()
12010
      if ftype == TType.STOP:
12011
        break
12012
      if fid == 1:
12013
        if ftype == TType.STRUCT:
12014
          self.ex = TransactionServiceException()
12015
          self.ex.read(iprot)
12016
        else:
12017
          iprot.skip(ftype)
12018
      else:
12019
        iprot.skip(ftype)
12020
      iprot.readFieldEnd()
12021
    iprot.readStructEnd()
12022
 
12023
  def write(self, oprot):
12024
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12025
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12026
      return
12027
    oprot.writeStructBegin('addInvoiceNumber_result')
12028
    if self.ex is not None:
12029
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12030
      self.ex.write(oprot)
12031
      oprot.writeFieldEnd()
12032
    oprot.writeFieldStop()
12033
    oprot.writeStructEnd()
12034
 
12035
  def validate(self):
12036
    return
12037
 
12038
 
12039
  def __repr__(self):
12040
    L = ['%s=%r' % (key, value)
12041
      for key, value in self.__dict__.iteritems()]
12042
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12043
 
12044
  def __eq__(self, other):
12045
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12046
 
12047
  def __ne__(self, other):
12048
    return not (self == other)
12049
 
4910 phani.kuma 12050
class markOrdersAsShippedFromWarehouse_args:
1408 ankur.sing 12051
  """
12052
  Attributes:
3064 chandransh 12053
   - warehouseId
1408 ankur.sing 12054
   - providerId
3064 chandransh 12055
   - cod
4910 phani.kuma 12056
   - orderIds
1408 ankur.sing 12057
  """
12058
 
12059
  thrift_spec = (
12060
    None, # 0
3064 chandransh 12061
    (1, TType.I64, 'warehouseId', None, None, ), # 1
12062
    (2, TType.I64, 'providerId', None, None, ), # 2
12063
    (3, TType.BOOL, 'cod', None, None, ), # 3
4910 phani.kuma 12064
    (4, TType.LIST, 'orderIds', (TType.I64,None), None, ), # 4
1408 ankur.sing 12065
  )
12066
 
4910 phani.kuma 12067
  def __init__(self, warehouseId=None, providerId=None, cod=None, orderIds=None,):
3064 chandransh 12068
    self.warehouseId = warehouseId
1408 ankur.sing 12069
    self.providerId = providerId
3064 chandransh 12070
    self.cod = cod
4910 phani.kuma 12071
    self.orderIds = orderIds
1408 ankur.sing 12072
 
12073
  def read(self, iprot):
12074
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12075
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12076
      return
12077
    iprot.readStructBegin()
12078
    while True:
12079
      (fname, ftype, fid) = iprot.readFieldBegin()
12080
      if ftype == TType.STOP:
12081
        break
12082
      if fid == 1:
12083
        if ftype == TType.I64:
3064 chandransh 12084
          self.warehouseId = iprot.readI64();
1408 ankur.sing 12085
        else:
12086
          iprot.skip(ftype)
12087
      elif fid == 2:
12088
        if ftype == TType.I64:
3064 chandransh 12089
          self.providerId = iprot.readI64();
1408 ankur.sing 12090
        else:
12091
          iprot.skip(ftype)
3064 chandransh 12092
      elif fid == 3:
12093
        if ftype == TType.BOOL:
12094
          self.cod = iprot.readBool();
12095
        else:
12096
          iprot.skip(ftype)
4910 phani.kuma 12097
      elif fid == 4:
12098
        if ftype == TType.LIST:
12099
          self.orderIds = []
5386 phani.kuma 12100
          (_etype227, _size224) = iprot.readListBegin()
12101
          for _i228 in xrange(_size224):
12102
            _elem229 = iprot.readI64();
12103
            self.orderIds.append(_elem229)
4910 phani.kuma 12104
          iprot.readListEnd()
12105
        else:
12106
          iprot.skip(ftype)
1408 ankur.sing 12107
      else:
12108
        iprot.skip(ftype)
12109
      iprot.readFieldEnd()
12110
    iprot.readStructEnd()
12111
 
12112
  def write(self, oprot):
12113
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12114
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12115
      return
4910 phani.kuma 12116
    oprot.writeStructBegin('markOrdersAsShippedFromWarehouse_args')
3431 rajveer 12117
    if self.warehouseId is not None:
3064 chandransh 12118
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
12119
      oprot.writeI64(self.warehouseId)
12120
      oprot.writeFieldEnd()
3431 rajveer 12121
    if self.providerId is not None:
3064 chandransh 12122
      oprot.writeFieldBegin('providerId', TType.I64, 2)
1408 ankur.sing 12123
      oprot.writeI64(self.providerId)
12124
      oprot.writeFieldEnd()
3431 rajveer 12125
    if self.cod is not None:
3064 chandransh 12126
      oprot.writeFieldBegin('cod', TType.BOOL, 3)
12127
      oprot.writeBool(self.cod)
1408 ankur.sing 12128
      oprot.writeFieldEnd()
4910 phani.kuma 12129
    if self.orderIds is not None:
12130
      oprot.writeFieldBegin('orderIds', TType.LIST, 4)
12131
      oprot.writeListBegin(TType.I64, len(self.orderIds))
5386 phani.kuma 12132
      for iter230 in self.orderIds:
12133
        oprot.writeI64(iter230)
4910 phani.kuma 12134
      oprot.writeListEnd()
12135
      oprot.writeFieldEnd()
1408 ankur.sing 12136
    oprot.writeFieldStop()
12137
    oprot.writeStructEnd()
12138
 
3431 rajveer 12139
  def validate(self):
12140
    return
12141
 
12142
 
1408 ankur.sing 12143
  def __repr__(self):
12144
    L = ['%s=%r' % (key, value)
12145
      for key, value in self.__dict__.iteritems()]
12146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12147
 
12148
  def __eq__(self, other):
12149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12150
 
12151
  def __ne__(self, other):
12152
    return not (self == other)
12153
 
4910 phani.kuma 12154
class markOrdersAsShippedFromWarehouse_result:
1408 ankur.sing 12155
  """
12156
  Attributes:
12157
   - success
3064 chandransh 12158
   - ex
1408 ankur.sing 12159
  """
12160
 
12161
  thrift_spec = (
3064 chandransh 12162
    (0, TType.BOOL, 'success', None, None, ), # 0
12163
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
1408 ankur.sing 12164
  )
12165
 
3064 chandransh 12166
  def __init__(self, success=None, ex=None,):
1408 ankur.sing 12167
    self.success = success
3064 chandransh 12168
    self.ex = ex
1408 ankur.sing 12169
 
12170
  def read(self, iprot):
12171
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12172
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12173
      return
12174
    iprot.readStructBegin()
12175
    while True:
12176
      (fname, ftype, fid) = iprot.readFieldBegin()
12177
      if ftype == TType.STOP:
12178
        break
12179
      if fid == 0:
3064 chandransh 12180
        if ftype == TType.BOOL:
12181
          self.success = iprot.readBool();
1408 ankur.sing 12182
        else:
12183
          iprot.skip(ftype)
3064 chandransh 12184
      elif fid == 1:
12185
        if ftype == TType.STRUCT:
12186
          self.ex = TransactionServiceException()
12187
          self.ex.read(iprot)
12188
        else:
12189
          iprot.skip(ftype)
1408 ankur.sing 12190
      else:
12191
        iprot.skip(ftype)
12192
      iprot.readFieldEnd()
12193
    iprot.readStructEnd()
12194
 
12195
  def write(self, oprot):
12196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12198
      return
4910 phani.kuma 12199
    oprot.writeStructBegin('markOrdersAsShippedFromWarehouse_result')
3431 rajveer 12200
    if self.success is not None:
3064 chandransh 12201
      oprot.writeFieldBegin('success', TType.BOOL, 0)
12202
      oprot.writeBool(self.success)
1408 ankur.sing 12203
      oprot.writeFieldEnd()
3431 rajveer 12204
    if self.ex is not None:
3064 chandransh 12205
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12206
      self.ex.write(oprot)
12207
      oprot.writeFieldEnd()
1408 ankur.sing 12208
    oprot.writeFieldStop()
12209
    oprot.writeStructEnd()
12210
 
3431 rajveer 12211
  def validate(self):
12212
    return
12213
 
12214
 
1408 ankur.sing 12215
  def __repr__(self):
12216
    L = ['%s=%r' % (key, value)
12217
      for key, value in self.__dict__.iteritems()]
12218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12219
 
12220
  def __eq__(self, other):
12221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12222
 
12223
  def __ne__(self, other):
12224
    return not (self == other)
12225
 
4910 phani.kuma 12226
class markOrdersAsPickedUp_args:
4410 rajveer 12227
  """
12228
  Attributes:
12229
   - providerId
4910 phani.kuma 12230
   - pickupDetails
4410 rajveer 12231
  """
12232
 
12233
  thrift_spec = (
12234
    None, # 0
4910 phani.kuma 12235
    (1, TType.I64, 'providerId', None, None, ), # 1
12236
    (2, TType.MAP, 'pickupDetails', (TType.STRING,None,TType.STRING,None), None, ), # 2
4410 rajveer 12237
  )
12238
 
4910 phani.kuma 12239
  def __init__(self, providerId=None, pickupDetails=None,):
4410 rajveer 12240
    self.providerId = providerId
4910 phani.kuma 12241
    self.pickupDetails = pickupDetails
4410 rajveer 12242
 
12243
  def read(self, iprot):
12244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12246
      return
12247
    iprot.readStructBegin()
12248
    while True:
12249
      (fname, ftype, fid) = iprot.readFieldBegin()
12250
      if ftype == TType.STOP:
12251
        break
12252
      if fid == 1:
12253
        if ftype == TType.I64:
4910 phani.kuma 12254
          self.providerId = iprot.readI64();
4410 rajveer 12255
        else:
12256
          iprot.skip(ftype)
12257
      elif fid == 2:
4910 phani.kuma 12258
        if ftype == TType.MAP:
12259
          self.pickupDetails = {}
5386 phani.kuma 12260
          (_ktype232, _vtype233, _size231 ) = iprot.readMapBegin() 
12261
          for _i235 in xrange(_size231):
12262
            _key236 = iprot.readString();
12263
            _val237 = iprot.readString();
12264
            self.pickupDetails[_key236] = _val237
4910 phani.kuma 12265
          iprot.readMapEnd()
4410 rajveer 12266
        else:
12267
          iprot.skip(ftype)
12268
      else:
12269
        iprot.skip(ftype)
12270
      iprot.readFieldEnd()
12271
    iprot.readStructEnd()
12272
 
12273
  def write(self, oprot):
12274
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12275
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12276
      return
4910 phani.kuma 12277
    oprot.writeStructBegin('markOrdersAsPickedUp_args')
4410 rajveer 12278
    if self.providerId is not None:
4910 phani.kuma 12279
      oprot.writeFieldBegin('providerId', TType.I64, 1)
4410 rajveer 12280
      oprot.writeI64(self.providerId)
12281
      oprot.writeFieldEnd()
4910 phani.kuma 12282
    if self.pickupDetails is not None:
12283
      oprot.writeFieldBegin('pickupDetails', TType.MAP, 2)
12284
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.pickupDetails))
5386 phani.kuma 12285
      for kiter238,viter239 in self.pickupDetails.items():
12286
        oprot.writeString(kiter238)
12287
        oprot.writeString(viter239)
4910 phani.kuma 12288
      oprot.writeMapEnd()
4410 rajveer 12289
      oprot.writeFieldEnd()
12290
    oprot.writeFieldStop()
12291
    oprot.writeStructEnd()
12292
 
12293
  def validate(self):
12294
    return
12295
 
12296
 
12297
  def __repr__(self):
12298
    L = ['%s=%r' % (key, value)
12299
      for key, value in self.__dict__.iteritems()]
12300
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12301
 
12302
  def __eq__(self, other):
12303
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12304
 
12305
  def __ne__(self, other):
12306
    return not (self == other)
12307
 
4910 phani.kuma 12308
class markOrdersAsPickedUp_result:
4410 rajveer 12309
  """
12310
  Attributes:
12311
   - ex
12312
  """
12313
 
12314
  thrift_spec = (
4910 phani.kuma 12315
    None, # 0
4410 rajveer 12316
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
12317
  )
12318
 
4910 phani.kuma 12319
  def __init__(self, ex=None,):
4410 rajveer 12320
    self.ex = ex
12321
 
12322
  def read(self, iprot):
12323
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12324
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12325
      return
12326
    iprot.readStructBegin()
12327
    while True:
12328
      (fname, ftype, fid) = iprot.readFieldBegin()
12329
      if ftype == TType.STOP:
12330
        break
4910 phani.kuma 12331
      if fid == 1:
4410 rajveer 12332
        if ftype == TType.STRUCT:
12333
          self.ex = TransactionServiceException()
12334
          self.ex.read(iprot)
12335
        else:
12336
          iprot.skip(ftype)
12337
      else:
12338
        iprot.skip(ftype)
12339
      iprot.readFieldEnd()
12340
    iprot.readStructEnd()
12341
 
12342
  def write(self, oprot):
12343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12345
      return
4910 phani.kuma 12346
    oprot.writeStructBegin('markOrdersAsPickedUp_result')
4410 rajveer 12347
    if self.ex is not None:
12348
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12349
      self.ex.write(oprot)
12350
      oprot.writeFieldEnd()
12351
    oprot.writeFieldStop()
12352
    oprot.writeStructEnd()
12353
 
12354
  def validate(self):
12355
    return
12356
 
12357
 
12358
  def __repr__(self):
12359
    L = ['%s=%r' % (key, value)
12360
      for key, value in self.__dict__.iteritems()]
12361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12362
 
12363
  def __eq__(self, other):
12364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12365
 
12366
  def __ne__(self, other):
12367
    return not (self == other)
12368
 
4910 phani.kuma 12369
class getOrdersNotPickedUp_args:
304 ashish 12370
  """
12371
  Attributes:
3064 chandransh 12372
   - providerId
304 ashish 12373
  """
94 ashish 12374
 
304 ashish 12375
  thrift_spec = (
12376
    None, # 0
3064 chandransh 12377
    (1, TType.I64, 'providerId', None, None, ), # 1
304 ashish 12378
  )
12379
 
4910 phani.kuma 12380
  def __init__(self, providerId=None,):
3064 chandransh 12381
    self.providerId = providerId
304 ashish 12382
 
12383
  def read(self, iprot):
12384
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12385
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12386
      return
12387
    iprot.readStructBegin()
12388
    while True:
12389
      (fname, ftype, fid) = iprot.readFieldBegin()
12390
      if ftype == TType.STOP:
12391
        break
12392
      if fid == 1:
12393
        if ftype == TType.I64:
3064 chandransh 12394
          self.providerId = iprot.readI64();
304 ashish 12395
        else:
12396
          iprot.skip(ftype)
12397
      else:
12398
        iprot.skip(ftype)
12399
      iprot.readFieldEnd()
12400
    iprot.readStructEnd()
12401
 
12402
  def write(self, oprot):
12403
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12404
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12405
      return
4910 phani.kuma 12406
    oprot.writeStructBegin('getOrdersNotPickedUp_args')
3431 rajveer 12407
    if self.providerId is not None:
3064 chandransh 12408
      oprot.writeFieldBegin('providerId', TType.I64, 1)
12409
      oprot.writeI64(self.providerId)
304 ashish 12410
      oprot.writeFieldEnd()
12411
    oprot.writeFieldStop()
12412
    oprot.writeStructEnd()
12413
 
3431 rajveer 12414
  def validate(self):
12415
    return
12416
 
12417
 
304 ashish 12418
  def __repr__(self):
12419
    L = ['%s=%r' % (key, value)
12420
      for key, value in self.__dict__.iteritems()]
12421
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12422
 
12423
  def __eq__(self, other):
12424
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12425
 
12426
  def __ne__(self, other):
12427
    return not (self == other)
12428
 
4910 phani.kuma 12429
class getOrdersNotPickedUp_result:
304 ashish 12430
  """
12431
  Attributes:
12432
   - success
12433
  """
12434
 
12435
  thrift_spec = (
3064 chandransh 12436
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
304 ashish 12437
  )
12438
 
4910 phani.kuma 12439
  def __init__(self, success=None,):
304 ashish 12440
    self.success = success
12441
 
12442
  def read(self, iprot):
12443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12445
      return
12446
    iprot.readStructBegin()
12447
    while True:
12448
      (fname, ftype, fid) = iprot.readFieldBegin()
12449
      if ftype == TType.STOP:
12450
        break
12451
      if fid == 0:
12452
        if ftype == TType.LIST:
12453
          self.success = []
5386 phani.kuma 12454
          (_etype243, _size240) = iprot.readListBegin()
12455
          for _i244 in xrange(_size240):
12456
            _elem245 = Order()
12457
            _elem245.read(iprot)
12458
            self.success.append(_elem245)
304 ashish 12459
          iprot.readListEnd()
12460
        else:
12461
          iprot.skip(ftype)
12462
      else:
12463
        iprot.skip(ftype)
12464
      iprot.readFieldEnd()
12465
    iprot.readStructEnd()
12466
 
12467
  def write(self, oprot):
12468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12470
      return
4910 phani.kuma 12471
    oprot.writeStructBegin('getOrdersNotPickedUp_result')
3431 rajveer 12472
    if self.success is not None:
304 ashish 12473
      oprot.writeFieldBegin('success', TType.LIST, 0)
12474
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 12475
      for iter246 in self.success:
12476
        iter246.write(oprot)
304 ashish 12477
      oprot.writeListEnd()
12478
      oprot.writeFieldEnd()
12479
    oprot.writeFieldStop()
12480
    oprot.writeStructEnd()
12481
 
3431 rajveer 12482
  def validate(self):
12483
    return
12484
 
12485
 
304 ashish 12486
  def __repr__(self):
12487
    L = ['%s=%r' % (key, value)
12488
      for key, value in self.__dict__.iteritems()]
12489
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12490
 
12491
  def __eq__(self, other):
12492
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12493
 
12494
  def __ne__(self, other):
12495
    return not (self == other)
12496
 
3064 chandransh 12497
class markOrdersAsDelivered_args:
304 ashish 12498
  """
12499
  Attributes:
3064 chandransh 12500
   - providerId
12501
   - deliveredOrders
304 ashish 12502
  """
12503
 
12504
  thrift_spec = (
12505
    None, # 0
3064 chandransh 12506
    (1, TType.I64, 'providerId', None, None, ), # 1
12507
    (2, TType.MAP, 'deliveredOrders', (TType.STRING,None,TType.STRING,None), None, ), # 2
304 ashish 12508
  )
12509
 
3064 chandransh 12510
  def __init__(self, providerId=None, deliveredOrders=None,):
12511
    self.providerId = providerId
12512
    self.deliveredOrders = deliveredOrders
304 ashish 12513
 
12514
  def read(self, iprot):
12515
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12516
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12517
      return
12518
    iprot.readStructBegin()
12519
    while True:
12520
      (fname, ftype, fid) = iprot.readFieldBegin()
12521
      if ftype == TType.STOP:
12522
        break
12523
      if fid == 1:
12524
        if ftype == TType.I64:
3064 chandransh 12525
          self.providerId = iprot.readI64();
304 ashish 12526
        else:
12527
          iprot.skip(ftype)
12528
      elif fid == 2:
3064 chandransh 12529
        if ftype == TType.MAP:
12530
          self.deliveredOrders = {}
5386 phani.kuma 12531
          (_ktype248, _vtype249, _size247 ) = iprot.readMapBegin() 
12532
          for _i251 in xrange(_size247):
12533
            _key252 = iprot.readString();
12534
            _val253 = iprot.readString();
12535
            self.deliveredOrders[_key252] = _val253
3064 chandransh 12536
          iprot.readMapEnd()
304 ashish 12537
        else:
12538
          iprot.skip(ftype)
12539
      else:
12540
        iprot.skip(ftype)
12541
      iprot.readFieldEnd()
12542
    iprot.readStructEnd()
12543
 
12544
  def write(self, oprot):
12545
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12546
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12547
      return
3064 chandransh 12548
    oprot.writeStructBegin('markOrdersAsDelivered_args')
3431 rajveer 12549
    if self.providerId is not None:
3064 chandransh 12550
      oprot.writeFieldBegin('providerId', TType.I64, 1)
12551
      oprot.writeI64(self.providerId)
304 ashish 12552
      oprot.writeFieldEnd()
3431 rajveer 12553
    if self.deliveredOrders is not None:
3064 chandransh 12554
      oprot.writeFieldBegin('deliveredOrders', TType.MAP, 2)
12555
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.deliveredOrders))
5386 phani.kuma 12556
      for kiter254,viter255 in self.deliveredOrders.items():
12557
        oprot.writeString(kiter254)
12558
        oprot.writeString(viter255)
3064 chandransh 12559
      oprot.writeMapEnd()
304 ashish 12560
      oprot.writeFieldEnd()
12561
    oprot.writeFieldStop()
12562
    oprot.writeStructEnd()
12563
 
3431 rajveer 12564
  def validate(self):
12565
    return
12566
 
12567
 
304 ashish 12568
  def __repr__(self):
12569
    L = ['%s=%r' % (key, value)
12570
      for key, value in self.__dict__.iteritems()]
12571
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12572
 
12573
  def __eq__(self, other):
12574
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12575
 
12576
  def __ne__(self, other):
12577
    return not (self == other)
12578
 
3064 chandransh 12579
class markOrdersAsDelivered_result:
12580
  """
12581
  Attributes:
12582
   - ex
12583
  """
304 ashish 12584
 
12585
  thrift_spec = (
3064 chandransh 12586
    None, # 0
12587
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
304 ashish 12588
  )
12589
 
3064 chandransh 12590
  def __init__(self, ex=None,):
12591
    self.ex = ex
304 ashish 12592
 
1596 ankur.sing 12593
  def read(self, iprot):
12594
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12595
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12596
      return
12597
    iprot.readStructBegin()
12598
    while True:
12599
      (fname, ftype, fid) = iprot.readFieldBegin()
12600
      if ftype == TType.STOP:
12601
        break
3064 chandransh 12602
      if fid == 1:
12603
        if ftype == TType.STRUCT:
12604
          self.ex = TransactionServiceException()
12605
          self.ex.read(iprot)
12606
        else:
12607
          iprot.skip(ftype)
1596 ankur.sing 12608
      else:
12609
        iprot.skip(ftype)
12610
      iprot.readFieldEnd()
12611
    iprot.readStructEnd()
12612
 
12613
  def write(self, oprot):
12614
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12615
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12616
      return
3064 chandransh 12617
    oprot.writeStructBegin('markOrdersAsDelivered_result')
3431 rajveer 12618
    if self.ex is not None:
3064 chandransh 12619
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12620
      self.ex.write(oprot)
12621
      oprot.writeFieldEnd()
1596 ankur.sing 12622
    oprot.writeFieldStop()
12623
    oprot.writeStructEnd()
12624
 
3431 rajveer 12625
  def validate(self):
12626
    return
12627
 
12628
 
1596 ankur.sing 12629
  def __repr__(self):
12630
    L = ['%s=%r' % (key, value)
12631
      for key, value in self.__dict__.iteritems()]
12632
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12633
 
12634
  def __eq__(self, other):
12635
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12636
 
12637
  def __ne__(self, other):
12638
    return not (self == other)
12639
 
4910 phani.kuma 12640
class markAsRTOrders_args:
1596 ankur.sing 12641
  """
12642
  Attributes:
3064 chandransh 12643
   - providerId
12644
   - returnedOrders
1596 ankur.sing 12645
  """
12646
 
12647
  thrift_spec = (
3064 chandransh 12648
    None, # 0
12649
    (1, TType.I64, 'providerId', None, None, ), # 1
12650
    (2, TType.MAP, 'returnedOrders', (TType.STRING,None,TType.STRING,None), None, ), # 2
1596 ankur.sing 12651
  )
12652
 
3064 chandransh 12653
  def __init__(self, providerId=None, returnedOrders=None,):
12654
    self.providerId = providerId
12655
    self.returnedOrders = returnedOrders
1596 ankur.sing 12656
 
12657
  def read(self, iprot):
12658
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12659
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12660
      return
12661
    iprot.readStructBegin()
12662
    while True:
12663
      (fname, ftype, fid) = iprot.readFieldBegin()
12664
      if ftype == TType.STOP:
12665
        break
3064 chandransh 12666
      if fid == 1:
1596 ankur.sing 12667
        if ftype == TType.I64:
3064 chandransh 12668
          self.providerId = iprot.readI64();
1596 ankur.sing 12669
        else:
12670
          iprot.skip(ftype)
3064 chandransh 12671
      elif fid == 2:
12672
        if ftype == TType.MAP:
12673
          self.returnedOrders = {}
5386 phani.kuma 12674
          (_ktype257, _vtype258, _size256 ) = iprot.readMapBegin() 
12675
          for _i260 in xrange(_size256):
12676
            _key261 = iprot.readString();
12677
            _val262 = iprot.readString();
12678
            self.returnedOrders[_key261] = _val262
3064 chandransh 12679
          iprot.readMapEnd()
12680
        else:
12681
          iprot.skip(ftype)
1596 ankur.sing 12682
      else:
12683
        iprot.skip(ftype)
12684
      iprot.readFieldEnd()
12685
    iprot.readStructEnd()
12686
 
12687
  def write(self, oprot):
12688
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12689
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12690
      return
4910 phani.kuma 12691
    oprot.writeStructBegin('markAsRTOrders_args')
3431 rajveer 12692
    if self.providerId is not None:
3064 chandransh 12693
      oprot.writeFieldBegin('providerId', TType.I64, 1)
12694
      oprot.writeI64(self.providerId)
1596 ankur.sing 12695
      oprot.writeFieldEnd()
3431 rajveer 12696
    if self.returnedOrders is not None:
3064 chandransh 12697
      oprot.writeFieldBegin('returnedOrders', TType.MAP, 2)
12698
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.returnedOrders))
5386 phani.kuma 12699
      for kiter263,viter264 in self.returnedOrders.items():
12700
        oprot.writeString(kiter263)
12701
        oprot.writeString(viter264)
3064 chandransh 12702
      oprot.writeMapEnd()
12703
      oprot.writeFieldEnd()
1596 ankur.sing 12704
    oprot.writeFieldStop()
12705
    oprot.writeStructEnd()
12706
 
3431 rajveer 12707
  def validate(self):
12708
    return
12709
 
12710
 
1596 ankur.sing 12711
  def __repr__(self):
12712
    L = ['%s=%r' % (key, value)
12713
      for key, value in self.__dict__.iteritems()]
12714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12715
 
12716
  def __eq__(self, other):
12717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12718
 
12719
  def __ne__(self, other):
12720
    return not (self == other)
12721
 
4910 phani.kuma 12722
class markAsRTOrders_result:
3064 chandransh 12723
  """
12724
  Attributes:
12725
   - ex
12726
  """
1596 ankur.sing 12727
 
1627 ankur.sing 12728
  thrift_spec = (
3064 chandransh 12729
    None, # 0
12730
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
1627 ankur.sing 12731
  )
12732
 
3064 chandransh 12733
  def __init__(self, ex=None,):
12734
    self.ex = ex
12735
 
1627 ankur.sing 12736
  def read(self, iprot):
12737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12739
      return
12740
    iprot.readStructBegin()
12741
    while True:
12742
      (fname, ftype, fid) = iprot.readFieldBegin()
12743
      if ftype == TType.STOP:
12744
        break
3064 chandransh 12745
      if fid == 1:
12746
        if ftype == TType.STRUCT:
12747
          self.ex = TransactionServiceException()
12748
          self.ex.read(iprot)
12749
        else:
12750
          iprot.skip(ftype)
1627 ankur.sing 12751
      else:
12752
        iprot.skip(ftype)
12753
      iprot.readFieldEnd()
12754
    iprot.readStructEnd()
12755
 
12756
  def write(self, oprot):
12757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12759
      return
4910 phani.kuma 12760
    oprot.writeStructBegin('markAsRTOrders_result')
3431 rajveer 12761
    if self.ex is not None:
3064 chandransh 12762
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
12763
      self.ex.write(oprot)
12764
      oprot.writeFieldEnd()
1627 ankur.sing 12765
    oprot.writeFieldStop()
12766
    oprot.writeStructEnd()
12767
 
3431 rajveer 12768
  def validate(self):
12769
    return
12770
 
12771
 
1627 ankur.sing 12772
  def __repr__(self):
12773
    L = ['%s=%r' % (key, value)
12774
      for key, value in self.__dict__.iteritems()]
12775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12776
 
12777
  def __eq__(self, other):
12778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12779
 
12780
  def __ne__(self, other):
12781
    return not (self == other)
12782
 
4910 phani.kuma 12783
class getRTOrders_args:
12784
  """
12785
  Attributes:
12786
   - providerId
12787
  """
12788
 
12789
  thrift_spec = (
12790
    None, # 0
12791
    (1, TType.I64, 'providerId', None, None, ), # 1
12792
  )
12793
 
12794
  def __init__(self, providerId=None,):
12795
    self.providerId = providerId
12796
 
12797
  def read(self, iprot):
12798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12800
      return
12801
    iprot.readStructBegin()
12802
    while True:
12803
      (fname, ftype, fid) = iprot.readFieldBegin()
12804
      if ftype == TType.STOP:
12805
        break
12806
      if fid == 1:
12807
        if ftype == TType.I64:
12808
          self.providerId = iprot.readI64();
12809
        else:
12810
          iprot.skip(ftype)
12811
      else:
12812
        iprot.skip(ftype)
12813
      iprot.readFieldEnd()
12814
    iprot.readStructEnd()
12815
 
12816
  def write(self, oprot):
12817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12819
      return
12820
    oprot.writeStructBegin('getRTOrders_args')
12821
    if self.providerId is not None:
12822
      oprot.writeFieldBegin('providerId', TType.I64, 1)
12823
      oprot.writeI64(self.providerId)
12824
      oprot.writeFieldEnd()
12825
    oprot.writeFieldStop()
12826
    oprot.writeStructEnd()
12827
 
12828
  def validate(self):
12829
    return
12830
 
12831
 
12832
  def __repr__(self):
12833
    L = ['%s=%r' % (key, value)
12834
      for key, value in self.__dict__.iteritems()]
12835
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12836
 
12837
  def __eq__(self, other):
12838
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12839
 
12840
  def __ne__(self, other):
12841
    return not (self == other)
12842
 
12843
class getRTOrders_result:
12844
  """
12845
  Attributes:
12846
   - success
12847
  """
12848
 
12849
  thrift_spec = (
12850
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
12851
  )
12852
 
12853
  def __init__(self, success=None,):
12854
    self.success = success
12855
 
12856
  def read(self, iprot):
12857
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12858
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12859
      return
12860
    iprot.readStructBegin()
12861
    while True:
12862
      (fname, ftype, fid) = iprot.readFieldBegin()
12863
      if ftype == TType.STOP:
12864
        break
12865
      if fid == 0:
12866
        if ftype == TType.LIST:
12867
          self.success = []
5386 phani.kuma 12868
          (_etype268, _size265) = iprot.readListBegin()
12869
          for _i269 in xrange(_size265):
12870
            _elem270 = Order()
12871
            _elem270.read(iprot)
12872
            self.success.append(_elem270)
4910 phani.kuma 12873
          iprot.readListEnd()
12874
        else:
12875
          iprot.skip(ftype)
12876
      else:
12877
        iprot.skip(ftype)
12878
      iprot.readFieldEnd()
12879
    iprot.readStructEnd()
12880
 
12881
  def write(self, oprot):
12882
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12883
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12884
      return
12885
    oprot.writeStructBegin('getRTOrders_result')
12886
    if self.success is not None:
12887
      oprot.writeFieldBegin('success', TType.LIST, 0)
12888
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 12889
      for iter271 in self.success:
12890
        iter271.write(oprot)
4910 phani.kuma 12891
      oprot.writeListEnd()
12892
      oprot.writeFieldEnd()
12893
    oprot.writeFieldStop()
12894
    oprot.writeStructEnd()
12895
 
12896
  def validate(self):
12897
    return
12898
 
12899
 
12900
  def __repr__(self):
12901
    L = ['%s=%r' % (key, value)
12902
      for key, value in self.__dict__.iteritems()]
12903
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12904
 
12905
  def __eq__(self, other):
12906
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12907
 
12908
  def __ne__(self, other):
12909
    return not (self == other)
12910
 
3064 chandransh 12911
class updateNonDeliveryReason_args:
1627 ankur.sing 12912
  """
12913
  Attributes:
3064 chandransh 12914
   - providerId
12915
   - undeliveredOrders
1627 ankur.sing 12916
  """
12917
 
12918
  thrift_spec = (
3064 chandransh 12919
    None, # 0
12920
    (1, TType.I64, 'providerId', None, None, ), # 1
12921
    (2, TType.MAP, 'undeliveredOrders', (TType.STRING,None,TType.STRING,None), None, ), # 2
1627 ankur.sing 12922
  )
12923
 
3064 chandransh 12924
  def __init__(self, providerId=None, undeliveredOrders=None,):
12925
    self.providerId = providerId
12926
    self.undeliveredOrders = undeliveredOrders
1627 ankur.sing 12927
 
12928
  def read(self, iprot):
12929
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
12930
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
12931
      return
12932
    iprot.readStructBegin()
12933
    while True:
12934
      (fname, ftype, fid) = iprot.readFieldBegin()
12935
      if ftype == TType.STOP:
12936
        break
3064 chandransh 12937
      if fid == 1:
1627 ankur.sing 12938
        if ftype == TType.I64:
3064 chandransh 12939
          self.providerId = iprot.readI64();
1627 ankur.sing 12940
        else:
12941
          iprot.skip(ftype)
3064 chandransh 12942
      elif fid == 2:
12943
        if ftype == TType.MAP:
12944
          self.undeliveredOrders = {}
5386 phani.kuma 12945
          (_ktype273, _vtype274, _size272 ) = iprot.readMapBegin() 
12946
          for _i276 in xrange(_size272):
12947
            _key277 = iprot.readString();
12948
            _val278 = iprot.readString();
12949
            self.undeliveredOrders[_key277] = _val278
3064 chandransh 12950
          iprot.readMapEnd()
12951
        else:
12952
          iprot.skip(ftype)
1627 ankur.sing 12953
      else:
12954
        iprot.skip(ftype)
12955
      iprot.readFieldEnd()
12956
    iprot.readStructEnd()
12957
 
12958
  def write(self, oprot):
12959
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
12960
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
12961
      return
3064 chandransh 12962
    oprot.writeStructBegin('updateNonDeliveryReason_args')
3431 rajveer 12963
    if self.providerId is not None:
3064 chandransh 12964
      oprot.writeFieldBegin('providerId', TType.I64, 1)
12965
      oprot.writeI64(self.providerId)
1627 ankur.sing 12966
      oprot.writeFieldEnd()
3431 rajveer 12967
    if self.undeliveredOrders is not None:
3064 chandransh 12968
      oprot.writeFieldBegin('undeliveredOrders', TType.MAP, 2)
12969
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.undeliveredOrders))
5386 phani.kuma 12970
      for kiter279,viter280 in self.undeliveredOrders.items():
12971
        oprot.writeString(kiter279)
12972
        oprot.writeString(viter280)
3064 chandransh 12973
      oprot.writeMapEnd()
12974
      oprot.writeFieldEnd()
1627 ankur.sing 12975
    oprot.writeFieldStop()
12976
    oprot.writeStructEnd()
12977
 
3431 rajveer 12978
  def validate(self):
12979
    return
12980
 
12981
 
1627 ankur.sing 12982
  def __repr__(self):
12983
    L = ['%s=%r' % (key, value)
12984
      for key, value in self.__dict__.iteritems()]
12985
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
12986
 
12987
  def __eq__(self, other):
12988
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
12989
 
12990
  def __ne__(self, other):
12991
    return not (self == other)
12992
 
3064 chandransh 12993
class updateNonDeliveryReason_result:
1627 ankur.sing 12994
  """
12995
  Attributes:
3064 chandransh 12996
   - ex
1627 ankur.sing 12997
  """
12998
 
12999
  thrift_spec = (
4910 phani.kuma 13000
    None, # 0
3064 chandransh 13001
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
1627 ankur.sing 13002
  )
13003
 
4910 phani.kuma 13004
  def __init__(self, ex=None,):
3064 chandransh 13005
    self.ex = ex
1627 ankur.sing 13006
 
13007
  def read(self, iprot):
13008
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13009
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13010
      return
13011
    iprot.readStructBegin()
13012
    while True:
13013
      (fname, ftype, fid) = iprot.readFieldBegin()
13014
      if ftype == TType.STOP:
13015
        break
4910 phani.kuma 13016
      if fid == 1:
13017
        if ftype == TType.STRUCT:
13018
          self.ex = TransactionServiceException()
13019
          self.ex.read(iprot)
13020
        else:
13021
          iprot.skip(ftype)
13022
      else:
13023
        iprot.skip(ftype)
13024
      iprot.readFieldEnd()
13025
    iprot.readStructEnd()
13026
 
13027
  def write(self, oprot):
13028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13030
      return
13031
    oprot.writeStructBegin('updateNonDeliveryReason_result')
13032
    if self.ex is not None:
13033
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13034
      self.ex.write(oprot)
13035
      oprot.writeFieldEnd()
13036
    oprot.writeFieldStop()
13037
    oprot.writeStructEnd()
13038
 
13039
  def validate(self):
13040
    return
13041
 
13042
 
13043
  def __repr__(self):
13044
    L = ['%s=%r' % (key, value)
13045
      for key, value in self.__dict__.iteritems()]
13046
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13047
 
13048
  def __eq__(self, other):
13049
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13050
 
13051
  def __ne__(self, other):
13052
    return not (self == other)
13053
 
13054
class getNonDeliveredOrdersbyCourier_args:
13055
  """
13056
  Attributes:
13057
   - providerId
13058
  """
13059
 
13060
  thrift_spec = (
13061
    None, # 0
13062
    (1, TType.I64, 'providerId', None, None, ), # 1
13063
  )
13064
 
13065
  def __init__(self, providerId=None,):
13066
    self.providerId = providerId
13067
 
13068
  def read(self, iprot):
13069
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13070
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13071
      return
13072
    iprot.readStructBegin()
13073
    while True:
13074
      (fname, ftype, fid) = iprot.readFieldBegin()
13075
      if ftype == TType.STOP:
13076
        break
13077
      if fid == 1:
13078
        if ftype == TType.I64:
13079
          self.providerId = iprot.readI64();
13080
        else:
13081
          iprot.skip(ftype)
13082
      else:
13083
        iprot.skip(ftype)
13084
      iprot.readFieldEnd()
13085
    iprot.readStructEnd()
13086
 
13087
  def write(self, oprot):
13088
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13089
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13090
      return
13091
    oprot.writeStructBegin('getNonDeliveredOrdersbyCourier_args')
13092
    if self.providerId is not None:
13093
      oprot.writeFieldBegin('providerId', TType.I64, 1)
13094
      oprot.writeI64(self.providerId)
13095
      oprot.writeFieldEnd()
13096
    oprot.writeFieldStop()
13097
    oprot.writeStructEnd()
13098
 
13099
  def validate(self):
13100
    return
13101
 
13102
 
13103
  def __repr__(self):
13104
    L = ['%s=%r' % (key, value)
13105
      for key, value in self.__dict__.iteritems()]
13106
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13107
 
13108
  def __eq__(self, other):
13109
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13110
 
13111
  def __ne__(self, other):
13112
    return not (self == other)
13113
 
13114
class getNonDeliveredOrdersbyCourier_result:
13115
  """
13116
  Attributes:
13117
   - success
13118
  """
13119
 
13120
  thrift_spec = (
13121
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
13122
  )
13123
 
13124
  def __init__(self, success=None,):
13125
    self.success = success
13126
 
13127
  def read(self, iprot):
13128
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13129
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13130
      return
13131
    iprot.readStructBegin()
13132
    while True:
13133
      (fname, ftype, fid) = iprot.readFieldBegin()
13134
      if ftype == TType.STOP:
13135
        break
4581 phani.kuma 13136
      if fid == 0:
13137
        if ftype == TType.LIST:
13138
          self.success = []
5386 phani.kuma 13139
          (_etype284, _size281) = iprot.readListBegin()
13140
          for _i285 in xrange(_size281):
13141
            _elem286 = Order()
13142
            _elem286.read(iprot)
13143
            self.success.append(_elem286)
4581 phani.kuma 13144
          iprot.readListEnd()
13145
        else:
13146
          iprot.skip(ftype)
4910 phani.kuma 13147
      else:
13148
        iprot.skip(ftype)
13149
      iprot.readFieldEnd()
13150
    iprot.readStructEnd()
13151
 
13152
  def write(self, oprot):
13153
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13154
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13155
      return
13156
    oprot.writeStructBegin('getNonDeliveredOrdersbyCourier_result')
13157
    if self.success is not None:
13158
      oprot.writeFieldBegin('success', TType.LIST, 0)
13159
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 13160
      for iter287 in self.success:
13161
        iter287.write(oprot)
4910 phani.kuma 13162
      oprot.writeListEnd()
13163
      oprot.writeFieldEnd()
13164
    oprot.writeFieldStop()
13165
    oprot.writeStructEnd()
13166
 
13167
  def validate(self):
13168
    return
13169
 
13170
 
13171
  def __repr__(self):
13172
    L = ['%s=%r' % (key, value)
13173
      for key, value in self.__dict__.iteritems()]
13174
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13175
 
13176
  def __eq__(self, other):
13177
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13178
 
13179
  def __ne__(self, other):
13180
    return not (self == other)
13181
 
13182
class markOrdersAsLocalConnected_args:
13183
  """
13184
  Attributes:
13185
   - providerId
13186
   - local_connected_orders
13187
  """
13188
 
13189
  thrift_spec = (
13190
    None, # 0
13191
    (1, TType.I64, 'providerId', None, None, ), # 1
13192
    (2, TType.MAP, 'local_connected_orders', (TType.STRING,None,TType.STRING,None), None, ), # 2
13193
  )
13194
 
13195
  def __init__(self, providerId=None, local_connected_orders=None,):
13196
    self.providerId = providerId
13197
    self.local_connected_orders = local_connected_orders
13198
 
13199
  def read(self, iprot):
13200
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13201
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13202
      return
13203
    iprot.readStructBegin()
13204
    while True:
13205
      (fname, ftype, fid) = iprot.readFieldBegin()
13206
      if ftype == TType.STOP:
13207
        break
13208
      if fid == 1:
13209
        if ftype == TType.I64:
13210
          self.providerId = iprot.readI64();
13211
        else:
13212
          iprot.skip(ftype)
13213
      elif fid == 2:
13214
        if ftype == TType.MAP:
13215
          self.local_connected_orders = {}
5386 phani.kuma 13216
          (_ktype289, _vtype290, _size288 ) = iprot.readMapBegin() 
13217
          for _i292 in xrange(_size288):
13218
            _key293 = iprot.readString();
13219
            _val294 = iprot.readString();
13220
            self.local_connected_orders[_key293] = _val294
4910 phani.kuma 13221
          iprot.readMapEnd()
13222
        else:
13223
          iprot.skip(ftype)
13224
      else:
13225
        iprot.skip(ftype)
13226
      iprot.readFieldEnd()
13227
    iprot.readStructEnd()
13228
 
13229
  def write(self, oprot):
13230
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13231
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13232
      return
13233
    oprot.writeStructBegin('markOrdersAsLocalConnected_args')
13234
    if self.providerId is not None:
13235
      oprot.writeFieldBegin('providerId', TType.I64, 1)
13236
      oprot.writeI64(self.providerId)
13237
      oprot.writeFieldEnd()
13238
    if self.local_connected_orders is not None:
13239
      oprot.writeFieldBegin('local_connected_orders', TType.MAP, 2)
13240
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.local_connected_orders))
5386 phani.kuma 13241
      for kiter295,viter296 in self.local_connected_orders.items():
13242
        oprot.writeString(kiter295)
13243
        oprot.writeString(viter296)
4910 phani.kuma 13244
      oprot.writeMapEnd()
13245
      oprot.writeFieldEnd()
13246
    oprot.writeFieldStop()
13247
    oprot.writeStructEnd()
13248
 
13249
  def validate(self):
13250
    return
13251
 
13252
 
13253
  def __repr__(self):
13254
    L = ['%s=%r' % (key, value)
13255
      for key, value in self.__dict__.iteritems()]
13256
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13257
 
13258
  def __eq__(self, other):
13259
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13260
 
13261
  def __ne__(self, other):
13262
    return not (self == other)
13263
 
13264
class markOrdersAsLocalConnected_result:
13265
  """
13266
  Attributes:
13267
   - ex
13268
  """
13269
 
13270
  thrift_spec = (
13271
    None, # 0
13272
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
13273
  )
13274
 
13275
  def __init__(self, ex=None,):
13276
    self.ex = ex
13277
 
13278
  def read(self, iprot):
13279
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13280
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13281
      return
13282
    iprot.readStructBegin()
13283
    while True:
13284
      (fname, ftype, fid) = iprot.readFieldBegin()
13285
      if ftype == TType.STOP:
13286
        break
13287
      if fid == 1:
3064 chandransh 13288
        if ftype == TType.STRUCT:
13289
          self.ex = TransactionServiceException()
13290
          self.ex.read(iprot)
1627 ankur.sing 13291
        else:
13292
          iprot.skip(ftype)
13293
      else:
13294
        iprot.skip(ftype)
13295
      iprot.readFieldEnd()
13296
    iprot.readStructEnd()
13297
 
13298
  def write(self, oprot):
13299
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13300
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13301
      return
4910 phani.kuma 13302
    oprot.writeStructBegin('markOrdersAsLocalConnected_result')
13303
    if self.ex is not None:
13304
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13305
      self.ex.write(oprot)
13306
      oprot.writeFieldEnd()
13307
    oprot.writeFieldStop()
13308
    oprot.writeStructEnd()
13309
 
13310
  def validate(self):
13311
    return
13312
 
13313
 
13314
  def __repr__(self):
13315
    L = ['%s=%r' % (key, value)
13316
      for key, value in self.__dict__.iteritems()]
13317
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13318
 
13319
  def __eq__(self, other):
13320
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13321
 
13322
  def __ne__(self, other):
13323
    return not (self == other)
13324
 
13325
class getOrdersNotLocalConnected_args:
13326
  """
13327
  Attributes:
13328
   - providerId
13329
  """
13330
 
13331
  thrift_spec = (
13332
    None, # 0
13333
    (1, TType.I64, 'providerId', None, None, ), # 1
13334
  )
13335
 
13336
  def __init__(self, providerId=None,):
13337
    self.providerId = providerId
13338
 
13339
  def read(self, iprot):
13340
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13341
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13342
      return
13343
    iprot.readStructBegin()
13344
    while True:
13345
      (fname, ftype, fid) = iprot.readFieldBegin()
13346
      if ftype == TType.STOP:
13347
        break
13348
      if fid == 1:
13349
        if ftype == TType.I64:
13350
          self.providerId = iprot.readI64();
13351
        else:
13352
          iprot.skip(ftype)
13353
      else:
13354
        iprot.skip(ftype)
13355
      iprot.readFieldEnd()
13356
    iprot.readStructEnd()
13357
 
13358
  def write(self, oprot):
13359
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13360
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13361
      return
13362
    oprot.writeStructBegin('getOrdersNotLocalConnected_args')
13363
    if self.providerId is not None:
13364
      oprot.writeFieldBegin('providerId', TType.I64, 1)
13365
      oprot.writeI64(self.providerId)
13366
      oprot.writeFieldEnd()
13367
    oprot.writeFieldStop()
13368
    oprot.writeStructEnd()
13369
 
13370
  def validate(self):
13371
    return
13372
 
13373
 
13374
  def __repr__(self):
13375
    L = ['%s=%r' % (key, value)
13376
      for key, value in self.__dict__.iteritems()]
13377
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13378
 
13379
  def __eq__(self, other):
13380
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13381
 
13382
  def __ne__(self, other):
13383
    return not (self == other)
13384
 
13385
class getOrdersNotLocalConnected_result:
13386
  """
13387
  Attributes:
13388
   - success
13389
  """
13390
 
13391
  thrift_spec = (
13392
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
13393
  )
13394
 
13395
  def __init__(self, success=None,):
13396
    self.success = success
13397
 
13398
  def read(self, iprot):
13399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13401
      return
13402
    iprot.readStructBegin()
13403
    while True:
13404
      (fname, ftype, fid) = iprot.readFieldBegin()
13405
      if ftype == TType.STOP:
13406
        break
13407
      if fid == 0:
13408
        if ftype == TType.LIST:
13409
          self.success = []
5386 phani.kuma 13410
          (_etype300, _size297) = iprot.readListBegin()
13411
          for _i301 in xrange(_size297):
13412
            _elem302 = Order()
13413
            _elem302.read(iprot)
13414
            self.success.append(_elem302)
4910 phani.kuma 13415
          iprot.readListEnd()
13416
        else:
13417
          iprot.skip(ftype)
13418
      else:
13419
        iprot.skip(ftype)
13420
      iprot.readFieldEnd()
13421
    iprot.readStructEnd()
13422
 
13423
  def write(self, oprot):
13424
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13425
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13426
      return
13427
    oprot.writeStructBegin('getOrdersNotLocalConnected_result')
4581 phani.kuma 13428
    if self.success is not None:
13429
      oprot.writeFieldBegin('success', TType.LIST, 0)
13430
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 13431
      for iter303 in self.success:
13432
        iter303.write(oprot)
4581 phani.kuma 13433
      oprot.writeListEnd()
13434
      oprot.writeFieldEnd()
4910 phani.kuma 13435
    oprot.writeFieldStop()
13436
    oprot.writeStructEnd()
13437
 
13438
  def validate(self):
13439
    return
13440
 
13441
 
13442
  def __repr__(self):
13443
    L = ['%s=%r' % (key, value)
13444
      for key, value in self.__dict__.iteritems()]
13445
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13446
 
13447
  def __eq__(self, other):
13448
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13449
 
13450
  def __ne__(self, other):
13451
    return not (self == other)
13452
 
13453
class markOrdersAsDestinationCityReached_args:
13454
  """
13455
  Attributes:
13456
   - providerId
13457
   - destination_city_reached_orders
13458
  """
13459
 
13460
  thrift_spec = (
13461
    None, # 0
13462
    (1, TType.I64, 'providerId', None, None, ), # 1
13463
    (2, TType.MAP, 'destination_city_reached_orders', (TType.STRING,None,TType.STRING,None), None, ), # 2
13464
  )
13465
 
13466
  def __init__(self, providerId=None, destination_city_reached_orders=None,):
13467
    self.providerId = providerId
13468
    self.destination_city_reached_orders = destination_city_reached_orders
13469
 
13470
  def read(self, iprot):
13471
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13472
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13473
      return
13474
    iprot.readStructBegin()
13475
    while True:
13476
      (fname, ftype, fid) = iprot.readFieldBegin()
13477
      if ftype == TType.STOP:
13478
        break
13479
      if fid == 1:
13480
        if ftype == TType.I64:
13481
          self.providerId = iprot.readI64();
13482
        else:
13483
          iprot.skip(ftype)
13484
      elif fid == 2:
13485
        if ftype == TType.MAP:
13486
          self.destination_city_reached_orders = {}
5386 phani.kuma 13487
          (_ktype305, _vtype306, _size304 ) = iprot.readMapBegin() 
13488
          for _i308 in xrange(_size304):
13489
            _key309 = iprot.readString();
13490
            _val310 = iprot.readString();
13491
            self.destination_city_reached_orders[_key309] = _val310
4910 phani.kuma 13492
          iprot.readMapEnd()
13493
        else:
13494
          iprot.skip(ftype)
13495
      else:
13496
        iprot.skip(ftype)
13497
      iprot.readFieldEnd()
13498
    iprot.readStructEnd()
13499
 
13500
  def write(self, oprot):
13501
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13502
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13503
      return
13504
    oprot.writeStructBegin('markOrdersAsDestinationCityReached_args')
13505
    if self.providerId is not None:
13506
      oprot.writeFieldBegin('providerId', TType.I64, 1)
13507
      oprot.writeI64(self.providerId)
13508
      oprot.writeFieldEnd()
13509
    if self.destination_city_reached_orders is not None:
13510
      oprot.writeFieldBegin('destination_city_reached_orders', TType.MAP, 2)
13511
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.destination_city_reached_orders))
5386 phani.kuma 13512
      for kiter311,viter312 in self.destination_city_reached_orders.items():
13513
        oprot.writeString(kiter311)
13514
        oprot.writeString(viter312)
4910 phani.kuma 13515
      oprot.writeMapEnd()
13516
      oprot.writeFieldEnd()
13517
    oprot.writeFieldStop()
13518
    oprot.writeStructEnd()
13519
 
13520
  def validate(self):
13521
    return
13522
 
13523
 
13524
  def __repr__(self):
13525
    L = ['%s=%r' % (key, value)
13526
      for key, value in self.__dict__.iteritems()]
13527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13528
 
13529
  def __eq__(self, other):
13530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13531
 
13532
  def __ne__(self, other):
13533
    return not (self == other)
13534
 
13535
class markOrdersAsDestinationCityReached_result:
13536
  """
13537
  Attributes:
13538
   - ex
13539
  """
13540
 
13541
  thrift_spec = (
13542
    None, # 0
13543
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
13544
  )
13545
 
13546
  def __init__(self, ex=None,):
13547
    self.ex = ex
13548
 
13549
  def read(self, iprot):
13550
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13551
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13552
      return
13553
    iprot.readStructBegin()
13554
    while True:
13555
      (fname, ftype, fid) = iprot.readFieldBegin()
13556
      if ftype == TType.STOP:
13557
        break
13558
      if fid == 1:
13559
        if ftype == TType.STRUCT:
13560
          self.ex = TransactionServiceException()
13561
          self.ex.read(iprot)
13562
        else:
13563
          iprot.skip(ftype)
13564
      else:
13565
        iprot.skip(ftype)
13566
      iprot.readFieldEnd()
13567
    iprot.readStructEnd()
13568
 
13569
  def write(self, oprot):
13570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13572
      return
13573
    oprot.writeStructBegin('markOrdersAsDestinationCityReached_result')
3431 rajveer 13574
    if self.ex is not None:
3064 chandransh 13575
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13576
      self.ex.write(oprot)
1627 ankur.sing 13577
      oprot.writeFieldEnd()
13578
    oprot.writeFieldStop()
13579
    oprot.writeStructEnd()
13580
 
3431 rajveer 13581
  def validate(self):
13582
    return
13583
 
13584
 
1627 ankur.sing 13585
  def __repr__(self):
13586
    L = ['%s=%r' % (key, value)
13587
      for key, value in self.__dict__.iteritems()]
13588
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13589
 
13590
  def __eq__(self, other):
13591
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13592
 
13593
  def __ne__(self, other):
13594
    return not (self == other)
13595
 
4910 phani.kuma 13596
class markOrdersAsFirstDeliveryAttempted_args:
13597
  """
13598
  Attributes:
13599
   - providerId
13600
   - first_atdl_orders
13601
  """
13602
 
13603
  thrift_spec = (
13604
    None, # 0
13605
    (1, TType.I64, 'providerId', None, None, ), # 1
13606
    (2, TType.MAP, 'first_atdl_orders', (TType.STRING,None,TType.STRING,None), None, ), # 2
13607
  )
13608
 
13609
  def __init__(self, providerId=None, first_atdl_orders=None,):
13610
    self.providerId = providerId
13611
    self.first_atdl_orders = first_atdl_orders
13612
 
13613
  def read(self, iprot):
13614
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13615
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13616
      return
13617
    iprot.readStructBegin()
13618
    while True:
13619
      (fname, ftype, fid) = iprot.readFieldBegin()
13620
      if ftype == TType.STOP:
13621
        break
13622
      if fid == 1:
13623
        if ftype == TType.I64:
13624
          self.providerId = iprot.readI64();
13625
        else:
13626
          iprot.skip(ftype)
13627
      elif fid == 2:
13628
        if ftype == TType.MAP:
13629
          self.first_atdl_orders = {}
5386 phani.kuma 13630
          (_ktype314, _vtype315, _size313 ) = iprot.readMapBegin() 
13631
          for _i317 in xrange(_size313):
13632
            _key318 = iprot.readString();
13633
            _val319 = iprot.readString();
13634
            self.first_atdl_orders[_key318] = _val319
4910 phani.kuma 13635
          iprot.readMapEnd()
13636
        else:
13637
          iprot.skip(ftype)
13638
      else:
13639
        iprot.skip(ftype)
13640
      iprot.readFieldEnd()
13641
    iprot.readStructEnd()
13642
 
13643
  def write(self, oprot):
13644
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13645
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13646
      return
13647
    oprot.writeStructBegin('markOrdersAsFirstDeliveryAttempted_args')
13648
    if self.providerId is not None:
13649
      oprot.writeFieldBegin('providerId', TType.I64, 1)
13650
      oprot.writeI64(self.providerId)
13651
      oprot.writeFieldEnd()
13652
    if self.first_atdl_orders is not None:
13653
      oprot.writeFieldBegin('first_atdl_orders', TType.MAP, 2)
13654
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.first_atdl_orders))
5386 phani.kuma 13655
      for kiter320,viter321 in self.first_atdl_orders.items():
13656
        oprot.writeString(kiter320)
13657
        oprot.writeString(viter321)
4910 phani.kuma 13658
      oprot.writeMapEnd()
13659
      oprot.writeFieldEnd()
13660
    oprot.writeFieldStop()
13661
    oprot.writeStructEnd()
13662
 
13663
  def validate(self):
13664
    return
13665
 
13666
 
13667
  def __repr__(self):
13668
    L = ['%s=%r' % (key, value)
13669
      for key, value in self.__dict__.iteritems()]
13670
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13671
 
13672
  def __eq__(self, other):
13673
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13674
 
13675
  def __ne__(self, other):
13676
    return not (self == other)
13677
 
13678
class markOrdersAsFirstDeliveryAttempted_result:
13679
  """
13680
  Attributes:
13681
   - ex
13682
  """
13683
 
13684
  thrift_spec = (
13685
    None, # 0
13686
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
13687
  )
13688
 
13689
  def __init__(self, ex=None,):
13690
    self.ex = ex
13691
 
13692
  def read(self, iprot):
13693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13695
      return
13696
    iprot.readStructBegin()
13697
    while True:
13698
      (fname, ftype, fid) = iprot.readFieldBegin()
13699
      if ftype == TType.STOP:
13700
        break
13701
      if fid == 1:
13702
        if ftype == TType.STRUCT:
13703
          self.ex = TransactionServiceException()
13704
          self.ex.read(iprot)
13705
        else:
13706
          iprot.skip(ftype)
13707
      else:
13708
        iprot.skip(ftype)
13709
      iprot.readFieldEnd()
13710
    iprot.readStructEnd()
13711
 
13712
  def write(self, oprot):
13713
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13714
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13715
      return
13716
    oprot.writeStructBegin('markOrdersAsFirstDeliveryAttempted_result')
13717
    if self.ex is not None:
13718
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
13719
      self.ex.write(oprot)
13720
      oprot.writeFieldEnd()
13721
    oprot.writeFieldStop()
13722
    oprot.writeStructEnd()
13723
 
13724
  def validate(self):
13725
    return
13726
 
13727
 
13728
  def __repr__(self):
13729
    L = ['%s=%r' % (key, value)
13730
      for key, value in self.__dict__.iteritems()]
13731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13732
 
13733
  def __eq__(self, other):
13734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13735
 
13736
  def __ne__(self, other):
13737
    return not (self == other)
13738
 
3064 chandransh 13739
class getUndeliveredOrders_args:
1886 ankur.sing 13740
  """
13741
  Attributes:
3064 chandransh 13742
   - providerId
13743
   - warehouseId
1886 ankur.sing 13744
  """
1627 ankur.sing 13745
 
1886 ankur.sing 13746
  thrift_spec = (
13747
    None, # 0
3064 chandransh 13748
    (1, TType.I64, 'providerId', None, None, ), # 1
13749
    (2, TType.I64, 'warehouseId', None, None, ), # 2
1886 ankur.sing 13750
  )
13751
 
3064 chandransh 13752
  def __init__(self, providerId=None, warehouseId=None,):
13753
    self.providerId = providerId
13754
    self.warehouseId = warehouseId
1886 ankur.sing 13755
 
13756
  def read(self, iprot):
13757
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13758
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13759
      return
13760
    iprot.readStructBegin()
13761
    while True:
13762
      (fname, ftype, fid) = iprot.readFieldBegin()
13763
      if ftype == TType.STOP:
13764
        break
13765
      if fid == 1:
13766
        if ftype == TType.I64:
3064 chandransh 13767
          self.providerId = iprot.readI64();
1886 ankur.sing 13768
        else:
13769
          iprot.skip(ftype)
3064 chandransh 13770
      elif fid == 2:
13771
        if ftype == TType.I64:
13772
          self.warehouseId = iprot.readI64();
13773
        else:
13774
          iprot.skip(ftype)
1886 ankur.sing 13775
      else:
13776
        iprot.skip(ftype)
13777
      iprot.readFieldEnd()
13778
    iprot.readStructEnd()
13779
 
13780
  def write(self, oprot):
13781
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13782
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13783
      return
3064 chandransh 13784
    oprot.writeStructBegin('getUndeliveredOrders_args')
3431 rajveer 13785
    if self.providerId is not None:
3064 chandransh 13786
      oprot.writeFieldBegin('providerId', TType.I64, 1)
13787
      oprot.writeI64(self.providerId)
1886 ankur.sing 13788
      oprot.writeFieldEnd()
3431 rajveer 13789
    if self.warehouseId is not None:
3064 chandransh 13790
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
13791
      oprot.writeI64(self.warehouseId)
13792
      oprot.writeFieldEnd()
1886 ankur.sing 13793
    oprot.writeFieldStop()
13794
    oprot.writeStructEnd()
13795
 
3431 rajveer 13796
  def validate(self):
13797
    return
13798
 
13799
 
1886 ankur.sing 13800
  def __repr__(self):
13801
    L = ['%s=%r' % (key, value)
13802
      for key, value in self.__dict__.iteritems()]
13803
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13804
 
13805
  def __eq__(self, other):
13806
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13807
 
13808
  def __ne__(self, other):
13809
    return not (self == other)
13810
 
3064 chandransh 13811
class getUndeliveredOrders_result:
1886 ankur.sing 13812
  """
13813
  Attributes:
13814
   - success
13815
  """
13816
 
13817
  thrift_spec = (
13818
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
13819
  )
13820
 
13821
  def __init__(self, success=None,):
13822
    self.success = success
13823
 
13824
  def read(self, iprot):
13825
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13826
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13827
      return
13828
    iprot.readStructBegin()
13829
    while True:
13830
      (fname, ftype, fid) = iprot.readFieldBegin()
13831
      if ftype == TType.STOP:
13832
        break
13833
      if fid == 0:
13834
        if ftype == TType.LIST:
13835
          self.success = []
5386 phani.kuma 13836
          (_etype325, _size322) = iprot.readListBegin()
13837
          for _i326 in xrange(_size322):
13838
            _elem327 = Order()
13839
            _elem327.read(iprot)
13840
            self.success.append(_elem327)
1886 ankur.sing 13841
          iprot.readListEnd()
13842
        else:
13843
          iprot.skip(ftype)
13844
      else:
13845
        iprot.skip(ftype)
13846
      iprot.readFieldEnd()
13847
    iprot.readStructEnd()
13848
 
13849
  def write(self, oprot):
13850
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13851
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13852
      return
3064 chandransh 13853
    oprot.writeStructBegin('getUndeliveredOrders_result')
3431 rajveer 13854
    if self.success is not None:
1886 ankur.sing 13855
      oprot.writeFieldBegin('success', TType.LIST, 0)
13856
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 13857
      for iter328 in self.success:
13858
        iter328.write(oprot)
1886 ankur.sing 13859
      oprot.writeListEnd()
13860
      oprot.writeFieldEnd()
13861
    oprot.writeFieldStop()
13862
    oprot.writeStructEnd()
13863
 
3431 rajveer 13864
  def validate(self):
13865
    return
13866
 
13867
 
1886 ankur.sing 13868
  def __repr__(self):
13869
    L = ['%s=%r' % (key, value)
13870
      for key, value in self.__dict__.iteritems()]
13871
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13872
 
13873
  def __eq__(self, other):
13874
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13875
 
13876
  def __ne__(self, other):
13877
    return not (self == other)
13878
 
4783 phani.kuma 13879
class getUndeliveredOrdersExpectedDeliveryDateNotMet_args:
13880
 
13881
  thrift_spec = (
13882
  )
13883
 
13884
  def read(self, iprot):
13885
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13886
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13887
      return
13888
    iprot.readStructBegin()
13889
    while True:
13890
      (fname, ftype, fid) = iprot.readFieldBegin()
13891
      if ftype == TType.STOP:
13892
        break
13893
      else:
13894
        iprot.skip(ftype)
13895
      iprot.readFieldEnd()
13896
    iprot.readStructEnd()
13897
 
13898
  def write(self, oprot):
13899
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13900
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13901
      return
13902
    oprot.writeStructBegin('getUndeliveredOrdersExpectedDeliveryDateNotMet_args')
13903
    oprot.writeFieldStop()
13904
    oprot.writeStructEnd()
13905
 
13906
  def validate(self):
13907
    return
13908
 
13909
 
13910
  def __repr__(self):
13911
    L = ['%s=%r' % (key, value)
13912
      for key, value in self.__dict__.iteritems()]
13913
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13914
 
13915
  def __eq__(self, other):
13916
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13917
 
13918
  def __ne__(self, other):
13919
    return not (self == other)
13920
 
13921
class getUndeliveredOrdersExpectedDeliveryDateNotMet_result:
13922
  """
13923
  Attributes:
13924
   - success
13925
  """
13926
 
13927
  thrift_spec = (
13928
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
13929
  )
13930
 
13931
  def __init__(self, success=None,):
13932
    self.success = success
13933
 
13934
  def read(self, iprot):
13935
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
13936
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
13937
      return
13938
    iprot.readStructBegin()
13939
    while True:
13940
      (fname, ftype, fid) = iprot.readFieldBegin()
13941
      if ftype == TType.STOP:
13942
        break
13943
      if fid == 0:
13944
        if ftype == TType.LIST:
13945
          self.success = []
5386 phani.kuma 13946
          (_etype332, _size329) = iprot.readListBegin()
13947
          for _i333 in xrange(_size329):
13948
            _elem334 = Order()
13949
            _elem334.read(iprot)
13950
            self.success.append(_elem334)
4783 phani.kuma 13951
          iprot.readListEnd()
13952
        else:
13953
          iprot.skip(ftype)
13954
      else:
13955
        iprot.skip(ftype)
13956
      iprot.readFieldEnd()
13957
    iprot.readStructEnd()
13958
 
13959
  def write(self, oprot):
13960
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
13961
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
13962
      return
13963
    oprot.writeStructBegin('getUndeliveredOrdersExpectedDeliveryDateNotMet_result')
13964
    if self.success is not None:
13965
      oprot.writeFieldBegin('success', TType.LIST, 0)
13966
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 13967
      for iter335 in self.success:
13968
        iter335.write(oprot)
4783 phani.kuma 13969
      oprot.writeListEnd()
13970
      oprot.writeFieldEnd()
13971
    oprot.writeFieldStop()
13972
    oprot.writeStructEnd()
13973
 
13974
  def validate(self):
13975
    return
13976
 
13977
 
13978
  def __repr__(self):
13979
    L = ['%s=%r' % (key, value)
13980
      for key, value in self.__dict__.iteritems()]
13981
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
13982
 
13983
  def __eq__(self, other):
13984
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
13985
 
13986
  def __ne__(self, other):
13987
    return not (self == other)
13988
 
2536 chandransh 13989
class toggleDOAFlag_args:
13990
  """
13991
  Attributes:
13992
   - orderId
13993
  """
1886 ankur.sing 13994
 
2536 chandransh 13995
  thrift_spec = (
13996
    None, # 0
13997
    (1, TType.I64, 'orderId', None, None, ), # 1
13998
  )
13999
 
14000
  def __init__(self, orderId=None,):
14001
    self.orderId = orderId
14002
 
14003
  def read(self, iprot):
14004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14006
      return
14007
    iprot.readStructBegin()
14008
    while True:
14009
      (fname, ftype, fid) = iprot.readFieldBegin()
14010
      if ftype == TType.STOP:
14011
        break
14012
      if fid == 1:
14013
        if ftype == TType.I64:
14014
          self.orderId = iprot.readI64();
14015
        else:
14016
          iprot.skip(ftype)
14017
      else:
14018
        iprot.skip(ftype)
14019
      iprot.readFieldEnd()
14020
    iprot.readStructEnd()
14021
 
14022
  def write(self, oprot):
14023
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14024
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14025
      return
14026
    oprot.writeStructBegin('toggleDOAFlag_args')
3431 rajveer 14027
    if self.orderId is not None:
2536 chandransh 14028
      oprot.writeFieldBegin('orderId', TType.I64, 1)
14029
      oprot.writeI64(self.orderId)
14030
      oprot.writeFieldEnd()
14031
    oprot.writeFieldStop()
14032
    oprot.writeStructEnd()
14033
 
3431 rajveer 14034
  def validate(self):
14035
    return
14036
 
14037
 
2536 chandransh 14038
  def __repr__(self):
14039
    L = ['%s=%r' % (key, value)
14040
      for key, value in self.__dict__.iteritems()]
14041
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14042
 
14043
  def __eq__(self, other):
14044
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14045
 
14046
  def __ne__(self, other):
14047
    return not (self == other)
14048
 
14049
class toggleDOAFlag_result:
14050
  """
14051
  Attributes:
14052
   - success
14053
   - ex
14054
  """
14055
 
14056
  thrift_spec = (
14057
    (0, TType.BOOL, 'success', None, None, ), # 0
14058
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
14059
  )
14060
 
14061
  def __init__(self, success=None, ex=None,):
14062
    self.success = success
14063
    self.ex = ex
14064
 
14065
  def read(self, iprot):
14066
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14067
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14068
      return
14069
    iprot.readStructBegin()
14070
    while True:
14071
      (fname, ftype, fid) = iprot.readFieldBegin()
14072
      if ftype == TType.STOP:
14073
        break
14074
      if fid == 0:
14075
        if ftype == TType.BOOL:
14076
          self.success = iprot.readBool();
14077
        else:
14078
          iprot.skip(ftype)
14079
      elif fid == 1:
14080
        if ftype == TType.STRUCT:
14081
          self.ex = TransactionServiceException()
14082
          self.ex.read(iprot)
14083
        else:
14084
          iprot.skip(ftype)
14085
      else:
14086
        iprot.skip(ftype)
14087
      iprot.readFieldEnd()
14088
    iprot.readStructEnd()
14089
 
14090
  def write(self, oprot):
14091
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14092
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14093
      return
14094
    oprot.writeStructBegin('toggleDOAFlag_result')
3431 rajveer 14095
    if self.success is not None:
2536 chandransh 14096
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14097
      oprot.writeBool(self.success)
14098
      oprot.writeFieldEnd()
3431 rajveer 14099
    if self.ex is not None:
2536 chandransh 14100
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
14101
      self.ex.write(oprot)
14102
      oprot.writeFieldEnd()
14103
    oprot.writeFieldStop()
14104
    oprot.writeStructEnd()
14105
 
3431 rajveer 14106
  def validate(self):
14107
    return
14108
 
14109
 
2536 chandransh 14110
  def __repr__(self):
14111
    L = ['%s=%r' % (key, value)
14112
      for key, value in self.__dict__.iteritems()]
14113
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14114
 
14115
  def __eq__(self, other):
14116
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14117
 
14118
  def __ne__(self, other):
14119
    return not (self == other)
14120
 
4712 rajveer 14121
class markOrderAsDelivered_args:
14122
  """
14123
  Attributes:
14124
   - orderId
14125
   - deliveryTimestamp
14126
   - receiver
14127
  """
14128
 
14129
  thrift_spec = None
14130
  def __init__(self, orderId=None, deliveryTimestamp=None, receiver=None,):
14131
    self.orderId = orderId
14132
    self.deliveryTimestamp = deliveryTimestamp
14133
    self.receiver = receiver
14134
 
14135
  def read(self, iprot):
14136
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14137
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14138
      return
14139
    iprot.readStructBegin()
14140
    while True:
14141
      (fname, ftype, fid) = iprot.readFieldBegin()
14142
      if ftype == TType.STOP:
14143
        break
14144
      if fid == 1:
14145
        if ftype == TType.I64:
14146
          self.orderId = iprot.readI64();
14147
        else:
14148
          iprot.skip(ftype)
14149
      elif fid == 2:
14150
        if ftype == TType.I64:
14151
          self.deliveryTimestamp = iprot.readI64();
14152
        else:
14153
          iprot.skip(ftype)
14154
      elif fid == -1:
14155
        if ftype == TType.STRING:
14156
          self.receiver = iprot.readString();
14157
        else:
14158
          iprot.skip(ftype)
14159
      else:
14160
        iprot.skip(ftype)
14161
      iprot.readFieldEnd()
14162
    iprot.readStructEnd()
14163
 
14164
  def write(self, oprot):
14165
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14166
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14167
      return
14168
    oprot.writeStructBegin('markOrderAsDelivered_args')
14169
    if self.receiver is not None:
14170
      oprot.writeFieldBegin('receiver', TType.STRING, -1)
14171
      oprot.writeString(self.receiver)
14172
      oprot.writeFieldEnd()
14173
    if self.orderId is not None:
14174
      oprot.writeFieldBegin('orderId', TType.I64, 1)
14175
      oprot.writeI64(self.orderId)
14176
      oprot.writeFieldEnd()
14177
    if self.deliveryTimestamp is not None:
14178
      oprot.writeFieldBegin('deliveryTimestamp', TType.I64, 2)
14179
      oprot.writeI64(self.deliveryTimestamp)
14180
      oprot.writeFieldEnd()
14181
    oprot.writeFieldStop()
14182
    oprot.writeStructEnd()
14183
 
14184
  def validate(self):
14185
    return
14186
 
14187
 
14188
  def __repr__(self):
14189
    L = ['%s=%r' % (key, value)
14190
      for key, value in self.__dict__.iteritems()]
14191
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14192
 
14193
  def __eq__(self, other):
14194
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14195
 
14196
  def __ne__(self, other):
14197
    return not (self == other)
14198
 
14199
class markOrderAsDelivered_result:
14200
  """
14201
  Attributes:
14202
   - ex
14203
  """
14204
 
14205
  thrift_spec = (
14206
    None, # 0
14207
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
14208
  )
14209
 
14210
  def __init__(self, ex=None,):
14211
    self.ex = ex
14212
 
14213
  def read(self, iprot):
14214
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14215
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14216
      return
14217
    iprot.readStructBegin()
14218
    while True:
14219
      (fname, ftype, fid) = iprot.readFieldBegin()
14220
      if ftype == TType.STOP:
14221
        break
14222
      if fid == 1:
14223
        if ftype == TType.STRUCT:
14224
          self.ex = TransactionServiceException()
14225
          self.ex.read(iprot)
14226
        else:
14227
          iprot.skip(ftype)
14228
      else:
14229
        iprot.skip(ftype)
14230
      iprot.readFieldEnd()
14231
    iprot.readStructEnd()
14232
 
14233
  def write(self, oprot):
14234
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14235
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14236
      return
14237
    oprot.writeStructBegin('markOrderAsDelivered_result')
14238
    if self.ex is not None:
14239
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
14240
      self.ex.write(oprot)
14241
      oprot.writeFieldEnd()
14242
    oprot.writeFieldStop()
14243
    oprot.writeStructEnd()
14244
 
14245
  def validate(self):
14246
    return
14247
 
14248
 
14249
  def __repr__(self):
14250
    L = ['%s=%r' % (key, value)
14251
      for key, value in self.__dict__.iteritems()]
14252
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14253
 
14254
  def __eq__(self, other):
14255
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14256
 
14257
  def __ne__(self, other):
14258
    return not (self == other)
14259
 
4454 rajveer 14260
class markOrderDoaRequestReceived_args:
14261
  """
14262
  Attributes:
14263
   - orderId
14264
  """
14265
 
14266
  thrift_spec = (
14267
    None, # 0
14268
    (1, TType.I64, 'orderId', None, None, ), # 1
14269
  )
14270
 
14271
  def __init__(self, orderId=None,):
14272
    self.orderId = orderId
14273
 
14274
  def read(self, iprot):
14275
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14276
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14277
      return
14278
    iprot.readStructBegin()
14279
    while True:
14280
      (fname, ftype, fid) = iprot.readFieldBegin()
14281
      if ftype == TType.STOP:
14282
        break
14283
      if fid == 1:
14284
        if ftype == TType.I64:
14285
          self.orderId = iprot.readI64();
14286
        else:
14287
          iprot.skip(ftype)
14288
      else:
14289
        iprot.skip(ftype)
14290
      iprot.readFieldEnd()
14291
    iprot.readStructEnd()
14292
 
14293
  def write(self, oprot):
14294
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14295
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14296
      return
14297
    oprot.writeStructBegin('markOrderDoaRequestReceived_args')
14298
    if self.orderId is not None:
14299
      oprot.writeFieldBegin('orderId', TType.I64, 1)
14300
      oprot.writeI64(self.orderId)
14301
      oprot.writeFieldEnd()
14302
    oprot.writeFieldStop()
14303
    oprot.writeStructEnd()
14304
 
14305
  def validate(self):
14306
    return
14307
 
14308
 
14309
  def __repr__(self):
14310
    L = ['%s=%r' % (key, value)
14311
      for key, value in self.__dict__.iteritems()]
14312
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14313
 
14314
  def __eq__(self, other):
14315
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14316
 
14317
  def __ne__(self, other):
14318
    return not (self == other)
14319
 
14320
class markOrderDoaRequestReceived_result:
14321
  """
14322
  Attributes:
14323
   - success
14324
   - ex
14325
  """
14326
 
14327
  thrift_spec = (
14328
    (0, TType.BOOL, 'success', None, None, ), # 0
14329
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
14330
  )
14331
 
14332
  def __init__(self, success=None, ex=None,):
14333
    self.success = success
14334
    self.ex = ex
14335
 
14336
  def read(self, iprot):
14337
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14338
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14339
      return
14340
    iprot.readStructBegin()
14341
    while True:
14342
      (fname, ftype, fid) = iprot.readFieldBegin()
14343
      if ftype == TType.STOP:
14344
        break
14345
      if fid == 0:
14346
        if ftype == TType.BOOL:
14347
          self.success = iprot.readBool();
14348
        else:
14349
          iprot.skip(ftype)
14350
      elif fid == 1:
14351
        if ftype == TType.STRUCT:
14352
          self.ex = TransactionServiceException()
14353
          self.ex.read(iprot)
14354
        else:
14355
          iprot.skip(ftype)
14356
      else:
14357
        iprot.skip(ftype)
14358
      iprot.readFieldEnd()
14359
    iprot.readStructEnd()
14360
 
14361
  def write(self, oprot):
14362
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14363
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14364
      return
14365
    oprot.writeStructBegin('markOrderDoaRequestReceived_result')
14366
    if self.success is not None:
14367
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14368
      oprot.writeBool(self.success)
14369
      oprot.writeFieldEnd()
14370
    if self.ex is not None:
14371
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
14372
      self.ex.write(oprot)
14373
      oprot.writeFieldEnd()
14374
    oprot.writeFieldStop()
14375
    oprot.writeStructEnd()
14376
 
14377
  def validate(self):
14378
    return
14379
 
14380
 
14381
  def __repr__(self):
14382
    L = ['%s=%r' % (key, value)
14383
      for key, value in self.__dict__.iteritems()]
14384
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14385
 
14386
  def __eq__(self, other):
14387
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14388
 
14389
  def __ne__(self, other):
14390
    return not (self == other)
14391
 
14392
class markOrderDoaRequestAuthorized_args:
14393
  """
14394
  Attributes:
14395
   - orderId
14396
   - isAuthorized
14397
  """
14398
 
14399
  thrift_spec = (
14400
    None, # 0
14401
    (1, TType.I64, 'orderId', None, None, ), # 1
14402
    (2, TType.BOOL, 'isAuthorized', None, None, ), # 2
14403
  )
14404
 
14405
  def __init__(self, orderId=None, isAuthorized=None,):
14406
    self.orderId = orderId
14407
    self.isAuthorized = isAuthorized
14408
 
14409
  def read(self, iprot):
14410
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14411
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14412
      return
14413
    iprot.readStructBegin()
14414
    while True:
14415
      (fname, ftype, fid) = iprot.readFieldBegin()
14416
      if ftype == TType.STOP:
14417
        break
14418
      if fid == 1:
14419
        if ftype == TType.I64:
14420
          self.orderId = iprot.readI64();
14421
        else:
14422
          iprot.skip(ftype)
14423
      elif fid == 2:
14424
        if ftype == TType.BOOL:
14425
          self.isAuthorized = iprot.readBool();
14426
        else:
14427
          iprot.skip(ftype)
14428
      else:
14429
        iprot.skip(ftype)
14430
      iprot.readFieldEnd()
14431
    iprot.readStructEnd()
14432
 
14433
  def write(self, oprot):
14434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14436
      return
14437
    oprot.writeStructBegin('markOrderDoaRequestAuthorized_args')
14438
    if self.orderId is not None:
14439
      oprot.writeFieldBegin('orderId', TType.I64, 1)
14440
      oprot.writeI64(self.orderId)
14441
      oprot.writeFieldEnd()
14442
    if self.isAuthorized is not None:
14443
      oprot.writeFieldBegin('isAuthorized', TType.BOOL, 2)
14444
      oprot.writeBool(self.isAuthorized)
14445
      oprot.writeFieldEnd()
14446
    oprot.writeFieldStop()
14447
    oprot.writeStructEnd()
14448
 
14449
  def validate(self):
14450
    return
14451
 
14452
 
14453
  def __repr__(self):
14454
    L = ['%s=%r' % (key, value)
14455
      for key, value in self.__dict__.iteritems()]
14456
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14457
 
14458
  def __eq__(self, other):
14459
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14460
 
14461
  def __ne__(self, other):
14462
    return not (self == other)
14463
 
14464
class markOrderDoaRequestAuthorized_result:
14465
  """
14466
  Attributes:
14467
   - success
14468
   - ex
14469
  """
14470
 
14471
  thrift_spec = (
14472
    (0, TType.BOOL, 'success', None, None, ), # 0
14473
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
14474
  )
14475
 
14476
  def __init__(self, success=None, ex=None,):
14477
    self.success = success
14478
    self.ex = ex
14479
 
14480
  def read(self, iprot):
14481
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14482
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14483
      return
14484
    iprot.readStructBegin()
14485
    while True:
14486
      (fname, ftype, fid) = iprot.readFieldBegin()
14487
      if ftype == TType.STOP:
14488
        break
14489
      if fid == 0:
14490
        if ftype == TType.BOOL:
14491
          self.success = iprot.readBool();
14492
        else:
14493
          iprot.skip(ftype)
14494
      elif fid == 1:
14495
        if ftype == TType.STRUCT:
14496
          self.ex = TransactionServiceException()
14497
          self.ex.read(iprot)
14498
        else:
14499
          iprot.skip(ftype)
14500
      else:
14501
        iprot.skip(ftype)
14502
      iprot.readFieldEnd()
14503
    iprot.readStructEnd()
14504
 
14505
  def write(self, oprot):
14506
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14507
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14508
      return
14509
    oprot.writeStructBegin('markOrderDoaRequestAuthorized_result')
14510
    if self.success is not None:
14511
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14512
      oprot.writeBool(self.success)
14513
      oprot.writeFieldEnd()
14514
    if self.ex is not None:
14515
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
14516
      self.ex.write(oprot)
14517
      oprot.writeFieldEnd()
14518
    oprot.writeFieldStop()
14519
    oprot.writeStructEnd()
14520
 
14521
  def validate(self):
14522
    return
14523
 
14524
 
14525
  def __repr__(self):
14526
    L = ['%s=%r' % (key, value)
14527
      for key, value in self.__dict__.iteritems()]
14528
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14529
 
14530
  def __eq__(self, other):
14531
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14532
 
14533
  def __ne__(self, other):
14534
    return not (self == other)
14535
 
4488 rajveer 14536
class markOrderReturnRequestReceived_args:
14537
  """
14538
  Attributes:
14539
   - orderId
14540
  """
14541
 
14542
  thrift_spec = (
14543
    None, # 0
14544
    (1, TType.I64, 'orderId', None, None, ), # 1
14545
  )
14546
 
14547
  def __init__(self, orderId=None,):
14548
    self.orderId = orderId
14549
 
14550
  def read(self, iprot):
14551
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14552
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14553
      return
14554
    iprot.readStructBegin()
14555
    while True:
14556
      (fname, ftype, fid) = iprot.readFieldBegin()
14557
      if ftype == TType.STOP:
14558
        break
14559
      if fid == 1:
14560
        if ftype == TType.I64:
14561
          self.orderId = iprot.readI64();
14562
        else:
14563
          iprot.skip(ftype)
14564
      else:
14565
        iprot.skip(ftype)
14566
      iprot.readFieldEnd()
14567
    iprot.readStructEnd()
14568
 
14569
  def write(self, oprot):
14570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14572
      return
14573
    oprot.writeStructBegin('markOrderReturnRequestReceived_args')
14574
    if self.orderId is not None:
14575
      oprot.writeFieldBegin('orderId', TType.I64, 1)
14576
      oprot.writeI64(self.orderId)
14577
      oprot.writeFieldEnd()
14578
    oprot.writeFieldStop()
14579
    oprot.writeStructEnd()
14580
 
14581
  def validate(self):
14582
    return
14583
 
14584
 
14585
  def __repr__(self):
14586
    L = ['%s=%r' % (key, value)
14587
      for key, value in self.__dict__.iteritems()]
14588
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14589
 
14590
  def __eq__(self, other):
14591
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14592
 
14593
  def __ne__(self, other):
14594
    return not (self == other)
14595
 
14596
class markOrderReturnRequestReceived_result:
14597
  """
14598
  Attributes:
14599
   - success
14600
   - ex
14601
  """
14602
 
14603
  thrift_spec = (
14604
    (0, TType.BOOL, 'success', None, None, ), # 0
14605
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
14606
  )
14607
 
14608
  def __init__(self, success=None, ex=None,):
14609
    self.success = success
14610
    self.ex = ex
14611
 
14612
  def read(self, iprot):
14613
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14614
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14615
      return
14616
    iprot.readStructBegin()
14617
    while True:
14618
      (fname, ftype, fid) = iprot.readFieldBegin()
14619
      if ftype == TType.STOP:
14620
        break
14621
      if fid == 0:
14622
        if ftype == TType.BOOL:
14623
          self.success = iprot.readBool();
14624
        else:
14625
          iprot.skip(ftype)
14626
      elif fid == 1:
14627
        if ftype == TType.STRUCT:
14628
          self.ex = TransactionServiceException()
14629
          self.ex.read(iprot)
14630
        else:
14631
          iprot.skip(ftype)
14632
      else:
14633
        iprot.skip(ftype)
14634
      iprot.readFieldEnd()
14635
    iprot.readStructEnd()
14636
 
14637
  def write(self, oprot):
14638
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14639
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14640
      return
14641
    oprot.writeStructBegin('markOrderReturnRequestReceived_result')
14642
    if self.success is not None:
14643
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14644
      oprot.writeBool(self.success)
14645
      oprot.writeFieldEnd()
14646
    if self.ex is not None:
14647
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
14648
      self.ex.write(oprot)
14649
      oprot.writeFieldEnd()
14650
    oprot.writeFieldStop()
14651
    oprot.writeStructEnd()
14652
 
14653
  def validate(self):
14654
    return
14655
 
14656
 
14657
  def __repr__(self):
14658
    L = ['%s=%r' % (key, value)
14659
      for key, value in self.__dict__.iteritems()]
14660
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14661
 
14662
  def __eq__(self, other):
14663
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14664
 
14665
  def __ne__(self, other):
14666
    return not (self == other)
14667
 
14668
class markOrderReturnRequestAuthorized_args:
14669
  """
14670
  Attributes:
14671
   - orderId
14672
   - isAuthorized
14673
  """
14674
 
14675
  thrift_spec = (
14676
    None, # 0
14677
    (1, TType.I64, 'orderId', None, None, ), # 1
14678
    (2, TType.BOOL, 'isAuthorized', None, None, ), # 2
14679
  )
14680
 
14681
  def __init__(self, orderId=None, isAuthorized=None,):
14682
    self.orderId = orderId
14683
    self.isAuthorized = isAuthorized
14684
 
14685
  def read(self, iprot):
14686
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14687
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14688
      return
14689
    iprot.readStructBegin()
14690
    while True:
14691
      (fname, ftype, fid) = iprot.readFieldBegin()
14692
      if ftype == TType.STOP:
14693
        break
14694
      if fid == 1:
14695
        if ftype == TType.I64:
14696
          self.orderId = iprot.readI64();
14697
        else:
14698
          iprot.skip(ftype)
14699
      elif fid == 2:
14700
        if ftype == TType.BOOL:
14701
          self.isAuthorized = iprot.readBool();
14702
        else:
14703
          iprot.skip(ftype)
14704
      else:
14705
        iprot.skip(ftype)
14706
      iprot.readFieldEnd()
14707
    iprot.readStructEnd()
14708
 
14709
  def write(self, oprot):
14710
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14711
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14712
      return
14713
    oprot.writeStructBegin('markOrderReturnRequestAuthorized_args')
14714
    if self.orderId is not None:
14715
      oprot.writeFieldBegin('orderId', TType.I64, 1)
14716
      oprot.writeI64(self.orderId)
14717
      oprot.writeFieldEnd()
14718
    if self.isAuthorized is not None:
14719
      oprot.writeFieldBegin('isAuthorized', TType.BOOL, 2)
14720
      oprot.writeBool(self.isAuthorized)
14721
      oprot.writeFieldEnd()
14722
    oprot.writeFieldStop()
14723
    oprot.writeStructEnd()
14724
 
14725
  def validate(self):
14726
    return
14727
 
14728
 
14729
  def __repr__(self):
14730
    L = ['%s=%r' % (key, value)
14731
      for key, value in self.__dict__.iteritems()]
14732
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14733
 
14734
  def __eq__(self, other):
14735
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14736
 
14737
  def __ne__(self, other):
14738
    return not (self == other)
14739
 
14740
class markOrderReturnRequestAuthorized_result:
14741
  """
14742
  Attributes:
14743
   - success
14744
   - ex
14745
  """
14746
 
14747
  thrift_spec = (
14748
    (0, TType.BOOL, 'success', None, None, ), # 0
14749
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
14750
  )
14751
 
14752
  def __init__(self, success=None, ex=None,):
14753
    self.success = success
14754
    self.ex = ex
14755
 
14756
  def read(self, iprot):
14757
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14758
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14759
      return
14760
    iprot.readStructBegin()
14761
    while True:
14762
      (fname, ftype, fid) = iprot.readFieldBegin()
14763
      if ftype == TType.STOP:
14764
        break
14765
      if fid == 0:
14766
        if ftype == TType.BOOL:
14767
          self.success = iprot.readBool();
14768
        else:
14769
          iprot.skip(ftype)
14770
      elif fid == 1:
14771
        if ftype == TType.STRUCT:
14772
          self.ex = TransactionServiceException()
14773
          self.ex.read(iprot)
14774
        else:
14775
          iprot.skip(ftype)
14776
      else:
14777
        iprot.skip(ftype)
14778
      iprot.readFieldEnd()
14779
    iprot.readStructEnd()
14780
 
14781
  def write(self, oprot):
14782
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14783
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14784
      return
14785
    oprot.writeStructBegin('markOrderReturnRequestAuthorized_result')
14786
    if self.success is not None:
14787
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14788
      oprot.writeBool(self.success)
14789
      oprot.writeFieldEnd()
14790
    if self.ex is not None:
14791
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
14792
      self.ex.write(oprot)
14793
      oprot.writeFieldEnd()
14794
    oprot.writeFieldStop()
14795
    oprot.writeStructEnd()
14796
 
14797
  def validate(self):
14798
    return
14799
 
14800
 
14801
  def __repr__(self):
14802
    L = ['%s=%r' % (key, value)
14803
      for key, value in self.__dict__.iteritems()]
14804
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14805
 
14806
  def __eq__(self, other):
14807
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14808
 
14809
  def __ne__(self, other):
14810
    return not (self == other)
14811
 
2536 chandransh 14812
class requestPickupNumber_args:
14813
  """
14814
  Attributes:
14815
   - orderId
4579 rajveer 14816
   - providerId
2536 chandransh 14817
  """
14818
 
14819
  thrift_spec = (
14820
    None, # 0
14821
    (1, TType.I64, 'orderId', None, None, ), # 1
4579 rajveer 14822
    (2, TType.I64, 'providerId', None, None, ), # 2
2536 chandransh 14823
  )
14824
 
4579 rajveer 14825
  def __init__(self, orderId=None, providerId=None,):
2536 chandransh 14826
    self.orderId = orderId
4579 rajveer 14827
    self.providerId = providerId
2536 chandransh 14828
 
14829
  def read(self, iprot):
14830
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14831
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14832
      return
14833
    iprot.readStructBegin()
14834
    while True:
14835
      (fname, ftype, fid) = iprot.readFieldBegin()
14836
      if ftype == TType.STOP:
14837
        break
14838
      if fid == 1:
14839
        if ftype == TType.I64:
14840
          self.orderId = iprot.readI64();
14841
        else:
14842
          iprot.skip(ftype)
4579 rajveer 14843
      elif fid == 2:
14844
        if ftype == TType.I64:
14845
          self.providerId = iprot.readI64();
14846
        else:
14847
          iprot.skip(ftype)
2536 chandransh 14848
      else:
14849
        iprot.skip(ftype)
14850
      iprot.readFieldEnd()
14851
    iprot.readStructEnd()
14852
 
14853
  def write(self, oprot):
14854
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14855
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14856
      return
14857
    oprot.writeStructBegin('requestPickupNumber_args')
3431 rajveer 14858
    if self.orderId is not None:
2536 chandransh 14859
      oprot.writeFieldBegin('orderId', TType.I64, 1)
14860
      oprot.writeI64(self.orderId)
14861
      oprot.writeFieldEnd()
4579 rajveer 14862
    if self.providerId is not None:
14863
      oprot.writeFieldBegin('providerId', TType.I64, 2)
14864
      oprot.writeI64(self.providerId)
14865
      oprot.writeFieldEnd()
2536 chandransh 14866
    oprot.writeFieldStop()
14867
    oprot.writeStructEnd()
14868
 
3431 rajveer 14869
  def validate(self):
14870
    return
14871
 
14872
 
2536 chandransh 14873
  def __repr__(self):
14874
    L = ['%s=%r' % (key, value)
14875
      for key, value in self.__dict__.iteritems()]
14876
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14877
 
14878
  def __eq__(self, other):
14879
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14880
 
14881
  def __ne__(self, other):
14882
    return not (self == other)
14883
 
14884
class requestPickupNumber_result:
14885
  """
14886
  Attributes:
14887
   - success
14888
   - ex
14889
  """
14890
 
14891
  thrift_spec = (
14892
    (0, TType.BOOL, 'success', None, None, ), # 0
14893
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
14894
  )
14895
 
14896
  def __init__(self, success=None, ex=None,):
14897
    self.success = success
14898
    self.ex = ex
14899
 
14900
  def read(self, iprot):
14901
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14902
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14903
      return
14904
    iprot.readStructBegin()
14905
    while True:
14906
      (fname, ftype, fid) = iprot.readFieldBegin()
14907
      if ftype == TType.STOP:
14908
        break
14909
      if fid == 0:
14910
        if ftype == TType.BOOL:
14911
          self.success = iprot.readBool();
14912
        else:
14913
          iprot.skip(ftype)
14914
      elif fid == 1:
14915
        if ftype == TType.STRUCT:
14916
          self.ex = TransactionServiceException()
14917
          self.ex.read(iprot)
14918
        else:
14919
          iprot.skip(ftype)
14920
      else:
14921
        iprot.skip(ftype)
14922
      iprot.readFieldEnd()
14923
    iprot.readStructEnd()
14924
 
14925
  def write(self, oprot):
14926
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
14927
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
14928
      return
14929
    oprot.writeStructBegin('requestPickupNumber_result')
3431 rajveer 14930
    if self.success is not None:
2536 chandransh 14931
      oprot.writeFieldBegin('success', TType.BOOL, 0)
14932
      oprot.writeBool(self.success)
14933
      oprot.writeFieldEnd()
3431 rajveer 14934
    if self.ex is not None:
2536 chandransh 14935
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
14936
      self.ex.write(oprot)
14937
      oprot.writeFieldEnd()
14938
    oprot.writeFieldStop()
14939
    oprot.writeStructEnd()
14940
 
3431 rajveer 14941
  def validate(self):
14942
    return
14943
 
14944
 
2536 chandransh 14945
  def __repr__(self):
14946
    L = ['%s=%r' % (key, value)
14947
      for key, value in self.__dict__.iteritems()]
14948
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
14949
 
14950
  def __eq__(self, other):
14951
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
14952
 
14953
  def __ne__(self, other):
14954
    return not (self == other)
14955
 
14956
class authorizePickup_args:
14957
  """
14958
  Attributes:
14959
   - orderId
14960
   - pickupNumber
4602 rajveer 14961
   - providerId
2536 chandransh 14962
  """
14963
 
14964
  thrift_spec = (
14965
    None, # 0
14966
    (1, TType.I64, 'orderId', None, None, ), # 1
14967
    (2, TType.STRING, 'pickupNumber', None, None, ), # 2
4602 rajveer 14968
    (3, TType.I64, 'providerId', None, None, ), # 3
2536 chandransh 14969
  )
14970
 
4602 rajveer 14971
  def __init__(self, orderId=None, pickupNumber=None, providerId=None,):
2536 chandransh 14972
    self.orderId = orderId
14973
    self.pickupNumber = pickupNumber
4602 rajveer 14974
    self.providerId = providerId
2536 chandransh 14975
 
14976
  def read(self, iprot):
14977
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
14978
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
14979
      return
14980
    iprot.readStructBegin()
14981
    while True:
14982
      (fname, ftype, fid) = iprot.readFieldBegin()
14983
      if ftype == TType.STOP:
14984
        break
14985
      if fid == 1:
14986
        if ftype == TType.I64:
14987
          self.orderId = iprot.readI64();
14988
        else:
14989
          iprot.skip(ftype)
14990
      elif fid == 2:
14991
        if ftype == TType.STRING:
14992
          self.pickupNumber = iprot.readString();
14993
        else:
14994
          iprot.skip(ftype)
4602 rajveer 14995
      elif fid == 3:
14996
        if ftype == TType.I64:
14997
          self.providerId = iprot.readI64();
14998
        else:
14999
          iprot.skip(ftype)
2536 chandransh 15000
      else:
15001
        iprot.skip(ftype)
15002
      iprot.readFieldEnd()
15003
    iprot.readStructEnd()
15004
 
15005
  def write(self, oprot):
15006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15008
      return
15009
    oprot.writeStructBegin('authorizePickup_args')
3431 rajveer 15010
    if self.orderId is not None:
2536 chandransh 15011
      oprot.writeFieldBegin('orderId', TType.I64, 1)
15012
      oprot.writeI64(self.orderId)
15013
      oprot.writeFieldEnd()
3431 rajveer 15014
    if self.pickupNumber is not None:
2536 chandransh 15015
      oprot.writeFieldBegin('pickupNumber', TType.STRING, 2)
15016
      oprot.writeString(self.pickupNumber)
15017
      oprot.writeFieldEnd()
4602 rajveer 15018
    if self.providerId is not None:
15019
      oprot.writeFieldBegin('providerId', TType.I64, 3)
15020
      oprot.writeI64(self.providerId)
15021
      oprot.writeFieldEnd()
2536 chandransh 15022
    oprot.writeFieldStop()
15023
    oprot.writeStructEnd()
15024
 
3431 rajveer 15025
  def validate(self):
15026
    return
15027
 
15028
 
2536 chandransh 15029
  def __repr__(self):
15030
    L = ['%s=%r' % (key, value)
15031
      for key, value in self.__dict__.iteritems()]
15032
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15033
 
15034
  def __eq__(self, other):
15035
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15036
 
15037
  def __ne__(self, other):
15038
    return not (self == other)
15039
 
15040
class authorizePickup_result:
15041
  """
15042
  Attributes:
15043
   - success
15044
   - ex
15045
  """
15046
 
15047
  thrift_spec = (
15048
    (0, TType.BOOL, 'success', None, None, ), # 0
15049
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
15050
  )
15051
 
15052
  def __init__(self, success=None, ex=None,):
15053
    self.success = success
15054
    self.ex = ex
15055
 
15056
  def read(self, iprot):
15057
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15058
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15059
      return
15060
    iprot.readStructBegin()
15061
    while True:
15062
      (fname, ftype, fid) = iprot.readFieldBegin()
15063
      if ftype == TType.STOP:
15064
        break
15065
      if fid == 0:
15066
        if ftype == TType.BOOL:
15067
          self.success = iprot.readBool();
15068
        else:
15069
          iprot.skip(ftype)
15070
      elif fid == 1:
15071
        if ftype == TType.STRUCT:
15072
          self.ex = TransactionServiceException()
15073
          self.ex.read(iprot)
15074
        else:
15075
          iprot.skip(ftype)
15076
      else:
15077
        iprot.skip(ftype)
15078
      iprot.readFieldEnd()
15079
    iprot.readStructEnd()
15080
 
15081
  def write(self, oprot):
15082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15084
      return
15085
    oprot.writeStructBegin('authorizePickup_result')
3431 rajveer 15086
    if self.success is not None:
2536 chandransh 15087
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15088
      oprot.writeBool(self.success)
15089
      oprot.writeFieldEnd()
3431 rajveer 15090
    if self.ex is not None:
2536 chandransh 15091
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
15092
      self.ex.write(oprot)
15093
      oprot.writeFieldEnd()
15094
    oprot.writeFieldStop()
15095
    oprot.writeStructEnd()
15096
 
3431 rajveer 15097
  def validate(self):
15098
    return
15099
 
15100
 
2536 chandransh 15101
  def __repr__(self):
15102
    L = ['%s=%r' % (key, value)
15103
      for key, value in self.__dict__.iteritems()]
15104
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15105
 
15106
  def __eq__(self, other):
15107
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15108
 
15109
  def __ne__(self, other):
15110
    return not (self == other)
15111
 
2764 chandransh 15112
class markDoasAsPickedUp_args:
15113
  """
15114
  Attributes:
15115
   - providerId
15116
   - pickupDetails
15117
  """
15118
 
15119
  thrift_spec = (
15120
    None, # 0
15121
    (1, TType.I64, 'providerId', None, None, ), # 1
15122
    (2, TType.MAP, 'pickupDetails', (TType.STRING,None,TType.STRING,None), None, ), # 2
15123
  )
15124
 
15125
  def __init__(self, providerId=None, pickupDetails=None,):
15126
    self.providerId = providerId
15127
    self.pickupDetails = pickupDetails
15128
 
15129
  def read(self, iprot):
15130
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15131
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15132
      return
15133
    iprot.readStructBegin()
15134
    while True:
15135
      (fname, ftype, fid) = iprot.readFieldBegin()
15136
      if ftype == TType.STOP:
15137
        break
15138
      if fid == 1:
15139
        if ftype == TType.I64:
15140
          self.providerId = iprot.readI64();
15141
        else:
15142
          iprot.skip(ftype)
15143
      elif fid == 2:
15144
        if ftype == TType.MAP:
15145
          self.pickupDetails = {}
5386 phani.kuma 15146
          (_ktype337, _vtype338, _size336 ) = iprot.readMapBegin() 
15147
          for _i340 in xrange(_size336):
15148
            _key341 = iprot.readString();
15149
            _val342 = iprot.readString();
15150
            self.pickupDetails[_key341] = _val342
2764 chandransh 15151
          iprot.readMapEnd()
15152
        else:
15153
          iprot.skip(ftype)
15154
      else:
15155
        iprot.skip(ftype)
15156
      iprot.readFieldEnd()
15157
    iprot.readStructEnd()
15158
 
15159
  def write(self, oprot):
15160
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15161
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15162
      return
15163
    oprot.writeStructBegin('markDoasAsPickedUp_args')
3431 rajveer 15164
    if self.providerId is not None:
2764 chandransh 15165
      oprot.writeFieldBegin('providerId', TType.I64, 1)
15166
      oprot.writeI64(self.providerId)
15167
      oprot.writeFieldEnd()
3431 rajveer 15168
    if self.pickupDetails is not None:
2764 chandransh 15169
      oprot.writeFieldBegin('pickupDetails', TType.MAP, 2)
15170
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.pickupDetails))
5386 phani.kuma 15171
      for kiter343,viter344 in self.pickupDetails.items():
15172
        oprot.writeString(kiter343)
15173
        oprot.writeString(viter344)
2764 chandransh 15174
      oprot.writeMapEnd()
15175
      oprot.writeFieldEnd()
15176
    oprot.writeFieldStop()
15177
    oprot.writeStructEnd()
15178
 
3431 rajveer 15179
  def validate(self):
15180
    return
15181
 
15182
 
2764 chandransh 15183
  def __repr__(self):
15184
    L = ['%s=%r' % (key, value)
15185
      for key, value in self.__dict__.iteritems()]
15186
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15187
 
15188
  def __eq__(self, other):
15189
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15190
 
15191
  def __ne__(self, other):
15192
    return not (self == other)
15193
 
15194
class markDoasAsPickedUp_result:
4910 phani.kuma 15195
 
15196
  thrift_spec = (
15197
  )
15198
 
15199
  def read(self, iprot):
15200
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15201
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15202
      return
15203
    iprot.readStructBegin()
15204
    while True:
15205
      (fname, ftype, fid) = iprot.readFieldBegin()
15206
      if ftype == TType.STOP:
15207
        break
15208
      else:
15209
        iprot.skip(ftype)
15210
      iprot.readFieldEnd()
15211
    iprot.readStructEnd()
15212
 
15213
  def write(self, oprot):
15214
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15215
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15216
      return
15217
    oprot.writeStructBegin('markDoasAsPickedUp_result')
15218
    oprot.writeFieldStop()
15219
    oprot.writeStructEnd()
15220
 
15221
  def validate(self):
15222
    return
15223
 
15224
 
15225
  def __repr__(self):
15226
    L = ['%s=%r' % (key, value)
15227
      for key, value in self.__dict__.iteritems()]
15228
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15229
 
15230
  def __eq__(self, other):
15231
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15232
 
15233
  def __ne__(self, other):
15234
    return not (self == other)
15235
 
15236
class getDoasNotPickedUp_args:
2764 chandransh 15237
  """
15238
  Attributes:
4910 phani.kuma 15239
   - providerId
15240
  """
15241
 
15242
  thrift_spec = (
15243
    None, # 0
15244
    (1, TType.I64, 'providerId', None, None, ), # 1
15245
  )
15246
 
15247
  def __init__(self, providerId=None,):
15248
    self.providerId = providerId
15249
 
15250
  def read(self, iprot):
15251
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15252
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15253
      return
15254
    iprot.readStructBegin()
15255
    while True:
15256
      (fname, ftype, fid) = iprot.readFieldBegin()
15257
      if ftype == TType.STOP:
15258
        break
15259
      if fid == 1:
15260
        if ftype == TType.I64:
15261
          self.providerId = iprot.readI64();
15262
        else:
15263
          iprot.skip(ftype)
15264
      else:
15265
        iprot.skip(ftype)
15266
      iprot.readFieldEnd()
15267
    iprot.readStructEnd()
15268
 
15269
  def write(self, oprot):
15270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15272
      return
15273
    oprot.writeStructBegin('getDoasNotPickedUp_args')
15274
    if self.providerId is not None:
15275
      oprot.writeFieldBegin('providerId', TType.I64, 1)
15276
      oprot.writeI64(self.providerId)
15277
      oprot.writeFieldEnd()
15278
    oprot.writeFieldStop()
15279
    oprot.writeStructEnd()
15280
 
15281
  def validate(self):
15282
    return
15283
 
15284
 
15285
  def __repr__(self):
15286
    L = ['%s=%r' % (key, value)
15287
      for key, value in self.__dict__.iteritems()]
15288
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15289
 
15290
  def __eq__(self, other):
15291
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15292
 
15293
  def __ne__(self, other):
15294
    return not (self == other)
15295
 
15296
class getDoasNotPickedUp_result:
15297
  """
15298
  Attributes:
2764 chandransh 15299
   - success
15300
  """
15301
 
15302
  thrift_spec = (
15303
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
15304
  )
15305
 
15306
  def __init__(self, success=None,):
15307
    self.success = success
15308
 
15309
  def read(self, iprot):
15310
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15311
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15312
      return
15313
    iprot.readStructBegin()
15314
    while True:
15315
      (fname, ftype, fid) = iprot.readFieldBegin()
15316
      if ftype == TType.STOP:
15317
        break
15318
      if fid == 0:
15319
        if ftype == TType.LIST:
15320
          self.success = []
5386 phani.kuma 15321
          (_etype348, _size345) = iprot.readListBegin()
15322
          for _i349 in xrange(_size345):
15323
            _elem350 = Order()
15324
            _elem350.read(iprot)
15325
            self.success.append(_elem350)
2764 chandransh 15326
          iprot.readListEnd()
15327
        else:
15328
          iprot.skip(ftype)
15329
      else:
15330
        iprot.skip(ftype)
15331
      iprot.readFieldEnd()
15332
    iprot.readStructEnd()
15333
 
15334
  def write(self, oprot):
15335
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15336
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15337
      return
4910 phani.kuma 15338
    oprot.writeStructBegin('getDoasNotPickedUp_result')
3431 rajveer 15339
    if self.success is not None:
2764 chandransh 15340
      oprot.writeFieldBegin('success', TType.LIST, 0)
15341
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 15342
      for iter351 in self.success:
15343
        iter351.write(oprot)
2764 chandransh 15344
      oprot.writeListEnd()
15345
      oprot.writeFieldEnd()
15346
    oprot.writeFieldStop()
15347
    oprot.writeStructEnd()
15348
 
3431 rajveer 15349
  def validate(self):
15350
    return
15351
 
15352
 
2764 chandransh 15353
  def __repr__(self):
15354
    L = ['%s=%r' % (key, value)
15355
      for key, value in self.__dict__.iteritems()]
15356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15357
 
15358
  def __eq__(self, other):
15359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15360
 
15361
  def __ne__(self, other):
15362
    return not (self == other)
15363
 
4741 phani.kuma 15364
class markReturnOrdersAsPickedUp_args:
15365
  """
15366
  Attributes:
15367
   - providerId
15368
   - pickupDetails
15369
  """
15370
 
15371
  thrift_spec = (
15372
    None, # 0
15373
    (1, TType.I64, 'providerId', None, None, ), # 1
15374
    (2, TType.MAP, 'pickupDetails', (TType.STRING,None,TType.STRING,None), None, ), # 2
15375
  )
15376
 
15377
  def __init__(self, providerId=None, pickupDetails=None,):
15378
    self.providerId = providerId
15379
    self.pickupDetails = pickupDetails
15380
 
15381
  def read(self, iprot):
15382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15384
      return
15385
    iprot.readStructBegin()
15386
    while True:
15387
      (fname, ftype, fid) = iprot.readFieldBegin()
15388
      if ftype == TType.STOP:
15389
        break
15390
      if fid == 1:
15391
        if ftype == TType.I64:
15392
          self.providerId = iprot.readI64();
15393
        else:
15394
          iprot.skip(ftype)
15395
      elif fid == 2:
15396
        if ftype == TType.MAP:
15397
          self.pickupDetails = {}
5386 phani.kuma 15398
          (_ktype353, _vtype354, _size352 ) = iprot.readMapBegin() 
15399
          for _i356 in xrange(_size352):
15400
            _key357 = iprot.readString();
15401
            _val358 = iprot.readString();
15402
            self.pickupDetails[_key357] = _val358
4741 phani.kuma 15403
          iprot.readMapEnd()
15404
        else:
15405
          iprot.skip(ftype)
15406
      else:
15407
        iprot.skip(ftype)
15408
      iprot.readFieldEnd()
15409
    iprot.readStructEnd()
15410
 
15411
  def write(self, oprot):
15412
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15413
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15414
      return
15415
    oprot.writeStructBegin('markReturnOrdersAsPickedUp_args')
15416
    if self.providerId is not None:
15417
      oprot.writeFieldBegin('providerId', TType.I64, 1)
15418
      oprot.writeI64(self.providerId)
15419
      oprot.writeFieldEnd()
15420
    if self.pickupDetails is not None:
15421
      oprot.writeFieldBegin('pickupDetails', TType.MAP, 2)
15422
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.pickupDetails))
5386 phani.kuma 15423
      for kiter359,viter360 in self.pickupDetails.items():
15424
        oprot.writeString(kiter359)
15425
        oprot.writeString(viter360)
4741 phani.kuma 15426
      oprot.writeMapEnd()
15427
      oprot.writeFieldEnd()
15428
    oprot.writeFieldStop()
15429
    oprot.writeStructEnd()
15430
 
15431
  def validate(self):
15432
    return
15433
 
15434
 
15435
  def __repr__(self):
15436
    L = ['%s=%r' % (key, value)
15437
      for key, value in self.__dict__.iteritems()]
15438
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15439
 
15440
  def __eq__(self, other):
15441
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15442
 
15443
  def __ne__(self, other):
15444
    return not (self == other)
15445
 
15446
class markReturnOrdersAsPickedUp_result:
4910 phani.kuma 15447
 
15448
  thrift_spec = (
15449
  )
15450
 
15451
  def read(self, iprot):
15452
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15453
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15454
      return
15455
    iprot.readStructBegin()
15456
    while True:
15457
      (fname, ftype, fid) = iprot.readFieldBegin()
15458
      if ftype == TType.STOP:
15459
        break
15460
      else:
15461
        iprot.skip(ftype)
15462
      iprot.readFieldEnd()
15463
    iprot.readStructEnd()
15464
 
15465
  def write(self, oprot):
15466
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15467
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15468
      return
15469
    oprot.writeStructBegin('markReturnOrdersAsPickedUp_result')
15470
    oprot.writeFieldStop()
15471
    oprot.writeStructEnd()
15472
 
15473
  def validate(self):
15474
    return
15475
 
15476
 
15477
  def __repr__(self):
15478
    L = ['%s=%r' % (key, value)
15479
      for key, value in self.__dict__.iteritems()]
15480
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15481
 
15482
  def __eq__(self, other):
15483
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15484
 
15485
  def __ne__(self, other):
15486
    return not (self == other)
15487
 
15488
class getReturnOrdersNotPickedUp_args:
4741 phani.kuma 15489
  """
15490
  Attributes:
4910 phani.kuma 15491
   - providerId
15492
  """
15493
 
15494
  thrift_spec = (
15495
    None, # 0
15496
    (1, TType.I64, 'providerId', None, None, ), # 1
15497
  )
15498
 
15499
  def __init__(self, providerId=None,):
15500
    self.providerId = providerId
15501
 
15502
  def read(self, iprot):
15503
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15504
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15505
      return
15506
    iprot.readStructBegin()
15507
    while True:
15508
      (fname, ftype, fid) = iprot.readFieldBegin()
15509
      if ftype == TType.STOP:
15510
        break
15511
      if fid == 1:
15512
        if ftype == TType.I64:
15513
          self.providerId = iprot.readI64();
15514
        else:
15515
          iprot.skip(ftype)
15516
      else:
15517
        iprot.skip(ftype)
15518
      iprot.readFieldEnd()
15519
    iprot.readStructEnd()
15520
 
15521
  def write(self, oprot):
15522
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15523
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15524
      return
15525
    oprot.writeStructBegin('getReturnOrdersNotPickedUp_args')
15526
    if self.providerId is not None:
15527
      oprot.writeFieldBegin('providerId', TType.I64, 1)
15528
      oprot.writeI64(self.providerId)
15529
      oprot.writeFieldEnd()
15530
    oprot.writeFieldStop()
15531
    oprot.writeStructEnd()
15532
 
15533
  def validate(self):
15534
    return
15535
 
15536
 
15537
  def __repr__(self):
15538
    L = ['%s=%r' % (key, value)
15539
      for key, value in self.__dict__.iteritems()]
15540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15541
 
15542
  def __eq__(self, other):
15543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15544
 
15545
  def __ne__(self, other):
15546
    return not (self == other)
15547
 
15548
class getReturnOrdersNotPickedUp_result:
15549
  """
15550
  Attributes:
4741 phani.kuma 15551
   - success
15552
  """
15553
 
15554
  thrift_spec = (
15555
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
15556
  )
15557
 
15558
  def __init__(self, success=None,):
15559
    self.success = success
15560
 
15561
  def read(self, iprot):
15562
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15563
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15564
      return
15565
    iprot.readStructBegin()
15566
    while True:
15567
      (fname, ftype, fid) = iprot.readFieldBegin()
15568
      if ftype == TType.STOP:
15569
        break
15570
      if fid == 0:
15571
        if ftype == TType.LIST:
15572
          self.success = []
5386 phani.kuma 15573
          (_etype364, _size361) = iprot.readListBegin()
15574
          for _i365 in xrange(_size361):
15575
            _elem366 = Order()
15576
            _elem366.read(iprot)
15577
            self.success.append(_elem366)
4741 phani.kuma 15578
          iprot.readListEnd()
15579
        else:
15580
          iprot.skip(ftype)
15581
      else:
15582
        iprot.skip(ftype)
15583
      iprot.readFieldEnd()
15584
    iprot.readStructEnd()
15585
 
15586
  def write(self, oprot):
15587
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15588
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15589
      return
4910 phani.kuma 15590
    oprot.writeStructBegin('getReturnOrdersNotPickedUp_result')
4741 phani.kuma 15591
    if self.success is not None:
15592
      oprot.writeFieldBegin('success', TType.LIST, 0)
15593
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 15594
      for iter367 in self.success:
15595
        iter367.write(oprot)
4741 phani.kuma 15596
      oprot.writeListEnd()
15597
      oprot.writeFieldEnd()
15598
    oprot.writeFieldStop()
15599
    oprot.writeStructEnd()
15600
 
15601
  def validate(self):
15602
    return
15603
 
15604
 
15605
  def __repr__(self):
15606
    L = ['%s=%r' % (key, value)
15607
      for key, value in self.__dict__.iteritems()]
15608
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15609
 
15610
  def __eq__(self, other):
15611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15612
 
15613
  def __ne__(self, other):
15614
    return not (self == other)
15615
 
2616 chandransh 15616
class receiveReturn_args:
2591 chandransh 15617
  """
15618
  Attributes:
15619
   - orderId
4479 rajveer 15620
   - receiveCondition
2591 chandransh 15621
  """
2536 chandransh 15622
 
2591 chandransh 15623
  thrift_spec = (
15624
    None, # 0
15625
    (1, TType.I64, 'orderId', None, None, ), # 1
4479 rajveer 15626
    (2, TType.I64, 'receiveCondition', None, None, ), # 2
2591 chandransh 15627
  )
15628
 
4479 rajveer 15629
  def __init__(self, orderId=None, receiveCondition=None,):
2591 chandransh 15630
    self.orderId = orderId
4479 rajveer 15631
    self.receiveCondition = receiveCondition
2591 chandransh 15632
 
15633
  def read(self, iprot):
15634
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15635
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15636
      return
15637
    iprot.readStructBegin()
15638
    while True:
15639
      (fname, ftype, fid) = iprot.readFieldBegin()
15640
      if ftype == TType.STOP:
15641
        break
15642
      if fid == 1:
15643
        if ftype == TType.I64:
15644
          self.orderId = iprot.readI64();
15645
        else:
15646
          iprot.skip(ftype)
4479 rajveer 15647
      elif fid == 2:
15648
        if ftype == TType.I64:
15649
          self.receiveCondition = iprot.readI64();
15650
        else:
15651
          iprot.skip(ftype)
2591 chandransh 15652
      else:
15653
        iprot.skip(ftype)
15654
      iprot.readFieldEnd()
15655
    iprot.readStructEnd()
15656
 
15657
  def write(self, oprot):
15658
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15659
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15660
      return
2616 chandransh 15661
    oprot.writeStructBegin('receiveReturn_args')
3431 rajveer 15662
    if self.orderId is not None:
2591 chandransh 15663
      oprot.writeFieldBegin('orderId', TType.I64, 1)
15664
      oprot.writeI64(self.orderId)
15665
      oprot.writeFieldEnd()
4479 rajveer 15666
    if self.receiveCondition is not None:
15667
      oprot.writeFieldBegin('receiveCondition', TType.I64, 2)
15668
      oprot.writeI64(self.receiveCondition)
15669
      oprot.writeFieldEnd()
2591 chandransh 15670
    oprot.writeFieldStop()
15671
    oprot.writeStructEnd()
15672
 
3431 rajveer 15673
  def validate(self):
15674
    return
15675
 
15676
 
2591 chandransh 15677
  def __repr__(self):
15678
    L = ['%s=%r' % (key, value)
15679
      for key, value in self.__dict__.iteritems()]
15680
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15681
 
15682
  def __eq__(self, other):
15683
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15684
 
15685
  def __ne__(self, other):
15686
    return not (self == other)
15687
 
2616 chandransh 15688
class receiveReturn_result:
2591 chandransh 15689
  """
15690
  Attributes:
15691
   - success
15692
   - ex
15693
  """
15694
 
15695
  thrift_spec = (
15696
    (0, TType.BOOL, 'success', None, None, ), # 0
15697
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
15698
  )
15699
 
15700
  def __init__(self, success=None, ex=None,):
15701
    self.success = success
15702
    self.ex = ex
15703
 
15704
  def read(self, iprot):
15705
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15706
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15707
      return
15708
    iprot.readStructBegin()
15709
    while True:
15710
      (fname, ftype, fid) = iprot.readFieldBegin()
15711
      if ftype == TType.STOP:
15712
        break
15713
      if fid == 0:
15714
        if ftype == TType.BOOL:
15715
          self.success = iprot.readBool();
15716
        else:
15717
          iprot.skip(ftype)
15718
      elif fid == 1:
15719
        if ftype == TType.STRUCT:
15720
          self.ex = TransactionServiceException()
15721
          self.ex.read(iprot)
15722
        else:
15723
          iprot.skip(ftype)
15724
      else:
15725
        iprot.skip(ftype)
15726
      iprot.readFieldEnd()
15727
    iprot.readStructEnd()
15728
 
15729
  def write(self, oprot):
15730
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15731
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15732
      return
2616 chandransh 15733
    oprot.writeStructBegin('receiveReturn_result')
3431 rajveer 15734
    if self.success is not None:
2591 chandransh 15735
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15736
      oprot.writeBool(self.success)
15737
      oprot.writeFieldEnd()
3431 rajveer 15738
    if self.ex is not None:
2591 chandransh 15739
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
15740
      self.ex.write(oprot)
15741
      oprot.writeFieldEnd()
15742
    oprot.writeFieldStop()
15743
    oprot.writeStructEnd()
15744
 
3431 rajveer 15745
  def validate(self):
15746
    return
15747
 
15748
 
2591 chandransh 15749
  def __repr__(self):
15750
    L = ['%s=%r' % (key, value)
15751
      for key, value in self.__dict__.iteritems()]
15752
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15753
 
15754
  def __eq__(self, other):
15755
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15756
 
15757
  def __ne__(self, other):
15758
    return not (self == other)
15759
 
15760
class validateDoa_args:
15761
  """
15762
  Attributes:
15763
   - orderId
15764
   - isValid
15765
  """
15766
 
15767
  thrift_spec = (
15768
    None, # 0
15769
    (1, TType.I64, 'orderId', None, None, ), # 1
15770
    (2, TType.BOOL, 'isValid', None, None, ), # 2
15771
  )
15772
 
15773
  def __init__(self, orderId=None, isValid=None,):
15774
    self.orderId = orderId
15775
    self.isValid = isValid
15776
 
15777
  def read(self, iprot):
15778
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15779
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15780
      return
15781
    iprot.readStructBegin()
15782
    while True:
15783
      (fname, ftype, fid) = iprot.readFieldBegin()
15784
      if ftype == TType.STOP:
15785
        break
15786
      if fid == 1:
15787
        if ftype == TType.I64:
15788
          self.orderId = iprot.readI64();
15789
        else:
15790
          iprot.skip(ftype)
15791
      elif fid == 2:
15792
        if ftype == TType.BOOL:
15793
          self.isValid = iprot.readBool();
15794
        else:
15795
          iprot.skip(ftype)
15796
      else:
15797
        iprot.skip(ftype)
15798
      iprot.readFieldEnd()
15799
    iprot.readStructEnd()
15800
 
15801
  def write(self, oprot):
15802
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15803
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15804
      return
15805
    oprot.writeStructBegin('validateDoa_args')
3431 rajveer 15806
    if self.orderId is not None:
2591 chandransh 15807
      oprot.writeFieldBegin('orderId', TType.I64, 1)
15808
      oprot.writeI64(self.orderId)
15809
      oprot.writeFieldEnd()
3431 rajveer 15810
    if self.isValid is not None:
2591 chandransh 15811
      oprot.writeFieldBegin('isValid', TType.BOOL, 2)
15812
      oprot.writeBool(self.isValid)
15813
      oprot.writeFieldEnd()
15814
    oprot.writeFieldStop()
15815
    oprot.writeStructEnd()
15816
 
3431 rajveer 15817
  def validate(self):
15818
    return
15819
 
15820
 
2591 chandransh 15821
  def __repr__(self):
15822
    L = ['%s=%r' % (key, value)
15823
      for key, value in self.__dict__.iteritems()]
15824
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15825
 
15826
  def __eq__(self, other):
15827
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15828
 
15829
  def __ne__(self, other):
15830
    return not (self == other)
15831
 
15832
class validateDoa_result:
15833
  """
15834
  Attributes:
15835
   - success
15836
   - ex
15837
  """
15838
 
15839
  thrift_spec = (
15840
    (0, TType.BOOL, 'success', None, None, ), # 0
15841
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
15842
  )
15843
 
15844
  def __init__(self, success=None, ex=None,):
15845
    self.success = success
15846
    self.ex = ex
15847
 
15848
  def read(self, iprot):
15849
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15850
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15851
      return
15852
    iprot.readStructBegin()
15853
    while True:
15854
      (fname, ftype, fid) = iprot.readFieldBegin()
15855
      if ftype == TType.STOP:
15856
        break
15857
      if fid == 0:
15858
        if ftype == TType.BOOL:
15859
          self.success = iprot.readBool();
15860
        else:
15861
          iprot.skip(ftype)
15862
      elif fid == 1:
15863
        if ftype == TType.STRUCT:
15864
          self.ex = TransactionServiceException()
15865
          self.ex.read(iprot)
15866
        else:
15867
          iprot.skip(ftype)
15868
      else:
15869
        iprot.skip(ftype)
15870
      iprot.readFieldEnd()
15871
    iprot.readStructEnd()
15872
 
15873
  def write(self, oprot):
15874
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15875
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15876
      return
15877
    oprot.writeStructBegin('validateDoa_result')
3431 rajveer 15878
    if self.success is not None:
2591 chandransh 15879
      oprot.writeFieldBegin('success', TType.BOOL, 0)
15880
      oprot.writeBool(self.success)
15881
      oprot.writeFieldEnd()
3431 rajveer 15882
    if self.ex is not None:
2591 chandransh 15883
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
15884
      self.ex.write(oprot)
15885
      oprot.writeFieldEnd()
15886
    oprot.writeFieldStop()
15887
    oprot.writeStructEnd()
15888
 
3431 rajveer 15889
  def validate(self):
15890
    return
15891
 
15892
 
2591 chandransh 15893
  def __repr__(self):
15894
    L = ['%s=%r' % (key, value)
15895
      for key, value in self.__dict__.iteritems()]
15896
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15897
 
15898
  def __eq__(self, other):
15899
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15900
 
15901
  def __ne__(self, other):
15902
    return not (self == other)
15903
 
4495 rajveer 15904
class validateReturnProduct_args:
15905
  """
15906
  Attributes:
15907
   - orderId
15908
   - isUsable
15909
  """
15910
 
15911
  thrift_spec = (
15912
    None, # 0
15913
    (1, TType.I64, 'orderId', None, None, ), # 1
15914
    (2, TType.BOOL, 'isUsable', None, None, ), # 2
15915
  )
15916
 
15917
  def __init__(self, orderId=None, isUsable=None,):
15918
    self.orderId = orderId
15919
    self.isUsable = isUsable
15920
 
15921
  def read(self, iprot):
15922
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15923
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15924
      return
15925
    iprot.readStructBegin()
15926
    while True:
15927
      (fname, ftype, fid) = iprot.readFieldBegin()
15928
      if ftype == TType.STOP:
15929
        break
15930
      if fid == 1:
15931
        if ftype == TType.I64:
15932
          self.orderId = iprot.readI64();
15933
        else:
15934
          iprot.skip(ftype)
15935
      elif fid == 2:
15936
        if ftype == TType.BOOL:
15937
          self.isUsable = iprot.readBool();
15938
        else:
15939
          iprot.skip(ftype)
15940
      else:
15941
        iprot.skip(ftype)
15942
      iprot.readFieldEnd()
15943
    iprot.readStructEnd()
15944
 
15945
  def write(self, oprot):
15946
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
15947
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
15948
      return
15949
    oprot.writeStructBegin('validateReturnProduct_args')
15950
    if self.orderId is not None:
15951
      oprot.writeFieldBegin('orderId', TType.I64, 1)
15952
      oprot.writeI64(self.orderId)
15953
      oprot.writeFieldEnd()
15954
    if self.isUsable is not None:
15955
      oprot.writeFieldBegin('isUsable', TType.BOOL, 2)
15956
      oprot.writeBool(self.isUsable)
15957
      oprot.writeFieldEnd()
15958
    oprot.writeFieldStop()
15959
    oprot.writeStructEnd()
15960
 
15961
  def validate(self):
15962
    return
15963
 
15964
 
15965
  def __repr__(self):
15966
    L = ['%s=%r' % (key, value)
15967
      for key, value in self.__dict__.iteritems()]
15968
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
15969
 
15970
  def __eq__(self, other):
15971
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
15972
 
15973
  def __ne__(self, other):
15974
    return not (self == other)
15975
 
15976
class validateReturnProduct_result:
15977
  """
15978
  Attributes:
15979
   - success
15980
   - ex
15981
  """
15982
 
15983
  thrift_spec = (
15984
    (0, TType.BOOL, 'success', None, None, ), # 0
15985
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
15986
  )
15987
 
15988
  def __init__(self, success=None, ex=None,):
15989
    self.success = success
15990
    self.ex = ex
15991
 
15992
  def read(self, iprot):
15993
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
15994
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
15995
      return
15996
    iprot.readStructBegin()
15997
    while True:
15998
      (fname, ftype, fid) = iprot.readFieldBegin()
15999
      if ftype == TType.STOP:
16000
        break
16001
      if fid == 0:
16002
        if ftype == TType.BOOL:
16003
          self.success = iprot.readBool();
16004
        else:
16005
          iprot.skip(ftype)
16006
      elif fid == 1:
16007
        if ftype == TType.STRUCT:
16008
          self.ex = TransactionServiceException()
16009
          self.ex.read(iprot)
16010
        else:
16011
          iprot.skip(ftype)
16012
      else:
16013
        iprot.skip(ftype)
16014
      iprot.readFieldEnd()
16015
    iprot.readStructEnd()
16016
 
16017
  def write(self, oprot):
16018
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16019
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16020
      return
16021
    oprot.writeStructBegin('validateReturnProduct_result')
16022
    if self.success is not None:
16023
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16024
      oprot.writeBool(self.success)
16025
      oprot.writeFieldEnd()
16026
    if self.ex is not None:
16027
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
16028
      self.ex.write(oprot)
16029
      oprot.writeFieldEnd()
16030
    oprot.writeFieldStop()
16031
    oprot.writeStructEnd()
16032
 
16033
  def validate(self):
16034
    return
16035
 
16036
 
16037
  def __repr__(self):
16038
    L = ['%s=%r' % (key, value)
16039
      for key, value in self.__dict__.iteritems()]
16040
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16041
 
16042
  def __eq__(self, other):
16043
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16044
 
16045
  def __ne__(self, other):
16046
    return not (self == other)
16047
 
2616 chandransh 16048
class reshipOrder_args:
16049
  """
16050
  Attributes:
16051
   - orderId
16052
  """
2591 chandransh 16053
 
2616 chandransh 16054
  thrift_spec = (
16055
    None, # 0
16056
    (1, TType.I64, 'orderId', None, None, ), # 1
16057
  )
16058
 
16059
  def __init__(self, orderId=None,):
16060
    self.orderId = orderId
16061
 
16062
  def read(self, iprot):
16063
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16064
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16065
      return
16066
    iprot.readStructBegin()
16067
    while True:
16068
      (fname, ftype, fid) = iprot.readFieldBegin()
16069
      if ftype == TType.STOP:
16070
        break
16071
      if fid == 1:
16072
        if ftype == TType.I64:
16073
          self.orderId = iprot.readI64();
16074
        else:
16075
          iprot.skip(ftype)
16076
      else:
16077
        iprot.skip(ftype)
16078
      iprot.readFieldEnd()
16079
    iprot.readStructEnd()
16080
 
16081
  def write(self, oprot):
16082
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16083
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16084
      return
16085
    oprot.writeStructBegin('reshipOrder_args')
3431 rajveer 16086
    if self.orderId is not None:
2616 chandransh 16087
      oprot.writeFieldBegin('orderId', TType.I64, 1)
16088
      oprot.writeI64(self.orderId)
16089
      oprot.writeFieldEnd()
16090
    oprot.writeFieldStop()
16091
    oprot.writeStructEnd()
16092
 
3431 rajveer 16093
  def validate(self):
16094
    return
16095
 
16096
 
2616 chandransh 16097
  def __repr__(self):
16098
    L = ['%s=%r' % (key, value)
16099
      for key, value in self.__dict__.iteritems()]
16100
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16101
 
16102
  def __eq__(self, other):
16103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16104
 
16105
  def __ne__(self, other):
16106
    return not (self == other)
16107
 
16108
class reshipOrder_result:
16109
  """
16110
  Attributes:
16111
   - success
16112
   - ex
16113
  """
16114
 
16115
  thrift_spec = (
16116
    (0, TType.I64, 'success', None, None, ), # 0
16117
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
16118
  )
16119
 
16120
  def __init__(self, success=None, ex=None,):
16121
    self.success = success
16122
    self.ex = ex
16123
 
16124
  def read(self, iprot):
16125
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16126
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16127
      return
16128
    iprot.readStructBegin()
16129
    while True:
16130
      (fname, ftype, fid) = iprot.readFieldBegin()
16131
      if ftype == TType.STOP:
16132
        break
16133
      if fid == 0:
16134
        if ftype == TType.I64:
16135
          self.success = iprot.readI64();
16136
        else:
16137
          iprot.skip(ftype)
16138
      elif fid == 1:
16139
        if ftype == TType.STRUCT:
16140
          self.ex = TransactionServiceException()
16141
          self.ex.read(iprot)
16142
        else:
16143
          iprot.skip(ftype)
16144
      else:
16145
        iprot.skip(ftype)
16146
      iprot.readFieldEnd()
16147
    iprot.readStructEnd()
16148
 
16149
  def write(self, oprot):
16150
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16151
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16152
      return
16153
    oprot.writeStructBegin('reshipOrder_result')
3431 rajveer 16154
    if self.success is not None:
2616 chandransh 16155
      oprot.writeFieldBegin('success', TType.I64, 0)
16156
      oprot.writeI64(self.success)
16157
      oprot.writeFieldEnd()
3431 rajveer 16158
    if self.ex is not None:
2616 chandransh 16159
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
16160
      self.ex.write(oprot)
16161
      oprot.writeFieldEnd()
16162
    oprot.writeFieldStop()
16163
    oprot.writeStructEnd()
16164
 
3431 rajveer 16165
  def validate(self):
16166
    return
16167
 
16168
 
2616 chandransh 16169
  def __repr__(self):
16170
    L = ['%s=%r' % (key, value)
16171
      for key, value in self.__dict__.iteritems()]
16172
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16173
 
16174
  def __eq__(self, other):
16175
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16176
 
16177
  def __ne__(self, other):
16178
    return not (self == other)
16179
 
16180
class refundOrder_args:
16181
  """
16182
  Attributes:
16183
   - orderId
3226 chandransh 16184
   - refundedBy
16185
   - reason
2616 chandransh 16186
  """
16187
 
16188
  thrift_spec = (
16189
    None, # 0
16190
    (1, TType.I64, 'orderId', None, None, ), # 1
3226 chandransh 16191
    (2, TType.STRING, 'refundedBy', None, None, ), # 2
16192
    (3, TType.STRING, 'reason', None, None, ), # 3
2616 chandransh 16193
  )
16194
 
3226 chandransh 16195
  def __init__(self, orderId=None, refundedBy=None, reason=None,):
2616 chandransh 16196
    self.orderId = orderId
3226 chandransh 16197
    self.refundedBy = refundedBy
16198
    self.reason = reason
2616 chandransh 16199
 
16200
  def read(self, iprot):
16201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16203
      return
16204
    iprot.readStructBegin()
16205
    while True:
16206
      (fname, ftype, fid) = iprot.readFieldBegin()
16207
      if ftype == TType.STOP:
16208
        break
16209
      if fid == 1:
16210
        if ftype == TType.I64:
16211
          self.orderId = iprot.readI64();
16212
        else:
16213
          iprot.skip(ftype)
3226 chandransh 16214
      elif fid == 2:
16215
        if ftype == TType.STRING:
16216
          self.refundedBy = iprot.readString();
16217
        else:
16218
          iprot.skip(ftype)
16219
      elif fid == 3:
16220
        if ftype == TType.STRING:
16221
          self.reason = iprot.readString();
16222
        else:
16223
          iprot.skip(ftype)
2616 chandransh 16224
      else:
16225
        iprot.skip(ftype)
16226
      iprot.readFieldEnd()
16227
    iprot.readStructEnd()
16228
 
16229
  def write(self, oprot):
16230
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16231
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16232
      return
16233
    oprot.writeStructBegin('refundOrder_args')
3431 rajveer 16234
    if self.orderId is not None:
2616 chandransh 16235
      oprot.writeFieldBegin('orderId', TType.I64, 1)
16236
      oprot.writeI64(self.orderId)
16237
      oprot.writeFieldEnd()
3431 rajveer 16238
    if self.refundedBy is not None:
3226 chandransh 16239
      oprot.writeFieldBegin('refundedBy', TType.STRING, 2)
16240
      oprot.writeString(self.refundedBy)
16241
      oprot.writeFieldEnd()
3431 rajveer 16242
    if self.reason is not None:
3226 chandransh 16243
      oprot.writeFieldBegin('reason', TType.STRING, 3)
16244
      oprot.writeString(self.reason)
16245
      oprot.writeFieldEnd()
2616 chandransh 16246
    oprot.writeFieldStop()
16247
    oprot.writeStructEnd()
16248
 
3431 rajveer 16249
  def validate(self):
16250
    return
16251
 
16252
 
2616 chandransh 16253
  def __repr__(self):
16254
    L = ['%s=%r' % (key, value)
16255
      for key, value in self.__dict__.iteritems()]
16256
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16257
 
16258
  def __eq__(self, other):
16259
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16260
 
16261
  def __ne__(self, other):
16262
    return not (self == other)
16263
 
16264
class refundOrder_result:
16265
  """
16266
  Attributes:
16267
   - success
16268
   - ex
16269
  """
16270
 
16271
  thrift_spec = (
16272
    (0, TType.BOOL, 'success', None, None, ), # 0
16273
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
16274
  )
16275
 
16276
  def __init__(self, success=None, ex=None,):
16277
    self.success = success
16278
    self.ex = ex
16279
 
16280
  def read(self, iprot):
16281
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16282
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16283
      return
16284
    iprot.readStructBegin()
16285
    while True:
16286
      (fname, ftype, fid) = iprot.readFieldBegin()
16287
      if ftype == TType.STOP:
16288
        break
16289
      if fid == 0:
16290
        if ftype == TType.BOOL:
16291
          self.success = iprot.readBool();
16292
        else:
16293
          iprot.skip(ftype)
16294
      elif fid == 1:
16295
        if ftype == TType.STRUCT:
16296
          self.ex = TransactionServiceException()
16297
          self.ex.read(iprot)
16298
        else:
16299
          iprot.skip(ftype)
16300
      else:
16301
        iprot.skip(ftype)
16302
      iprot.readFieldEnd()
16303
    iprot.readStructEnd()
16304
 
16305
  def write(self, oprot):
16306
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16307
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16308
      return
16309
    oprot.writeStructBegin('refundOrder_result')
3431 rajveer 16310
    if self.success is not None:
2616 chandransh 16311
      oprot.writeFieldBegin('success', TType.BOOL, 0)
16312
      oprot.writeBool(self.success)
16313
      oprot.writeFieldEnd()
3431 rajveer 16314
    if self.ex is not None:
2616 chandransh 16315
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
16316
      self.ex.write(oprot)
16317
      oprot.writeFieldEnd()
16318
    oprot.writeFieldStop()
16319
    oprot.writeStructEnd()
16320
 
3431 rajveer 16321
  def validate(self):
16322
    return
16323
 
16324
 
2616 chandransh 16325
  def __repr__(self):
16326
    L = ['%s=%r' % (key, value)
16327
      for key, value in self.__dict__.iteritems()]
16328
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16329
 
16330
  def __eq__(self, other):
16331
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16332
 
16333
  def __ne__(self, other):
16334
    return not (self == other)
16335
 
2690 chandransh 16336
class getReturnOrders_args:
16337
  """
16338
  Attributes:
16339
   - warehouseId
16340
   - fromDate
16341
   - toDate
16342
  """
2616 chandransh 16343
 
2690 chandransh 16344
  thrift_spec = (
16345
    None, # 0
16346
    (1, TType.I64, 'warehouseId', None, None, ), # 1
16347
    (2, TType.I64, 'fromDate', None, None, ), # 2
16348
    (3, TType.I64, 'toDate', None, None, ), # 3
16349
  )
16350
 
16351
  def __init__(self, warehouseId=None, fromDate=None, toDate=None,):
16352
    self.warehouseId = warehouseId
16353
    self.fromDate = fromDate
16354
    self.toDate = toDate
16355
 
16356
  def read(self, iprot):
16357
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16358
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16359
      return
16360
    iprot.readStructBegin()
16361
    while True:
16362
      (fname, ftype, fid) = iprot.readFieldBegin()
16363
      if ftype == TType.STOP:
16364
        break
16365
      if fid == 1:
16366
        if ftype == TType.I64:
16367
          self.warehouseId = iprot.readI64();
16368
        else:
16369
          iprot.skip(ftype)
16370
      elif fid == 2:
16371
        if ftype == TType.I64:
16372
          self.fromDate = iprot.readI64();
16373
        else:
16374
          iprot.skip(ftype)
16375
      elif fid == 3:
16376
        if ftype == TType.I64:
16377
          self.toDate = iprot.readI64();
16378
        else:
16379
          iprot.skip(ftype)
16380
      else:
16381
        iprot.skip(ftype)
16382
      iprot.readFieldEnd()
16383
    iprot.readStructEnd()
16384
 
16385
  def write(self, oprot):
16386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16388
      return
16389
    oprot.writeStructBegin('getReturnOrders_args')
3431 rajveer 16390
    if self.warehouseId is not None:
2690 chandransh 16391
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
16392
      oprot.writeI64(self.warehouseId)
16393
      oprot.writeFieldEnd()
3431 rajveer 16394
    if self.fromDate is not None:
2690 chandransh 16395
      oprot.writeFieldBegin('fromDate', TType.I64, 2)
16396
      oprot.writeI64(self.fromDate)
16397
      oprot.writeFieldEnd()
3431 rajveer 16398
    if self.toDate is not None:
2690 chandransh 16399
      oprot.writeFieldBegin('toDate', TType.I64, 3)
16400
      oprot.writeI64(self.toDate)
16401
      oprot.writeFieldEnd()
16402
    oprot.writeFieldStop()
16403
    oprot.writeStructEnd()
16404
 
3431 rajveer 16405
  def validate(self):
16406
    return
16407
 
16408
 
2690 chandransh 16409
  def __repr__(self):
16410
    L = ['%s=%r' % (key, value)
16411
      for key, value in self.__dict__.iteritems()]
16412
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16413
 
16414
  def __eq__(self, other):
16415
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16416
 
16417
  def __ne__(self, other):
16418
    return not (self == other)
16419
 
16420
class getReturnOrders_result:
16421
  """
16422
  Attributes:
16423
   - success
16424
  """
16425
 
16426
  thrift_spec = (
16427
    (0, TType.LIST, 'success', (TType.STRUCT,(ReturnOrder, ReturnOrder.thrift_spec)), None, ), # 0
16428
  )
16429
 
16430
  def __init__(self, success=None,):
16431
    self.success = success
16432
 
16433
  def read(self, iprot):
16434
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16435
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16436
      return
16437
    iprot.readStructBegin()
16438
    while True:
16439
      (fname, ftype, fid) = iprot.readFieldBegin()
16440
      if ftype == TType.STOP:
16441
        break
16442
      if fid == 0:
16443
        if ftype == TType.LIST:
16444
          self.success = []
5386 phani.kuma 16445
          (_etype371, _size368) = iprot.readListBegin()
16446
          for _i372 in xrange(_size368):
16447
            _elem373 = ReturnOrder()
16448
            _elem373.read(iprot)
16449
            self.success.append(_elem373)
2690 chandransh 16450
          iprot.readListEnd()
16451
        else:
16452
          iprot.skip(ftype)
16453
      else:
16454
        iprot.skip(ftype)
16455
      iprot.readFieldEnd()
16456
    iprot.readStructEnd()
16457
 
16458
  def write(self, oprot):
16459
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16460
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16461
      return
16462
    oprot.writeStructBegin('getReturnOrders_result')
3431 rajveer 16463
    if self.success is not None:
2690 chandransh 16464
      oprot.writeFieldBegin('success', TType.LIST, 0)
16465
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 16466
      for iter374 in self.success:
16467
        iter374.write(oprot)
2690 chandransh 16468
      oprot.writeListEnd()
16469
      oprot.writeFieldEnd()
16470
    oprot.writeFieldStop()
16471
    oprot.writeStructEnd()
16472
 
3431 rajveer 16473
  def validate(self):
16474
    return
16475
 
16476
 
2690 chandransh 16477
  def __repr__(self):
16478
    L = ['%s=%r' % (key, value)
16479
      for key, value in self.__dict__.iteritems()]
16480
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16481
 
16482
  def __eq__(self, other):
16483
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16484
 
16485
  def __ne__(self, other):
16486
    return not (self == other)
16487
 
2700 chandransh 16488
class getReturnOrder_args:
16489
  """
16490
  Attributes:
16491
   - id
16492
  """
16493
 
16494
  thrift_spec = (
16495
    None, # 0
16496
    (1, TType.I64, 'id', None, None, ), # 1
16497
  )
16498
 
16499
  def __init__(self, id=None,):
16500
    self.id = id
16501
 
16502
  def read(self, iprot):
16503
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16504
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16505
      return
16506
    iprot.readStructBegin()
16507
    while True:
16508
      (fname, ftype, fid) = iprot.readFieldBegin()
16509
      if ftype == TType.STOP:
16510
        break
16511
      if fid == 1:
16512
        if ftype == TType.I64:
16513
          self.id = iprot.readI64();
16514
        else:
16515
          iprot.skip(ftype)
16516
      else:
16517
        iprot.skip(ftype)
16518
      iprot.readFieldEnd()
16519
    iprot.readStructEnd()
16520
 
16521
  def write(self, oprot):
16522
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16523
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16524
      return
16525
    oprot.writeStructBegin('getReturnOrder_args')
3431 rajveer 16526
    if self.id is not None:
2700 chandransh 16527
      oprot.writeFieldBegin('id', TType.I64, 1)
16528
      oprot.writeI64(self.id)
16529
      oprot.writeFieldEnd()
16530
    oprot.writeFieldStop()
16531
    oprot.writeStructEnd()
16532
 
3431 rajveer 16533
  def validate(self):
16534
    return
16535
 
16536
 
2700 chandransh 16537
  def __repr__(self):
16538
    L = ['%s=%r' % (key, value)
16539
      for key, value in self.__dict__.iteritems()]
16540
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16541
 
16542
  def __eq__(self, other):
16543
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16544
 
16545
  def __ne__(self, other):
16546
    return not (self == other)
16547
 
16548
class getReturnOrder_result:
16549
  """
16550
  Attributes:
16551
   - success
16552
   - ex
16553
  """
16554
 
16555
  thrift_spec = (
16556
    (0, TType.STRUCT, 'success', (ReturnOrder, ReturnOrder.thrift_spec), None, ), # 0
16557
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
16558
  )
16559
 
16560
  def __init__(self, success=None, ex=None,):
16561
    self.success = success
16562
    self.ex = ex
16563
 
16564
  def read(self, iprot):
16565
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16566
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16567
      return
16568
    iprot.readStructBegin()
16569
    while True:
16570
      (fname, ftype, fid) = iprot.readFieldBegin()
16571
      if ftype == TType.STOP:
16572
        break
16573
      if fid == 0:
16574
        if ftype == TType.STRUCT:
16575
          self.success = ReturnOrder()
16576
          self.success.read(iprot)
16577
        else:
16578
          iprot.skip(ftype)
16579
      elif fid == 1:
16580
        if ftype == TType.STRUCT:
16581
          self.ex = TransactionServiceException()
16582
          self.ex.read(iprot)
16583
        else:
16584
          iprot.skip(ftype)
16585
      else:
16586
        iprot.skip(ftype)
16587
      iprot.readFieldEnd()
16588
    iprot.readStructEnd()
16589
 
16590
  def write(self, oprot):
16591
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16592
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16593
      return
16594
    oprot.writeStructBegin('getReturnOrder_result')
3431 rajveer 16595
    if self.success is not None:
2700 chandransh 16596
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
16597
      self.success.write(oprot)
16598
      oprot.writeFieldEnd()
3431 rajveer 16599
    if self.ex is not None:
2700 chandransh 16600
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
16601
      self.ex.write(oprot)
16602
      oprot.writeFieldEnd()
16603
    oprot.writeFieldStop()
16604
    oprot.writeStructEnd()
16605
 
3431 rajveer 16606
  def validate(self):
16607
    return
16608
 
16609
 
2700 chandransh 16610
  def __repr__(self):
16611
    L = ['%s=%r' % (key, value)
16612
      for key, value in self.__dict__.iteritems()]
16613
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16614
 
16615
  def __eq__(self, other):
16616
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16617
 
16618
  def __ne__(self, other):
16619
    return not (self == other)
16620
 
2690 chandransh 16621
class processReturn_args:
16622
  """
16623
  Attributes:
16624
   - returnOrderId
16625
  """
16626
 
16627
  thrift_spec = (
16628
    None, # 0
16629
    (1, TType.I64, 'returnOrderId', None, None, ), # 1
16630
  )
16631
 
16632
  def __init__(self, returnOrderId=None,):
16633
    self.returnOrderId = returnOrderId
16634
 
16635
  def read(self, iprot):
16636
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16637
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16638
      return
16639
    iprot.readStructBegin()
16640
    while True:
16641
      (fname, ftype, fid) = iprot.readFieldBegin()
16642
      if ftype == TType.STOP:
16643
        break
16644
      if fid == 1:
16645
        if ftype == TType.I64:
16646
          self.returnOrderId = iprot.readI64();
16647
        else:
16648
          iprot.skip(ftype)
16649
      else:
16650
        iprot.skip(ftype)
16651
      iprot.readFieldEnd()
16652
    iprot.readStructEnd()
16653
 
16654
  def write(self, oprot):
16655
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16656
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16657
      return
16658
    oprot.writeStructBegin('processReturn_args')
3431 rajveer 16659
    if self.returnOrderId is not None:
2690 chandransh 16660
      oprot.writeFieldBegin('returnOrderId', TType.I64, 1)
16661
      oprot.writeI64(self.returnOrderId)
16662
      oprot.writeFieldEnd()
16663
    oprot.writeFieldStop()
16664
    oprot.writeStructEnd()
16665
 
3431 rajveer 16666
  def validate(self):
16667
    return
16668
 
16669
 
2690 chandransh 16670
  def __repr__(self):
16671
    L = ['%s=%r' % (key, value)
16672
      for key, value in self.__dict__.iteritems()]
16673
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16674
 
16675
  def __eq__(self, other):
16676
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16677
 
16678
  def __ne__(self, other):
16679
    return not (self == other)
16680
 
16681
class processReturn_result:
16682
  """
16683
  Attributes:
16684
   - ex
16685
  """
16686
 
16687
  thrift_spec = (
16688
    None, # 0
16689
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
16690
  )
16691
 
16692
  def __init__(self, ex=None,):
16693
    self.ex = ex
16694
 
16695
  def read(self, iprot):
16696
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16697
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16698
      return
16699
    iprot.readStructBegin()
16700
    while True:
16701
      (fname, ftype, fid) = iprot.readFieldBegin()
16702
      if ftype == TType.STOP:
16703
        break
16704
      if fid == 1:
16705
        if ftype == TType.STRUCT:
16706
          self.ex = TransactionServiceException()
16707
          self.ex.read(iprot)
16708
        else:
16709
          iprot.skip(ftype)
16710
      else:
16711
        iprot.skip(ftype)
16712
      iprot.readFieldEnd()
16713
    iprot.readStructEnd()
16714
 
16715
  def write(self, oprot):
16716
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16717
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16718
      return
16719
    oprot.writeStructBegin('processReturn_result')
3431 rajveer 16720
    if self.ex is not None:
2690 chandransh 16721
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
16722
      self.ex.write(oprot)
16723
      oprot.writeFieldEnd()
16724
    oprot.writeFieldStop()
16725
    oprot.writeStructEnd()
16726
 
3431 rajveer 16727
  def validate(self):
16728
    return
16729
 
16730
 
2690 chandransh 16731
  def __repr__(self):
16732
    L = ['%s=%r' % (key, value)
16733
      for key, value in self.__dict__.iteritems()]
16734
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16735
 
16736
  def __eq__(self, other):
16737
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16738
 
16739
  def __ne__(self, other):
16740
    return not (self == other)
16741
 
3451 chandransh 16742
class updateWeight_args:
16743
  """
16744
  Attributes:
16745
   - orderId
16746
   - weight
16747
  """
16748
 
16749
  thrift_spec = (
16750
    None, # 0
16751
    (1, TType.I64, 'orderId', None, None, ), # 1
16752
    (2, TType.DOUBLE, 'weight', None, None, ), # 2
16753
  )
16754
 
16755
  def __init__(self, orderId=None, weight=None,):
16756
    self.orderId = orderId
16757
    self.weight = weight
16758
 
16759
  def read(self, iprot):
16760
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16761
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16762
      return
16763
    iprot.readStructBegin()
16764
    while True:
16765
      (fname, ftype, fid) = iprot.readFieldBegin()
16766
      if ftype == TType.STOP:
16767
        break
16768
      if fid == 1:
16769
        if ftype == TType.I64:
16770
          self.orderId = iprot.readI64();
16771
        else:
16772
          iprot.skip(ftype)
16773
      elif fid == 2:
16774
        if ftype == TType.DOUBLE:
16775
          self.weight = iprot.readDouble();
16776
        else:
16777
          iprot.skip(ftype)
16778
      else:
16779
        iprot.skip(ftype)
16780
      iprot.readFieldEnd()
16781
    iprot.readStructEnd()
16782
 
16783
  def write(self, oprot):
16784
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16785
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16786
      return
16787
    oprot.writeStructBegin('updateWeight_args')
16788
    if self.orderId is not None:
16789
      oprot.writeFieldBegin('orderId', TType.I64, 1)
16790
      oprot.writeI64(self.orderId)
16791
      oprot.writeFieldEnd()
16792
    if self.weight is not None:
16793
      oprot.writeFieldBegin('weight', TType.DOUBLE, 2)
16794
      oprot.writeDouble(self.weight)
16795
      oprot.writeFieldEnd()
16796
    oprot.writeFieldStop()
16797
    oprot.writeStructEnd()
16798
 
16799
  def validate(self):
16800
    return
16801
 
16802
 
16803
  def __repr__(self):
16804
    L = ['%s=%r' % (key, value)
16805
      for key, value in self.__dict__.iteritems()]
16806
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16807
 
16808
  def __eq__(self, other):
16809
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16810
 
16811
  def __ne__(self, other):
16812
    return not (self == other)
16813
 
16814
class updateWeight_result:
16815
  """
16816
  Attributes:
16817
   - success
16818
   - ex
16819
  """
16820
 
16821
  thrift_spec = (
16822
    (0, TType.STRUCT, 'success', (Order, Order.thrift_spec), None, ), # 0
16823
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
16824
  )
16825
 
16826
  def __init__(self, success=None, ex=None,):
16827
    self.success = success
16828
    self.ex = ex
16829
 
16830
  def read(self, iprot):
16831
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16832
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16833
      return
16834
    iprot.readStructBegin()
16835
    while True:
16836
      (fname, ftype, fid) = iprot.readFieldBegin()
16837
      if ftype == TType.STOP:
16838
        break
16839
      if fid == 0:
16840
        if ftype == TType.STRUCT:
16841
          self.success = Order()
16842
          self.success.read(iprot)
16843
        else:
16844
          iprot.skip(ftype)
16845
      elif fid == 1:
16846
        if ftype == TType.STRUCT:
16847
          self.ex = TransactionServiceException()
16848
          self.ex.read(iprot)
16849
        else:
16850
          iprot.skip(ftype)
16851
      else:
16852
        iprot.skip(ftype)
16853
      iprot.readFieldEnd()
16854
    iprot.readStructEnd()
16855
 
16856
  def write(self, oprot):
16857
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16858
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16859
      return
16860
    oprot.writeStructBegin('updateWeight_result')
16861
    if self.success is not None:
16862
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
16863
      self.success.write(oprot)
16864
      oprot.writeFieldEnd()
16865
    if self.ex is not None:
16866
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
16867
      self.ex.write(oprot)
16868
      oprot.writeFieldEnd()
16869
    oprot.writeFieldStop()
16870
    oprot.writeStructEnd()
16871
 
16872
  def validate(self):
16873
    return
16874
 
16875
 
16876
  def __repr__(self):
16877
    L = ['%s=%r' % (key, value)
16878
      for key, value in self.__dict__.iteritems()]
16879
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16880
 
16881
  def __eq__(self, other):
16882
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16883
 
16884
  def __ne__(self, other):
16885
    return not (self == other)
3469 chandransh 16886
 
16887
class changeItem_args:
16888
  """
16889
  Attributes:
16890
   - orderId
16891
   - itemId
16892
  """
16893
 
16894
  thrift_spec = (
16895
    None, # 0
16896
    (1, TType.I64, 'orderId', None, None, ), # 1
16897
    (2, TType.I64, 'itemId', None, None, ), # 2
16898
  )
16899
 
16900
  def __init__(self, orderId=None, itemId=None,):
16901
    self.orderId = orderId
16902
    self.itemId = itemId
16903
 
16904
  def read(self, iprot):
16905
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16906
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16907
      return
16908
    iprot.readStructBegin()
16909
    while True:
16910
      (fname, ftype, fid) = iprot.readFieldBegin()
16911
      if ftype == TType.STOP:
16912
        break
16913
      if fid == 1:
16914
        if ftype == TType.I64:
16915
          self.orderId = iprot.readI64();
16916
        else:
16917
          iprot.skip(ftype)
16918
      elif fid == 2:
16919
        if ftype == TType.I64:
16920
          self.itemId = iprot.readI64();
16921
        else:
16922
          iprot.skip(ftype)
16923
      else:
16924
        iprot.skip(ftype)
16925
      iprot.readFieldEnd()
16926
    iprot.readStructEnd()
16927
 
16928
  def write(self, oprot):
16929
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
16930
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
16931
      return
16932
    oprot.writeStructBegin('changeItem_args')
16933
    if self.orderId is not None:
16934
      oprot.writeFieldBegin('orderId', TType.I64, 1)
16935
      oprot.writeI64(self.orderId)
16936
      oprot.writeFieldEnd()
16937
    if self.itemId is not None:
16938
      oprot.writeFieldBegin('itemId', TType.I64, 2)
16939
      oprot.writeI64(self.itemId)
16940
      oprot.writeFieldEnd()
16941
    oprot.writeFieldStop()
16942
    oprot.writeStructEnd()
16943
 
16944
  def validate(self):
16945
    return
16946
 
16947
 
16948
  def __repr__(self):
16949
    L = ['%s=%r' % (key, value)
16950
      for key, value in self.__dict__.iteritems()]
16951
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
16952
 
16953
  def __eq__(self, other):
16954
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
16955
 
16956
  def __ne__(self, other):
16957
    return not (self == other)
16958
 
16959
class changeItem_result:
16960
  """
16961
  Attributes:
16962
   - success
16963
   - ex
16964
  """
16965
 
16966
  thrift_spec = (
16967
    (0, TType.STRUCT, 'success', (Order, Order.thrift_spec), None, ), # 0
16968
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
16969
  )
16970
 
16971
  def __init__(self, success=None, ex=None,):
16972
    self.success = success
16973
    self.ex = ex
16974
 
16975
  def read(self, iprot):
16976
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16977
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16978
      return
16979
    iprot.readStructBegin()
16980
    while True:
16981
      (fname, ftype, fid) = iprot.readFieldBegin()
16982
      if ftype == TType.STOP:
16983
        break
16984
      if fid == 0:
16985
        if ftype == TType.STRUCT:
16986
          self.success = Order()
16987
          self.success.read(iprot)
16988
        else:
16989
          iprot.skip(ftype)
16990
      elif fid == 1:
16991
        if ftype == TType.STRUCT:
16992
          self.ex = TransactionServiceException()
16993
          self.ex.read(iprot)
16994
        else:
16995
          iprot.skip(ftype)
16996
      else:
16997
        iprot.skip(ftype)
16998
      iprot.readFieldEnd()
16999
    iprot.readStructEnd()
17000
 
17001
  def write(self, oprot):
17002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17004
      return
17005
    oprot.writeStructBegin('changeItem_result')
17006
    if self.success is not None:
17007
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
17008
      self.success.write(oprot)
17009
      oprot.writeFieldEnd()
17010
    if self.ex is not None:
17011
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
17012
      self.ex.write(oprot)
17013
      oprot.writeFieldEnd()
17014
    oprot.writeFieldStop()
17015
    oprot.writeStructEnd()
17016
 
17017
  def validate(self):
17018
    return
17019
 
17020
 
17021
  def __repr__(self):
17022
    L = ['%s=%r' % (key, value)
17023
      for key, value in self.__dict__.iteritems()]
17024
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17025
 
17026
  def __eq__(self, other):
17027
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17028
 
17029
  def __ne__(self, other):
17030
    return not (self == other)
17031
 
17032
class shiftToWarehouse_args:
17033
  """
17034
  Attributes:
17035
   - orderId
17036
   - warehouseId
17037
  """
17038
 
17039
  thrift_spec = (
17040
    None, # 0
17041
    (1, TType.I64, 'orderId', None, None, ), # 1
17042
    (2, TType.I64, 'warehouseId', None, None, ), # 2
17043
  )
17044
 
17045
  def __init__(self, orderId=None, warehouseId=None,):
17046
    self.orderId = orderId
17047
    self.warehouseId = warehouseId
17048
 
17049
  def read(self, iprot):
17050
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17051
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17052
      return
17053
    iprot.readStructBegin()
17054
    while True:
17055
      (fname, ftype, fid) = iprot.readFieldBegin()
17056
      if ftype == TType.STOP:
17057
        break
17058
      if fid == 1:
17059
        if ftype == TType.I64:
17060
          self.orderId = iprot.readI64();
17061
        else:
17062
          iprot.skip(ftype)
17063
      elif fid == 2:
17064
        if ftype == TType.I64:
17065
          self.warehouseId = iprot.readI64();
17066
        else:
17067
          iprot.skip(ftype)
17068
      else:
17069
        iprot.skip(ftype)
17070
      iprot.readFieldEnd()
17071
    iprot.readStructEnd()
17072
 
17073
  def write(self, oprot):
17074
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17075
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17076
      return
17077
    oprot.writeStructBegin('shiftToWarehouse_args')
17078
    if self.orderId is not None:
17079
      oprot.writeFieldBegin('orderId', TType.I64, 1)
17080
      oprot.writeI64(self.orderId)
17081
      oprot.writeFieldEnd()
17082
    if self.warehouseId is not None:
17083
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
17084
      oprot.writeI64(self.warehouseId)
17085
      oprot.writeFieldEnd()
17086
    oprot.writeFieldStop()
17087
    oprot.writeStructEnd()
17088
 
17089
  def validate(self):
17090
    return
17091
 
17092
 
17093
  def __repr__(self):
17094
    L = ['%s=%r' % (key, value)
17095
      for key, value in self.__dict__.iteritems()]
17096
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17097
 
17098
  def __eq__(self, other):
17099
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17100
 
17101
  def __ne__(self, other):
17102
    return not (self == other)
17103
 
17104
class shiftToWarehouse_result:
17105
  """
17106
  Attributes:
17107
   - success
17108
   - ex
17109
  """
17110
 
17111
  thrift_spec = (
17112
    (0, TType.STRUCT, 'success', (Order, Order.thrift_spec), None, ), # 0
17113
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
17114
  )
17115
 
17116
  def __init__(self, success=None, ex=None,):
17117
    self.success = success
17118
    self.ex = ex
17119
 
17120
  def read(self, iprot):
17121
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17122
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17123
      return
17124
    iprot.readStructBegin()
17125
    while True:
17126
      (fname, ftype, fid) = iprot.readFieldBegin()
17127
      if ftype == TType.STOP:
17128
        break
17129
      if fid == 0:
17130
        if ftype == TType.STRUCT:
17131
          self.success = Order()
17132
          self.success.read(iprot)
17133
        else:
17134
          iprot.skip(ftype)
17135
      elif fid == 1:
17136
        if ftype == TType.STRUCT:
17137
          self.ex = TransactionServiceException()
17138
          self.ex.read(iprot)
17139
        else:
17140
          iprot.skip(ftype)
17141
      else:
17142
        iprot.skip(ftype)
17143
      iprot.readFieldEnd()
17144
    iprot.readStructEnd()
17145
 
17146
  def write(self, oprot):
17147
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17148
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17149
      return
17150
    oprot.writeStructBegin('shiftToWarehouse_result')
17151
    if self.success is not None:
17152
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
17153
      self.success.write(oprot)
17154
      oprot.writeFieldEnd()
17155
    if self.ex is not None:
17156
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
17157
      self.ex.write(oprot)
17158
      oprot.writeFieldEnd()
17159
    oprot.writeFieldStop()
17160
    oprot.writeStructEnd()
17161
 
17162
  def validate(self):
17163
    return
17164
 
17165
 
17166
  def __repr__(self):
17167
    L = ['%s=%r' % (key, value)
17168
      for key, value in self.__dict__.iteritems()]
17169
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17170
 
17171
  def __eq__(self, other):
17172
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17173
 
17174
  def __ne__(self, other):
17175
    return not (self == other)
3553 chandransh 17176
 
17177
class addDelayReason_args:
17178
  """
17179
  Attributes:
17180
   - orderId
17181
   - delayReason
3986 chandransh 17182
   - furtherDelay
4647 rajveer 17183
   - delayReasonText
3553 chandransh 17184
  """
17185
 
17186
  thrift_spec = (
17187
    None, # 0
17188
    (1, TType.I64, 'orderId', None, None, ), # 1
17189
    (2, TType.I32, 'delayReason', None, None, ), # 2
3986 chandransh 17190
    (3, TType.I64, 'furtherDelay', None, None, ), # 3
4647 rajveer 17191
    (4, TType.STRING, 'delayReasonText', None, None, ), # 4
3553 chandransh 17192
  )
17193
 
4647 rajveer 17194
  def __init__(self, orderId=None, delayReason=None, furtherDelay=None, delayReasonText=None,):
3553 chandransh 17195
    self.orderId = orderId
17196
    self.delayReason = delayReason
3986 chandransh 17197
    self.furtherDelay = furtherDelay
4647 rajveer 17198
    self.delayReasonText = delayReasonText
3553 chandransh 17199
 
17200
  def read(self, iprot):
17201
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17202
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17203
      return
17204
    iprot.readStructBegin()
17205
    while True:
17206
      (fname, ftype, fid) = iprot.readFieldBegin()
17207
      if ftype == TType.STOP:
17208
        break
17209
      if fid == 1:
17210
        if ftype == TType.I64:
17211
          self.orderId = iprot.readI64();
17212
        else:
17213
          iprot.skip(ftype)
17214
      elif fid == 2:
17215
        if ftype == TType.I32:
17216
          self.delayReason = iprot.readI32();
17217
        else:
17218
          iprot.skip(ftype)
3986 chandransh 17219
      elif fid == 3:
17220
        if ftype == TType.I64:
17221
          self.furtherDelay = iprot.readI64();
17222
        else:
17223
          iprot.skip(ftype)
4647 rajveer 17224
      elif fid == 4:
17225
        if ftype == TType.STRING:
17226
          self.delayReasonText = iprot.readString();
17227
        else:
17228
          iprot.skip(ftype)
3553 chandransh 17229
      else:
17230
        iprot.skip(ftype)
17231
      iprot.readFieldEnd()
17232
    iprot.readStructEnd()
17233
 
17234
  def write(self, oprot):
17235
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17236
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17237
      return
17238
    oprot.writeStructBegin('addDelayReason_args')
17239
    if self.orderId is not None:
17240
      oprot.writeFieldBegin('orderId', TType.I64, 1)
17241
      oprot.writeI64(self.orderId)
17242
      oprot.writeFieldEnd()
17243
    if self.delayReason is not None:
17244
      oprot.writeFieldBegin('delayReason', TType.I32, 2)
17245
      oprot.writeI32(self.delayReason)
17246
      oprot.writeFieldEnd()
3986 chandransh 17247
    if self.furtherDelay is not None:
17248
      oprot.writeFieldBegin('furtherDelay', TType.I64, 3)
17249
      oprot.writeI64(self.furtherDelay)
17250
      oprot.writeFieldEnd()
4647 rajveer 17251
    if self.delayReasonText is not None:
17252
      oprot.writeFieldBegin('delayReasonText', TType.STRING, 4)
17253
      oprot.writeString(self.delayReasonText)
17254
      oprot.writeFieldEnd()
3553 chandransh 17255
    oprot.writeFieldStop()
17256
    oprot.writeStructEnd()
17257
 
17258
  def validate(self):
17259
    return
17260
 
17261
 
17262
  def __repr__(self):
17263
    L = ['%s=%r' % (key, value)
17264
      for key, value in self.__dict__.iteritems()]
17265
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17266
 
17267
  def __eq__(self, other):
17268
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17269
 
17270
  def __ne__(self, other):
17271
    return not (self == other)
17272
 
17273
class addDelayReason_result:
17274
  """
17275
  Attributes:
17276
   - success
17277
   - ex
17278
  """
17279
 
17280
  thrift_spec = (
17281
    (0, TType.BOOL, 'success', None, None, ), # 0
17282
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
17283
  )
17284
 
17285
  def __init__(self, success=None, ex=None,):
17286
    self.success = success
17287
    self.ex = ex
17288
 
17289
  def read(self, iprot):
17290
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17291
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17292
      return
17293
    iprot.readStructBegin()
17294
    while True:
17295
      (fname, ftype, fid) = iprot.readFieldBegin()
17296
      if ftype == TType.STOP:
17297
        break
17298
      if fid == 0:
17299
        if ftype == TType.BOOL:
17300
          self.success = iprot.readBool();
17301
        else:
17302
          iprot.skip(ftype)
17303
      elif fid == 1:
17304
        if ftype == TType.STRUCT:
17305
          self.ex = TransactionServiceException()
17306
          self.ex.read(iprot)
17307
        else:
17308
          iprot.skip(ftype)
17309
      else:
17310
        iprot.skip(ftype)
17311
      iprot.readFieldEnd()
17312
    iprot.readStructEnd()
17313
 
17314
  def write(self, oprot):
17315
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17316
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17317
      return
17318
    oprot.writeStructBegin('addDelayReason_result')
17319
    if self.success is not None:
17320
      oprot.writeFieldBegin('success', TType.BOOL, 0)
17321
      oprot.writeBool(self.success)
17322
      oprot.writeFieldEnd()
17323
    if self.ex is not None:
17324
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
17325
      self.ex.write(oprot)
17326
      oprot.writeFieldEnd()
17327
    oprot.writeFieldStop()
17328
    oprot.writeStructEnd()
17329
 
17330
  def validate(self):
17331
    return
17332
 
17333
 
17334
  def __repr__(self):
17335
    L = ['%s=%r' % (key, value)
17336
      for key, value in self.__dict__.iteritems()]
17337
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17338
 
17339
  def __eq__(self, other):
17340
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17341
 
17342
  def __ne__(self, other):
17343
    return not (self == other)
3956 chandransh 17344
 
17345
class reconcileCodCollection_args:
17346
  """
17347
  Attributes:
17348
   - collectedAmountMap
17349
   - xferBy
17350
   - xferTxnId
17351
   - xferDate
17352
  """
17353
 
17354
  thrift_spec = (
17355
    None, # 0
17356
    (1, TType.MAP, 'collectedAmountMap', (TType.STRING,None,TType.DOUBLE,None), None, ), # 1
17357
    (2, TType.STRING, 'xferBy', None, None, ), # 2
17358
    (3, TType.STRING, 'xferTxnId', None, None, ), # 3
17359
    (4, TType.I64, 'xferDate', None, None, ), # 4
17360
  )
17361
 
17362
  def __init__(self, collectedAmountMap=None, xferBy=None, xferTxnId=None, xferDate=None,):
17363
    self.collectedAmountMap = collectedAmountMap
17364
    self.xferBy = xferBy
17365
    self.xferTxnId = xferTxnId
17366
    self.xferDate = xferDate
17367
 
17368
  def read(self, iprot):
17369
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17370
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17371
      return
17372
    iprot.readStructBegin()
17373
    while True:
17374
      (fname, ftype, fid) = iprot.readFieldBegin()
17375
      if ftype == TType.STOP:
17376
        break
17377
      if fid == 1:
17378
        if ftype == TType.MAP:
17379
          self.collectedAmountMap = {}
5386 phani.kuma 17380
          (_ktype376, _vtype377, _size375 ) = iprot.readMapBegin() 
17381
          for _i379 in xrange(_size375):
17382
            _key380 = iprot.readString();
17383
            _val381 = iprot.readDouble();
17384
            self.collectedAmountMap[_key380] = _val381
3956 chandransh 17385
          iprot.readMapEnd()
17386
        else:
17387
          iprot.skip(ftype)
17388
      elif fid == 2:
17389
        if ftype == TType.STRING:
17390
          self.xferBy = iprot.readString();
17391
        else:
17392
          iprot.skip(ftype)
17393
      elif fid == 3:
17394
        if ftype == TType.STRING:
17395
          self.xferTxnId = iprot.readString();
17396
        else:
17397
          iprot.skip(ftype)
17398
      elif fid == 4:
17399
        if ftype == TType.I64:
17400
          self.xferDate = iprot.readI64();
17401
        else:
17402
          iprot.skip(ftype)
17403
      else:
17404
        iprot.skip(ftype)
17405
      iprot.readFieldEnd()
17406
    iprot.readStructEnd()
17407
 
17408
  def write(self, oprot):
17409
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17410
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17411
      return
17412
    oprot.writeStructBegin('reconcileCodCollection_args')
17413
    if self.collectedAmountMap is not None:
17414
      oprot.writeFieldBegin('collectedAmountMap', TType.MAP, 1)
17415
      oprot.writeMapBegin(TType.STRING, TType.DOUBLE, len(self.collectedAmountMap))
5386 phani.kuma 17416
      for kiter382,viter383 in self.collectedAmountMap.items():
17417
        oprot.writeString(kiter382)
17418
        oprot.writeDouble(viter383)
3956 chandransh 17419
      oprot.writeMapEnd()
17420
      oprot.writeFieldEnd()
17421
    if self.xferBy is not None:
17422
      oprot.writeFieldBegin('xferBy', TType.STRING, 2)
17423
      oprot.writeString(self.xferBy)
17424
      oprot.writeFieldEnd()
17425
    if self.xferTxnId is not None:
17426
      oprot.writeFieldBegin('xferTxnId', TType.STRING, 3)
17427
      oprot.writeString(self.xferTxnId)
17428
      oprot.writeFieldEnd()
17429
    if self.xferDate is not None:
17430
      oprot.writeFieldBegin('xferDate', TType.I64, 4)
17431
      oprot.writeI64(self.xferDate)
17432
      oprot.writeFieldEnd()
17433
    oprot.writeFieldStop()
17434
    oprot.writeStructEnd()
17435
 
17436
  def validate(self):
17437
    return
17438
 
17439
 
17440
  def __repr__(self):
17441
    L = ['%s=%r' % (key, value)
17442
      for key, value in self.__dict__.iteritems()]
17443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17444
 
17445
  def __eq__(self, other):
17446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17447
 
17448
  def __ne__(self, other):
17449
    return not (self == other)
17450
 
17451
class reconcileCodCollection_result:
17452
  """
17453
  Attributes:
17454
   - success
17455
   - ex
17456
  """
17457
 
17458
  thrift_spec = (
17459
    (0, TType.MAP, 'success', (TType.STRING,None,TType.STRING,None), None, ), # 0
17460
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
17461
  )
17462
 
17463
  def __init__(self, success=None, ex=None,):
17464
    self.success = success
17465
    self.ex = ex
17466
 
17467
  def read(self, iprot):
17468
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17469
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17470
      return
17471
    iprot.readStructBegin()
17472
    while True:
17473
      (fname, ftype, fid) = iprot.readFieldBegin()
17474
      if ftype == TType.STOP:
17475
        break
17476
      if fid == 0:
17477
        if ftype == TType.MAP:
17478
          self.success = {}
5386 phani.kuma 17479
          (_ktype385, _vtype386, _size384 ) = iprot.readMapBegin() 
17480
          for _i388 in xrange(_size384):
17481
            _key389 = iprot.readString();
17482
            _val390 = iprot.readString();
17483
            self.success[_key389] = _val390
3956 chandransh 17484
          iprot.readMapEnd()
17485
        else:
17486
          iprot.skip(ftype)
17487
      elif fid == 1:
17488
        if ftype == TType.STRUCT:
17489
          self.ex = TransactionServiceException()
17490
          self.ex.read(iprot)
17491
        else:
17492
          iprot.skip(ftype)
17493
      else:
17494
        iprot.skip(ftype)
17495
      iprot.readFieldEnd()
17496
    iprot.readStructEnd()
17497
 
17498
  def write(self, oprot):
17499
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17500
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17501
      return
17502
    oprot.writeStructBegin('reconcileCodCollection_result')
17503
    if self.success is not None:
17504
      oprot.writeFieldBegin('success', TType.MAP, 0)
17505
      oprot.writeMapBegin(TType.STRING, TType.STRING, len(self.success))
5386 phani.kuma 17506
      for kiter391,viter392 in self.success.items():
17507
        oprot.writeString(kiter391)
17508
        oprot.writeString(viter392)
3956 chandransh 17509
      oprot.writeMapEnd()
17510
      oprot.writeFieldEnd()
17511
    if self.ex is not None:
17512
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
17513
      self.ex.write(oprot)
17514
      oprot.writeFieldEnd()
17515
    oprot.writeFieldStop()
17516
    oprot.writeStructEnd()
17517
 
17518
  def validate(self):
17519
    return
17520
 
17521
 
17522
  def __repr__(self):
17523
    L = ['%s=%r' % (key, value)
17524
      for key, value in self.__dict__.iteritems()]
17525
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17526
 
17527
  def __eq__(self, other):
17528
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17529
 
17530
  def __ne__(self, other):
17531
    return not (self == other)
4008 mandeep.dh 17532
 
17533
class getTransactionsRequiringExtraProcessing_args:
17534
  """
17535
  Attributes:
17536
   - category
17537
  """
17538
 
17539
  thrift_spec = (
17540
    None, # 0
17541
    (1, TType.I32, 'category', None, None, ), # 1
17542
  )
17543
 
17544
  def __init__(self, category=None,):
17545
    self.category = category
17546
 
17547
  def read(self, iprot):
17548
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17549
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17550
      return
17551
    iprot.readStructBegin()
17552
    while True:
17553
      (fname, ftype, fid) = iprot.readFieldBegin()
17554
      if ftype == TType.STOP:
17555
        break
17556
      if fid == 1:
17557
        if ftype == TType.I32:
17558
          self.category = iprot.readI32();
17559
        else:
17560
          iprot.skip(ftype)
17561
      else:
17562
        iprot.skip(ftype)
17563
      iprot.readFieldEnd()
17564
    iprot.readStructEnd()
17565
 
17566
  def write(self, oprot):
17567
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17568
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17569
      return
17570
    oprot.writeStructBegin('getTransactionsRequiringExtraProcessing_args')
17571
    if self.category is not None:
17572
      oprot.writeFieldBegin('category', TType.I32, 1)
17573
      oprot.writeI32(self.category)
17574
      oprot.writeFieldEnd()
17575
    oprot.writeFieldStop()
17576
    oprot.writeStructEnd()
17577
 
17578
  def validate(self):
17579
    return
17580
 
17581
 
17582
  def __repr__(self):
17583
    L = ['%s=%r' % (key, value)
17584
      for key, value in self.__dict__.iteritems()]
17585
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17586
 
17587
  def __eq__(self, other):
17588
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17589
 
17590
  def __ne__(self, other):
17591
    return not (self == other)
17592
 
17593
class getTransactionsRequiringExtraProcessing_result:
17594
  """
17595
  Attributes:
17596
   - success
17597
  """
17598
 
17599
  thrift_spec = (
17600
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
17601
  )
17602
 
17603
  def __init__(self, success=None,):
17604
    self.success = success
17605
 
17606
  def read(self, iprot):
17607
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17608
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17609
      return
17610
    iprot.readStructBegin()
17611
    while True:
17612
      (fname, ftype, fid) = iprot.readFieldBegin()
17613
      if ftype == TType.STOP:
17614
        break
17615
      if fid == 0:
17616
        if ftype == TType.LIST:
17617
          self.success = []
5386 phani.kuma 17618
          (_etype396, _size393) = iprot.readListBegin()
17619
          for _i397 in xrange(_size393):
17620
            _elem398 = iprot.readI64();
17621
            self.success.append(_elem398)
4008 mandeep.dh 17622
          iprot.readListEnd()
17623
        else:
17624
          iprot.skip(ftype)
17625
      else:
17626
        iprot.skip(ftype)
17627
      iprot.readFieldEnd()
17628
    iprot.readStructEnd()
17629
 
17630
  def write(self, oprot):
17631
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17632
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17633
      return
17634
    oprot.writeStructBegin('getTransactionsRequiringExtraProcessing_result')
17635
    if self.success is not None:
17636
      oprot.writeFieldBegin('success', TType.LIST, 0)
17637
      oprot.writeListBegin(TType.I64, len(self.success))
5386 phani.kuma 17638
      for iter399 in self.success:
17639
        oprot.writeI64(iter399)
4008 mandeep.dh 17640
      oprot.writeListEnd()
17641
      oprot.writeFieldEnd()
17642
    oprot.writeFieldStop()
17643
    oprot.writeStructEnd()
17644
 
17645
  def validate(self):
17646
    return
17647
 
17648
 
17649
  def __repr__(self):
17650
    L = ['%s=%r' % (key, value)
17651
      for key, value in self.__dict__.iteritems()]
17652
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17653
 
17654
  def __eq__(self, other):
17655
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17656
 
17657
  def __ne__(self, other):
17658
    return not (self == other)
17659
 
17660
class markTransactionAsProcessed_args:
17661
  """
17662
  Attributes:
17663
   - transactionId
17664
   - category
17665
  """
17666
 
17667
  thrift_spec = (
17668
    None, # 0
17669
    (1, TType.I64, 'transactionId', None, None, ), # 1
17670
    (2, TType.I32, 'category', None, None, ), # 2
17671
  )
17672
 
17673
  def __init__(self, transactionId=None, category=None,):
17674
    self.transactionId = transactionId
17675
    self.category = category
17676
 
17677
  def read(self, iprot):
17678
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17679
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17680
      return
17681
    iprot.readStructBegin()
17682
    while True:
17683
      (fname, ftype, fid) = iprot.readFieldBegin()
17684
      if ftype == TType.STOP:
17685
        break
17686
      if fid == 1:
17687
        if ftype == TType.I64:
17688
          self.transactionId = iprot.readI64();
17689
        else:
17690
          iprot.skip(ftype)
17691
      elif fid == 2:
17692
        if ftype == TType.I32:
17693
          self.category = iprot.readI32();
17694
        else:
17695
          iprot.skip(ftype)
17696
      else:
17697
        iprot.skip(ftype)
17698
      iprot.readFieldEnd()
17699
    iprot.readStructEnd()
17700
 
17701
  def write(self, oprot):
17702
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17703
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17704
      return
17705
    oprot.writeStructBegin('markTransactionAsProcessed_args')
17706
    if self.transactionId is not None:
17707
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
17708
      oprot.writeI64(self.transactionId)
17709
      oprot.writeFieldEnd()
17710
    if self.category is not None:
17711
      oprot.writeFieldBegin('category', TType.I32, 2)
17712
      oprot.writeI32(self.category)
17713
      oprot.writeFieldEnd()
17714
    oprot.writeFieldStop()
17715
    oprot.writeStructEnd()
17716
 
17717
  def validate(self):
17718
    return
17719
 
17720
 
17721
  def __repr__(self):
17722
    L = ['%s=%r' % (key, value)
17723
      for key, value in self.__dict__.iteritems()]
17724
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17725
 
17726
  def __eq__(self, other):
17727
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17728
 
17729
  def __ne__(self, other):
17730
    return not (self == other)
17731
 
17732
class markTransactionAsProcessed_result:
17733
 
17734
  thrift_spec = (
17735
  )
17736
 
17737
  def read(self, iprot):
17738
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17739
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17740
      return
17741
    iprot.readStructBegin()
17742
    while True:
17743
      (fname, ftype, fid) = iprot.readFieldBegin()
17744
      if ftype == TType.STOP:
17745
        break
17746
      else:
17747
        iprot.skip(ftype)
17748
      iprot.readFieldEnd()
17749
    iprot.readStructEnd()
17750
 
17751
  def write(self, oprot):
17752
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17753
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17754
      return
17755
    oprot.writeStructBegin('markTransactionAsProcessed_result')
17756
    oprot.writeFieldStop()
17757
    oprot.writeStructEnd()
17758
 
17759
  def validate(self):
17760
    return
17761
 
17762
 
17763
  def __repr__(self):
17764
    L = ['%s=%r' % (key, value)
17765
      for key, value in self.__dict__.iteritems()]
17766
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17767
 
17768
  def __eq__(self, other):
17769
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17770
 
17771
  def __ne__(self, other):
17772
    return not (self == other)
4018 chandransh 17773
 
17774
class getItemWiseRiskyOrdersCount_args:
17775
 
17776
  thrift_spec = (
17777
  )
17778
 
17779
  def read(self, iprot):
17780
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17781
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17782
      return
17783
    iprot.readStructBegin()
17784
    while True:
17785
      (fname, ftype, fid) = iprot.readFieldBegin()
17786
      if ftype == TType.STOP:
17787
        break
17788
      else:
17789
        iprot.skip(ftype)
17790
      iprot.readFieldEnd()
17791
    iprot.readStructEnd()
17792
 
17793
  def write(self, oprot):
17794
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17795
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17796
      return
17797
    oprot.writeStructBegin('getItemWiseRiskyOrdersCount_args')
17798
    oprot.writeFieldStop()
17799
    oprot.writeStructEnd()
17800
 
17801
  def validate(self):
17802
    return
17803
 
17804
 
17805
  def __repr__(self):
17806
    L = ['%s=%r' % (key, value)
17807
      for key, value in self.__dict__.iteritems()]
17808
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17809
 
17810
  def __eq__(self, other):
17811
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17812
 
17813
  def __ne__(self, other):
17814
    return not (self == other)
17815
 
17816
class getItemWiseRiskyOrdersCount_result:
17817
  """
17818
  Attributes:
17819
   - success
17820
  """
17821
 
17822
  thrift_spec = (
17823
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
17824
  )
17825
 
17826
  def __init__(self, success=None,):
17827
    self.success = success
17828
 
17829
  def read(self, iprot):
17830
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17831
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17832
      return
17833
    iprot.readStructBegin()
17834
    while True:
17835
      (fname, ftype, fid) = iprot.readFieldBegin()
17836
      if ftype == TType.STOP:
17837
        break
17838
      if fid == 0:
17839
        if ftype == TType.MAP:
17840
          self.success = {}
5386 phani.kuma 17841
          (_ktype401, _vtype402, _size400 ) = iprot.readMapBegin() 
17842
          for _i404 in xrange(_size400):
17843
            _key405 = iprot.readI64();
17844
            _val406 = iprot.readI64();
17845
            self.success[_key405] = _val406
4018 chandransh 17846
          iprot.readMapEnd()
17847
        else:
17848
          iprot.skip(ftype)
17849
      else:
17850
        iprot.skip(ftype)
17851
      iprot.readFieldEnd()
17852
    iprot.readStructEnd()
17853
 
17854
  def write(self, oprot):
17855
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17856
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17857
      return
17858
    oprot.writeStructBegin('getItemWiseRiskyOrdersCount_result')
17859
    if self.success is not None:
17860
      oprot.writeFieldBegin('success', TType.MAP, 0)
17861
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
5386 phani.kuma 17862
      for kiter407,viter408 in self.success.items():
17863
        oprot.writeI64(kiter407)
17864
        oprot.writeI64(viter408)
4018 chandransh 17865
      oprot.writeMapEnd()
17866
      oprot.writeFieldEnd()
17867
    oprot.writeFieldStop()
17868
    oprot.writeStructEnd()
17869
 
17870
  def validate(self):
17871
    return
17872
 
17873
 
17874
  def __repr__(self):
17875
    L = ['%s=%r' % (key, value)
17876
      for key, value in self.__dict__.iteritems()]
17877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17878
 
17879
  def __eq__(self, other):
17880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17881
 
17882
  def __ne__(self, other):
17883
    return not (self == other)
4247 rajveer 17884
 
4295 varun.gupt 17885
class getOrdersForItemIds_args:
17886
  """
17887
  Attributes:
17888
   - itemIds
17889
  """
17890
 
17891
  thrift_spec = (
17892
    None, # 0
17893
    (1, TType.LIST, 'itemIds', (TType.I64,None), None, ), # 1
17894
  )
17895
 
17896
  def __init__(self, itemIds=None,):
17897
    self.itemIds = itemIds
17898
 
17899
  def read(self, iprot):
17900
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17901
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17902
      return
17903
    iprot.readStructBegin()
17904
    while True:
17905
      (fname, ftype, fid) = iprot.readFieldBegin()
17906
      if ftype == TType.STOP:
17907
        break
17908
      if fid == 1:
17909
        if ftype == TType.LIST:
17910
          self.itemIds = []
5386 phani.kuma 17911
          (_etype412, _size409) = iprot.readListBegin()
17912
          for _i413 in xrange(_size409):
17913
            _elem414 = iprot.readI64();
17914
            self.itemIds.append(_elem414)
4295 varun.gupt 17915
          iprot.readListEnd()
17916
        else:
17917
          iprot.skip(ftype)
17918
      else:
17919
        iprot.skip(ftype)
17920
      iprot.readFieldEnd()
17921
    iprot.readStructEnd()
17922
 
17923
  def write(self, oprot):
17924
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17925
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17926
      return
17927
    oprot.writeStructBegin('getOrdersForItemIds_args')
17928
    if self.itemIds is not None:
17929
      oprot.writeFieldBegin('itemIds', TType.LIST, 1)
17930
      oprot.writeListBegin(TType.I64, len(self.itemIds))
5386 phani.kuma 17931
      for iter415 in self.itemIds:
17932
        oprot.writeI64(iter415)
4295 varun.gupt 17933
      oprot.writeListEnd()
17934
      oprot.writeFieldEnd()
17935
    oprot.writeFieldStop()
17936
    oprot.writeStructEnd()
17937
 
17938
  def validate(self):
17939
    return
17940
 
17941
 
17942
  def __repr__(self):
17943
    L = ['%s=%r' % (key, value)
17944
      for key, value in self.__dict__.iteritems()]
17945
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
17946
 
17947
  def __eq__(self, other):
17948
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
17949
 
17950
  def __ne__(self, other):
17951
    return not (self == other)
17952
 
17953
class getOrdersForItemIds_result:
17954
  """
17955
  Attributes:
17956
   - success
17957
  """
17958
 
17959
  thrift_spec = (
17960
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
17961
  )
17962
 
17963
  def __init__(self, success=None,):
17964
    self.success = success
17965
 
17966
  def read(self, iprot):
17967
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
17968
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
17969
      return
17970
    iprot.readStructBegin()
17971
    while True:
17972
      (fname, ftype, fid) = iprot.readFieldBegin()
17973
      if ftype == TType.STOP:
17974
        break
17975
      if fid == 0:
17976
        if ftype == TType.LIST:
17977
          self.success = []
5386 phani.kuma 17978
          (_etype419, _size416) = iprot.readListBegin()
17979
          for _i420 in xrange(_size416):
17980
            _elem421 = Order()
17981
            _elem421.read(iprot)
17982
            self.success.append(_elem421)
4295 varun.gupt 17983
          iprot.readListEnd()
17984
        else:
17985
          iprot.skip(ftype)
17986
      else:
17987
        iprot.skip(ftype)
17988
      iprot.readFieldEnd()
17989
    iprot.readStructEnd()
17990
 
17991
  def write(self, oprot):
17992
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
17993
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
17994
      return
17995
    oprot.writeStructBegin('getOrdersForItemIds_result')
17996
    if self.success is not None:
17997
      oprot.writeFieldBegin('success', TType.LIST, 0)
17998
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 17999
      for iter422 in self.success:
18000
        iter422.write(oprot)
4295 varun.gupt 18001
      oprot.writeListEnd()
18002
      oprot.writeFieldEnd()
18003
    oprot.writeFieldStop()
18004
    oprot.writeStructEnd()
18005
 
18006
  def validate(self):
18007
    return
18008
 
18009
 
18010
  def __repr__(self):
18011
    L = ['%s=%r' % (key, value)
18012
      for key, value in self.__dict__.iteritems()]
18013
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18014
 
18015
  def __eq__(self, other):
18016
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18017
 
18018
  def __ne__(self, other):
18019
    return not (self == other)
18020
 
4247 rajveer 18021
class markOrderCancellationRequestReceived_args:
18022
  """
18023
  Attributes:
18024
   - orderId
18025
  """
18026
 
18027
  thrift_spec = (
18028
    None, # 0
18029
    (1, TType.I64, 'orderId', None, None, ), # 1
18030
  )
18031
 
18032
  def __init__(self, orderId=None,):
18033
    self.orderId = orderId
18034
 
18035
  def read(self, iprot):
18036
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18037
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18038
      return
18039
    iprot.readStructBegin()
18040
    while True:
18041
      (fname, ftype, fid) = iprot.readFieldBegin()
18042
      if ftype == TType.STOP:
18043
        break
18044
      if fid == 1:
18045
        if ftype == TType.I64:
18046
          self.orderId = iprot.readI64();
18047
        else:
18048
          iprot.skip(ftype)
18049
      else:
18050
        iprot.skip(ftype)
18051
      iprot.readFieldEnd()
18052
    iprot.readStructEnd()
18053
 
18054
  def write(self, oprot):
18055
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18056
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18057
      return
18058
    oprot.writeStructBegin('markOrderCancellationRequestReceived_args')
18059
    if self.orderId is not None:
18060
      oprot.writeFieldBegin('orderId', TType.I64, 1)
18061
      oprot.writeI64(self.orderId)
18062
      oprot.writeFieldEnd()
18063
    oprot.writeFieldStop()
18064
    oprot.writeStructEnd()
18065
 
18066
  def validate(self):
18067
    return
18068
 
18069
 
18070
  def __repr__(self):
18071
    L = ['%s=%r' % (key, value)
18072
      for key, value in self.__dict__.iteritems()]
18073
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18074
 
18075
  def __eq__(self, other):
18076
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18077
 
18078
  def __ne__(self, other):
18079
    return not (self == other)
18080
 
18081
class markOrderCancellationRequestReceived_result:
18082
  """
18083
  Attributes:
18084
   - ex
18085
  """
18086
 
18087
  thrift_spec = (
18088
    None, # 0
18089
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
18090
  )
18091
 
18092
  def __init__(self, ex=None,):
18093
    self.ex = ex
18094
 
18095
  def read(self, iprot):
18096
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18097
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18098
      return
18099
    iprot.readStructBegin()
18100
    while True:
18101
      (fname, ftype, fid) = iprot.readFieldBegin()
18102
      if ftype == TType.STOP:
18103
        break
18104
      if fid == 1:
18105
        if ftype == TType.STRUCT:
18106
          self.ex = TransactionServiceException()
18107
          self.ex.read(iprot)
18108
        else:
18109
          iprot.skip(ftype)
18110
      else:
18111
        iprot.skip(ftype)
18112
      iprot.readFieldEnd()
18113
    iprot.readStructEnd()
18114
 
18115
  def write(self, oprot):
18116
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18117
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18118
      return
18119
    oprot.writeStructBegin('markOrderCancellationRequestReceived_result')
18120
    if self.ex is not None:
18121
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
18122
      self.ex.write(oprot)
18123
      oprot.writeFieldEnd()
18124
    oprot.writeFieldStop()
18125
    oprot.writeStructEnd()
18126
 
18127
  def validate(self):
18128
    return
18129
 
18130
 
18131
  def __repr__(self):
18132
    L = ['%s=%r' % (key, value)
18133
      for key, value in self.__dict__.iteritems()]
18134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18135
 
18136
  def __eq__(self, other):
18137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18138
 
18139
  def __ne__(self, other):
18140
    return not (self == other)
18141
 
18142
class markOrderCancellationRequestConfirmed_args:
18143
  """
18144
  Attributes:
18145
   - orderId
18146
  """
18147
 
18148
  thrift_spec = (
18149
    None, # 0
18150
    (1, TType.I64, 'orderId', None, None, ), # 1
18151
  )
18152
 
18153
  def __init__(self, orderId=None,):
18154
    self.orderId = orderId
18155
 
18156
  def read(self, iprot):
18157
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18158
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18159
      return
18160
    iprot.readStructBegin()
18161
    while True:
18162
      (fname, ftype, fid) = iprot.readFieldBegin()
18163
      if ftype == TType.STOP:
18164
        break
18165
      if fid == 1:
18166
        if ftype == TType.I64:
18167
          self.orderId = iprot.readI64();
18168
        else:
18169
          iprot.skip(ftype)
18170
      else:
18171
        iprot.skip(ftype)
18172
      iprot.readFieldEnd()
18173
    iprot.readStructEnd()
18174
 
18175
  def write(self, oprot):
18176
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18177
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18178
      return
18179
    oprot.writeStructBegin('markOrderCancellationRequestConfirmed_args')
18180
    if self.orderId is not None:
18181
      oprot.writeFieldBegin('orderId', TType.I64, 1)
18182
      oprot.writeI64(self.orderId)
18183
      oprot.writeFieldEnd()
18184
    oprot.writeFieldStop()
18185
    oprot.writeStructEnd()
18186
 
18187
  def validate(self):
18188
    return
18189
 
18190
 
18191
  def __repr__(self):
18192
    L = ['%s=%r' % (key, value)
18193
      for key, value in self.__dict__.iteritems()]
18194
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18195
 
18196
  def __eq__(self, other):
18197
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18198
 
18199
  def __ne__(self, other):
18200
    return not (self == other)
18201
 
18202
class markOrderCancellationRequestConfirmed_result:
18203
  """
18204
  Attributes:
18205
   - ex
18206
  """
18207
 
18208
  thrift_spec = (
18209
    None, # 0
18210
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
18211
  )
18212
 
18213
  def __init__(self, ex=None,):
18214
    self.ex = ex
18215
 
18216
  def read(self, iprot):
18217
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18218
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18219
      return
18220
    iprot.readStructBegin()
18221
    while True:
18222
      (fname, ftype, fid) = iprot.readFieldBegin()
18223
      if ftype == TType.STOP:
18224
        break
18225
      if fid == 1:
18226
        if ftype == TType.STRUCT:
18227
          self.ex = TransactionServiceException()
18228
          self.ex.read(iprot)
18229
        else:
18230
          iprot.skip(ftype)
18231
      else:
18232
        iprot.skip(ftype)
18233
      iprot.readFieldEnd()
18234
    iprot.readStructEnd()
18235
 
18236
  def write(self, oprot):
18237
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18238
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18239
      return
18240
    oprot.writeStructBegin('markOrderCancellationRequestConfirmed_result')
18241
    if self.ex is not None:
18242
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
18243
      self.ex.write(oprot)
18244
      oprot.writeFieldEnd()
18245
    oprot.writeFieldStop()
18246
    oprot.writeStructEnd()
18247
 
18248
  def validate(self):
18249
    return
18250
 
18251
 
18252
  def __repr__(self):
18253
    L = ['%s=%r' % (key, value)
18254
      for key, value in self.__dict__.iteritems()]
18255
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18256
 
18257
  def __eq__(self, other):
18258
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18259
 
18260
  def __ne__(self, other):
18261
    return not (self == other)
18262
 
18263
class markOrderCancellationRequestDenied_args:
18264
  """
18265
  Attributes:
18266
   - orderId
18267
  """
18268
 
18269
  thrift_spec = (
18270
    None, # 0
18271
    (1, TType.I64, 'orderId', None, None, ), # 1
18272
  )
18273
 
18274
  def __init__(self, orderId=None,):
18275
    self.orderId = orderId
18276
 
18277
  def read(self, iprot):
18278
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18279
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18280
      return
18281
    iprot.readStructBegin()
18282
    while True:
18283
      (fname, ftype, fid) = iprot.readFieldBegin()
18284
      if ftype == TType.STOP:
18285
        break
18286
      if fid == 1:
18287
        if ftype == TType.I64:
18288
          self.orderId = iprot.readI64();
18289
        else:
18290
          iprot.skip(ftype)
18291
      else:
18292
        iprot.skip(ftype)
18293
      iprot.readFieldEnd()
18294
    iprot.readStructEnd()
18295
 
18296
  def write(self, oprot):
18297
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18298
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18299
      return
18300
    oprot.writeStructBegin('markOrderCancellationRequestDenied_args')
18301
    if self.orderId is not None:
18302
      oprot.writeFieldBegin('orderId', TType.I64, 1)
18303
      oprot.writeI64(self.orderId)
18304
      oprot.writeFieldEnd()
18305
    oprot.writeFieldStop()
18306
    oprot.writeStructEnd()
18307
 
18308
  def validate(self):
18309
    return
18310
 
18311
 
18312
  def __repr__(self):
18313
    L = ['%s=%r' % (key, value)
18314
      for key, value in self.__dict__.iteritems()]
18315
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18316
 
18317
  def __eq__(self, other):
18318
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18319
 
18320
  def __ne__(self, other):
18321
    return not (self == other)
18322
 
18323
class markOrderCancellationRequestDenied_result:
18324
  """
18325
  Attributes:
18326
   - ex
18327
  """
18328
 
18329
  thrift_spec = (
18330
    None, # 0
18331
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
18332
  )
18333
 
18334
  def __init__(self, ex=None,):
18335
    self.ex = ex
18336
 
18337
  def read(self, iprot):
18338
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18339
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18340
      return
18341
    iprot.readStructBegin()
18342
    while True:
18343
      (fname, ftype, fid) = iprot.readFieldBegin()
18344
      if ftype == TType.STOP:
18345
        break
18346
      if fid == 1:
18347
        if ftype == TType.STRUCT:
18348
          self.ex = TransactionServiceException()
18349
          self.ex.read(iprot)
18350
        else:
18351
          iprot.skip(ftype)
18352
      else:
18353
        iprot.skip(ftype)
18354
      iprot.readFieldEnd()
18355
    iprot.readStructEnd()
18356
 
18357
  def write(self, oprot):
18358
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18359
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18360
      return
18361
    oprot.writeStructBegin('markOrderCancellationRequestDenied_result')
18362
    if self.ex is not None:
18363
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
18364
      self.ex.write(oprot)
18365
      oprot.writeFieldEnd()
18366
    oprot.writeFieldStop()
18367
    oprot.writeStructEnd()
18368
 
18369
  def validate(self):
18370
    return
18371
 
18372
 
18373
  def __repr__(self):
18374
    L = ['%s=%r' % (key, value)
18375
      for key, value in self.__dict__.iteritems()]
18376
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18377
 
18378
  def __eq__(self, other):
18379
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18380
 
18381
  def __ne__(self, other):
18382
    return not (self == other)
18383
 
4258 rajveer 18384
class markTransactionAsPaymentFlagRemoved_args:
4247 rajveer 18385
  """
18386
  Attributes:
4258 rajveer 18387
   - transactionId
4247 rajveer 18388
  """
18389
 
18390
  thrift_spec = (
18391
    None, # 0
4258 rajveer 18392
    (1, TType.I64, 'transactionId', None, None, ), # 1
4247 rajveer 18393
  )
18394
 
4258 rajveer 18395
  def __init__(self, transactionId=None,):
18396
    self.transactionId = transactionId
4247 rajveer 18397
 
18398
  def read(self, iprot):
18399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18401
      return
18402
    iprot.readStructBegin()
18403
    while True:
18404
      (fname, ftype, fid) = iprot.readFieldBegin()
18405
      if ftype == TType.STOP:
18406
        break
18407
      if fid == 1:
18408
        if ftype == TType.I64:
4258 rajveer 18409
          self.transactionId = iprot.readI64();
4247 rajveer 18410
        else:
18411
          iprot.skip(ftype)
18412
      else:
18413
        iprot.skip(ftype)
18414
      iprot.readFieldEnd()
18415
    iprot.readStructEnd()
18416
 
18417
  def write(self, oprot):
18418
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18419
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18420
      return
4258 rajveer 18421
    oprot.writeStructBegin('markTransactionAsPaymentFlagRemoved_args')
18422
    if self.transactionId is not None:
18423
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
18424
      oprot.writeI64(self.transactionId)
4247 rajveer 18425
      oprot.writeFieldEnd()
18426
    oprot.writeFieldStop()
18427
    oprot.writeStructEnd()
18428
 
18429
  def validate(self):
18430
    return
18431
 
18432
 
18433
  def __repr__(self):
18434
    L = ['%s=%r' % (key, value)
18435
      for key, value in self.__dict__.iteritems()]
18436
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18437
 
18438
  def __eq__(self, other):
18439
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18440
 
18441
  def __ne__(self, other):
18442
    return not (self == other)
18443
 
4258 rajveer 18444
class markTransactionAsPaymentFlagRemoved_result:
4247 rajveer 18445
  """
18446
  Attributes:
18447
   - ex
18448
  """
18449
 
18450
  thrift_spec = (
18451
    None, # 0
18452
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
18453
  )
18454
 
18455
  def __init__(self, ex=None,):
18456
    self.ex = ex
18457
 
18458
  def read(self, iprot):
18459
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18460
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18461
      return
18462
    iprot.readStructBegin()
18463
    while True:
18464
      (fname, ftype, fid) = iprot.readFieldBegin()
18465
      if ftype == TType.STOP:
18466
        break
18467
      if fid == 1:
18468
        if ftype == TType.STRUCT:
18469
          self.ex = TransactionServiceException()
18470
          self.ex.read(iprot)
18471
        else:
18472
          iprot.skip(ftype)
18473
      else:
18474
        iprot.skip(ftype)
18475
      iprot.readFieldEnd()
18476
    iprot.readStructEnd()
18477
 
18478
  def write(self, oprot):
18479
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18480
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18481
      return
4258 rajveer 18482
    oprot.writeStructBegin('markTransactionAsPaymentFlagRemoved_result')
4247 rajveer 18483
    if self.ex is not None:
18484
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
18485
      self.ex.write(oprot)
18486
      oprot.writeFieldEnd()
18487
    oprot.writeFieldStop()
18488
    oprot.writeStructEnd()
18489
 
18490
  def validate(self):
18491
    return
18492
 
18493
 
18494
  def __repr__(self):
18495
    L = ['%s=%r' % (key, value)
18496
      for key, value in self.__dict__.iteritems()]
18497
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18498
 
18499
  def __eq__(self, other):
18500
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18501
 
18502
  def __ne__(self, other):
18503
    return not (self == other)
4259 anupam.sin 18504
 
18505
class refundTransaction_args:
18506
  """
18507
  Attributes:
18508
   - transactionId
18509
   - refundedBy
18510
   - reason
18511
  """
18512
 
18513
  thrift_spec = (
18514
    None, # 0
18515
    (1, TType.I64, 'transactionId', None, None, ), # 1
18516
    (2, TType.STRING, 'refundedBy', None, None, ), # 2
18517
    (3, TType.STRING, 'reason', None, None, ), # 3
18518
  )
18519
 
18520
  def __init__(self, transactionId=None, refundedBy=None, reason=None,):
18521
    self.transactionId = transactionId
18522
    self.refundedBy = refundedBy
18523
    self.reason = reason
18524
 
18525
  def read(self, iprot):
18526
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18527
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18528
      return
18529
    iprot.readStructBegin()
18530
    while True:
18531
      (fname, ftype, fid) = iprot.readFieldBegin()
18532
      if ftype == TType.STOP:
18533
        break
18534
      if fid == 1:
18535
        if ftype == TType.I64:
18536
          self.transactionId = iprot.readI64();
18537
        else:
18538
          iprot.skip(ftype)
18539
      elif fid == 2:
18540
        if ftype == TType.STRING:
18541
          self.refundedBy = iprot.readString();
18542
        else:
18543
          iprot.skip(ftype)
18544
      elif fid == 3:
18545
        if ftype == TType.STRING:
18546
          self.reason = iprot.readString();
18547
        else:
18548
          iprot.skip(ftype)
18549
      else:
18550
        iprot.skip(ftype)
18551
      iprot.readFieldEnd()
18552
    iprot.readStructEnd()
18553
 
18554
  def write(self, oprot):
18555
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18556
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18557
      return
18558
    oprot.writeStructBegin('refundTransaction_args')
18559
    if self.transactionId is not None:
18560
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
18561
      oprot.writeI64(self.transactionId)
18562
      oprot.writeFieldEnd()
18563
    if self.refundedBy is not None:
18564
      oprot.writeFieldBegin('refundedBy', TType.STRING, 2)
18565
      oprot.writeString(self.refundedBy)
18566
      oprot.writeFieldEnd()
18567
    if self.reason is not None:
18568
      oprot.writeFieldBegin('reason', TType.STRING, 3)
18569
      oprot.writeString(self.reason)
18570
      oprot.writeFieldEnd()
18571
    oprot.writeFieldStop()
18572
    oprot.writeStructEnd()
18573
 
18574
  def validate(self):
18575
    return
18576
 
18577
 
18578
  def __repr__(self):
18579
    L = ['%s=%r' % (key, value)
18580
      for key, value in self.__dict__.iteritems()]
18581
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18582
 
18583
  def __eq__(self, other):
18584
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18585
 
18586
  def __ne__(self, other):
18587
    return not (self == other)
18588
 
18589
class refundTransaction_result:
18590
  """
18591
  Attributes:
18592
   - ex
18593
  """
18594
 
18595
  thrift_spec = (
18596
    None, # 0
18597
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
18598
  )
18599
 
18600
  def __init__(self, ex=None,):
18601
    self.ex = ex
18602
 
18603
  def read(self, iprot):
18604
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18605
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18606
      return
18607
    iprot.readStructBegin()
18608
    while True:
18609
      (fname, ftype, fid) = iprot.readFieldBegin()
18610
      if ftype == TType.STOP:
18611
        break
18612
      if fid == 1:
18613
        if ftype == TType.STRUCT:
18614
          self.ex = TransactionServiceException()
18615
          self.ex.read(iprot)
18616
        else:
18617
          iprot.skip(ftype)
18618
      else:
18619
        iprot.skip(ftype)
18620
      iprot.readFieldEnd()
18621
    iprot.readStructEnd()
18622
 
18623
  def write(self, oprot):
18624
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18625
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18626
      return
18627
    oprot.writeStructBegin('refundTransaction_result')
18628
    if self.ex is not None:
18629
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
18630
      self.ex.write(oprot)
18631
      oprot.writeFieldEnd()
18632
    oprot.writeFieldStop()
18633
    oprot.writeStructEnd()
18634
 
18635
  def validate(self):
18636
    return
18637
 
18638
 
18639
  def __repr__(self):
18640
    L = ['%s=%r' % (key, value)
18641
      for key, value in self.__dict__.iteritems()]
18642
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18643
 
18644
  def __eq__(self, other):
18645
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18646
 
18647
  def __ne__(self, other):
18648
    return not (self == other)
4285 rajveer 18649
 
4324 mandeep.dh 18650
class updateShipmentAddress_args:
18651
  """
18652
  Attributes:
18653
   - orderId
18654
   - addressId
18655
  """
18656
 
18657
  thrift_spec = (
18658
    None, # 0
18659
    (1, TType.I64, 'orderId', None, None, ), # 1
18660
    (2, TType.I64, 'addressId', None, None, ), # 2
18661
  )
18662
 
18663
  def __init__(self, orderId=None, addressId=None,):
18664
    self.orderId = orderId
18665
    self.addressId = addressId
18666
 
18667
  def read(self, iprot):
18668
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18669
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18670
      return
18671
    iprot.readStructBegin()
18672
    while True:
18673
      (fname, ftype, fid) = iprot.readFieldBegin()
18674
      if ftype == TType.STOP:
18675
        break
18676
      if fid == 1:
18677
        if ftype == TType.I64:
18678
          self.orderId = iprot.readI64();
18679
        else:
18680
          iprot.skip(ftype)
18681
      elif fid == 2:
18682
        if ftype == TType.I64:
18683
          self.addressId = iprot.readI64();
18684
        else:
18685
          iprot.skip(ftype)
18686
      else:
18687
        iprot.skip(ftype)
18688
      iprot.readFieldEnd()
18689
    iprot.readStructEnd()
18690
 
18691
  def write(self, oprot):
18692
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18693
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18694
      return
18695
    oprot.writeStructBegin('updateShipmentAddress_args')
18696
    if self.orderId is not None:
18697
      oprot.writeFieldBegin('orderId', TType.I64, 1)
18698
      oprot.writeI64(self.orderId)
18699
      oprot.writeFieldEnd()
18700
    if self.addressId is not None:
18701
      oprot.writeFieldBegin('addressId', TType.I64, 2)
18702
      oprot.writeI64(self.addressId)
18703
      oprot.writeFieldEnd()
18704
    oprot.writeFieldStop()
18705
    oprot.writeStructEnd()
18706
 
18707
  def validate(self):
18708
    return
18709
 
18710
 
18711
  def __repr__(self):
18712
    L = ['%s=%r' % (key, value)
18713
      for key, value in self.__dict__.iteritems()]
18714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18715
 
18716
  def __eq__(self, other):
18717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18718
 
18719
  def __ne__(self, other):
18720
    return not (self == other)
18721
 
18722
class updateShipmentAddress_result:
18723
  """
18724
  Attributes:
18725
   - ex
18726
  """
18727
 
18728
  thrift_spec = (
18729
    None, # 0
18730
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
18731
  )
18732
 
18733
  def __init__(self, ex=None,):
18734
    self.ex = ex
18735
 
18736
  def read(self, iprot):
18737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18739
      return
18740
    iprot.readStructBegin()
18741
    while True:
18742
      (fname, ftype, fid) = iprot.readFieldBegin()
18743
      if ftype == TType.STOP:
18744
        break
18745
      if fid == 1:
18746
        if ftype == TType.STRUCT:
18747
          self.ex = TransactionServiceException()
18748
          self.ex.read(iprot)
18749
        else:
18750
          iprot.skip(ftype)
18751
      else:
18752
        iprot.skip(ftype)
18753
      iprot.readFieldEnd()
18754
    iprot.readStructEnd()
18755
 
18756
  def write(self, oprot):
18757
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18758
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18759
      return
18760
    oprot.writeStructBegin('updateShipmentAddress_result')
18761
    if self.ex is not None:
18762
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
18763
      self.ex.write(oprot)
18764
      oprot.writeFieldEnd()
18765
    oprot.writeFieldStop()
18766
    oprot.writeStructEnd()
18767
 
18768
  def validate(self):
18769
    return
18770
 
18771
 
18772
  def __repr__(self):
18773
    L = ['%s=%r' % (key, value)
18774
      for key, value in self.__dict__.iteritems()]
18775
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18776
 
18777
  def __eq__(self, other):
18778
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18779
 
18780
  def __ne__(self, other):
18781
    return not (self == other)
18782
 
4285 rajveer 18783
class acceptOrdersForItemId_args:
18784
  """
18785
  Attributes:
18786
   - itemId
18787
   - inventory
18788
  """
18789
 
18790
  thrift_spec = (
18791
    None, # 0
18792
    (1, TType.I64, 'itemId', None, None, ), # 1
18793
    (2, TType.I64, 'inventory', None, None, ), # 2
18794
  )
18795
 
18796
  def __init__(self, itemId=None, inventory=None,):
18797
    self.itemId = itemId
18798
    self.inventory = inventory
18799
 
18800
  def read(self, iprot):
18801
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18802
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18803
      return
18804
    iprot.readStructBegin()
18805
    while True:
18806
      (fname, ftype, fid) = iprot.readFieldBegin()
18807
      if ftype == TType.STOP:
18808
        break
18809
      if fid == 1:
18810
        if ftype == TType.I64:
18811
          self.itemId = iprot.readI64();
18812
        else:
18813
          iprot.skip(ftype)
18814
      elif fid == 2:
18815
        if ftype == TType.I64:
18816
          self.inventory = iprot.readI64();
18817
        else:
18818
          iprot.skip(ftype)
18819
      else:
18820
        iprot.skip(ftype)
18821
      iprot.readFieldEnd()
18822
    iprot.readStructEnd()
18823
 
18824
  def write(self, oprot):
18825
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18826
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18827
      return
18828
    oprot.writeStructBegin('acceptOrdersForItemId_args')
18829
    if self.itemId is not None:
18830
      oprot.writeFieldBegin('itemId', TType.I64, 1)
18831
      oprot.writeI64(self.itemId)
18832
      oprot.writeFieldEnd()
18833
    if self.inventory is not None:
18834
      oprot.writeFieldBegin('inventory', TType.I64, 2)
18835
      oprot.writeI64(self.inventory)
18836
      oprot.writeFieldEnd()
18837
    oprot.writeFieldStop()
18838
    oprot.writeStructEnd()
18839
 
18840
  def validate(self):
18841
    return
18842
 
18843
 
18844
  def __repr__(self):
18845
    L = ['%s=%r' % (key, value)
18846
      for key, value in self.__dict__.iteritems()]
18847
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18848
 
18849
  def __eq__(self, other):
18850
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18851
 
18852
  def __ne__(self, other):
18853
    return not (self == other)
18854
 
18855
class acceptOrdersForItemId_result:
18856
  """
18857
  Attributes:
18858
   - success
18859
   - ex
18860
  """
18861
 
18862
  thrift_spec = (
18863
    (0, TType.BOOL, 'success', None, None, ), # 0
18864
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
18865
  )
18866
 
18867
  def __init__(self, success=None, ex=None,):
18868
    self.success = success
18869
    self.ex = ex
18870
 
18871
  def read(self, iprot):
18872
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18873
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18874
      return
18875
    iprot.readStructBegin()
18876
    while True:
18877
      (fname, ftype, fid) = iprot.readFieldBegin()
18878
      if ftype == TType.STOP:
18879
        break
18880
      if fid == 0:
18881
        if ftype == TType.BOOL:
18882
          self.success = iprot.readBool();
18883
        else:
18884
          iprot.skip(ftype)
18885
      elif fid == 1:
18886
        if ftype == TType.STRUCT:
18887
          self.ex = TransactionServiceException()
18888
          self.ex.read(iprot)
18889
        else:
18890
          iprot.skip(ftype)
18891
      else:
18892
        iprot.skip(ftype)
18893
      iprot.readFieldEnd()
18894
    iprot.readStructEnd()
18895
 
18896
  def write(self, oprot):
18897
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18898
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18899
      return
18900
    oprot.writeStructBegin('acceptOrdersForItemId_result')
18901
    if self.success is not None:
18902
      oprot.writeFieldBegin('success', TType.BOOL, 0)
18903
      oprot.writeBool(self.success)
18904
      oprot.writeFieldEnd()
18905
    if self.ex is not None:
18906
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
18907
      self.ex.write(oprot)
18908
      oprot.writeFieldEnd()
18909
    oprot.writeFieldStop()
18910
    oprot.writeStructEnd()
18911
 
18912
  def validate(self):
18913
    return
18914
 
18915
 
18916
  def __repr__(self):
18917
    L = ['%s=%r' % (key, value)
18918
      for key, value in self.__dict__.iteritems()]
18919
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
18920
 
18921
  def __eq__(self, other):
18922
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
18923
 
18924
  def __ne__(self, other):
18925
    return not (self == other)
4303 rajveer 18926
 
18927
class markOrdersAsPORaised_args:
18928
  """
18929
  Attributes:
18930
   - vendorId
18931
   - itemId
18932
   - quantity
18933
   - estimate
4369 rajveer 18934
   - isReminder
4303 rajveer 18935
  """
18936
 
18937
  thrift_spec = (
18938
    None, # 0
18939
    (1, TType.I64, 'vendorId', None, None, ), # 1
18940
    (2, TType.I64, 'itemId', None, None, ), # 2
18941
    (3, TType.I64, 'quantity', None, None, ), # 3
18942
    (4, TType.I64, 'estimate', None, None, ), # 4
4369 rajveer 18943
    (5, TType.BOOL, 'isReminder', None, None, ), # 5
4303 rajveer 18944
  )
18945
 
4369 rajveer 18946
  def __init__(self, vendorId=None, itemId=None, quantity=None, estimate=None, isReminder=None,):
4303 rajveer 18947
    self.vendorId = vendorId
18948
    self.itemId = itemId
18949
    self.quantity = quantity
18950
    self.estimate = estimate
4369 rajveer 18951
    self.isReminder = isReminder
4303 rajveer 18952
 
18953
  def read(self, iprot):
18954
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
18955
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
18956
      return
18957
    iprot.readStructBegin()
18958
    while True:
18959
      (fname, ftype, fid) = iprot.readFieldBegin()
18960
      if ftype == TType.STOP:
18961
        break
18962
      if fid == 1:
18963
        if ftype == TType.I64:
18964
          self.vendorId = iprot.readI64();
18965
        else:
18966
          iprot.skip(ftype)
18967
      elif fid == 2:
18968
        if ftype == TType.I64:
18969
          self.itemId = iprot.readI64();
18970
        else:
18971
          iprot.skip(ftype)
18972
      elif fid == 3:
18973
        if ftype == TType.I64:
18974
          self.quantity = iprot.readI64();
18975
        else:
18976
          iprot.skip(ftype)
18977
      elif fid == 4:
18978
        if ftype == TType.I64:
18979
          self.estimate = iprot.readI64();
18980
        else:
18981
          iprot.skip(ftype)
4369 rajveer 18982
      elif fid == 5:
18983
        if ftype == TType.BOOL:
18984
          self.isReminder = iprot.readBool();
18985
        else:
18986
          iprot.skip(ftype)
4303 rajveer 18987
      else:
18988
        iprot.skip(ftype)
18989
      iprot.readFieldEnd()
18990
    iprot.readStructEnd()
18991
 
18992
  def write(self, oprot):
18993
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
18994
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
18995
      return
18996
    oprot.writeStructBegin('markOrdersAsPORaised_args')
18997
    if self.vendorId is not None:
18998
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
18999
      oprot.writeI64(self.vendorId)
19000
      oprot.writeFieldEnd()
19001
    if self.itemId is not None:
19002
      oprot.writeFieldBegin('itemId', TType.I64, 2)
19003
      oprot.writeI64(self.itemId)
19004
      oprot.writeFieldEnd()
19005
    if self.quantity is not None:
19006
      oprot.writeFieldBegin('quantity', TType.I64, 3)
19007
      oprot.writeI64(self.quantity)
19008
      oprot.writeFieldEnd()
19009
    if self.estimate is not None:
19010
      oprot.writeFieldBegin('estimate', TType.I64, 4)
19011
      oprot.writeI64(self.estimate)
19012
      oprot.writeFieldEnd()
4369 rajveer 19013
    if self.isReminder is not None:
19014
      oprot.writeFieldBegin('isReminder', TType.BOOL, 5)
19015
      oprot.writeBool(self.isReminder)
19016
      oprot.writeFieldEnd()
4303 rajveer 19017
    oprot.writeFieldStop()
19018
    oprot.writeStructEnd()
19019
 
19020
  def validate(self):
19021
    return
19022
 
19023
 
19024
  def __repr__(self):
19025
    L = ['%s=%r' % (key, value)
19026
      for key, value in self.__dict__.iteritems()]
19027
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19028
 
19029
  def __eq__(self, other):
19030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19031
 
19032
  def __ne__(self, other):
19033
    return not (self == other)
19034
 
19035
class markOrdersAsPORaised_result:
19036
  """
19037
  Attributes:
19038
   - ex
19039
  """
19040
 
19041
  thrift_spec = (
19042
    None, # 0
19043
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
19044
  )
19045
 
19046
  def __init__(self, ex=None,):
19047
    self.ex = ex
19048
 
19049
  def read(self, iprot):
19050
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19051
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19052
      return
19053
    iprot.readStructBegin()
19054
    while True:
19055
      (fname, ftype, fid) = iprot.readFieldBegin()
19056
      if ftype == TType.STOP:
19057
        break
19058
      if fid == 1:
19059
        if ftype == TType.STRUCT:
19060
          self.ex = TransactionServiceException()
19061
          self.ex.read(iprot)
19062
        else:
19063
          iprot.skip(ftype)
19064
      else:
19065
        iprot.skip(ftype)
19066
      iprot.readFieldEnd()
19067
    iprot.readStructEnd()
19068
 
19069
  def write(self, oprot):
19070
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19071
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19072
      return
19073
    oprot.writeStructBegin('markOrdersAsPORaised_result')
19074
    if self.ex is not None:
19075
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
19076
      self.ex.write(oprot)
19077
      oprot.writeFieldEnd()
19078
    oprot.writeFieldStop()
19079
    oprot.writeStructEnd()
19080
 
19081
  def validate(self):
19082
    return
19083
 
19084
 
19085
  def __repr__(self):
19086
    L = ['%s=%r' % (key, value)
19087
      for key, value in self.__dict__.iteritems()]
19088
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19089
 
19090
  def __eq__(self, other):
19091
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19092
 
19093
  def __ne__(self, other):
19094
    return not (self == other)
19095
 
19096
class markOrdersAsReversalInitiated_args:
19097
  """
19098
  Attributes:
19099
   - vendorId
19100
   - itemId
19101
   - quantity
19102
   - estimate
4369 rajveer 19103
   - isReminder
4303 rajveer 19104
  """
19105
 
19106
  thrift_spec = (
19107
    None, # 0
19108
    (1, TType.I64, 'vendorId', None, None, ), # 1
19109
    (2, TType.I64, 'itemId', None, None, ), # 2
19110
    (3, TType.I64, 'quantity', None, None, ), # 3
19111
    (4, TType.I64, 'estimate', None, None, ), # 4
4369 rajveer 19112
    (5, TType.BOOL, 'isReminder', None, None, ), # 5
4303 rajveer 19113
  )
19114
 
4369 rajveer 19115
  def __init__(self, vendorId=None, itemId=None, quantity=None, estimate=None, isReminder=None,):
4303 rajveer 19116
    self.vendorId = vendorId
19117
    self.itemId = itemId
19118
    self.quantity = quantity
19119
    self.estimate = estimate
4369 rajveer 19120
    self.isReminder = isReminder
4303 rajveer 19121
 
19122
  def read(self, iprot):
19123
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19124
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19125
      return
19126
    iprot.readStructBegin()
19127
    while True:
19128
      (fname, ftype, fid) = iprot.readFieldBegin()
19129
      if ftype == TType.STOP:
19130
        break
19131
      if fid == 1:
19132
        if ftype == TType.I64:
19133
          self.vendorId = iprot.readI64();
19134
        else:
19135
          iprot.skip(ftype)
19136
      elif fid == 2:
19137
        if ftype == TType.I64:
19138
          self.itemId = iprot.readI64();
19139
        else:
19140
          iprot.skip(ftype)
19141
      elif fid == 3:
19142
        if ftype == TType.I64:
19143
          self.quantity = iprot.readI64();
19144
        else:
19145
          iprot.skip(ftype)
19146
      elif fid == 4:
19147
        if ftype == TType.I64:
19148
          self.estimate = iprot.readI64();
19149
        else:
19150
          iprot.skip(ftype)
4369 rajveer 19151
      elif fid == 5:
19152
        if ftype == TType.BOOL:
19153
          self.isReminder = iprot.readBool();
19154
        else:
19155
          iprot.skip(ftype)
4303 rajveer 19156
      else:
19157
        iprot.skip(ftype)
19158
      iprot.readFieldEnd()
19159
    iprot.readStructEnd()
19160
 
19161
  def write(self, oprot):
19162
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19163
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19164
      return
19165
    oprot.writeStructBegin('markOrdersAsReversalInitiated_args')
19166
    if self.vendorId is not None:
19167
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
19168
      oprot.writeI64(self.vendorId)
19169
      oprot.writeFieldEnd()
19170
    if self.itemId is not None:
19171
      oprot.writeFieldBegin('itemId', TType.I64, 2)
19172
      oprot.writeI64(self.itemId)
19173
      oprot.writeFieldEnd()
19174
    if self.quantity is not None:
19175
      oprot.writeFieldBegin('quantity', TType.I64, 3)
19176
      oprot.writeI64(self.quantity)
19177
      oprot.writeFieldEnd()
19178
    if self.estimate is not None:
19179
      oprot.writeFieldBegin('estimate', TType.I64, 4)
19180
      oprot.writeI64(self.estimate)
19181
      oprot.writeFieldEnd()
4369 rajveer 19182
    if self.isReminder is not None:
19183
      oprot.writeFieldBegin('isReminder', TType.BOOL, 5)
19184
      oprot.writeBool(self.isReminder)
19185
      oprot.writeFieldEnd()
4303 rajveer 19186
    oprot.writeFieldStop()
19187
    oprot.writeStructEnd()
19188
 
19189
  def validate(self):
19190
    return
19191
 
19192
 
19193
  def __repr__(self):
19194
    L = ['%s=%r' % (key, value)
19195
      for key, value in self.__dict__.iteritems()]
19196
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19197
 
19198
  def __eq__(self, other):
19199
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19200
 
19201
  def __ne__(self, other):
19202
    return not (self == other)
19203
 
19204
class markOrdersAsReversalInitiated_result:
19205
  """
19206
  Attributes:
19207
   - ex
19208
  """
19209
 
19210
  thrift_spec = (
19211
    None, # 0
19212
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
19213
  )
19214
 
19215
  def __init__(self, ex=None,):
19216
    self.ex = ex
19217
 
19218
  def read(self, iprot):
19219
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19220
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19221
      return
19222
    iprot.readStructBegin()
19223
    while True:
19224
      (fname, ftype, fid) = iprot.readFieldBegin()
19225
      if ftype == TType.STOP:
19226
        break
19227
      if fid == 1:
19228
        if ftype == TType.STRUCT:
19229
          self.ex = TransactionServiceException()
19230
          self.ex.read(iprot)
19231
        else:
19232
          iprot.skip(ftype)
19233
      else:
19234
        iprot.skip(ftype)
19235
      iprot.readFieldEnd()
19236
    iprot.readStructEnd()
19237
 
19238
  def write(self, oprot):
19239
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19240
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19241
      return
19242
    oprot.writeStructBegin('markOrdersAsReversalInitiated_result')
19243
    if self.ex is not None:
19244
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
19245
      self.ex.write(oprot)
19246
      oprot.writeFieldEnd()
19247
    oprot.writeFieldStop()
19248
    oprot.writeStructEnd()
19249
 
19250
  def validate(self):
19251
    return
19252
 
19253
 
19254
  def __repr__(self):
19255
    L = ['%s=%r' % (key, value)
19256
      for key, value in self.__dict__.iteritems()]
19257
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19258
 
19259
  def __eq__(self, other):
19260
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19261
 
19262
  def __ne__(self, other):
19263
    return not (self == other)
19264
 
19265
class markOrdersAsNotAvailabke_args:
19266
  """
19267
  Attributes:
19268
   - vendorId
19269
   - itemId
19270
   - quantity
19271
   - estimate
4369 rajveer 19272
   - isReminder
4303 rajveer 19273
  """
19274
 
19275
  thrift_spec = (
19276
    None, # 0
19277
    (1, TType.I64, 'vendorId', None, None, ), # 1
19278
    (2, TType.I64, 'itemId', None, None, ), # 2
19279
    (3, TType.I64, 'quantity', None, None, ), # 3
19280
    (4, TType.I64, 'estimate', None, None, ), # 4
4369 rajveer 19281
    (5, TType.BOOL, 'isReminder', None, None, ), # 5
4303 rajveer 19282
  )
19283
 
4369 rajveer 19284
  def __init__(self, vendorId=None, itemId=None, quantity=None, estimate=None, isReminder=None,):
4303 rajveer 19285
    self.vendorId = vendorId
19286
    self.itemId = itemId
19287
    self.quantity = quantity
19288
    self.estimate = estimate
4369 rajveer 19289
    self.isReminder = isReminder
4303 rajveer 19290
 
19291
  def read(self, iprot):
19292
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19293
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19294
      return
19295
    iprot.readStructBegin()
19296
    while True:
19297
      (fname, ftype, fid) = iprot.readFieldBegin()
19298
      if ftype == TType.STOP:
19299
        break
19300
      if fid == 1:
19301
        if ftype == TType.I64:
19302
          self.vendorId = iprot.readI64();
19303
        else:
19304
          iprot.skip(ftype)
19305
      elif fid == 2:
19306
        if ftype == TType.I64:
19307
          self.itemId = iprot.readI64();
19308
        else:
19309
          iprot.skip(ftype)
19310
      elif fid == 3:
19311
        if ftype == TType.I64:
19312
          self.quantity = iprot.readI64();
19313
        else:
19314
          iprot.skip(ftype)
19315
      elif fid == 4:
19316
        if ftype == TType.I64:
19317
          self.estimate = iprot.readI64();
19318
        else:
19319
          iprot.skip(ftype)
4369 rajveer 19320
      elif fid == 5:
19321
        if ftype == TType.BOOL:
19322
          self.isReminder = iprot.readBool();
19323
        else:
19324
          iprot.skip(ftype)
4303 rajveer 19325
      else:
19326
        iprot.skip(ftype)
19327
      iprot.readFieldEnd()
19328
    iprot.readStructEnd()
19329
 
19330
  def write(self, oprot):
19331
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19332
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19333
      return
19334
    oprot.writeStructBegin('markOrdersAsNotAvailabke_args')
19335
    if self.vendorId is not None:
19336
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
19337
      oprot.writeI64(self.vendorId)
19338
      oprot.writeFieldEnd()
19339
    if self.itemId is not None:
19340
      oprot.writeFieldBegin('itemId', TType.I64, 2)
19341
      oprot.writeI64(self.itemId)
19342
      oprot.writeFieldEnd()
19343
    if self.quantity is not None:
19344
      oprot.writeFieldBegin('quantity', TType.I64, 3)
19345
      oprot.writeI64(self.quantity)
19346
      oprot.writeFieldEnd()
19347
    if self.estimate is not None:
19348
      oprot.writeFieldBegin('estimate', TType.I64, 4)
19349
      oprot.writeI64(self.estimate)
19350
      oprot.writeFieldEnd()
4369 rajveer 19351
    if self.isReminder is not None:
19352
      oprot.writeFieldBegin('isReminder', TType.BOOL, 5)
19353
      oprot.writeBool(self.isReminder)
19354
      oprot.writeFieldEnd()
4303 rajveer 19355
    oprot.writeFieldStop()
19356
    oprot.writeStructEnd()
19357
 
19358
  def validate(self):
19359
    return
19360
 
19361
 
19362
  def __repr__(self):
19363
    L = ['%s=%r' % (key, value)
19364
      for key, value in self.__dict__.iteritems()]
19365
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19366
 
19367
  def __eq__(self, other):
19368
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19369
 
19370
  def __ne__(self, other):
19371
    return not (self == other)
19372
 
19373
class markOrdersAsNotAvailabke_result:
19374
  """
19375
  Attributes:
19376
   - ex
19377
  """
19378
 
19379
  thrift_spec = (
19380
    None, # 0
19381
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
19382
  )
19383
 
19384
  def __init__(self, ex=None,):
19385
    self.ex = ex
19386
 
19387
  def read(self, iprot):
19388
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19389
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19390
      return
19391
    iprot.readStructBegin()
19392
    while True:
19393
      (fname, ftype, fid) = iprot.readFieldBegin()
19394
      if ftype == TType.STOP:
19395
        break
19396
      if fid == 1:
19397
        if ftype == TType.STRUCT:
19398
          self.ex = TransactionServiceException()
19399
          self.ex.read(iprot)
19400
        else:
19401
          iprot.skip(ftype)
19402
      else:
19403
        iprot.skip(ftype)
19404
      iprot.readFieldEnd()
19405
    iprot.readStructEnd()
19406
 
19407
  def write(self, oprot):
19408
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19409
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19410
      return
19411
    oprot.writeStructBegin('markOrdersAsNotAvailabke_result')
19412
    if self.ex is not None:
19413
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
19414
      self.ex.write(oprot)
19415
      oprot.writeFieldEnd()
19416
    oprot.writeFieldStop()
19417
    oprot.writeStructEnd()
19418
 
19419
  def validate(self):
19420
    return
19421
 
19422
 
19423
  def __repr__(self):
19424
    L = ['%s=%r' % (key, value)
19425
      for key, value in self.__dict__.iteritems()]
19426
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19427
 
19428
  def __eq__(self, other):
19429
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19430
 
19431
  def __ne__(self, other):
19432
    return not (self == other)
4369 rajveer 19433
 
19434
class markOrdersAsTimeout_args:
19435
  """
19436
  Attributes:
19437
   - vendorId
19438
  """
19439
 
19440
  thrift_spec = (
19441
    None, # 0
19442
    (1, TType.I64, 'vendorId', None, None, ), # 1
19443
  )
19444
 
19445
  def __init__(self, vendorId=None,):
19446
    self.vendorId = vendorId
19447
 
19448
  def read(self, iprot):
19449
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19450
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19451
      return
19452
    iprot.readStructBegin()
19453
    while True:
19454
      (fname, ftype, fid) = iprot.readFieldBegin()
19455
      if ftype == TType.STOP:
19456
        break
19457
      if fid == 1:
19458
        if ftype == TType.I64:
19459
          self.vendorId = iprot.readI64();
19460
        else:
19461
          iprot.skip(ftype)
19462
      else:
19463
        iprot.skip(ftype)
19464
      iprot.readFieldEnd()
19465
    iprot.readStructEnd()
19466
 
19467
  def write(self, oprot):
19468
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19469
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19470
      return
19471
    oprot.writeStructBegin('markOrdersAsTimeout_args')
19472
    if self.vendorId is not None:
19473
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
19474
      oprot.writeI64(self.vendorId)
19475
      oprot.writeFieldEnd()
19476
    oprot.writeFieldStop()
19477
    oprot.writeStructEnd()
19478
 
19479
  def validate(self):
19480
    return
19481
 
19482
 
19483
  def __repr__(self):
19484
    L = ['%s=%r' % (key, value)
19485
      for key, value in self.__dict__.iteritems()]
19486
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19487
 
19488
  def __eq__(self, other):
19489
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19490
 
19491
  def __ne__(self, other):
19492
    return not (self == other)
19493
 
19494
class markOrdersAsTimeout_result:
19495
  """
19496
  Attributes:
19497
   - success
19498
   - ex
19499
  """
19500
 
19501
  thrift_spec = (
19502
    (0, TType.MAP, 'success', (TType.I32,None,TType.STRUCT,(TimeoutSummary, TimeoutSummary.thrift_spec)), None, ), # 0
19503
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
19504
  )
19505
 
19506
  def __init__(self, success=None, ex=None,):
19507
    self.success = success
19508
    self.ex = ex
19509
 
19510
  def read(self, iprot):
19511
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19512
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19513
      return
19514
    iprot.readStructBegin()
19515
    while True:
19516
      (fname, ftype, fid) = iprot.readFieldBegin()
19517
      if ftype == TType.STOP:
19518
        break
19519
      if fid == 0:
19520
        if ftype == TType.MAP:
19521
          self.success = {}
5386 phani.kuma 19522
          (_ktype424, _vtype425, _size423 ) = iprot.readMapBegin() 
19523
          for _i427 in xrange(_size423):
19524
            _key428 = iprot.readI32();
19525
            _val429 = TimeoutSummary()
19526
            _val429.read(iprot)
19527
            self.success[_key428] = _val429
4369 rajveer 19528
          iprot.readMapEnd()
19529
        else:
19530
          iprot.skip(ftype)
19531
      elif fid == 1:
19532
        if ftype == TType.STRUCT:
19533
          self.ex = TransactionServiceException()
19534
          self.ex.read(iprot)
19535
        else:
19536
          iprot.skip(ftype)
19537
      else:
19538
        iprot.skip(ftype)
19539
      iprot.readFieldEnd()
19540
    iprot.readStructEnd()
19541
 
19542
  def write(self, oprot):
19543
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19544
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19545
      return
19546
    oprot.writeStructBegin('markOrdersAsTimeout_result')
19547
    if self.success is not None:
19548
      oprot.writeFieldBegin('success', TType.MAP, 0)
19549
      oprot.writeMapBegin(TType.I32, TType.STRUCT, len(self.success))
5386 phani.kuma 19550
      for kiter430,viter431 in self.success.items():
19551
        oprot.writeI32(kiter430)
19552
        viter431.write(oprot)
4369 rajveer 19553
      oprot.writeMapEnd()
19554
      oprot.writeFieldEnd()
19555
    if self.ex is not None:
19556
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
19557
      self.ex.write(oprot)
19558
      oprot.writeFieldEnd()
19559
    oprot.writeFieldStop()
19560
    oprot.writeStructEnd()
19561
 
19562
  def validate(self):
19563
    return
19564
 
19565
 
19566
  def __repr__(self):
19567
    L = ['%s=%r' % (key, value)
19568
      for key, value in self.__dict__.iteritems()]
19569
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19570
 
19571
  def __eq__(self, other):
19572
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19573
 
19574
  def __ne__(self, other):
19575
    return not (self == other)
4386 anupam.sin 19576
 
4662 rajveer 19577
class markOrderAsLostInTransit_args:
19578
  """
19579
  Attributes:
19580
   - orderId
19581
  """
19582
 
19583
  thrift_spec = (
19584
    None, # 0
19585
    (1, TType.I64, 'orderId', None, None, ), # 1
19586
  )
19587
 
19588
  def __init__(self, orderId=None,):
19589
    self.orderId = orderId
19590
 
19591
  def read(self, iprot):
19592
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19593
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19594
      return
19595
    iprot.readStructBegin()
19596
    while True:
19597
      (fname, ftype, fid) = iprot.readFieldBegin()
19598
      if ftype == TType.STOP:
19599
        break
19600
      if fid == 1:
19601
        if ftype == TType.I64:
19602
          self.orderId = iprot.readI64();
19603
        else:
19604
          iprot.skip(ftype)
19605
      else:
19606
        iprot.skip(ftype)
19607
      iprot.readFieldEnd()
19608
    iprot.readStructEnd()
19609
 
19610
  def write(self, oprot):
19611
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19612
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19613
      return
19614
    oprot.writeStructBegin('markOrderAsLostInTransit_args')
19615
    if self.orderId is not None:
19616
      oprot.writeFieldBegin('orderId', TType.I64, 1)
19617
      oprot.writeI64(self.orderId)
19618
      oprot.writeFieldEnd()
19619
    oprot.writeFieldStop()
19620
    oprot.writeStructEnd()
19621
 
19622
  def validate(self):
19623
    return
19624
 
19625
 
19626
  def __repr__(self):
19627
    L = ['%s=%r' % (key, value)
19628
      for key, value in self.__dict__.iteritems()]
19629
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19630
 
19631
  def __eq__(self, other):
19632
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19633
 
19634
  def __ne__(self, other):
19635
    return not (self == other)
19636
 
19637
class markOrderAsLostInTransit_result:
19638
  """
19639
  Attributes:
19640
   - success
19641
   - ex
19642
  """
19643
 
19644
  thrift_spec = (
19645
    (0, TType.BOOL, 'success', None, None, ), # 0
19646
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
19647
  )
19648
 
19649
  def __init__(self, success=None, ex=None,):
19650
    self.success = success
19651
    self.ex = ex
19652
 
19653
  def read(self, iprot):
19654
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19655
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19656
      return
19657
    iprot.readStructBegin()
19658
    while True:
19659
      (fname, ftype, fid) = iprot.readFieldBegin()
19660
      if ftype == TType.STOP:
19661
        break
19662
      if fid == 0:
19663
        if ftype == TType.BOOL:
19664
          self.success = iprot.readBool();
19665
        else:
19666
          iprot.skip(ftype)
19667
      elif fid == 1:
19668
        if ftype == TType.STRUCT:
19669
          self.ex = TransactionServiceException()
19670
          self.ex.read(iprot)
19671
        else:
19672
          iprot.skip(ftype)
19673
      else:
19674
        iprot.skip(ftype)
19675
      iprot.readFieldEnd()
19676
    iprot.readStructEnd()
19677
 
19678
  def write(self, oprot):
19679
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19680
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19681
      return
19682
    oprot.writeStructBegin('markOrderAsLostInTransit_result')
19683
    if self.success is not None:
19684
      oprot.writeFieldBegin('success', TType.BOOL, 0)
19685
      oprot.writeBool(self.success)
19686
      oprot.writeFieldEnd()
19687
    if self.ex is not None:
19688
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
19689
      self.ex.write(oprot)
19690
      oprot.writeFieldEnd()
19691
    oprot.writeFieldStop()
19692
    oprot.writeStructEnd()
19693
 
19694
  def validate(self):
19695
    return
19696
 
19697
 
19698
  def __repr__(self):
19699
    L = ['%s=%r' % (key, value)
19700
      for key, value in self.__dict__.iteritems()]
19701
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19702
 
19703
  def __eq__(self, other):
19704
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19705
 
19706
  def __ne__(self, other):
19707
    return not (self == other)
19708
 
4386 anupam.sin 19709
class getOrderForAwb_args:
19710
  """
19711
  Attributes:
19712
   - awb
19713
  """
19714
 
19715
  thrift_spec = (
19716
    None, # 0
19717
    (1, TType.STRING, 'awb', None, None, ), # 1
19718
  )
19719
 
19720
  def __init__(self, awb=None,):
19721
    self.awb = awb
19722
 
19723
  def read(self, iprot):
19724
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19725
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19726
      return
19727
    iprot.readStructBegin()
19728
    while True:
19729
      (fname, ftype, fid) = iprot.readFieldBegin()
19730
      if ftype == TType.STOP:
19731
        break
19732
      if fid == 1:
19733
        if ftype == TType.STRING:
19734
          self.awb = iprot.readString();
19735
        else:
19736
          iprot.skip(ftype)
19737
      else:
19738
        iprot.skip(ftype)
19739
      iprot.readFieldEnd()
19740
    iprot.readStructEnd()
19741
 
19742
  def write(self, oprot):
19743
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19744
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19745
      return
19746
    oprot.writeStructBegin('getOrderForAwb_args')
19747
    if self.awb is not None:
19748
      oprot.writeFieldBegin('awb', TType.STRING, 1)
19749
      oprot.writeString(self.awb)
19750
      oprot.writeFieldEnd()
19751
    oprot.writeFieldStop()
19752
    oprot.writeStructEnd()
19753
 
19754
  def validate(self):
19755
    return
19756
 
19757
 
19758
  def __repr__(self):
19759
    L = ['%s=%r' % (key, value)
19760
      for key, value in self.__dict__.iteritems()]
19761
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19762
 
19763
  def __eq__(self, other):
19764
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19765
 
19766
  def __ne__(self, other):
19767
    return not (self == other)
19768
 
19769
class getOrderForAwb_result:
19770
  """
19771
  Attributes:
19772
   - success
19773
   - ex
19774
  """
19775
 
19776
  thrift_spec = (
19777
    (0, TType.STRUCT, 'success', (Order, Order.thrift_spec), None, ), # 0
19778
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
19779
  )
19780
 
19781
  def __init__(self, success=None, ex=None,):
19782
    self.success = success
19783
    self.ex = ex
19784
 
19785
  def read(self, iprot):
19786
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19787
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19788
      return
19789
    iprot.readStructBegin()
19790
    while True:
19791
      (fname, ftype, fid) = iprot.readFieldBegin()
19792
      if ftype == TType.STOP:
19793
        break
19794
      if fid == 0:
19795
        if ftype == TType.STRUCT:
19796
          self.success = Order()
19797
          self.success.read(iprot)
19798
        else:
19799
          iprot.skip(ftype)
19800
      elif fid == 1:
19801
        if ftype == TType.STRUCT:
19802
          self.ex = TransactionServiceException()
19803
          self.ex.read(iprot)
19804
        else:
19805
          iprot.skip(ftype)
19806
      else:
19807
        iprot.skip(ftype)
19808
      iprot.readFieldEnd()
19809
    iprot.readStructEnd()
19810
 
19811
  def write(self, oprot):
19812
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19813
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19814
      return
19815
    oprot.writeStructBegin('getOrderForAwb_result')
19816
    if self.success is not None:
19817
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
19818
      self.success.write(oprot)
19819
      oprot.writeFieldEnd()
19820
    if self.ex is not None:
19821
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
19822
      self.ex.write(oprot)
19823
      oprot.writeFieldEnd()
19824
    oprot.writeFieldStop()
19825
    oprot.writeStructEnd()
19826
 
19827
  def validate(self):
19828
    return
19829
 
19830
 
19831
  def __repr__(self):
19832
    L = ['%s=%r' % (key, value)
19833
      for key, value in self.__dict__.iteritems()]
19834
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19835
 
19836
  def __eq__(self, other):
19837
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19838
 
19839
  def __ne__(self, other):
19840
    return not (self == other)
4506 phani.kuma 19841
 
19842
class getOrdersForProviderForStatus_args:
19843
  """
19844
  Attributes:
19845
   - logistics_provider_id
4910 phani.kuma 19846
   - order_status_list
4506 phani.kuma 19847
  """
19848
 
19849
  thrift_spec = (
19850
    None, # 0
19851
    (1, TType.I64, 'logistics_provider_id', None, None, ), # 1
4910 phani.kuma 19852
    (2, TType.LIST, 'order_status_list', (TType.I32,None), None, ), # 2
4506 phani.kuma 19853
  )
19854
 
4910 phani.kuma 19855
  def __init__(self, logistics_provider_id=None, order_status_list=None,):
4506 phani.kuma 19856
    self.logistics_provider_id = logistics_provider_id
4910 phani.kuma 19857
    self.order_status_list = order_status_list
4506 phani.kuma 19858
 
19859
  def read(self, iprot):
19860
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19861
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19862
      return
19863
    iprot.readStructBegin()
19864
    while True:
19865
      (fname, ftype, fid) = iprot.readFieldBegin()
19866
      if ftype == TType.STOP:
19867
        break
19868
      if fid == 1:
19869
        if ftype == TType.I64:
19870
          self.logistics_provider_id = iprot.readI64();
19871
        else:
19872
          iprot.skip(ftype)
19873
      elif fid == 2:
4910 phani.kuma 19874
        if ftype == TType.LIST:
19875
          self.order_status_list = []
5386 phani.kuma 19876
          (_etype435, _size432) = iprot.readListBegin()
19877
          for _i436 in xrange(_size432):
19878
            _elem437 = iprot.readI32();
19879
            self.order_status_list.append(_elem437)
4910 phani.kuma 19880
          iprot.readListEnd()
4506 phani.kuma 19881
        else:
19882
          iprot.skip(ftype)
19883
      else:
19884
        iprot.skip(ftype)
19885
      iprot.readFieldEnd()
19886
    iprot.readStructEnd()
19887
 
19888
  def write(self, oprot):
19889
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19890
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19891
      return
19892
    oprot.writeStructBegin('getOrdersForProviderForStatus_args')
19893
    if self.logistics_provider_id is not None:
19894
      oprot.writeFieldBegin('logistics_provider_id', TType.I64, 1)
19895
      oprot.writeI64(self.logistics_provider_id)
19896
      oprot.writeFieldEnd()
4910 phani.kuma 19897
    if self.order_status_list is not None:
19898
      oprot.writeFieldBegin('order_status_list', TType.LIST, 2)
19899
      oprot.writeListBegin(TType.I32, len(self.order_status_list))
5386 phani.kuma 19900
      for iter438 in self.order_status_list:
19901
        oprot.writeI32(iter438)
4910 phani.kuma 19902
      oprot.writeListEnd()
4506 phani.kuma 19903
      oprot.writeFieldEnd()
19904
    oprot.writeFieldStop()
19905
    oprot.writeStructEnd()
19906
 
19907
  def validate(self):
19908
    return
19909
 
19910
 
19911
  def __repr__(self):
19912
    L = ['%s=%r' % (key, value)
19913
      for key, value in self.__dict__.iteritems()]
19914
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19915
 
19916
  def __eq__(self, other):
19917
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19918
 
19919
  def __ne__(self, other):
19920
    return not (self == other)
19921
 
19922
class getOrdersForProviderForStatus_result:
19923
  """
19924
  Attributes:
19925
   - success
19926
   - ex
19927
  """
19928
 
19929
  thrift_spec = (
19930
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
19931
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
19932
  )
19933
 
19934
  def __init__(self, success=None, ex=None,):
19935
    self.success = success
19936
    self.ex = ex
19937
 
19938
  def read(self, iprot):
19939
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
19940
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
19941
      return
19942
    iprot.readStructBegin()
19943
    while True:
19944
      (fname, ftype, fid) = iprot.readFieldBegin()
19945
      if ftype == TType.STOP:
19946
        break
19947
      if fid == 0:
19948
        if ftype == TType.LIST:
19949
          self.success = []
5386 phani.kuma 19950
          (_etype442, _size439) = iprot.readListBegin()
19951
          for _i443 in xrange(_size439):
19952
            _elem444 = Order()
19953
            _elem444.read(iprot)
19954
            self.success.append(_elem444)
4506 phani.kuma 19955
          iprot.readListEnd()
19956
        else:
19957
          iprot.skip(ftype)
19958
      elif fid == 1:
19959
        if ftype == TType.STRUCT:
19960
          self.ex = TransactionServiceException()
19961
          self.ex.read(iprot)
19962
        else:
19963
          iprot.skip(ftype)
19964
      else:
19965
        iprot.skip(ftype)
19966
      iprot.readFieldEnd()
19967
    iprot.readStructEnd()
19968
 
19969
  def write(self, oprot):
19970
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
19971
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
19972
      return
19973
    oprot.writeStructBegin('getOrdersForProviderForStatus_result')
19974
    if self.success is not None:
19975
      oprot.writeFieldBegin('success', TType.LIST, 0)
19976
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 19977
      for iter445 in self.success:
19978
        iter445.write(oprot)
4506 phani.kuma 19979
      oprot.writeListEnd()
19980
      oprot.writeFieldEnd()
19981
    if self.ex is not None:
19982
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
19983
      self.ex.write(oprot)
19984
      oprot.writeFieldEnd()
19985
    oprot.writeFieldStop()
19986
    oprot.writeStructEnd()
19987
 
19988
  def validate(self):
19989
    return
19990
 
19991
 
19992
  def __repr__(self):
19993
    L = ['%s=%r' % (key, value)
19994
      for key, value in self.__dict__.iteritems()]
19995
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
19996
 
19997
  def __eq__(self, other):
19998
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
19999
 
20000
  def __ne__(self, other):
20001
    return not (self == other)
4600 varun.gupt 20002
 
20003
class getBilledOrdersForVendor_args:
20004
  """
20005
  Attributes:
20006
   - vendorId
20007
   - billingDateFrom
20008
   - billingDateTo
20009
  """
20010
 
20011
  thrift_spec = (
20012
    None, # 0
20013
    (1, TType.I64, 'vendorId', None, None, ), # 1
20014
    (2, TType.I64, 'billingDateFrom', None, None, ), # 2
20015
    (3, TType.I64, 'billingDateTo', None, None, ), # 3
20016
  )
20017
 
20018
  def __init__(self, vendorId=None, billingDateFrom=None, billingDateTo=None,):
20019
    self.vendorId = vendorId
20020
    self.billingDateFrom = billingDateFrom
20021
    self.billingDateTo = billingDateTo
20022
 
20023
  def read(self, iprot):
20024
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20025
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20026
      return
20027
    iprot.readStructBegin()
20028
    while True:
20029
      (fname, ftype, fid) = iprot.readFieldBegin()
20030
      if ftype == TType.STOP:
20031
        break
20032
      if fid == 1:
20033
        if ftype == TType.I64:
20034
          self.vendorId = iprot.readI64();
20035
        else:
20036
          iprot.skip(ftype)
20037
      elif fid == 2:
20038
        if ftype == TType.I64:
20039
          self.billingDateFrom = iprot.readI64();
20040
        else:
20041
          iprot.skip(ftype)
20042
      elif fid == 3:
20043
        if ftype == TType.I64:
20044
          self.billingDateTo = iprot.readI64();
20045
        else:
20046
          iprot.skip(ftype)
20047
      else:
20048
        iprot.skip(ftype)
20049
      iprot.readFieldEnd()
20050
    iprot.readStructEnd()
20051
 
20052
  def write(self, oprot):
20053
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20054
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20055
      return
20056
    oprot.writeStructBegin('getBilledOrdersForVendor_args')
20057
    if self.vendorId is not None:
20058
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
20059
      oprot.writeI64(self.vendorId)
20060
      oprot.writeFieldEnd()
20061
    if self.billingDateFrom is not None:
20062
      oprot.writeFieldBegin('billingDateFrom', TType.I64, 2)
20063
      oprot.writeI64(self.billingDateFrom)
20064
      oprot.writeFieldEnd()
20065
    if self.billingDateTo is not None:
20066
      oprot.writeFieldBegin('billingDateTo', TType.I64, 3)
20067
      oprot.writeI64(self.billingDateTo)
20068
      oprot.writeFieldEnd()
20069
    oprot.writeFieldStop()
20070
    oprot.writeStructEnd()
20071
 
20072
  def validate(self):
20073
    return
20074
 
20075
 
20076
  def __repr__(self):
20077
    L = ['%s=%r' % (key, value)
20078
      for key, value in self.__dict__.iteritems()]
20079
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20080
 
20081
  def __eq__(self, other):
20082
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20083
 
20084
  def __ne__(self, other):
20085
    return not (self == other)
20086
 
20087
class getBilledOrdersForVendor_result:
20088
  """
20089
  Attributes:
20090
   - success
20091
   - ex
20092
  """
20093
 
20094
  thrift_spec = (
20095
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
20096
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
20097
  )
20098
 
20099
  def __init__(self, success=None, ex=None,):
20100
    self.success = success
20101
    self.ex = ex
20102
 
20103
  def read(self, iprot):
20104
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20105
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20106
      return
20107
    iprot.readStructBegin()
20108
    while True:
20109
      (fname, ftype, fid) = iprot.readFieldBegin()
20110
      if ftype == TType.STOP:
20111
        break
20112
      if fid == 0:
20113
        if ftype == TType.LIST:
20114
          self.success = []
5386 phani.kuma 20115
          (_etype449, _size446) = iprot.readListBegin()
20116
          for _i450 in xrange(_size446):
20117
            _elem451 = Order()
20118
            _elem451.read(iprot)
20119
            self.success.append(_elem451)
4600 varun.gupt 20120
          iprot.readListEnd()
20121
        else:
20122
          iprot.skip(ftype)
20123
      elif fid == 1:
20124
        if ftype == TType.STRUCT:
20125
          self.ex = TransactionServiceException()
20126
          self.ex.read(iprot)
20127
        else:
20128
          iprot.skip(ftype)
20129
      else:
20130
        iprot.skip(ftype)
20131
      iprot.readFieldEnd()
20132
    iprot.readStructEnd()
20133
 
20134
  def write(self, oprot):
20135
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20136
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20137
      return
20138
    oprot.writeStructBegin('getBilledOrdersForVendor_result')
20139
    if self.success is not None:
20140
      oprot.writeFieldBegin('success', TType.LIST, 0)
20141
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 20142
      for iter452 in self.success:
20143
        iter452.write(oprot)
4600 varun.gupt 20144
      oprot.writeListEnd()
20145
      oprot.writeFieldEnd()
20146
    if self.ex is not None:
20147
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
20148
      self.ex.write(oprot)
20149
      oprot.writeFieldEnd()
20150
    oprot.writeFieldStop()
20151
    oprot.writeStructEnd()
20152
 
20153
  def validate(self):
20154
    return
20155
 
20156
 
20157
  def __repr__(self):
20158
    L = ['%s=%r' % (key, value)
20159
      for key, value in self.__dict__.iteritems()]
20160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20161
 
20162
  def __eq__(self, other):
20163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20164
 
20165
  def __ne__(self, other):
20166
    return not (self == other)
20167
 
4607 rajveer 20168
class getSlippedSippingDateOrders_args:
20169
 
20170
  thrift_spec = (
20171
  )
20172
 
20173
  def read(self, iprot):
20174
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20175
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20176
      return
20177
    iprot.readStructBegin()
20178
    while True:
20179
      (fname, ftype, fid) = iprot.readFieldBegin()
20180
      if ftype == TType.STOP:
20181
        break
20182
      else:
20183
        iprot.skip(ftype)
20184
      iprot.readFieldEnd()
20185
    iprot.readStructEnd()
20186
 
20187
  def write(self, oprot):
20188
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20189
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20190
      return
20191
    oprot.writeStructBegin('getSlippedSippingDateOrders_args')
20192
    oprot.writeFieldStop()
20193
    oprot.writeStructEnd()
20194
 
20195
  def validate(self):
20196
    return
20197
 
20198
 
20199
  def __repr__(self):
20200
    L = ['%s=%r' % (key, value)
20201
      for key, value in self.__dict__.iteritems()]
20202
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20203
 
20204
  def __eq__(self, other):
20205
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20206
 
20207
  def __ne__(self, other):
20208
    return not (self == other)
20209
 
20210
class getSlippedSippingDateOrders_result:
20211
  """
20212
  Attributes:
20213
   - success
20214
   - ex
20215
  """
20216
 
20217
  thrift_spec = (
20218
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
20219
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
20220
  )
20221
 
20222
  def __init__(self, success=None, ex=None,):
20223
    self.success = success
20224
    self.ex = ex
20225
 
20226
  def read(self, iprot):
20227
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20228
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20229
      return
20230
    iprot.readStructBegin()
20231
    while True:
20232
      (fname, ftype, fid) = iprot.readFieldBegin()
20233
      if ftype == TType.STOP:
20234
        break
20235
      if fid == 0:
20236
        if ftype == TType.LIST:
20237
          self.success = []
5386 phani.kuma 20238
          (_etype456, _size453) = iprot.readListBegin()
20239
          for _i457 in xrange(_size453):
20240
            _elem458 = Order()
20241
            _elem458.read(iprot)
20242
            self.success.append(_elem458)
4607 rajveer 20243
          iprot.readListEnd()
20244
        else:
20245
          iprot.skip(ftype)
20246
      elif fid == 1:
20247
        if ftype == TType.STRUCT:
20248
          self.ex = TransactionServiceException()
20249
          self.ex.read(iprot)
20250
        else:
20251
          iprot.skip(ftype)
20252
      else:
20253
        iprot.skip(ftype)
20254
      iprot.readFieldEnd()
20255
    iprot.readStructEnd()
20256
 
20257
  def write(self, oprot):
20258
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20259
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20260
      return
20261
    oprot.writeStructBegin('getSlippedSippingDateOrders_result')
20262
    if self.success is not None:
20263
      oprot.writeFieldBegin('success', TType.LIST, 0)
20264
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 20265
      for iter459 in self.success:
20266
        iter459.write(oprot)
4607 rajveer 20267
      oprot.writeListEnd()
20268
      oprot.writeFieldEnd()
20269
    if self.ex is not None:
20270
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
20271
      self.ex.write(oprot)
20272
      oprot.writeFieldEnd()
20273
    oprot.writeFieldStop()
20274
    oprot.writeStructEnd()
20275
 
20276
  def validate(self):
20277
    return
20278
 
20279
 
20280
  def __repr__(self):
20281
    L = ['%s=%r' % (key, value)
20282
      for key, value in self.__dict__.iteritems()]
20283
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20284
 
20285
  def __eq__(self, other):
20286
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20287
 
20288
  def __ne__(self, other):
20289
    return not (self == other)
20290
 
4709 rajveer 20291
class getCancelledOrders_args:
20292
  """
20293
  Attributes:
20294
   - cancelDateFrom
20295
   - cancelDateTo
20296
  """
20297
 
20298
  thrift_spec = (
20299
    None, # 0
20300
    (1, TType.I64, 'cancelDateFrom', None, None, ), # 1
20301
    (2, TType.I64, 'cancelDateTo', None, None, ), # 2
20302
  )
20303
 
20304
  def __init__(self, cancelDateFrom=None, cancelDateTo=None,):
20305
    self.cancelDateFrom = cancelDateFrom
20306
    self.cancelDateTo = cancelDateTo
20307
 
20308
  def read(self, iprot):
20309
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20310
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20311
      return
20312
    iprot.readStructBegin()
20313
    while True:
20314
      (fname, ftype, fid) = iprot.readFieldBegin()
20315
      if ftype == TType.STOP:
20316
        break
20317
      if fid == 1:
20318
        if ftype == TType.I64:
20319
          self.cancelDateFrom = iprot.readI64();
20320
        else:
20321
          iprot.skip(ftype)
20322
      elif fid == 2:
20323
        if ftype == TType.I64:
20324
          self.cancelDateTo = iprot.readI64();
20325
        else:
20326
          iprot.skip(ftype)
20327
      else:
20328
        iprot.skip(ftype)
20329
      iprot.readFieldEnd()
20330
    iprot.readStructEnd()
20331
 
20332
  def write(self, oprot):
20333
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20334
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20335
      return
20336
    oprot.writeStructBegin('getCancelledOrders_args')
20337
    if self.cancelDateFrom is not None:
20338
      oprot.writeFieldBegin('cancelDateFrom', TType.I64, 1)
20339
      oprot.writeI64(self.cancelDateFrom)
20340
      oprot.writeFieldEnd()
20341
    if self.cancelDateTo is not None:
20342
      oprot.writeFieldBegin('cancelDateTo', TType.I64, 2)
20343
      oprot.writeI64(self.cancelDateTo)
20344
      oprot.writeFieldEnd()
20345
    oprot.writeFieldStop()
20346
    oprot.writeStructEnd()
20347
 
20348
  def validate(self):
20349
    return
20350
 
20351
 
20352
  def __repr__(self):
20353
    L = ['%s=%r' % (key, value)
20354
      for key, value in self.__dict__.iteritems()]
20355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20356
 
20357
  def __eq__(self, other):
20358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20359
 
20360
  def __ne__(self, other):
20361
    return not (self == other)
20362
 
20363
class getCancelledOrders_result:
20364
  """
20365
  Attributes:
20366
   - success
20367
   - ex
20368
  """
20369
 
20370
  thrift_spec = (
20371
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
20372
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
20373
  )
20374
 
20375
  def __init__(self, success=None, ex=None,):
20376
    self.success = success
20377
    self.ex = ex
20378
 
20379
  def read(self, iprot):
20380
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20381
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20382
      return
20383
    iprot.readStructBegin()
20384
    while True:
20385
      (fname, ftype, fid) = iprot.readFieldBegin()
20386
      if ftype == TType.STOP:
20387
        break
20388
      if fid == 0:
20389
        if ftype == TType.LIST:
20390
          self.success = []
5386 phani.kuma 20391
          (_etype463, _size460) = iprot.readListBegin()
20392
          for _i464 in xrange(_size460):
20393
            _elem465 = Order()
20394
            _elem465.read(iprot)
20395
            self.success.append(_elem465)
4709 rajveer 20396
          iprot.readListEnd()
20397
        else:
20398
          iprot.skip(ftype)
20399
      elif fid == 1:
20400
        if ftype == TType.STRUCT:
20401
          self.ex = TransactionServiceException()
20402
          self.ex.read(iprot)
20403
        else:
20404
          iprot.skip(ftype)
20405
      else:
20406
        iprot.skip(ftype)
20407
      iprot.readFieldEnd()
20408
    iprot.readStructEnd()
20409
 
20410
  def write(self, oprot):
20411
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20412
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20413
      return
20414
    oprot.writeStructBegin('getCancelledOrders_result')
20415
    if self.success is not None:
20416
      oprot.writeFieldBegin('success', TType.LIST, 0)
20417
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 20418
      for iter466 in self.success:
20419
        iter466.write(oprot)
4709 rajveer 20420
      oprot.writeListEnd()
20421
      oprot.writeFieldEnd()
20422
    if self.ex is not None:
20423
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
20424
      self.ex.write(oprot)
20425
      oprot.writeFieldEnd()
20426
    oprot.writeFieldStop()
20427
    oprot.writeStructEnd()
20428
 
20429
  def validate(self):
20430
    return
20431
 
20432
 
20433
  def __repr__(self):
20434
    L = ['%s=%r' % (key, value)
20435
      for key, value in self.__dict__.iteritems()]
20436
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20437
 
20438
  def __eq__(self, other):
20439
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20440
 
20441
  def __ne__(self, other):
20442
    return not (self == other)
20443
 
4600 varun.gupt 20444
class saveBluedartSettlements_args:
20445
  """
20446
  Attributes:
20447
   - mapAWBAndAmount
20448
  """
20449
 
20450
  thrift_spec = (
20451
    None, # 0
20452
    (1, TType.MAP, 'mapAWBAndAmount', (TType.I64,None,TType.DOUBLE,None), None, ), # 1
20453
  )
20454
 
20455
  def __init__(self, mapAWBAndAmount=None,):
20456
    self.mapAWBAndAmount = mapAWBAndAmount
20457
 
20458
  def read(self, iprot):
20459
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20460
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20461
      return
20462
    iprot.readStructBegin()
20463
    while True:
20464
      (fname, ftype, fid) = iprot.readFieldBegin()
20465
      if ftype == TType.STOP:
20466
        break
20467
      if fid == 1:
20468
        if ftype == TType.MAP:
20469
          self.mapAWBAndAmount = {}
5386 phani.kuma 20470
          (_ktype468, _vtype469, _size467 ) = iprot.readMapBegin() 
20471
          for _i471 in xrange(_size467):
20472
            _key472 = iprot.readI64();
20473
            _val473 = iprot.readDouble();
20474
            self.mapAWBAndAmount[_key472] = _val473
4600 varun.gupt 20475
          iprot.readMapEnd()
20476
        else:
20477
          iprot.skip(ftype)
20478
      else:
20479
        iprot.skip(ftype)
20480
      iprot.readFieldEnd()
20481
    iprot.readStructEnd()
20482
 
20483
  def write(self, oprot):
20484
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20485
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20486
      return
20487
    oprot.writeStructBegin('saveBluedartSettlements_args')
20488
    if self.mapAWBAndAmount is not None:
20489
      oprot.writeFieldBegin('mapAWBAndAmount', TType.MAP, 1)
20490
      oprot.writeMapBegin(TType.I64, TType.DOUBLE, len(self.mapAWBAndAmount))
5386 phani.kuma 20491
      for kiter474,viter475 in self.mapAWBAndAmount.items():
20492
        oprot.writeI64(kiter474)
20493
        oprot.writeDouble(viter475)
4600 varun.gupt 20494
      oprot.writeMapEnd()
20495
      oprot.writeFieldEnd()
20496
    oprot.writeFieldStop()
20497
    oprot.writeStructEnd()
20498
 
20499
  def validate(self):
20500
    return
20501
 
20502
 
20503
  def __repr__(self):
20504
    L = ['%s=%r' % (key, value)
20505
      for key, value in self.__dict__.iteritems()]
20506
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20507
 
20508
  def __eq__(self, other):
20509
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20510
 
20511
  def __ne__(self, other):
20512
    return not (self == other)
20513
 
20514
class saveBluedartSettlements_result:
20515
  """
20516
  Attributes:
20517
   - ex
20518
  """
20519
 
20520
  thrift_spec = (
20521
    None, # 0
20522
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
20523
  )
20524
 
20525
  def __init__(self, ex=None,):
20526
    self.ex = ex
20527
 
20528
  def read(self, iprot):
20529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20531
      return
20532
    iprot.readStructBegin()
20533
    while True:
20534
      (fname, ftype, fid) = iprot.readFieldBegin()
20535
      if ftype == TType.STOP:
20536
        break
20537
      if fid == 1:
20538
        if ftype == TType.STRUCT:
20539
          self.ex = TransactionServiceException()
20540
          self.ex.read(iprot)
20541
        else:
20542
          iprot.skip(ftype)
20543
      else:
20544
        iprot.skip(ftype)
20545
      iprot.readFieldEnd()
20546
    iprot.readStructEnd()
20547
 
20548
  def write(self, oprot):
20549
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20550
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20551
      return
20552
    oprot.writeStructBegin('saveBluedartSettlements_result')
20553
    if self.ex is not None:
20554
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
20555
      self.ex.write(oprot)
20556
      oprot.writeFieldEnd()
20557
    oprot.writeFieldStop()
20558
    oprot.writeStructEnd()
20559
 
20560
  def validate(self):
20561
    return
20562
 
20563
 
20564
  def __repr__(self):
20565
    L = ['%s=%r' % (key, value)
20566
      for key, value in self.__dict__.iteritems()]
20567
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20568
 
20569
  def __eq__(self, other):
20570
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20571
 
20572
  def __ne__(self, other):
20573
    return not (self == other)
20574
 
20575
class savePaymentSettlements_args:
20576
  """
20577
  Attributes:
20578
   - settlementDate
20579
   - paymentGatewayId
4905 varun.gupt 20580
   - referenceId
4600 varun.gupt 20581
   - serviceTax
20582
   - otherCharges
20583
   - netCollection
20584
  """
20585
 
20586
  thrift_spec = (
20587
    None, # 0
20588
    (1, TType.I64, 'settlementDate', None, None, ), # 1
20589
    (2, TType.I64, 'paymentGatewayId', None, None, ), # 2
4905 varun.gupt 20590
    (3, TType.I64, 'referenceId', None, None, ), # 3
4600 varun.gupt 20591
    (4, TType.DOUBLE, 'serviceTax', None, None, ), # 4
20592
    (5, TType.DOUBLE, 'otherCharges', None, None, ), # 5
20593
    (6, TType.DOUBLE, 'netCollection', None, None, ), # 6
20594
  )
20595
 
4905 varun.gupt 20596
  def __init__(self, settlementDate=None, paymentGatewayId=None, referenceId=None, serviceTax=None, otherCharges=None, netCollection=None,):
4600 varun.gupt 20597
    self.settlementDate = settlementDate
20598
    self.paymentGatewayId = paymentGatewayId
4905 varun.gupt 20599
    self.referenceId = referenceId
4600 varun.gupt 20600
    self.serviceTax = serviceTax
20601
    self.otherCharges = otherCharges
20602
    self.netCollection = netCollection
20603
 
20604
  def read(self, iprot):
20605
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20606
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20607
      return
20608
    iprot.readStructBegin()
20609
    while True:
20610
      (fname, ftype, fid) = iprot.readFieldBegin()
20611
      if ftype == TType.STOP:
20612
        break
20613
      if fid == 1:
20614
        if ftype == TType.I64:
20615
          self.settlementDate = iprot.readI64();
20616
        else:
20617
          iprot.skip(ftype)
20618
      elif fid == 2:
20619
        if ftype == TType.I64:
20620
          self.paymentGatewayId = iprot.readI64();
20621
        else:
20622
          iprot.skip(ftype)
20623
      elif fid == 3:
20624
        if ftype == TType.I64:
4905 varun.gupt 20625
          self.referenceId = iprot.readI64();
4600 varun.gupt 20626
        else:
20627
          iprot.skip(ftype)
20628
      elif fid == 4:
20629
        if ftype == TType.DOUBLE:
20630
          self.serviceTax = iprot.readDouble();
20631
        else:
20632
          iprot.skip(ftype)
20633
      elif fid == 5:
20634
        if ftype == TType.DOUBLE:
20635
          self.otherCharges = iprot.readDouble();
20636
        else:
20637
          iprot.skip(ftype)
20638
      elif fid == 6:
20639
        if ftype == TType.DOUBLE:
20640
          self.netCollection = iprot.readDouble();
20641
        else:
20642
          iprot.skip(ftype)
20643
      else:
20644
        iprot.skip(ftype)
20645
      iprot.readFieldEnd()
20646
    iprot.readStructEnd()
20647
 
20648
  def write(self, oprot):
20649
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20650
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20651
      return
20652
    oprot.writeStructBegin('savePaymentSettlements_args')
20653
    if self.settlementDate is not None:
20654
      oprot.writeFieldBegin('settlementDate', TType.I64, 1)
20655
      oprot.writeI64(self.settlementDate)
20656
      oprot.writeFieldEnd()
20657
    if self.paymentGatewayId is not None:
20658
      oprot.writeFieldBegin('paymentGatewayId', TType.I64, 2)
20659
      oprot.writeI64(self.paymentGatewayId)
20660
      oprot.writeFieldEnd()
4905 varun.gupt 20661
    if self.referenceId is not None:
20662
      oprot.writeFieldBegin('referenceId', TType.I64, 3)
20663
      oprot.writeI64(self.referenceId)
4600 varun.gupt 20664
      oprot.writeFieldEnd()
20665
    if self.serviceTax is not None:
20666
      oprot.writeFieldBegin('serviceTax', TType.DOUBLE, 4)
20667
      oprot.writeDouble(self.serviceTax)
20668
      oprot.writeFieldEnd()
20669
    if self.otherCharges is not None:
20670
      oprot.writeFieldBegin('otherCharges', TType.DOUBLE, 5)
20671
      oprot.writeDouble(self.otherCharges)
20672
      oprot.writeFieldEnd()
20673
    if self.netCollection is not None:
20674
      oprot.writeFieldBegin('netCollection', TType.DOUBLE, 6)
20675
      oprot.writeDouble(self.netCollection)
20676
      oprot.writeFieldEnd()
20677
    oprot.writeFieldStop()
20678
    oprot.writeStructEnd()
20679
 
20680
  def validate(self):
20681
    return
20682
 
20683
 
20684
  def __repr__(self):
20685
    L = ['%s=%r' % (key, value)
20686
      for key, value in self.__dict__.iteritems()]
20687
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20688
 
20689
  def __eq__(self, other):
20690
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20691
 
20692
  def __ne__(self, other):
20693
    return not (self == other)
20694
 
20695
class savePaymentSettlements_result:
20696
  """
20697
  Attributes:
20698
   - ex
20699
  """
20700
 
20701
  thrift_spec = (
20702
    None, # 0
20703
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
20704
  )
20705
 
20706
  def __init__(self, ex=None,):
20707
    self.ex = ex
20708
 
20709
  def read(self, iprot):
20710
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20711
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20712
      return
20713
    iprot.readStructBegin()
20714
    while True:
20715
      (fname, ftype, fid) = iprot.readFieldBegin()
20716
      if ftype == TType.STOP:
20717
        break
20718
      if fid == 1:
20719
        if ftype == TType.STRUCT:
20720
          self.ex = TransactionServiceException()
20721
          self.ex.read(iprot)
20722
        else:
20723
          iprot.skip(ftype)
20724
      else:
20725
        iprot.skip(ftype)
20726
      iprot.readFieldEnd()
20727
    iprot.readStructEnd()
20728
 
20729
  def write(self, oprot):
20730
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20731
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20732
      return
20733
    oprot.writeStructBegin('savePaymentSettlements_result')
20734
    if self.ex is not None:
20735
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
20736
      self.ex.write(oprot)
20737
      oprot.writeFieldEnd()
20738
    oprot.writeFieldStop()
20739
    oprot.writeStructEnd()
20740
 
20741
  def validate(self):
20742
    return
20743
 
20744
 
20745
  def __repr__(self):
20746
    L = ['%s=%r' % (key, value)
20747
      for key, value in self.__dict__.iteritems()]
20748
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20749
 
20750
  def __eq__(self, other):
20751
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20752
 
20753
  def __ne__(self, other):
20754
    return not (self == other)
20755
 
20756
class saveEBSSettlementSummary_args:
20757
  """
20758
  Attributes:
20759
   - settlementId
20760
   - settlementDate
20761
   - transactionDateFrom
20762
   - transactionDateTo
20763
   - amount
20764
  """
20765
 
20766
  thrift_spec = (
20767
    None, # 0
20768
    (1, TType.I64, 'settlementId', None, None, ), # 1
20769
    (2, TType.I64, 'settlementDate', None, None, ), # 2
20770
    (3, TType.I64, 'transactionDateFrom', None, None, ), # 3
20771
    (4, TType.I64, 'transactionDateTo', None, None, ), # 4
20772
    (5, TType.DOUBLE, 'amount', None, None, ), # 5
20773
  )
20774
 
20775
  def __init__(self, settlementId=None, settlementDate=None, transactionDateFrom=None, transactionDateTo=None, amount=None,):
20776
    self.settlementId = settlementId
20777
    self.settlementDate = settlementDate
20778
    self.transactionDateFrom = transactionDateFrom
20779
    self.transactionDateTo = transactionDateTo
20780
    self.amount = amount
20781
 
20782
  def read(self, iprot):
20783
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20784
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20785
      return
20786
    iprot.readStructBegin()
20787
    while True:
20788
      (fname, ftype, fid) = iprot.readFieldBegin()
20789
      if ftype == TType.STOP:
20790
        break
20791
      if fid == 1:
20792
        if ftype == TType.I64:
20793
          self.settlementId = iprot.readI64();
20794
        else:
20795
          iprot.skip(ftype)
20796
      elif fid == 2:
20797
        if ftype == TType.I64:
20798
          self.settlementDate = iprot.readI64();
20799
        else:
20800
          iprot.skip(ftype)
20801
      elif fid == 3:
20802
        if ftype == TType.I64:
20803
          self.transactionDateFrom = iprot.readI64();
20804
        else:
20805
          iprot.skip(ftype)
20806
      elif fid == 4:
20807
        if ftype == TType.I64:
20808
          self.transactionDateTo = iprot.readI64();
20809
        else:
20810
          iprot.skip(ftype)
20811
      elif fid == 5:
20812
        if ftype == TType.DOUBLE:
20813
          self.amount = iprot.readDouble();
20814
        else:
20815
          iprot.skip(ftype)
20816
      else:
20817
        iprot.skip(ftype)
20818
      iprot.readFieldEnd()
20819
    iprot.readStructEnd()
20820
 
20821
  def write(self, oprot):
20822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20824
      return
20825
    oprot.writeStructBegin('saveEBSSettlementSummary_args')
20826
    if self.settlementId is not None:
20827
      oprot.writeFieldBegin('settlementId', TType.I64, 1)
20828
      oprot.writeI64(self.settlementId)
20829
      oprot.writeFieldEnd()
20830
    if self.settlementDate is not None:
20831
      oprot.writeFieldBegin('settlementDate', TType.I64, 2)
20832
      oprot.writeI64(self.settlementDate)
20833
      oprot.writeFieldEnd()
20834
    if self.transactionDateFrom is not None:
20835
      oprot.writeFieldBegin('transactionDateFrom', TType.I64, 3)
20836
      oprot.writeI64(self.transactionDateFrom)
20837
      oprot.writeFieldEnd()
20838
    if self.transactionDateTo is not None:
20839
      oprot.writeFieldBegin('transactionDateTo', TType.I64, 4)
20840
      oprot.writeI64(self.transactionDateTo)
20841
      oprot.writeFieldEnd()
20842
    if self.amount is not None:
20843
      oprot.writeFieldBegin('amount', TType.DOUBLE, 5)
20844
      oprot.writeDouble(self.amount)
20845
      oprot.writeFieldEnd()
20846
    oprot.writeFieldStop()
20847
    oprot.writeStructEnd()
20848
 
20849
  def validate(self):
20850
    return
20851
 
20852
 
20853
  def __repr__(self):
20854
    L = ['%s=%r' % (key, value)
20855
      for key, value in self.__dict__.iteritems()]
20856
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20857
 
20858
  def __eq__(self, other):
20859
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20860
 
20861
  def __ne__(self, other):
20862
    return not (self == other)
20863
 
20864
class saveEBSSettlementSummary_result:
20865
  """
20866
  Attributes:
20867
   - ex
20868
  """
20869
 
20870
  thrift_spec = (
20871
    None, # 0
20872
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
20873
  )
20874
 
20875
  def __init__(self, ex=None,):
20876
    self.ex = ex
20877
 
20878
  def read(self, iprot):
20879
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20880
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20881
      return
20882
    iprot.readStructBegin()
20883
    while True:
20884
      (fname, ftype, fid) = iprot.readFieldBegin()
20885
      if ftype == TType.STOP:
20886
        break
20887
      if fid == 1:
20888
        if ftype == TType.STRUCT:
20889
          self.ex = TransactionServiceException()
20890
          self.ex.read(iprot)
20891
        else:
20892
          iprot.skip(ftype)
20893
      else:
20894
        iprot.skip(ftype)
20895
      iprot.readFieldEnd()
20896
    iprot.readStructEnd()
20897
 
20898
  def write(self, oprot):
20899
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20900
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20901
      return
20902
    oprot.writeStructBegin('saveEBSSettlementSummary_result')
20903
    if self.ex is not None:
20904
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
20905
      self.ex.write(oprot)
20906
      oprot.writeFieldEnd()
20907
    oprot.writeFieldStop()
20908
    oprot.writeStructEnd()
20909
 
20910
  def validate(self):
20911
    return
20912
 
20913
 
20914
  def __repr__(self):
20915
    L = ['%s=%r' % (key, value)
20916
      for key, value in self.__dict__.iteritems()]
20917
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20918
 
20919
  def __eq__(self, other):
20920
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20921
 
20922
  def __ne__(self, other):
20923
    return not (self == other)
20924
 
5386 phani.kuma 20925
class getSettlementForPrepaid_args:
4600 varun.gupt 20926
  """
20927
  Attributes:
5189 varun.gupt 20928
   - referenceId
20929
   - isRefund
4600 varun.gupt 20930
  """
20931
 
20932
  thrift_spec = (
20933
    None, # 0
5189 varun.gupt 20934
    (1, TType.I64, 'referenceId', None, None, ), # 1
5386 phani.kuma 20935
    (2, TType.BOOL, 'isRefund', None, None, ), # 2
4600 varun.gupt 20936
  )
20937
 
5386 phani.kuma 20938
  def __init__(self, referenceId=None, isRefund=None,):
5189 varun.gupt 20939
    self.referenceId = referenceId
20940
    self.isRefund = isRefund
4600 varun.gupt 20941
 
20942
  def read(self, iprot):
20943
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
20944
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
20945
      return
20946
    iprot.readStructBegin()
20947
    while True:
20948
      (fname, ftype, fid) = iprot.readFieldBegin()
20949
      if ftype == TType.STOP:
20950
        break
20951
      if fid == 1:
20952
        if ftype == TType.I64:
5189 varun.gupt 20953
          self.referenceId = iprot.readI64();
4600 varun.gupt 20954
        else:
20955
          iprot.skip(ftype)
5189 varun.gupt 20956
      elif fid == 2:
20957
        if ftype == TType.BOOL:
20958
          self.isRefund = iprot.readBool();
20959
        else:
20960
          iprot.skip(ftype)
4600 varun.gupt 20961
      else:
20962
        iprot.skip(ftype)
20963
      iprot.readFieldEnd()
20964
    iprot.readStructEnd()
20965
 
20966
  def write(self, oprot):
20967
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
20968
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
20969
      return
5386 phani.kuma 20970
    oprot.writeStructBegin('getSettlementForPrepaid_args')
5189 varun.gupt 20971
    if self.referenceId is not None:
20972
      oprot.writeFieldBegin('referenceId', TType.I64, 1)
20973
      oprot.writeI64(self.referenceId)
4600 varun.gupt 20974
      oprot.writeFieldEnd()
5386 phani.kuma 20975
    if self.isRefund is not None:
20976
      oprot.writeFieldBegin('isRefund', TType.BOOL, 2)
20977
      oprot.writeBool(self.isRefund)
5382 varun.gupt 20978
      oprot.writeFieldEnd()
5386 phani.kuma 20979
    oprot.writeFieldStop()
20980
    oprot.writeStructEnd()
20981
 
20982
  def validate(self):
20983
    return
20984
 
20985
 
20986
  def __repr__(self):
20987
    L = ['%s=%r' % (key, value)
20988
      for key, value in self.__dict__.iteritems()]
20989
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
20990
 
20991
  def __eq__(self, other):
20992
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
20993
 
20994
  def __ne__(self, other):
20995
    return not (self == other)
20996
 
20997
class getSettlementForPrepaid_result:
20998
  """
20999
  Attributes:
21000
   - success
21001
   - ex
21002
  """
21003
 
21004
  thrift_spec = (
21005
    (0, TType.STRUCT, 'success', (PaymentSettlement, PaymentSettlement.thrift_spec), None, ), # 0
21006
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
21007
  )
21008
 
21009
  def __init__(self, success=None, ex=None,):
21010
    self.success = success
21011
    self.ex = ex
21012
 
21013
  def read(self, iprot):
21014
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21015
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21016
      return
21017
    iprot.readStructBegin()
21018
    while True:
21019
      (fname, ftype, fid) = iprot.readFieldBegin()
21020
      if ftype == TType.STOP:
21021
        break
21022
      if fid == 0:
21023
        if ftype == TType.STRUCT:
21024
          self.success = PaymentSettlement()
21025
          self.success.read(iprot)
21026
        else:
21027
          iprot.skip(ftype)
21028
      elif fid == 1:
21029
        if ftype == TType.STRUCT:
21030
          self.ex = TransactionServiceException()
21031
          self.ex.read(iprot)
21032
        else:
21033
          iprot.skip(ftype)
21034
      else:
21035
        iprot.skip(ftype)
21036
      iprot.readFieldEnd()
21037
    iprot.readStructEnd()
21038
 
21039
  def write(self, oprot):
21040
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21041
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21042
      return
21043
    oprot.writeStructBegin('getSettlementForPrepaid_result')
21044
    if self.success is not None:
21045
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21046
      self.success.write(oprot)
21047
      oprot.writeFieldEnd()
21048
    if self.ex is not None:
21049
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
21050
      self.ex.write(oprot)
21051
      oprot.writeFieldEnd()
21052
    oprot.writeFieldStop()
21053
    oprot.writeStructEnd()
21054
 
21055
  def validate(self):
21056
    return
21057
 
21058
 
21059
  def __repr__(self):
21060
    L = ['%s=%r' % (key, value)
21061
      for key, value in self.__dict__.iteritems()]
21062
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21063
 
21064
  def __eq__(self, other):
21065
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21066
 
21067
  def __ne__(self, other):
21068
    return not (self == other)
21069
 
21070
class getSettlementForCod_args:
21071
  """
21072
  Attributes:
21073
   - orderId
21074
   - isRefund
21075
  """
21076
 
21077
  thrift_spec = (
21078
    None, # 0
21079
    (1, TType.I64, 'orderId', None, None, ), # 1
21080
    (2, TType.BOOL, 'isRefund', None, None, ), # 2
21081
  )
21082
 
21083
  def __init__(self, orderId=None, isRefund=None,):
21084
    self.orderId = orderId
21085
    self.isRefund = isRefund
21086
 
21087
  def read(self, iprot):
21088
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21089
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21090
      return
21091
    iprot.readStructBegin()
21092
    while True:
21093
      (fname, ftype, fid) = iprot.readFieldBegin()
21094
      if ftype == TType.STOP:
21095
        break
21096
      if fid == 1:
21097
        if ftype == TType.I64:
21098
          self.orderId = iprot.readI64();
21099
        else:
21100
          iprot.skip(ftype)
21101
      elif fid == 2:
21102
        if ftype == TType.BOOL:
21103
          self.isRefund = iprot.readBool();
21104
        else:
21105
          iprot.skip(ftype)
21106
      else:
21107
        iprot.skip(ftype)
21108
      iprot.readFieldEnd()
21109
    iprot.readStructEnd()
21110
 
21111
  def write(self, oprot):
21112
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21113
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21114
      return
21115
    oprot.writeStructBegin('getSettlementForCod_args')
21116
    if self.orderId is not None:
21117
      oprot.writeFieldBegin('orderId', TType.I64, 1)
21118
      oprot.writeI64(self.orderId)
21119
      oprot.writeFieldEnd()
5189 varun.gupt 21120
    if self.isRefund is not None:
5386 phani.kuma 21121
      oprot.writeFieldBegin('isRefund', TType.BOOL, 2)
5189 varun.gupt 21122
      oprot.writeBool(self.isRefund)
21123
      oprot.writeFieldEnd()
4600 varun.gupt 21124
    oprot.writeFieldStop()
21125
    oprot.writeStructEnd()
21126
 
21127
  def validate(self):
21128
    return
21129
 
21130
 
21131
  def __repr__(self):
21132
    L = ['%s=%r' % (key, value)
21133
      for key, value in self.__dict__.iteritems()]
21134
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21135
 
21136
  def __eq__(self, other):
21137
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21138
 
21139
  def __ne__(self, other):
21140
    return not (self == other)
21141
 
5386 phani.kuma 21142
class getSettlementForCod_result:
4600 varun.gupt 21143
  """
21144
  Attributes:
21145
   - success
21146
   - ex
21147
  """
21148
 
21149
  thrift_spec = (
21150
    (0, TType.STRUCT, 'success', (PaymentSettlement, PaymentSettlement.thrift_spec), None, ), # 0
21151
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
21152
  )
21153
 
21154
  def __init__(self, success=None, ex=None,):
21155
    self.success = success
21156
    self.ex = ex
21157
 
21158
  def read(self, iprot):
21159
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21160
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21161
      return
21162
    iprot.readStructBegin()
21163
    while True:
21164
      (fname, ftype, fid) = iprot.readFieldBegin()
21165
      if ftype == TType.STOP:
21166
        break
21167
      if fid == 0:
21168
        if ftype == TType.STRUCT:
21169
          self.success = PaymentSettlement()
21170
          self.success.read(iprot)
21171
        else:
21172
          iprot.skip(ftype)
21173
      elif fid == 1:
21174
        if ftype == TType.STRUCT:
21175
          self.ex = TransactionServiceException()
21176
          self.ex.read(iprot)
21177
        else:
21178
          iprot.skip(ftype)
21179
      else:
21180
        iprot.skip(ftype)
21181
      iprot.readFieldEnd()
21182
    iprot.readStructEnd()
21183
 
21184
  def write(self, oprot):
21185
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21186
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21187
      return
5386 phani.kuma 21188
    oprot.writeStructBegin('getSettlementForCod_result')
4600 varun.gupt 21189
    if self.success is not None:
21190
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
21191
      self.success.write(oprot)
21192
      oprot.writeFieldEnd()
21193
    if self.ex is not None:
21194
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
21195
      self.ex.write(oprot)
21196
      oprot.writeFieldEnd()
21197
    oprot.writeFieldStop()
21198
    oprot.writeStructEnd()
21199
 
21200
  def validate(self):
21201
    return
21202
 
21203
 
21204
  def __repr__(self):
21205
    L = ['%s=%r' % (key, value)
21206
      for key, value in self.__dict__.iteritems()]
21207
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21208
 
21209
  def __eq__(self, other):
21210
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21211
 
21212
  def __ne__(self, other):
21213
    return not (self == other)
21214
 
21215
class getEBSSettlementSummaries_args:
21216
 
21217
  thrift_spec = (
21218
  )
21219
 
21220
  def read(self, iprot):
21221
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21222
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21223
      return
21224
    iprot.readStructBegin()
21225
    while True:
21226
      (fname, ftype, fid) = iprot.readFieldBegin()
21227
      if ftype == TType.STOP:
21228
        break
21229
      else:
21230
        iprot.skip(ftype)
21231
      iprot.readFieldEnd()
21232
    iprot.readStructEnd()
21233
 
21234
  def write(self, oprot):
21235
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21236
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21237
      return
21238
    oprot.writeStructBegin('getEBSSettlementSummaries_args')
21239
    oprot.writeFieldStop()
21240
    oprot.writeStructEnd()
21241
 
21242
  def validate(self):
21243
    return
21244
 
21245
 
21246
  def __repr__(self):
21247
    L = ['%s=%r' % (key, value)
21248
      for key, value in self.__dict__.iteritems()]
21249
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21250
 
21251
  def __eq__(self, other):
21252
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21253
 
21254
  def __ne__(self, other):
21255
    return not (self == other)
21256
 
21257
class getEBSSettlementSummaries_result:
21258
  """
21259
  Attributes:
21260
   - success
21261
   - ex
21262
  """
21263
 
21264
  thrift_spec = (
21265
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRING,None), None, ), # 0
21266
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
21267
  )
21268
 
21269
  def __init__(self, success=None, ex=None,):
21270
    self.success = success
21271
    self.ex = ex
21272
 
21273
  def read(self, iprot):
21274
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21275
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21276
      return
21277
    iprot.readStructBegin()
21278
    while True:
21279
      (fname, ftype, fid) = iprot.readFieldBegin()
21280
      if ftype == TType.STOP:
21281
        break
21282
      if fid == 0:
21283
        if ftype == TType.MAP:
21284
          self.success = {}
5386 phani.kuma 21285
          (_ktype477, _vtype478, _size476 ) = iprot.readMapBegin() 
21286
          for _i480 in xrange(_size476):
21287
            _key481 = iprot.readI64();
21288
            _val482 = iprot.readString();
21289
            self.success[_key481] = _val482
4600 varun.gupt 21290
          iprot.readMapEnd()
21291
        else:
21292
          iprot.skip(ftype)
21293
      elif fid == 1:
21294
        if ftype == TType.STRUCT:
21295
          self.ex = TransactionServiceException()
21296
          self.ex.read(iprot)
21297
        else:
21298
          iprot.skip(ftype)
21299
      else:
21300
        iprot.skip(ftype)
21301
      iprot.readFieldEnd()
21302
    iprot.readStructEnd()
21303
 
21304
  def write(self, oprot):
21305
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21306
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21307
      return
21308
    oprot.writeStructBegin('getEBSSettlementSummaries_result')
21309
    if self.success is not None:
21310
      oprot.writeFieldBegin('success', TType.MAP, 0)
21311
      oprot.writeMapBegin(TType.I64, TType.STRING, len(self.success))
5386 phani.kuma 21312
      for kiter483,viter484 in self.success.items():
21313
        oprot.writeI64(kiter483)
21314
        oprot.writeString(viter484)
4600 varun.gupt 21315
      oprot.writeMapEnd()
21316
      oprot.writeFieldEnd()
21317
    if self.ex is not None:
21318
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
21319
      self.ex.write(oprot)
21320
      oprot.writeFieldEnd()
21321
    oprot.writeFieldStop()
21322
    oprot.writeStructEnd()
21323
 
21324
  def validate(self):
21325
    return
21326
 
21327
 
21328
  def __repr__(self):
21329
    L = ['%s=%r' % (key, value)
21330
      for key, value in self.__dict__.iteritems()]
21331
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21332
 
21333
  def __eq__(self, other):
21334
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21335
 
21336
  def __ne__(self, other):
21337
    return not (self == other)
21338
 
21339
class markEBSSettlementUploaded_args:
21340
  """
21341
  Attributes:
21342
   - settlementId
21343
  """
21344
 
21345
  thrift_spec = (
21346
    None, # 0
21347
    (1, TType.I64, 'settlementId', None, None, ), # 1
21348
  )
21349
 
21350
  def __init__(self, settlementId=None,):
21351
    self.settlementId = settlementId
21352
 
21353
  def read(self, iprot):
21354
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21355
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21356
      return
21357
    iprot.readStructBegin()
21358
    while True:
21359
      (fname, ftype, fid) = iprot.readFieldBegin()
21360
      if ftype == TType.STOP:
21361
        break
21362
      if fid == 1:
21363
        if ftype == TType.I64:
21364
          self.settlementId = iprot.readI64();
21365
        else:
21366
          iprot.skip(ftype)
21367
      else:
21368
        iprot.skip(ftype)
21369
      iprot.readFieldEnd()
21370
    iprot.readStructEnd()
21371
 
21372
  def write(self, oprot):
21373
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21374
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21375
      return
21376
    oprot.writeStructBegin('markEBSSettlementUploaded_args')
21377
    if self.settlementId is not None:
21378
      oprot.writeFieldBegin('settlementId', TType.I64, 1)
21379
      oprot.writeI64(self.settlementId)
21380
      oprot.writeFieldEnd()
21381
    oprot.writeFieldStop()
21382
    oprot.writeStructEnd()
21383
 
21384
  def validate(self):
21385
    return
21386
 
21387
 
21388
  def __repr__(self):
21389
    L = ['%s=%r' % (key, value)
21390
      for key, value in self.__dict__.iteritems()]
21391
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21392
 
21393
  def __eq__(self, other):
21394
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21395
 
21396
  def __ne__(self, other):
21397
    return not (self == other)
21398
 
21399
class markEBSSettlementUploaded_result:
21400
  """
21401
  Attributes:
21402
   - ex
21403
  """
21404
 
21405
  thrift_spec = (
21406
    None, # 0
21407
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
21408
  )
21409
 
21410
  def __init__(self, ex=None,):
21411
    self.ex = ex
21412
 
21413
  def read(self, iprot):
21414
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21415
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21416
      return
21417
    iprot.readStructBegin()
21418
    while True:
21419
      (fname, ftype, fid) = iprot.readFieldBegin()
21420
      if ftype == TType.STOP:
21421
        break
21422
      if fid == 1:
21423
        if ftype == TType.STRUCT:
21424
          self.ex = TransactionServiceException()
21425
          self.ex.read(iprot)
21426
        else:
21427
          iprot.skip(ftype)
21428
      else:
21429
        iprot.skip(ftype)
21430
      iprot.readFieldEnd()
21431
    iprot.readStructEnd()
21432
 
21433
  def write(self, oprot):
21434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21436
      return
21437
    oprot.writeStructBegin('markEBSSettlementUploaded_result')
21438
    if self.ex is not None:
21439
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
21440
      self.ex.write(oprot)
21441
      oprot.writeFieldEnd()
21442
    oprot.writeFieldStop()
21443
    oprot.writeStructEnd()
21444
 
21445
  def validate(self):
21446
    return
21447
 
21448
 
21449
  def __repr__(self):
21450
    L = ['%s=%r' % (key, value)
21451
      for key, value in self.__dict__.iteritems()]
21452
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21453
 
21454
  def __eq__(self, other):
21455
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21456
 
21457
  def __ne__(self, other):
21458
    return not (self == other)
21459
 
21460
class getEBSSettlementDate_args:
21461
  """
21462
  Attributes:
21463
   - settlementId
21464
  """
21465
 
21466
  thrift_spec = (
21467
    None, # 0
21468
    (1, TType.I64, 'settlementId', None, None, ), # 1
21469
  )
21470
 
21471
  def __init__(self, settlementId=None,):
21472
    self.settlementId = settlementId
21473
 
21474
  def read(self, iprot):
21475
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21476
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21477
      return
21478
    iprot.readStructBegin()
21479
    while True:
21480
      (fname, ftype, fid) = iprot.readFieldBegin()
21481
      if ftype == TType.STOP:
21482
        break
21483
      if fid == 1:
21484
        if ftype == TType.I64:
21485
          self.settlementId = iprot.readI64();
21486
        else:
21487
          iprot.skip(ftype)
21488
      else:
21489
        iprot.skip(ftype)
21490
      iprot.readFieldEnd()
21491
    iprot.readStructEnd()
21492
 
21493
  def write(self, oprot):
21494
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21495
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21496
      return
21497
    oprot.writeStructBegin('getEBSSettlementDate_args')
21498
    if self.settlementId is not None:
21499
      oprot.writeFieldBegin('settlementId', TType.I64, 1)
21500
      oprot.writeI64(self.settlementId)
21501
      oprot.writeFieldEnd()
21502
    oprot.writeFieldStop()
21503
    oprot.writeStructEnd()
21504
 
21505
  def validate(self):
21506
    return
21507
 
21508
 
21509
  def __repr__(self):
21510
    L = ['%s=%r' % (key, value)
21511
      for key, value in self.__dict__.iteritems()]
21512
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21513
 
21514
  def __eq__(self, other):
21515
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21516
 
21517
  def __ne__(self, other):
21518
    return not (self == other)
21519
 
21520
class getEBSSettlementDate_result:
21521
  """
21522
  Attributes:
21523
   - success
21524
   - ex
21525
  """
21526
 
21527
  thrift_spec = (
21528
    (0, TType.I64, 'success', None, None, ), # 0
21529
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
21530
  )
21531
 
21532
  def __init__(self, success=None, ex=None,):
21533
    self.success = success
21534
    self.ex = ex
21535
 
21536
  def read(self, iprot):
21537
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21538
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21539
      return
21540
    iprot.readStructBegin()
21541
    while True:
21542
      (fname, ftype, fid) = iprot.readFieldBegin()
21543
      if ftype == TType.STOP:
21544
        break
21545
      if fid == 0:
21546
        if ftype == TType.I64:
21547
          self.success = iprot.readI64();
21548
        else:
21549
          iprot.skip(ftype)
21550
      elif fid == 1:
21551
        if ftype == TType.STRUCT:
21552
          self.ex = TransactionServiceException()
21553
          self.ex.read(iprot)
21554
        else:
21555
          iprot.skip(ftype)
21556
      else:
21557
        iprot.skip(ftype)
21558
      iprot.readFieldEnd()
21559
    iprot.readStructEnd()
21560
 
21561
  def write(self, oprot):
21562
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21563
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21564
      return
21565
    oprot.writeStructBegin('getEBSSettlementDate_result')
21566
    if self.success is not None:
21567
      oprot.writeFieldBegin('success', TType.I64, 0)
21568
      oprot.writeI64(self.success)
21569
      oprot.writeFieldEnd()
21570
    if self.ex is not None:
21571
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
21572
      self.ex.write(oprot)
21573
      oprot.writeFieldEnd()
21574
    oprot.writeFieldStop()
21575
    oprot.writeStructEnd()
21576
 
21577
  def validate(self):
21578
    return
21579
 
21580
 
21581
  def __repr__(self):
21582
    L = ['%s=%r' % (key, value)
21583
      for key, value in self.__dict__.iteritems()]
21584
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21585
 
21586
  def __eq__(self, other):
21587
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21588
 
21589
  def __ne__(self, other):
21590
    return not (self == other)
4715 varun.gupt 21591
 
21592
class getSettlementsByDate_args:
21593
  """
21594
  Attributes:
21595
   - settlementDateFrom
21596
   - settlementDateTo
21597
   - isRefund
21598
  """
21599
 
21600
  thrift_spec = (
21601
    None, # 0
21602
    (1, TType.I64, 'settlementDateFrom', None, None, ), # 1
21603
    (2, TType.I64, 'settlementDateTo', None, None, ), # 2
21604
    (3, TType.BOOL, 'isRefund', None, None, ), # 3
21605
  )
21606
 
21607
  def __init__(self, settlementDateFrom=None, settlementDateTo=None, isRefund=None,):
21608
    self.settlementDateFrom = settlementDateFrom
21609
    self.settlementDateTo = settlementDateTo
21610
    self.isRefund = isRefund
21611
 
21612
  def read(self, iprot):
21613
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21614
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21615
      return
21616
    iprot.readStructBegin()
21617
    while True:
21618
      (fname, ftype, fid) = iprot.readFieldBegin()
21619
      if ftype == TType.STOP:
21620
        break
21621
      if fid == 1:
21622
        if ftype == TType.I64:
21623
          self.settlementDateFrom = iprot.readI64();
21624
        else:
21625
          iprot.skip(ftype)
21626
      elif fid == 2:
21627
        if ftype == TType.I64:
21628
          self.settlementDateTo = iprot.readI64();
21629
        else:
21630
          iprot.skip(ftype)
21631
      elif fid == 3:
21632
        if ftype == TType.BOOL:
21633
          self.isRefund = iprot.readBool();
21634
        else:
21635
          iprot.skip(ftype)
21636
      else:
21637
        iprot.skip(ftype)
21638
      iprot.readFieldEnd()
21639
    iprot.readStructEnd()
21640
 
21641
  def write(self, oprot):
21642
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21643
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21644
      return
21645
    oprot.writeStructBegin('getSettlementsByDate_args')
21646
    if self.settlementDateFrom is not None:
21647
      oprot.writeFieldBegin('settlementDateFrom', TType.I64, 1)
21648
      oprot.writeI64(self.settlementDateFrom)
21649
      oprot.writeFieldEnd()
21650
    if self.settlementDateTo is not None:
21651
      oprot.writeFieldBegin('settlementDateTo', TType.I64, 2)
21652
      oprot.writeI64(self.settlementDateTo)
21653
      oprot.writeFieldEnd()
21654
    if self.isRefund is not None:
21655
      oprot.writeFieldBegin('isRefund', TType.BOOL, 3)
21656
      oprot.writeBool(self.isRefund)
21657
      oprot.writeFieldEnd()
21658
    oprot.writeFieldStop()
21659
    oprot.writeStructEnd()
21660
 
21661
  def validate(self):
21662
    return
21663
 
21664
 
21665
  def __repr__(self):
21666
    L = ['%s=%r' % (key, value)
21667
      for key, value in self.__dict__.iteritems()]
21668
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21669
 
21670
  def __eq__(self, other):
21671
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21672
 
21673
  def __ne__(self, other):
21674
    return not (self == other)
21675
 
21676
class getSettlementsByDate_result:
21677
  """
21678
  Attributes:
21679
   - success
21680
   - ex
21681
  """
21682
 
21683
  thrift_spec = (
21684
    (0, TType.LIST, 'success', (TType.STRUCT,(PaymentSettlement, PaymentSettlement.thrift_spec)), None, ), # 0
21685
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
21686
  )
21687
 
21688
  def __init__(self, success=None, ex=None,):
21689
    self.success = success
21690
    self.ex = ex
21691
 
21692
  def read(self, iprot):
21693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21695
      return
21696
    iprot.readStructBegin()
21697
    while True:
21698
      (fname, ftype, fid) = iprot.readFieldBegin()
21699
      if ftype == TType.STOP:
21700
        break
21701
      if fid == 0:
21702
        if ftype == TType.LIST:
21703
          self.success = []
5386 phani.kuma 21704
          (_etype488, _size485) = iprot.readListBegin()
21705
          for _i489 in xrange(_size485):
21706
            _elem490 = PaymentSettlement()
21707
            _elem490.read(iprot)
21708
            self.success.append(_elem490)
4715 varun.gupt 21709
          iprot.readListEnd()
21710
        else:
21711
          iprot.skip(ftype)
21712
      elif fid == 1:
21713
        if ftype == TType.STRUCT:
21714
          self.ex = TransactionServiceException()
21715
          self.ex.read(iprot)
21716
        else:
21717
          iprot.skip(ftype)
21718
      else:
21719
        iprot.skip(ftype)
21720
      iprot.readFieldEnd()
21721
    iprot.readStructEnd()
21722
 
21723
  def write(self, oprot):
21724
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21725
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21726
      return
21727
    oprot.writeStructBegin('getSettlementsByDate_result')
21728
    if self.success is not None:
21729
      oprot.writeFieldBegin('success', TType.LIST, 0)
21730
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 21731
      for iter491 in self.success:
21732
        iter491.write(oprot)
4715 varun.gupt 21733
      oprot.writeListEnd()
21734
      oprot.writeFieldEnd()
21735
    if self.ex is not None:
21736
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
21737
      self.ex.write(oprot)
21738
      oprot.writeFieldEnd()
21739
    oprot.writeFieldStop()
21740
    oprot.writeStructEnd()
21741
 
21742
  def validate(self):
21743
    return
21744
 
21745
 
21746
  def __repr__(self):
21747
    L = ['%s=%r' % (key, value)
21748
      for key, value in self.__dict__.iteritems()]
21749
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21750
 
21751
  def __eq__(self, other):
21752
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21753
 
21754
  def __ne__(self, other):
21755
    return not (self == other)
21756
 
21757
class getReshippedOrderIds_args:
21758
  """
21759
  Attributes:
21760
   - orderIds
21761
  """
21762
 
21763
  thrift_spec = (
21764
    None, # 0
21765
    (1, TType.LIST, 'orderIds', (TType.I64,None), None, ), # 1
21766
  )
21767
 
21768
  def __init__(self, orderIds=None,):
21769
    self.orderIds = orderIds
21770
 
21771
  def read(self, iprot):
21772
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21773
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21774
      return
21775
    iprot.readStructBegin()
21776
    while True:
21777
      (fname, ftype, fid) = iprot.readFieldBegin()
21778
      if ftype == TType.STOP:
21779
        break
21780
      if fid == 1:
21781
        if ftype == TType.LIST:
21782
          self.orderIds = []
5386 phani.kuma 21783
          (_etype495, _size492) = iprot.readListBegin()
21784
          for _i496 in xrange(_size492):
21785
            _elem497 = iprot.readI64();
21786
            self.orderIds.append(_elem497)
4715 varun.gupt 21787
          iprot.readListEnd()
21788
        else:
21789
          iprot.skip(ftype)
21790
      else:
21791
        iprot.skip(ftype)
21792
      iprot.readFieldEnd()
21793
    iprot.readStructEnd()
21794
 
21795
  def write(self, oprot):
21796
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21797
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21798
      return
21799
    oprot.writeStructBegin('getReshippedOrderIds_args')
21800
    if self.orderIds is not None:
21801
      oprot.writeFieldBegin('orderIds', TType.LIST, 1)
21802
      oprot.writeListBegin(TType.I64, len(self.orderIds))
5386 phani.kuma 21803
      for iter498 in self.orderIds:
21804
        oprot.writeI64(iter498)
4715 varun.gupt 21805
      oprot.writeListEnd()
21806
      oprot.writeFieldEnd()
21807
    oprot.writeFieldStop()
21808
    oprot.writeStructEnd()
21809
 
21810
  def validate(self):
21811
    return
21812
 
21813
 
21814
  def __repr__(self):
21815
    L = ['%s=%r' % (key, value)
21816
      for key, value in self.__dict__.iteritems()]
21817
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21818
 
21819
  def __eq__(self, other):
21820
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21821
 
21822
  def __ne__(self, other):
21823
    return not (self == other)
21824
 
21825
class getReshippedOrderIds_result:
21826
  """
21827
  Attributes:
21828
   - success
21829
   - ex
21830
  """
21831
 
21832
  thrift_spec = (
21833
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
21834
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
21835
  )
21836
 
21837
  def __init__(self, success=None, ex=None,):
21838
    self.success = success
21839
    self.ex = ex
21840
 
21841
  def read(self, iprot):
21842
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21843
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21844
      return
21845
    iprot.readStructBegin()
21846
    while True:
21847
      (fname, ftype, fid) = iprot.readFieldBegin()
21848
      if ftype == TType.STOP:
21849
        break
21850
      if fid == 0:
21851
        if ftype == TType.LIST:
21852
          self.success = []
5386 phani.kuma 21853
          (_etype502, _size499) = iprot.readListBegin()
21854
          for _i503 in xrange(_size499):
21855
            _elem504 = iprot.readI64();
21856
            self.success.append(_elem504)
4715 varun.gupt 21857
          iprot.readListEnd()
21858
        else:
21859
          iprot.skip(ftype)
21860
      elif fid == 1:
21861
        if ftype == TType.STRUCT:
21862
          self.ex = TransactionServiceException()
21863
          self.ex.read(iprot)
21864
        else:
21865
          iprot.skip(ftype)
21866
      else:
21867
        iprot.skip(ftype)
21868
      iprot.readFieldEnd()
21869
    iprot.readStructEnd()
21870
 
21871
  def write(self, oprot):
21872
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21873
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21874
      return
21875
    oprot.writeStructBegin('getReshippedOrderIds_result')
21876
    if self.success is not None:
21877
      oprot.writeFieldBegin('success', TType.LIST, 0)
21878
      oprot.writeListBegin(TType.I64, len(self.success))
5386 phani.kuma 21879
      for iter505 in self.success:
21880
        oprot.writeI64(iter505)
4715 varun.gupt 21881
      oprot.writeListEnd()
21882
      oprot.writeFieldEnd()
21883
    if self.ex is not None:
21884
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
21885
      self.ex.write(oprot)
21886
      oprot.writeFieldEnd()
21887
    oprot.writeFieldStop()
21888
    oprot.writeStructEnd()
21889
 
21890
  def validate(self):
21891
    return
21892
 
21893
 
21894
  def __repr__(self):
21895
    L = ['%s=%r' % (key, value)
21896
      for key, value in self.__dict__.iteritems()]
21897
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21898
 
21899
  def __eq__(self, other):
21900
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21901
 
21902
  def __ne__(self, other):
21903
    return not (self == other)
4757 mandeep.dh 21904
 
4875 varun.gupt 21905
class getOrdersWhereVendorNotPaid_args:
21906
  """
21907
  Attributes:
21908
   - vendorId
21909
  """
21910
 
21911
  thrift_spec = (
21912
    None, # 0
21913
    (1, TType.I64, 'vendorId', None, None, ), # 1
21914
  )
21915
 
21916
  def __init__(self, vendorId=None,):
21917
    self.vendorId = vendorId
21918
 
21919
  def read(self, iprot):
21920
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21921
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21922
      return
21923
    iprot.readStructBegin()
21924
    while True:
21925
      (fname, ftype, fid) = iprot.readFieldBegin()
21926
      if ftype == TType.STOP:
21927
        break
21928
      if fid == 1:
21929
        if ftype == TType.I64:
21930
          self.vendorId = iprot.readI64();
21931
        else:
21932
          iprot.skip(ftype)
21933
      else:
21934
        iprot.skip(ftype)
21935
      iprot.readFieldEnd()
21936
    iprot.readStructEnd()
21937
 
21938
  def write(self, oprot):
21939
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
21940
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
21941
      return
21942
    oprot.writeStructBegin('getOrdersWhereVendorNotPaid_args')
21943
    if self.vendorId is not None:
21944
      oprot.writeFieldBegin('vendorId', TType.I64, 1)
21945
      oprot.writeI64(self.vendorId)
21946
      oprot.writeFieldEnd()
21947
    oprot.writeFieldStop()
21948
    oprot.writeStructEnd()
21949
 
21950
  def validate(self):
21951
    return
21952
 
21953
 
21954
  def __repr__(self):
21955
    L = ['%s=%r' % (key, value)
21956
      for key, value in self.__dict__.iteritems()]
21957
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
21958
 
21959
  def __eq__(self, other):
21960
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
21961
 
21962
  def __ne__(self, other):
21963
    return not (self == other)
21964
 
21965
class getOrdersWhereVendorNotPaid_result:
21966
  """
21967
  Attributes:
21968
   - success
21969
   - ex
21970
  """
21971
 
21972
  thrift_spec = (
21973
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
21974
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
21975
  )
21976
 
21977
  def __init__(self, success=None, ex=None,):
21978
    self.success = success
21979
    self.ex = ex
21980
 
21981
  def read(self, iprot):
21982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
21983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
21984
      return
21985
    iprot.readStructBegin()
21986
    while True:
21987
      (fname, ftype, fid) = iprot.readFieldBegin()
21988
      if ftype == TType.STOP:
21989
        break
21990
      if fid == 0:
21991
        if ftype == TType.LIST:
21992
          self.success = []
5386 phani.kuma 21993
          (_etype509, _size506) = iprot.readListBegin()
21994
          for _i510 in xrange(_size506):
21995
            _elem511 = Order()
21996
            _elem511.read(iprot)
21997
            self.success.append(_elem511)
4875 varun.gupt 21998
          iprot.readListEnd()
21999
        else:
22000
          iprot.skip(ftype)
22001
      elif fid == 1:
22002
        if ftype == TType.STRUCT:
22003
          self.ex = TransactionServiceException()
22004
          self.ex.read(iprot)
22005
        else:
22006
          iprot.skip(ftype)
22007
      else:
22008
        iprot.skip(ftype)
22009
      iprot.readFieldEnd()
22010
    iprot.readStructEnd()
22011
 
22012
  def write(self, oprot):
22013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22015
      return
22016
    oprot.writeStructBegin('getOrdersWhereVendorNotPaid_result')
22017
    if self.success is not None:
22018
      oprot.writeFieldBegin('success', TType.LIST, 0)
22019
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 22020
      for iter512 in self.success:
22021
        iter512.write(oprot)
4875 varun.gupt 22022
      oprot.writeListEnd()
22023
      oprot.writeFieldEnd()
22024
    if self.ex is not None:
22025
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
22026
      self.ex.write(oprot)
22027
      oprot.writeFieldEnd()
22028
    oprot.writeFieldStop()
22029
    oprot.writeStructEnd()
22030
 
22031
  def validate(self):
22032
    return
22033
 
22034
 
22035
  def __repr__(self):
22036
    L = ['%s=%r' % (key, value)
22037
      for key, value in self.__dict__.iteritems()]
22038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22039
 
22040
  def __eq__(self, other):
22041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22042
 
22043
  def __ne__(self, other):
22044
    return not (self == other)
5031 varun.gupt 22045
 
22046
class getStatusDistributionOfOrders_args:
22047
  """
22048
  Attributes:
22049
   - startDate
22050
   - endDate
22051
  """
22052
 
22053
  thrift_spec = (
22054
    None, # 0
22055
    (1, TType.I64, 'startDate', None, None, ), # 1
22056
    (2, TType.I64, 'endDate', None, None, ), # 2
22057
  )
22058
 
22059
  def __init__(self, startDate=None, endDate=None,):
22060
    self.startDate = startDate
22061
    self.endDate = endDate
22062
 
22063
  def read(self, iprot):
22064
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22065
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22066
      return
22067
    iprot.readStructBegin()
22068
    while True:
22069
      (fname, ftype, fid) = iprot.readFieldBegin()
22070
      if ftype == TType.STOP:
22071
        break
22072
      if fid == 1:
22073
        if ftype == TType.I64:
22074
          self.startDate = iprot.readI64();
22075
        else:
22076
          iprot.skip(ftype)
22077
      elif fid == 2:
22078
        if ftype == TType.I64:
22079
          self.endDate = iprot.readI64();
22080
        else:
22081
          iprot.skip(ftype)
22082
      else:
22083
        iprot.skip(ftype)
22084
      iprot.readFieldEnd()
22085
    iprot.readStructEnd()
22086
 
22087
  def write(self, oprot):
22088
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22089
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22090
      return
22091
    oprot.writeStructBegin('getStatusDistributionOfOrders_args')
22092
    if self.startDate is not None:
22093
      oprot.writeFieldBegin('startDate', TType.I64, 1)
22094
      oprot.writeI64(self.startDate)
22095
      oprot.writeFieldEnd()
22096
    if self.endDate is not None:
22097
      oprot.writeFieldBegin('endDate', TType.I64, 2)
22098
      oprot.writeI64(self.endDate)
22099
      oprot.writeFieldEnd()
22100
    oprot.writeFieldStop()
22101
    oprot.writeStructEnd()
22102
 
22103
  def validate(self):
22104
    return
22105
 
22106
 
22107
  def __repr__(self):
22108
    L = ['%s=%r' % (key, value)
22109
      for key, value in self.__dict__.iteritems()]
22110
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22111
 
22112
  def __eq__(self, other):
22113
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22114
 
22115
  def __ne__(self, other):
22116
    return not (self == other)
22117
 
22118
class getStatusDistributionOfOrders_result:
22119
  """
22120
  Attributes:
22121
   - success
22122
   - ex
22123
  """
22124
 
22125
  thrift_spec = (
22126
    (0, TType.MAP, 'success', (TType.I64,None,TType.I64,None), None, ), # 0
22127
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
22128
  )
22129
 
22130
  def __init__(self, success=None, ex=None,):
22131
    self.success = success
22132
    self.ex = ex
22133
 
22134
  def read(self, iprot):
22135
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22136
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22137
      return
22138
    iprot.readStructBegin()
22139
    while True:
22140
      (fname, ftype, fid) = iprot.readFieldBegin()
22141
      if ftype == TType.STOP:
22142
        break
22143
      if fid == 0:
22144
        if ftype == TType.MAP:
22145
          self.success = {}
5386 phani.kuma 22146
          (_ktype514, _vtype515, _size513 ) = iprot.readMapBegin() 
22147
          for _i517 in xrange(_size513):
22148
            _key518 = iprot.readI64();
22149
            _val519 = iprot.readI64();
22150
            self.success[_key518] = _val519
5031 varun.gupt 22151
          iprot.readMapEnd()
22152
        else:
22153
          iprot.skip(ftype)
22154
      elif fid == 1:
22155
        if ftype == TType.STRUCT:
22156
          self.ex = TransactionServiceException()
22157
          self.ex.read(iprot)
22158
        else:
22159
          iprot.skip(ftype)
22160
      else:
22161
        iprot.skip(ftype)
22162
      iprot.readFieldEnd()
22163
    iprot.readStructEnd()
22164
 
22165
  def write(self, oprot):
22166
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22167
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22168
      return
22169
    oprot.writeStructBegin('getStatusDistributionOfOrders_result')
22170
    if self.success is not None:
22171
      oprot.writeFieldBegin('success', TType.MAP, 0)
22172
      oprot.writeMapBegin(TType.I64, TType.I64, len(self.success))
5386 phani.kuma 22173
      for kiter520,viter521 in self.success.items():
22174
        oprot.writeI64(kiter520)
22175
        oprot.writeI64(viter521)
5031 varun.gupt 22176
      oprot.writeMapEnd()
22177
      oprot.writeFieldEnd()
22178
    if self.ex is not None:
22179
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
22180
      self.ex.write(oprot)
22181
      oprot.writeFieldEnd()
22182
    oprot.writeFieldStop()
22183
    oprot.writeStructEnd()
22184
 
22185
  def validate(self):
22186
    return
22187
 
22188
 
22189
  def __repr__(self):
22190
    L = ['%s=%r' % (key, value)
22191
      for key, value in self.__dict__.iteritems()]
22192
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22193
 
22194
  def __eq__(self, other):
22195
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22196
 
22197
  def __ne__(self, other):
22198
    return not (self == other)
5067 varun.gupt 22199
 
22200
class getOrderIdsForStatus_args:
22201
  """
22202
  Attributes:
22203
   - status
22204
   - startDatetime
22205
   - endDatetime
22206
  """
22207
 
22208
  thrift_spec = (
22209
    None, # 0
22210
    (1, TType.I64, 'status', None, None, ), # 1
22211
    (2, TType.I64, 'startDatetime', None, None, ), # 2
22212
    (3, TType.I64, 'endDatetime', None, None, ), # 3
22213
  )
22214
 
22215
  def __init__(self, status=None, startDatetime=None, endDatetime=None,):
22216
    self.status = status
22217
    self.startDatetime = startDatetime
22218
    self.endDatetime = endDatetime
22219
 
22220
  def read(self, iprot):
22221
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22222
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22223
      return
22224
    iprot.readStructBegin()
22225
    while True:
22226
      (fname, ftype, fid) = iprot.readFieldBegin()
22227
      if ftype == TType.STOP:
22228
        break
22229
      if fid == 1:
22230
        if ftype == TType.I64:
22231
          self.status = iprot.readI64();
22232
        else:
22233
          iprot.skip(ftype)
22234
      elif fid == 2:
22235
        if ftype == TType.I64:
22236
          self.startDatetime = iprot.readI64();
22237
        else:
22238
          iprot.skip(ftype)
22239
      elif fid == 3:
22240
        if ftype == TType.I64:
22241
          self.endDatetime = iprot.readI64();
22242
        else:
22243
          iprot.skip(ftype)
22244
      else:
22245
        iprot.skip(ftype)
22246
      iprot.readFieldEnd()
22247
    iprot.readStructEnd()
22248
 
22249
  def write(self, oprot):
22250
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22251
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22252
      return
22253
    oprot.writeStructBegin('getOrderIdsForStatus_args')
22254
    if self.status is not None:
22255
      oprot.writeFieldBegin('status', TType.I64, 1)
22256
      oprot.writeI64(self.status)
22257
      oprot.writeFieldEnd()
22258
    if self.startDatetime is not None:
22259
      oprot.writeFieldBegin('startDatetime', TType.I64, 2)
22260
      oprot.writeI64(self.startDatetime)
22261
      oprot.writeFieldEnd()
22262
    if self.endDatetime is not None:
22263
      oprot.writeFieldBegin('endDatetime', TType.I64, 3)
22264
      oprot.writeI64(self.endDatetime)
22265
      oprot.writeFieldEnd()
22266
    oprot.writeFieldStop()
22267
    oprot.writeStructEnd()
22268
 
22269
  def validate(self):
22270
    return
22271
 
22272
 
22273
  def __repr__(self):
22274
    L = ['%s=%r' % (key, value)
22275
      for key, value in self.__dict__.iteritems()]
22276
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22277
 
22278
  def __eq__(self, other):
22279
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22280
 
22281
  def __ne__(self, other):
22282
    return not (self == other)
22283
 
22284
class getOrderIdsForStatus_result:
22285
  """
22286
  Attributes:
22287
   - success
22288
   - ex
22289
  """
22290
 
22291
  thrift_spec = (
22292
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
22293
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
22294
  )
22295
 
22296
  def __init__(self, success=None, ex=None,):
22297
    self.success = success
22298
    self.ex = ex
22299
 
22300
  def read(self, iprot):
22301
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22302
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22303
      return
22304
    iprot.readStructBegin()
22305
    while True:
22306
      (fname, ftype, fid) = iprot.readFieldBegin()
22307
      if ftype == TType.STOP:
22308
        break
22309
      if fid == 0:
22310
        if ftype == TType.LIST:
22311
          self.success = []
5386 phani.kuma 22312
          (_etype525, _size522) = iprot.readListBegin()
22313
          for _i526 in xrange(_size522):
22314
            _elem527 = iprot.readI64();
22315
            self.success.append(_elem527)
5067 varun.gupt 22316
          iprot.readListEnd()
22317
        else:
22318
          iprot.skip(ftype)
22319
      elif fid == 1:
22320
        if ftype == TType.STRUCT:
22321
          self.ex = TransactionServiceException()
22322
          self.ex.read(iprot)
22323
        else:
22324
          iprot.skip(ftype)
22325
      else:
22326
        iprot.skip(ftype)
22327
      iprot.readFieldEnd()
22328
    iprot.readStructEnd()
22329
 
22330
  def write(self, oprot):
22331
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22332
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22333
      return
22334
    oprot.writeStructBegin('getOrderIdsForStatus_result')
22335
    if self.success is not None:
22336
      oprot.writeFieldBegin('success', TType.LIST, 0)
22337
      oprot.writeListBegin(TType.I64, len(self.success))
5386 phani.kuma 22338
      for iter528 in self.success:
22339
        oprot.writeI64(iter528)
5067 varun.gupt 22340
      oprot.writeListEnd()
22341
      oprot.writeFieldEnd()
22342
    if self.ex is not None:
22343
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
22344
      self.ex.write(oprot)
22345
      oprot.writeFieldEnd()
22346
    oprot.writeFieldStop()
22347
    oprot.writeStructEnd()
22348
 
22349
  def validate(self):
22350
    return
22351
 
22352
 
22353
  def __repr__(self):
22354
    L = ['%s=%r' % (key, value)
22355
      for key, value in self.__dict__.iteritems()]
22356
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22357
 
22358
  def __eq__(self, other):
22359
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22360
 
22361
  def __ne__(self, other):
22362
    return not (self == other)
5099 varun.gupt 22363
 
5348 anupam.sin 22364
class updateCODAgent_args:
22365
  """
22366
  Attributes:
22367
   - agent
22368
   - orderId
22369
  """
22370
 
22371
  thrift_spec = (
22372
    None, # 0
22373
    (1, TType.STRING, 'agent', None, None, ), # 1
22374
    (2, TType.I64, 'orderId', None, None, ), # 2
22375
  )
22376
 
22377
  def __init__(self, agent=None, orderId=None,):
22378
    self.agent = agent
22379
    self.orderId = orderId
22380
 
22381
  def read(self, iprot):
22382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22384
      return
22385
    iprot.readStructBegin()
22386
    while True:
22387
      (fname, ftype, fid) = iprot.readFieldBegin()
22388
      if ftype == TType.STOP:
22389
        break
22390
      if fid == 1:
22391
        if ftype == TType.STRING:
22392
          self.agent = iprot.readString();
22393
        else:
22394
          iprot.skip(ftype)
22395
      elif fid == 2:
22396
        if ftype == TType.I64:
22397
          self.orderId = iprot.readI64();
22398
        else:
22399
          iprot.skip(ftype)
22400
      else:
22401
        iprot.skip(ftype)
22402
      iprot.readFieldEnd()
22403
    iprot.readStructEnd()
22404
 
22405
  def write(self, oprot):
22406
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22407
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22408
      return
22409
    oprot.writeStructBegin('updateCODAgent_args')
22410
    if self.agent is not None:
22411
      oprot.writeFieldBegin('agent', TType.STRING, 1)
22412
      oprot.writeString(self.agent)
22413
      oprot.writeFieldEnd()
22414
    if self.orderId is not None:
22415
      oprot.writeFieldBegin('orderId', TType.I64, 2)
22416
      oprot.writeI64(self.orderId)
22417
      oprot.writeFieldEnd()
22418
    oprot.writeFieldStop()
22419
    oprot.writeStructEnd()
22420
 
22421
  def validate(self):
22422
    return
22423
 
22424
 
22425
  def __repr__(self):
22426
    L = ['%s=%r' % (key, value)
22427
      for key, value in self.__dict__.iteritems()]
22428
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22429
 
22430
  def __eq__(self, other):
22431
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22432
 
22433
  def __ne__(self, other):
22434
    return not (self == other)
22435
 
22436
class updateCODAgent_result:
22437
  """
22438
  Attributes:
22439
   - ex
22440
  """
22441
 
22442
  thrift_spec = (
22443
    None, # 0
22444
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
22445
  )
22446
 
22447
  def __init__(self, ex=None,):
22448
    self.ex = ex
22449
 
22450
  def read(self, iprot):
22451
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22452
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22453
      return
22454
    iprot.readStructBegin()
22455
    while True:
22456
      (fname, ftype, fid) = iprot.readFieldBegin()
22457
      if ftype == TType.STOP:
22458
        break
22459
      if fid == 1:
22460
        if ftype == TType.STRUCT:
22461
          self.ex = TransactionServiceException()
22462
          self.ex.read(iprot)
22463
        else:
22464
          iprot.skip(ftype)
22465
      else:
22466
        iprot.skip(ftype)
22467
      iprot.readFieldEnd()
22468
    iprot.readStructEnd()
22469
 
22470
  def write(self, oprot):
22471
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22472
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22473
      return
22474
    oprot.writeStructBegin('updateCODAgent_result')
22475
    if self.ex is not None:
22476
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
22477
      self.ex.write(oprot)
22478
      oprot.writeFieldEnd()
22479
    oprot.writeFieldStop()
22480
    oprot.writeStructEnd()
22481
 
22482
  def validate(self):
22483
    return
22484
 
22485
 
22486
  def __repr__(self):
22487
    L = ['%s=%r' % (key, value)
22488
      for key, value in self.__dict__.iteritems()]
22489
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22490
 
22491
  def __eq__(self, other):
22492
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22493
 
22494
  def __ne__(self, other):
22495
    return not (self == other)
22496
 
5099 varun.gupt 22497
class updateOrderAsPaidToVendor_args:
22498
  """
22499
  Attributes:
22500
   - orderId
22501
  """
22502
 
22503
  thrift_spec = (
22504
    None, # 0
22505
    (1, TType.I64, 'orderId', None, None, ), # 1
22506
  )
22507
 
22508
  def __init__(self, orderId=None,):
22509
    self.orderId = orderId
22510
 
22511
  def read(self, iprot):
22512
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22513
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22514
      return
22515
    iprot.readStructBegin()
22516
    while True:
22517
      (fname, ftype, fid) = iprot.readFieldBegin()
22518
      if ftype == TType.STOP:
22519
        break
22520
      if fid == 1:
22521
        if ftype == TType.I64:
22522
          self.orderId = iprot.readI64();
22523
        else:
22524
          iprot.skip(ftype)
22525
      else:
22526
        iprot.skip(ftype)
22527
      iprot.readFieldEnd()
22528
    iprot.readStructEnd()
22529
 
22530
  def write(self, oprot):
22531
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22532
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22533
      return
22534
    oprot.writeStructBegin('updateOrderAsPaidToVendor_args')
22535
    if self.orderId is not None:
22536
      oprot.writeFieldBegin('orderId', TType.I64, 1)
22537
      oprot.writeI64(self.orderId)
22538
      oprot.writeFieldEnd()
22539
    oprot.writeFieldStop()
22540
    oprot.writeStructEnd()
22541
 
22542
  def validate(self):
22543
    return
22544
 
22545
 
22546
  def __repr__(self):
22547
    L = ['%s=%r' % (key, value)
22548
      for key, value in self.__dict__.iteritems()]
22549
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22550
 
22551
  def __eq__(self, other):
22552
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22553
 
22554
  def __ne__(self, other):
22555
    return not (self == other)
22556
 
22557
class updateOrderAsPaidToVendor_result:
22558
  """
22559
  Attributes:
22560
   - ex
22561
  """
22562
 
22563
  thrift_spec = (
22564
    None, # 0
22565
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
22566
  )
22567
 
22568
  def __init__(self, ex=None,):
22569
    self.ex = ex
22570
 
22571
  def read(self, iprot):
22572
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22573
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22574
      return
22575
    iprot.readStructBegin()
22576
    while True:
22577
      (fname, ftype, fid) = iprot.readFieldBegin()
22578
      if ftype == TType.STOP:
22579
        break
22580
      if fid == 1:
22581
        if ftype == TType.STRUCT:
22582
          self.ex = TransactionServiceException()
22583
          self.ex.read(iprot)
22584
        else:
22585
          iprot.skip(ftype)
22586
      else:
22587
        iprot.skip(ftype)
22588
      iprot.readFieldEnd()
22589
    iprot.readStructEnd()
22590
 
22591
  def write(self, oprot):
22592
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22593
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22594
      return
22595
    oprot.writeStructBegin('updateOrderAsPaidToVendor_result')
22596
    if self.ex is not None:
22597
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
22598
      self.ex.write(oprot)
22599
      oprot.writeFieldEnd()
22600
    oprot.writeFieldStop()
22601
    oprot.writeStructEnd()
22602
 
22603
  def validate(self):
22604
    return
22605
 
22606
 
22607
  def __repr__(self):
22608
    L = ['%s=%r' % (key, value)
22609
      for key, value in self.__dict__.iteritems()]
22610
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22611
 
22612
  def __eq__(self, other):
22613
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22614
 
22615
  def __ne__(self, other):
22616
    return not (self == other)
5208 varun.gupt 22617
 
5386 phani.kuma 22618
class updateOrderOnlyAsPaidToVendor_args:
22619
  """
22620
  Attributes:
22621
   - orderId
22622
  """
22623
 
22624
  thrift_spec = (
22625
    None, # 0
22626
    (1, TType.I64, 'orderId', None, None, ), # 1
22627
  )
22628
 
22629
  def __init__(self, orderId=None,):
22630
    self.orderId = orderId
22631
 
22632
  def read(self, iprot):
22633
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22634
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22635
      return
22636
    iprot.readStructBegin()
22637
    while True:
22638
      (fname, ftype, fid) = iprot.readFieldBegin()
22639
      if ftype == TType.STOP:
22640
        break
22641
      if fid == 1:
22642
        if ftype == TType.I64:
22643
          self.orderId = iprot.readI64();
22644
        else:
22645
          iprot.skip(ftype)
22646
      else:
22647
        iprot.skip(ftype)
22648
      iprot.readFieldEnd()
22649
    iprot.readStructEnd()
22650
 
22651
  def write(self, oprot):
22652
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22653
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22654
      return
22655
    oprot.writeStructBegin('updateOrderOnlyAsPaidToVendor_args')
22656
    if self.orderId is not None:
22657
      oprot.writeFieldBegin('orderId', TType.I64, 1)
22658
      oprot.writeI64(self.orderId)
22659
      oprot.writeFieldEnd()
22660
    oprot.writeFieldStop()
22661
    oprot.writeStructEnd()
22662
 
22663
  def validate(self):
22664
    return
22665
 
22666
 
22667
  def __repr__(self):
22668
    L = ['%s=%r' % (key, value)
22669
      for key, value in self.__dict__.iteritems()]
22670
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22671
 
22672
  def __eq__(self, other):
22673
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22674
 
22675
  def __ne__(self, other):
22676
    return not (self == other)
22677
 
22678
class updateOrderOnlyAsPaidToVendor_result:
22679
  """
22680
  Attributes:
22681
   - ex
22682
  """
22683
 
22684
  thrift_spec = (
22685
    None, # 0
22686
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
22687
  )
22688
 
22689
  def __init__(self, ex=None,):
22690
    self.ex = ex
22691
 
22692
  def read(self, iprot):
22693
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22694
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22695
      return
22696
    iprot.readStructBegin()
22697
    while True:
22698
      (fname, ftype, fid) = iprot.readFieldBegin()
22699
      if ftype == TType.STOP:
22700
        break
22701
      if fid == 1:
22702
        if ftype == TType.STRUCT:
22703
          self.ex = TransactionServiceException()
22704
          self.ex.read(iprot)
22705
        else:
22706
          iprot.skip(ftype)
22707
      else:
22708
        iprot.skip(ftype)
22709
      iprot.readFieldEnd()
22710
    iprot.readStructEnd()
22711
 
22712
  def write(self, oprot):
22713
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22714
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22715
      return
22716
    oprot.writeStructBegin('updateOrderOnlyAsPaidToVendor_result')
22717
    if self.ex is not None:
22718
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
22719
      self.ex.write(oprot)
22720
      oprot.writeFieldEnd()
22721
    oprot.writeFieldStop()
22722
    oprot.writeStructEnd()
22723
 
22724
  def validate(self):
22725
    return
22726
 
22727
 
22728
  def __repr__(self):
22729
    L = ['%s=%r' % (key, value)
22730
      for key, value in self.__dict__.iteritems()]
22731
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22732
 
22733
  def __eq__(self, other):
22734
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22735
 
22736
  def __ne__(self, other):
22737
    return not (self == other)
22738
 
5208 varun.gupt 22739
class getRefundedOrdersMarkedPaid_args:
22740
 
22741
  thrift_spec = (
22742
  )
22743
 
22744
  def read(self, iprot):
22745
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22746
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22747
      return
22748
    iprot.readStructBegin()
22749
    while True:
22750
      (fname, ftype, fid) = iprot.readFieldBegin()
22751
      if ftype == TType.STOP:
22752
        break
22753
      else:
22754
        iprot.skip(ftype)
22755
      iprot.readFieldEnd()
22756
    iprot.readStructEnd()
22757
 
22758
  def write(self, oprot):
22759
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22760
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22761
      return
22762
    oprot.writeStructBegin('getRefundedOrdersMarkedPaid_args')
22763
    oprot.writeFieldStop()
22764
    oprot.writeStructEnd()
22765
 
22766
  def validate(self):
22767
    return
22768
 
22769
 
22770
  def __repr__(self):
22771
    L = ['%s=%r' % (key, value)
22772
      for key, value in self.__dict__.iteritems()]
22773
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22774
 
22775
  def __eq__(self, other):
22776
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22777
 
22778
  def __ne__(self, other):
22779
    return not (self == other)
22780
 
22781
class getRefundedOrdersMarkedPaid_result:
22782
  """
22783
  Attributes:
22784
   - success
22785
   - ex
22786
  """
22787
 
22788
  thrift_spec = (
22789
    (0, TType.LIST, 'success', (TType.STRUCT,(Order, Order.thrift_spec)), None, ), # 0
22790
    (1, TType.STRUCT, 'ex', (TransactionServiceException, TransactionServiceException.thrift_spec), None, ), # 1
22791
  )
22792
 
22793
  def __init__(self, success=None, ex=None,):
22794
    self.success = success
22795
    self.ex = ex
22796
 
22797
  def read(self, iprot):
22798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
22799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
22800
      return
22801
    iprot.readStructBegin()
22802
    while True:
22803
      (fname, ftype, fid) = iprot.readFieldBegin()
22804
      if ftype == TType.STOP:
22805
        break
22806
      if fid == 0:
22807
        if ftype == TType.LIST:
22808
          self.success = []
5386 phani.kuma 22809
          (_etype532, _size529) = iprot.readListBegin()
22810
          for _i533 in xrange(_size529):
22811
            _elem534 = Order()
22812
            _elem534.read(iprot)
22813
            self.success.append(_elem534)
5208 varun.gupt 22814
          iprot.readListEnd()
22815
        else:
22816
          iprot.skip(ftype)
22817
      elif fid == 1:
22818
        if ftype == TType.STRUCT:
22819
          self.ex = TransactionServiceException()
22820
          self.ex.read(iprot)
22821
        else:
22822
          iprot.skip(ftype)
22823
      else:
22824
        iprot.skip(ftype)
22825
      iprot.readFieldEnd()
22826
    iprot.readStructEnd()
22827
 
22828
  def write(self, oprot):
22829
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
22830
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
22831
      return
22832
    oprot.writeStructBegin('getRefundedOrdersMarkedPaid_result')
22833
    if self.success is not None:
22834
      oprot.writeFieldBegin('success', TType.LIST, 0)
22835
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5386 phani.kuma 22836
      for iter535 in self.success:
22837
        iter535.write(oprot)
5208 varun.gupt 22838
      oprot.writeListEnd()
22839
      oprot.writeFieldEnd()
22840
    if self.ex is not None:
22841
      oprot.writeFieldBegin('ex', TType.STRUCT, 1)
22842
      self.ex.write(oprot)
22843
      oprot.writeFieldEnd()
22844
    oprot.writeFieldStop()
22845
    oprot.writeStructEnd()
22846
 
22847
  def validate(self):
22848
    return
22849
 
22850
 
22851
  def __repr__(self):
22852
    L = ['%s=%r' % (key, value)
22853
      for key, value in self.__dict__.iteritems()]
22854
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
22855
 
22856
  def __eq__(self, other):
22857
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
22858
 
22859
  def __ne__(self, other):
22860
    return not (self == other)