Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
2821 chandransh 1
#
3431 rajveer 2
# Autogenerated by Thrift Compiler (0.7.0)
2821 chandransh 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
2821 chandransh 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
2821 chandransh 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):
4501 mandeep.dh 20
  def getInventoryItem(self, serialNumber):
2832 chandransh 21
    """
4501 mandeep.dh 22
    Retrieves serialized inventory item given a serial number
3431 rajveer 23
 
2832 chandransh 24
    Parameters:
4501 mandeep.dh 25
     - serialNumber
2832 chandransh 26
    """
27
    pass
28
 
5361 mandeep.dh 29
  def getNonSeralizedInventoryItem(self, itemId, warehouseId):
2821 chandransh 30
    """
5361 mandeep.dh 31
    Retrieves non-serialized inventory item from a given supplier
3431 rajveer 32
 
2821 chandransh 33
    Parameters:
4501 mandeep.dh 34
     - itemId
5361 mandeep.dh 35
     - warehouseId
2821 chandransh 36
    """
37
    pass
38
 
5361 mandeep.dh 39
  def scanSerializedItem(self, inventoryItem, type, billingWarehouseId):
2821 chandransh 40
    """
4501 mandeep.dh 41
    Scan serialized items.
42
 
43
    Parameters:
5110 mandeep.dh 44
     - inventoryItem
2821 chandransh 45
     - type
5361 mandeep.dh 46
     - billingWarehouseId
2821 chandransh 47
    """
48
    pass
49
 
5361 mandeep.dh 50
  def scan(self, inventoryItem, type, quantity, billingWarehouseId):
2821 chandransh 51
    """
4501 mandeep.dh 52
    Scan non-serialized items.
3431 rajveer 53
 
2821 chandransh 54
    Parameters:
5361 mandeep.dh 55
     - inventoryItem
2821 chandransh 56
     - type
4501 mandeep.dh 57
     - quantity
5361 mandeep.dh 58
     - billingWarehouseId
2821 chandransh 59
    """
60
    pass
61
 
5110 mandeep.dh 62
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
4501 mandeep.dh 63
    """
64
    Scan serialized items linked with an order. Returns its price.
2821 chandransh 65
 
4501 mandeep.dh 66
    Parameters:
4555 mandeep.dh 67
     - serialNumber
4501 mandeep.dh 68
     - type
69
     - orderId
5110 mandeep.dh 70
     - fulfilmentWarehouseId
71
     - quantity
72
     - billingWarehouseId
4501 mandeep.dh 73
    """
74
    pass
75
 
5361 mandeep.dh 76
  def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 77
    """
78
    Scan non-serialized items linked with an order.
79
 
80
    Parameters:
5361 mandeep.dh 81
     - inventoryItem
4501 mandeep.dh 82
     - type
83
     - quantity
84
     - orderId
5110 mandeep.dh 85
     - fulfilmentWarehouseId
5361 mandeep.dh 86
     - billingWarehouseId
4501 mandeep.dh 87
    """
88
    pass
89
 
90
  def createItemNumberMapping(self, itemNumber, itemId):
91
    """
92
    Created item number to item id mapping
93
 
94
    Parameters:
95
     - itemNumber
96
     - itemId
97
    """
98
    pass
99
 
4620 amit.gupta 100
  def getItemNumbers(self, itemId):
101
    """
102
    Get itemNumber mappings for itemId
4501 mandeep.dh 103
 
4620 amit.gupta 104
    Parameters:
105
     - itemId
106
    """
107
    pass
108
 
5110 mandeep.dh 109
  def getItemIds(self, itemNumber):
110
    """
111
    Gets item ids for a given item number
4620 amit.gupta 112
 
5110 mandeep.dh 113
    Parameters:
114
     - itemNumber
115
    """
116
    pass
117
 
5185 mandeep.dh 118
  def getInventoryItemsFromLastScanType(self, lastScanType):
119
    """
120
    Retrieves all inventory items given a last scan type
5110 mandeep.dh 121
 
5185 mandeep.dh 122
    Parameters:
123
     - lastScanType
124
    """
125
    pass
126
 
127
  def getInventoryItemFromId(self, inventoryItemId):
128
    """
129
    Retrieves inventory item given a inventoryItem id
130
 
131
    Parameters:
132
     - inventoryItemId
133
    """
134
    pass
135
 
5372 mandeep.dh 136
  def getPurchaseScans(self, startDate, endDate):
137
    """
138
    Returns the purchase scans grouped by items for Purchase register reconciliation
5185 mandeep.dh 139
 
5372 mandeep.dh 140
    Parameters:
141
     - startDate
142
     - endDate
143
    """
144
    pass
145
 
5496 mandeep.dh 146
  def fetchScansPerInvoiceNumber(self, date):
147
    """
148
    Returns the invoices and the count of scans against on a given day.
5372 mandeep.dh 149
 
5496 mandeep.dh 150
    Parameters:
151
     - date
152
    """
153
    pass
154
 
155
 
3376 rajveer 156
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2821 chandransh 157
  def __init__(self, iprot, oprot=None):
3376 rajveer 158
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2821 chandransh 159
 
4501 mandeep.dh 160
  def getInventoryItem(self, serialNumber):
2832 chandransh 161
    """
4501 mandeep.dh 162
    Retrieves serialized inventory item given a serial number
3431 rajveer 163
 
2832 chandransh 164
    Parameters:
4501 mandeep.dh 165
     - serialNumber
2832 chandransh 166
    """
4501 mandeep.dh 167
    self.send_getInventoryItem(serialNumber)
168
    return self.recv_getInventoryItem()
2832 chandransh 169
 
4501 mandeep.dh 170
  def send_getInventoryItem(self, serialNumber):
171
    self._oprot.writeMessageBegin('getInventoryItem', TMessageType.CALL, self._seqid)
172
    args = getInventoryItem_args()
173
    args.serialNumber = serialNumber
2832 chandransh 174
    args.write(self._oprot)
175
    self._oprot.writeMessageEnd()
176
    self._oprot.trans.flush()
177
 
4501 mandeep.dh 178
  def recv_getInventoryItem(self, ):
2832 chandransh 179
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
180
    if mtype == TMessageType.EXCEPTION:
181
      x = TApplicationException()
182
      x.read(self._iprot)
183
      self._iprot.readMessageEnd()
184
      raise x
4501 mandeep.dh 185
    result = getInventoryItem_result()
2832 chandransh 186
    result.read(self._iprot)
187
    self._iprot.readMessageEnd()
3431 rajveer 188
    if result.success is not None:
2832 chandransh 189
      return result.success
4541 mandeep.dh 190
    if result.wex is not None:
191
      raise result.wex
4501 mandeep.dh 192
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");
2832 chandransh 193
 
5361 mandeep.dh 194
  def getNonSeralizedInventoryItem(self, itemId, warehouseId):
2821 chandransh 195
    """
5361 mandeep.dh 196
    Retrieves non-serialized inventory item from a given supplier
3431 rajveer 197
 
2821 chandransh 198
    Parameters:
4501 mandeep.dh 199
     - itemId
5361 mandeep.dh 200
     - warehouseId
2821 chandransh 201
    """
5361 mandeep.dh 202
    self.send_getNonSeralizedInventoryItem(itemId, warehouseId)
203
    return self.recv_getNonSeralizedInventoryItem()
2821 chandransh 204
 
5361 mandeep.dh 205
  def send_getNonSeralizedInventoryItem(self, itemId, warehouseId):
206
    self._oprot.writeMessageBegin('getNonSeralizedInventoryItem', TMessageType.CALL, self._seqid)
207
    args = getNonSeralizedInventoryItem_args()
4501 mandeep.dh 208
    args.itemId = itemId
5361 mandeep.dh 209
    args.warehouseId = warehouseId
2821 chandransh 210
    args.write(self._oprot)
211
    self._oprot.writeMessageEnd()
212
    self._oprot.trans.flush()
213
 
5361 mandeep.dh 214
  def recv_getNonSeralizedInventoryItem(self, ):
2821 chandransh 215
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
216
    if mtype == TMessageType.EXCEPTION:
217
      x = TApplicationException()
218
      x.read(self._iprot)
219
      self._iprot.readMessageEnd()
220
      raise x
5361 mandeep.dh 221
    result = getNonSeralizedInventoryItem_result()
2821 chandransh 222
    result.read(self._iprot)
223
    self._iprot.readMessageEnd()
3431 rajveer 224
    if result.success is not None:
2821 chandransh 225
      return result.success
5361 mandeep.dh 226
    if result.wex is not None:
227
      raise result.wex
228
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");
2821 chandransh 229
 
5361 mandeep.dh 230
  def scanSerializedItem(self, inventoryItem, type, billingWarehouseId):
2821 chandransh 231
    """
4501 mandeep.dh 232
    Scan serialized items.
233
 
234
    Parameters:
5110 mandeep.dh 235
     - inventoryItem
4501 mandeep.dh 236
     - type
5361 mandeep.dh 237
     - billingWarehouseId
4501 mandeep.dh 238
    """
5361 mandeep.dh 239
    self.send_scanSerializedItem(inventoryItem, type, billingWarehouseId)
4501 mandeep.dh 240
    self.recv_scanSerializedItem()
241
 
5361 mandeep.dh 242
  def send_scanSerializedItem(self, inventoryItem, type, billingWarehouseId):
4501 mandeep.dh 243
    self._oprot.writeMessageBegin('scanSerializedItem', TMessageType.CALL, self._seqid)
244
    args = scanSerializedItem_args()
5110 mandeep.dh 245
    args.inventoryItem = inventoryItem
4501 mandeep.dh 246
    args.type = type
5361 mandeep.dh 247
    args.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 248
    args.write(self._oprot)
249
    self._oprot.writeMessageEnd()
250
    self._oprot.trans.flush()
251
 
252
  def recv_scanSerializedItem(self, ):
253
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
254
    if mtype == TMessageType.EXCEPTION:
255
      x = TApplicationException()
256
      x.read(self._iprot)
257
      self._iprot.readMessageEnd()
258
      raise x
259
    result = scanSerializedItem_result()
260
    result.read(self._iprot)
261
    self._iprot.readMessageEnd()
3431 rajveer 262
    if result.wex is not None:
3383 chandransh 263
      raise result.wex
4501 mandeep.dh 264
    return
3383 chandransh 265
 
5361 mandeep.dh 266
  def scan(self, inventoryItem, type, quantity, billingWarehouseId):
3383 chandransh 267
    """
4501 mandeep.dh 268
    Scan non-serialized items.
3431 rajveer 269
 
2821 chandransh 270
    Parameters:
5361 mandeep.dh 271
     - inventoryItem
2821 chandransh 272
     - type
4501 mandeep.dh 273
     - quantity
5361 mandeep.dh 274
     - billingWarehouseId
2821 chandransh 275
    """
5361 mandeep.dh 276
    self.send_scan(inventoryItem, type, quantity, billingWarehouseId)
4501 mandeep.dh 277
    self.recv_scan()
2821 chandransh 278
 
5361 mandeep.dh 279
  def send_scan(self, inventoryItem, type, quantity, billingWarehouseId):
4501 mandeep.dh 280
    self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)
281
    args = scan_args()
5361 mandeep.dh 282
    args.inventoryItem = inventoryItem
2821 chandransh 283
    args.type = type
4501 mandeep.dh 284
    args.quantity = quantity
5361 mandeep.dh 285
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 286
    args.write(self._oprot)
287
    self._oprot.writeMessageEnd()
288
    self._oprot.trans.flush()
289
 
4501 mandeep.dh 290
  def recv_scan(self, ):
2821 chandransh 291
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
292
    if mtype == TMessageType.EXCEPTION:
293
      x = TApplicationException()
294
      x.read(self._iprot)
295
      self._iprot.readMessageEnd()
296
      raise x
4501 mandeep.dh 297
    result = scan_result()
2821 chandransh 298
    result.read(self._iprot)
299
    self._iprot.readMessageEnd()
3431 rajveer 300
    if result.wex is not None:
2821 chandransh 301
      raise result.wex
302
    return
303
 
5110 mandeep.dh 304
  def scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
2821 chandransh 305
    """
4501 mandeep.dh 306
    Scan serialized items linked with an order. Returns its price.
3431 rajveer 307
 
2821 chandransh 308
    Parameters:
4555 mandeep.dh 309
     - serialNumber
2821 chandransh 310
     - type
4501 mandeep.dh 311
     - orderId
5110 mandeep.dh 312
     - fulfilmentWarehouseId
313
     - quantity
314
     - billingWarehouseId
2821 chandransh 315
    """
5110 mandeep.dh 316
    self.send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)
4501 mandeep.dh 317
    return self.recv_scanSerializedItemForOrder()
2821 chandransh 318
 
5110 mandeep.dh 319
  def send_scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):
4501 mandeep.dh 320
    self._oprot.writeMessageBegin('scanSerializedItemForOrder', TMessageType.CALL, self._seqid)
321
    args = scanSerializedItemForOrder_args()
4555 mandeep.dh 322
    args.serialNumber = serialNumber
2821 chandransh 323
    args.type = type
4501 mandeep.dh 324
    args.orderId = orderId
5110 mandeep.dh 325
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
326
    args.quantity = quantity
327
    args.billingWarehouseId = billingWarehouseId
2821 chandransh 328
    args.write(self._oprot)
329
    self._oprot.writeMessageEnd()
330
    self._oprot.trans.flush()
331
 
4501 mandeep.dh 332
  def recv_scanSerializedItemForOrder(self, ):
2821 chandransh 333
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
334
    if mtype == TMessageType.EXCEPTION:
335
      x = TApplicationException()
336
      x.read(self._iprot)
337
      self._iprot.readMessageEnd()
338
      raise x
4501 mandeep.dh 339
    result = scanSerializedItemForOrder_result()
2821 chandransh 340
    result.read(self._iprot)
341
    self._iprot.readMessageEnd()
4501 mandeep.dh 342
    if result.success is not None:
343
      return result.success
3431 rajveer 344
    if result.wex is not None:
2821 chandransh 345
      raise result.wex
4501 mandeep.dh 346
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");
347
 
5361 mandeep.dh 348
  def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 349
    """
350
    Scan non-serialized items linked with an order.
351
 
352
    Parameters:
5361 mandeep.dh 353
     - inventoryItem
4501 mandeep.dh 354
     - type
355
     - quantity
356
     - orderId
5110 mandeep.dh 357
     - fulfilmentWarehouseId
5361 mandeep.dh 358
     - billingWarehouseId
4501 mandeep.dh 359
    """
5361 mandeep.dh 360
    self.send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId)
361
    return self.recv_scanForOrder()
4501 mandeep.dh 362
 
5361 mandeep.dh 363
  def send_scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):
4501 mandeep.dh 364
    self._oprot.writeMessageBegin('scanForOrder', TMessageType.CALL, self._seqid)
365
    args = scanForOrder_args()
5361 mandeep.dh 366
    args.inventoryItem = inventoryItem
4501 mandeep.dh 367
    args.type = type
368
    args.quantity = quantity
369
    args.orderId = orderId
5110 mandeep.dh 370
    args.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 371
    args.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 372
    args.write(self._oprot)
373
    self._oprot.writeMessageEnd()
374
    self._oprot.trans.flush()
375
 
376
  def recv_scanForOrder(self, ):
377
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
378
    if mtype == TMessageType.EXCEPTION:
379
      x = TApplicationException()
380
      x.read(self._iprot)
381
      self._iprot.readMessageEnd()
382
      raise x
383
    result = scanForOrder_result()
384
    result.read(self._iprot)
385
    self._iprot.readMessageEnd()
5361 mandeep.dh 386
    if result.success is not None:
387
      return result.success
4501 mandeep.dh 388
    if result.wex is not None:
389
      raise result.wex
5361 mandeep.dh 390
    raise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");
2821 chandransh 391
 
4501 mandeep.dh 392
  def createItemNumberMapping(self, itemNumber, itemId):
393
    """
394
    Created item number to item id mapping
2821 chandransh 395
 
4501 mandeep.dh 396
    Parameters:
397
     - itemNumber
398
     - itemId
399
    """
400
    self.send_createItemNumberMapping(itemNumber, itemId)
401
    self.recv_createItemNumberMapping()
402
 
403
  def send_createItemNumberMapping(self, itemNumber, itemId):
404
    self._oprot.writeMessageBegin('createItemNumberMapping', TMessageType.CALL, self._seqid)
405
    args = createItemNumberMapping_args()
406
    args.itemNumber = itemNumber
407
    args.itemId = itemId
408
    args.write(self._oprot)
409
    self._oprot.writeMessageEnd()
410
    self._oprot.trans.flush()
411
 
412
  def recv_createItemNumberMapping(self, ):
413
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
414
    if mtype == TMessageType.EXCEPTION:
415
      x = TApplicationException()
416
      x.read(self._iprot)
417
      self._iprot.readMessageEnd()
418
      raise x
419
    result = createItemNumberMapping_result()
420
    result.read(self._iprot)
421
    self._iprot.readMessageEnd()
422
    return
423
 
4620 amit.gupta 424
  def getItemNumbers(self, itemId):
425
    """
426
    Get itemNumber mappings for itemId
4501 mandeep.dh 427
 
4620 amit.gupta 428
    Parameters:
429
     - itemId
430
    """
431
    self.send_getItemNumbers(itemId)
432
    return self.recv_getItemNumbers()
433
 
434
  def send_getItemNumbers(self, itemId):
435
    self._oprot.writeMessageBegin('getItemNumbers', TMessageType.CALL, self._seqid)
436
    args = getItemNumbers_args()
437
    args.itemId = itemId
438
    args.write(self._oprot)
439
    self._oprot.writeMessageEnd()
440
    self._oprot.trans.flush()
441
 
442
  def recv_getItemNumbers(self, ):
443
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
444
    if mtype == TMessageType.EXCEPTION:
445
      x = TApplicationException()
446
      x.read(self._iprot)
447
      self._iprot.readMessageEnd()
448
      raise x
449
    result = getItemNumbers_result()
450
    result.read(self._iprot)
451
    self._iprot.readMessageEnd()
452
    if result.success is not None:
453
      return result.success
454
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");
455
 
5110 mandeep.dh 456
  def getItemIds(self, itemNumber):
457
    """
458
    Gets item ids for a given item number
4620 amit.gupta 459
 
5110 mandeep.dh 460
    Parameters:
461
     - itemNumber
462
    """
463
    self.send_getItemIds(itemNumber)
464
    return self.recv_getItemIds()
465
 
466
  def send_getItemIds(self, itemNumber):
467
    self._oprot.writeMessageBegin('getItemIds', TMessageType.CALL, self._seqid)
468
    args = getItemIds_args()
469
    args.itemNumber = itemNumber
470
    args.write(self._oprot)
471
    self._oprot.writeMessageEnd()
472
    self._oprot.trans.flush()
473
 
474
  def recv_getItemIds(self, ):
475
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
476
    if mtype == TMessageType.EXCEPTION:
477
      x = TApplicationException()
478
      x.read(self._iprot)
479
      self._iprot.readMessageEnd()
480
      raise x
481
    result = getItemIds_result()
482
    result.read(self._iprot)
483
    self._iprot.readMessageEnd()
484
    if result.success is not None:
485
      return result.success
486
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");
487
 
5185 mandeep.dh 488
  def getInventoryItemsFromLastScanType(self, lastScanType):
489
    """
490
    Retrieves all inventory items given a last scan type
5110 mandeep.dh 491
 
5185 mandeep.dh 492
    Parameters:
493
     - lastScanType
494
    """
495
    self.send_getInventoryItemsFromLastScanType(lastScanType)
496
    return self.recv_getInventoryItemsFromLastScanType()
497
 
498
  def send_getInventoryItemsFromLastScanType(self, lastScanType):
499
    self._oprot.writeMessageBegin('getInventoryItemsFromLastScanType', TMessageType.CALL, self._seqid)
500
    args = getInventoryItemsFromLastScanType_args()
501
    args.lastScanType = lastScanType
502
    args.write(self._oprot)
503
    self._oprot.writeMessageEnd()
504
    self._oprot.trans.flush()
505
 
506
  def recv_getInventoryItemsFromLastScanType(self, ):
507
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
508
    if mtype == TMessageType.EXCEPTION:
509
      x = TApplicationException()
510
      x.read(self._iprot)
511
      self._iprot.readMessageEnd()
512
      raise x
513
    result = getInventoryItemsFromLastScanType_result()
514
    result.read(self._iprot)
515
    self._iprot.readMessageEnd()
516
    if result.success is not None:
517
      return result.success
518
    if result.wex is not None:
519
      raise result.wex
520
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");
521
 
522
  def getInventoryItemFromId(self, inventoryItemId):
523
    """
524
    Retrieves inventory item given a inventoryItem id
525
 
526
    Parameters:
527
     - inventoryItemId
528
    """
529
    self.send_getInventoryItemFromId(inventoryItemId)
530
    return self.recv_getInventoryItemFromId()
531
 
532
  def send_getInventoryItemFromId(self, inventoryItemId):
533
    self._oprot.writeMessageBegin('getInventoryItemFromId', TMessageType.CALL, self._seqid)
534
    args = getInventoryItemFromId_args()
535
    args.inventoryItemId = inventoryItemId
536
    args.write(self._oprot)
537
    self._oprot.writeMessageEnd()
538
    self._oprot.trans.flush()
539
 
540
  def recv_getInventoryItemFromId(self, ):
541
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
542
    if mtype == TMessageType.EXCEPTION:
543
      x = TApplicationException()
544
      x.read(self._iprot)
545
      self._iprot.readMessageEnd()
546
      raise x
547
    result = getInventoryItemFromId_result()
548
    result.read(self._iprot)
549
    self._iprot.readMessageEnd()
550
    if result.success is not None:
551
      return result.success
552
    if result.wex is not None:
553
      raise result.wex
554
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");
555
 
5372 mandeep.dh 556
  def getPurchaseScans(self, startDate, endDate):
557
    """
558
    Returns the purchase scans grouped by items for Purchase register reconciliation
5185 mandeep.dh 559
 
5372 mandeep.dh 560
    Parameters:
561
     - startDate
562
     - endDate
563
    """
564
    self.send_getPurchaseScans(startDate, endDate)
565
    return self.recv_getPurchaseScans()
566
 
567
  def send_getPurchaseScans(self, startDate, endDate):
568
    self._oprot.writeMessageBegin('getPurchaseScans', TMessageType.CALL, self._seqid)
569
    args = getPurchaseScans_args()
570
    args.startDate = startDate
571
    args.endDate = endDate
572
    args.write(self._oprot)
573
    self._oprot.writeMessageEnd()
574
    self._oprot.trans.flush()
575
 
576
  def recv_getPurchaseScans(self, ):
577
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
578
    if mtype == TMessageType.EXCEPTION:
579
      x = TApplicationException()
580
      x.read(self._iprot)
581
      self._iprot.readMessageEnd()
582
      raise x
583
    result = getPurchaseScans_result()
584
    result.read(self._iprot)
585
    self._iprot.readMessageEnd()
586
    if result.success is not None:
587
      return result.success
588
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");
589
 
5496 mandeep.dh 590
  def fetchScansPerInvoiceNumber(self, date):
591
    """
592
    Returns the invoices and the count of scans against on a given day.
5372 mandeep.dh 593
 
5496 mandeep.dh 594
    Parameters:
595
     - date
596
    """
597
    self.send_fetchScansPerInvoiceNumber(date)
598
    return self.recv_fetchScansPerInvoiceNumber()
599
 
600
  def send_fetchScansPerInvoiceNumber(self, date):
601
    self._oprot.writeMessageBegin('fetchScansPerInvoiceNumber', TMessageType.CALL, self._seqid)
602
    args = fetchScansPerInvoiceNumber_args()
603
    args.date = date
604
    args.write(self._oprot)
605
    self._oprot.writeMessageEnd()
606
    self._oprot.trans.flush()
607
 
608
  def recv_fetchScansPerInvoiceNumber(self, ):
609
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
610
    if mtype == TMessageType.EXCEPTION:
611
      x = TApplicationException()
612
      x.read(self._iprot)
613
      self._iprot.readMessageEnd()
614
      raise x
615
    result = fetchScansPerInvoiceNumber_result()
616
    result.read(self._iprot)
617
    self._iprot.readMessageEnd()
618
    if result.success is not None:
619
      return result.success
620
    raise TApplicationException(TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");
621
 
622
 
3376 rajveer 623
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2821 chandransh 624
  def __init__(self, handler):
3376 rajveer 625
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4501 mandeep.dh 626
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
5361 mandeep.dh 627
    self._processMap["getNonSeralizedInventoryItem"] = Processor.process_getNonSeralizedInventoryItem
4501 mandeep.dh 628
    self._processMap["scanSerializedItem"] = Processor.process_scanSerializedItem
629
    self._processMap["scan"] = Processor.process_scan
630
    self._processMap["scanSerializedItemForOrder"] = Processor.process_scanSerializedItemForOrder
631
    self._processMap["scanForOrder"] = Processor.process_scanForOrder
632
    self._processMap["createItemNumberMapping"] = Processor.process_createItemNumberMapping
4620 amit.gupta 633
    self._processMap["getItemNumbers"] = Processor.process_getItemNumbers
5110 mandeep.dh 634
    self._processMap["getItemIds"] = Processor.process_getItemIds
5185 mandeep.dh 635
    self._processMap["getInventoryItemsFromLastScanType"] = Processor.process_getInventoryItemsFromLastScanType
636
    self._processMap["getInventoryItemFromId"] = Processor.process_getInventoryItemFromId
5372 mandeep.dh 637
    self._processMap["getPurchaseScans"] = Processor.process_getPurchaseScans
5496 mandeep.dh 638
    self._processMap["fetchScansPerInvoiceNumber"] = Processor.process_fetchScansPerInvoiceNumber
2821 chandransh 639
 
640
  def process(self, iprot, oprot):
641
    (name, type, seqid) = iprot.readMessageBegin()
642
    if name not in self._processMap:
643
      iprot.skip(TType.STRUCT)
644
      iprot.readMessageEnd()
645
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
646
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
647
      x.write(oprot)
648
      oprot.writeMessageEnd()
649
      oprot.trans.flush()
650
      return
651
    else:
652
      self._processMap[name](self, seqid, iprot, oprot)
653
    return True
654
 
4501 mandeep.dh 655
  def process_getInventoryItem(self, seqid, iprot, oprot):
656
    args = getInventoryItem_args()
2832 chandransh 657
    args.read(iprot)
658
    iprot.readMessageEnd()
4501 mandeep.dh 659
    result = getInventoryItem_result()
4541 mandeep.dh 660
    try:
661
      result.success = self._handler.getInventoryItem(args.serialNumber)
662
    except WarehouseServiceException, wex:
663
      result.wex = wex
4501 mandeep.dh 664
    oprot.writeMessageBegin("getInventoryItem", TMessageType.REPLY, seqid)
2832 chandransh 665
    result.write(oprot)
666
    oprot.writeMessageEnd()
667
    oprot.trans.flush()
668
 
5361 mandeep.dh 669
  def process_getNonSeralizedInventoryItem(self, seqid, iprot, oprot):
670
    args = getNonSeralizedInventoryItem_args()
2821 chandransh 671
    args.read(iprot)
672
    iprot.readMessageEnd()
5361 mandeep.dh 673
    result = getNonSeralizedInventoryItem_result()
674
    try:
675
      result.success = self._handler.getNonSeralizedInventoryItem(args.itemId, args.warehouseId)
676
    except WarehouseServiceException, wex:
677
      result.wex = wex
678
    oprot.writeMessageBegin("getNonSeralizedInventoryItem", TMessageType.REPLY, seqid)
2821 chandransh 679
    result.write(oprot)
680
    oprot.writeMessageEnd()
681
    oprot.trans.flush()
682
 
4501 mandeep.dh 683
  def process_scanSerializedItem(self, seqid, iprot, oprot):
684
    args = scanSerializedItem_args()
685
    args.read(iprot)
686
    iprot.readMessageEnd()
687
    result = scanSerializedItem_result()
2821 chandransh 688
    try:
5361 mandeep.dh 689
      self._handler.scanSerializedItem(args.inventoryItem, args.type, args.billingWarehouseId)
2821 chandransh 690
    except WarehouseServiceException, wex:
691
      result.wex = wex
4501 mandeep.dh 692
    oprot.writeMessageBegin("scanSerializedItem", TMessageType.REPLY, seqid)
2821 chandransh 693
    result.write(oprot)
694
    oprot.writeMessageEnd()
695
    oprot.trans.flush()
696
 
4501 mandeep.dh 697
  def process_scan(self, seqid, iprot, oprot):
698
    args = scan_args()
3383 chandransh 699
    args.read(iprot)
700
    iprot.readMessageEnd()
4501 mandeep.dh 701
    result = scan_result()
3383 chandransh 702
    try:
5361 mandeep.dh 703
      self._handler.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId)
3383 chandransh 704
    except WarehouseServiceException, wex:
705
      result.wex = wex
4501 mandeep.dh 706
    oprot.writeMessageBegin("scan", TMessageType.REPLY, seqid)
3383 chandransh 707
    result.write(oprot)
708
    oprot.writeMessageEnd()
709
    oprot.trans.flush()
710
 
4501 mandeep.dh 711
  def process_scanSerializedItemForOrder(self, seqid, iprot, oprot):
712
    args = scanSerializedItemForOrder_args()
2821 chandransh 713
    args.read(iprot)
714
    iprot.readMessageEnd()
4501 mandeep.dh 715
    result = scanSerializedItemForOrder_result()
2821 chandransh 716
    try:
5110 mandeep.dh 717
      result.success = self._handler.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)
2821 chandransh 718
    except WarehouseServiceException, wex:
719
      result.wex = wex
4501 mandeep.dh 720
    oprot.writeMessageBegin("scanSerializedItemForOrder", TMessageType.REPLY, seqid)
2821 chandransh 721
    result.write(oprot)
722
    oprot.writeMessageEnd()
723
    oprot.trans.flush()
724
 
4501 mandeep.dh 725
  def process_scanForOrder(self, seqid, iprot, oprot):
726
    args = scanForOrder_args()
2821 chandransh 727
    args.read(iprot)
728
    iprot.readMessageEnd()
4501 mandeep.dh 729
    result = scanForOrder_result()
2821 chandransh 730
    try:
5361 mandeep.dh 731
      result.success = self._handler.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId)
2821 chandransh 732
    except WarehouseServiceException, wex:
733
      result.wex = wex
4501 mandeep.dh 734
    oprot.writeMessageBegin("scanForOrder", TMessageType.REPLY, seqid)
2821 chandransh 735
    result.write(oprot)
736
    oprot.writeMessageEnd()
737
    oprot.trans.flush()
738
 
4501 mandeep.dh 739
  def process_createItemNumberMapping(self, seqid, iprot, oprot):
740
    args = createItemNumberMapping_args()
741
    args.read(iprot)
742
    iprot.readMessageEnd()
743
    result = createItemNumberMapping_result()
744
    self._handler.createItemNumberMapping(args.itemNumber, args.itemId)
745
    oprot.writeMessageBegin("createItemNumberMapping", TMessageType.REPLY, seqid)
746
    result.write(oprot)
747
    oprot.writeMessageEnd()
748
    oprot.trans.flush()
2821 chandransh 749
 
4620 amit.gupta 750
  def process_getItemNumbers(self, seqid, iprot, oprot):
751
    args = getItemNumbers_args()
752
    args.read(iprot)
753
    iprot.readMessageEnd()
754
    result = getItemNumbers_result()
755
    result.success = self._handler.getItemNumbers(args.itemId)
756
    oprot.writeMessageBegin("getItemNumbers", TMessageType.REPLY, seqid)
757
    result.write(oprot)
758
    oprot.writeMessageEnd()
759
    oprot.trans.flush()
4501 mandeep.dh 760
 
5110 mandeep.dh 761
  def process_getItemIds(self, seqid, iprot, oprot):
762
    args = getItemIds_args()
763
    args.read(iprot)
764
    iprot.readMessageEnd()
765
    result = getItemIds_result()
766
    result.success = self._handler.getItemIds(args.itemNumber)
767
    oprot.writeMessageBegin("getItemIds", TMessageType.REPLY, seqid)
768
    result.write(oprot)
769
    oprot.writeMessageEnd()
770
    oprot.trans.flush()
4620 amit.gupta 771
 
5185 mandeep.dh 772
  def process_getInventoryItemsFromLastScanType(self, seqid, iprot, oprot):
773
    args = getInventoryItemsFromLastScanType_args()
774
    args.read(iprot)
775
    iprot.readMessageEnd()
776
    result = getInventoryItemsFromLastScanType_result()
777
    try:
778
      result.success = self._handler.getInventoryItemsFromLastScanType(args.lastScanType)
779
    except WarehouseServiceException, wex:
780
      result.wex = wex
781
    oprot.writeMessageBegin("getInventoryItemsFromLastScanType", TMessageType.REPLY, seqid)
782
    result.write(oprot)
783
    oprot.writeMessageEnd()
784
    oprot.trans.flush()
5110 mandeep.dh 785
 
5185 mandeep.dh 786
  def process_getInventoryItemFromId(self, seqid, iprot, oprot):
787
    args = getInventoryItemFromId_args()
788
    args.read(iprot)
789
    iprot.readMessageEnd()
790
    result = getInventoryItemFromId_result()
791
    try:
792
      result.success = self._handler.getInventoryItemFromId(args.inventoryItemId)
793
    except WarehouseServiceException, wex:
794
      result.wex = wex
795
    oprot.writeMessageBegin("getInventoryItemFromId", TMessageType.REPLY, seqid)
796
    result.write(oprot)
797
    oprot.writeMessageEnd()
798
    oprot.trans.flush()
799
 
5372 mandeep.dh 800
  def process_getPurchaseScans(self, seqid, iprot, oprot):
801
    args = getPurchaseScans_args()
802
    args.read(iprot)
803
    iprot.readMessageEnd()
804
    result = getPurchaseScans_result()
805
    result.success = self._handler.getPurchaseScans(args.startDate, args.endDate)
806
    oprot.writeMessageBegin("getPurchaseScans", TMessageType.REPLY, seqid)
807
    result.write(oprot)
808
    oprot.writeMessageEnd()
809
    oprot.trans.flush()
5185 mandeep.dh 810
 
5496 mandeep.dh 811
  def process_fetchScansPerInvoiceNumber(self, seqid, iprot, oprot):
812
    args = fetchScansPerInvoiceNumber_args()
813
    args.read(iprot)
814
    iprot.readMessageEnd()
815
    result = fetchScansPerInvoiceNumber_result()
816
    result.success = self._handler.fetchScansPerInvoiceNumber(args.date)
817
    oprot.writeMessageBegin("fetchScansPerInvoiceNumber", TMessageType.REPLY, seqid)
818
    result.write(oprot)
819
    oprot.writeMessageEnd()
820
    oprot.trans.flush()
5372 mandeep.dh 821
 
5496 mandeep.dh 822
 
2821 chandransh 823
# HELPER FUNCTIONS AND STRUCTURES
824
 
4501 mandeep.dh 825
class getInventoryItem_args:
2832 chandransh 826
  """
827
  Attributes:
4501 mandeep.dh 828
   - serialNumber
2832 chandransh 829
  """
830
 
831
  thrift_spec = (
832
    None, # 0
4501 mandeep.dh 833
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
2832 chandransh 834
  )
835
 
4501 mandeep.dh 836
  def __init__(self, serialNumber=None,):
837
    self.serialNumber = serialNumber
2832 chandransh 838
 
839
  def read(self, iprot):
840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
842
      return
843
    iprot.readStructBegin()
844
    while True:
845
      (fname, ftype, fid) = iprot.readFieldBegin()
846
      if ftype == TType.STOP:
847
        break
848
      if fid == 1:
4501 mandeep.dh 849
        if ftype == TType.STRING:
850
          self.serialNumber = iprot.readString();
2832 chandransh 851
        else:
852
          iprot.skip(ftype)
853
      else:
854
        iprot.skip(ftype)
855
      iprot.readFieldEnd()
856
    iprot.readStructEnd()
857
 
858
  def write(self, oprot):
859
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
860
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
861
      return
4501 mandeep.dh 862
    oprot.writeStructBegin('getInventoryItem_args')
863
    if self.serialNumber is not None:
864
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
865
      oprot.writeString(self.serialNumber)
2832 chandransh 866
      oprot.writeFieldEnd()
867
    oprot.writeFieldStop()
868
    oprot.writeStructEnd()
869
 
3431 rajveer 870
  def validate(self):
871
    return
872
 
873
 
2832 chandransh 874
  def __repr__(self):
875
    L = ['%s=%r' % (key, value)
876
      for key, value in self.__dict__.iteritems()]
877
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
878
 
879
  def __eq__(self, other):
880
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
881
 
882
  def __ne__(self, other):
883
    return not (self == other)
884
 
4501 mandeep.dh 885
class getInventoryItem_result:
2832 chandransh 886
  """
887
  Attributes:
888
   - success
4541 mandeep.dh 889
   - wex
2832 chandransh 890
  """
891
 
892
  thrift_spec = (
4501 mandeep.dh 893
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4541 mandeep.dh 894
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2832 chandransh 895
  )
896
 
4541 mandeep.dh 897
  def __init__(self, success=None, wex=None,):
2832 chandransh 898
    self.success = success
4541 mandeep.dh 899
    self.wex = wex
2832 chandransh 900
 
901
  def read(self, iprot):
902
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
903
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
904
      return
905
    iprot.readStructBegin()
906
    while True:
907
      (fname, ftype, fid) = iprot.readFieldBegin()
908
      if ftype == TType.STOP:
909
        break
910
      if fid == 0:
911
        if ftype == TType.STRUCT:
4501 mandeep.dh 912
          self.success = InventoryItem()
2832 chandransh 913
          self.success.read(iprot)
914
        else:
915
          iprot.skip(ftype)
4541 mandeep.dh 916
      elif fid == 1:
917
        if ftype == TType.STRUCT:
918
          self.wex = WarehouseServiceException()
919
          self.wex.read(iprot)
920
        else:
921
          iprot.skip(ftype)
2832 chandransh 922
      else:
923
        iprot.skip(ftype)
924
      iprot.readFieldEnd()
925
    iprot.readStructEnd()
926
 
927
  def write(self, oprot):
928
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
929
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
930
      return
4501 mandeep.dh 931
    oprot.writeStructBegin('getInventoryItem_result')
3431 rajveer 932
    if self.success is not None:
2832 chandransh 933
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
934
      self.success.write(oprot)
935
      oprot.writeFieldEnd()
4541 mandeep.dh 936
    if self.wex is not None:
937
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
938
      self.wex.write(oprot)
939
      oprot.writeFieldEnd()
2832 chandransh 940
    oprot.writeFieldStop()
941
    oprot.writeStructEnd()
942
 
3431 rajveer 943
  def validate(self):
944
    return
945
 
946
 
2832 chandransh 947
  def __repr__(self):
948
    L = ['%s=%r' % (key, value)
949
      for key, value in self.__dict__.iteritems()]
950
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
951
 
952
  def __eq__(self, other):
953
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
954
 
955
  def __ne__(self, other):
956
    return not (self == other)
957
 
5361 mandeep.dh 958
class getNonSeralizedInventoryItem_args:
2821 chandransh 959
  """
960
  Attributes:
4501 mandeep.dh 961
   - itemId
5361 mandeep.dh 962
   - warehouseId
2821 chandransh 963
  """
964
 
965
  thrift_spec = (
966
    None, # 0
4501 mandeep.dh 967
    (1, TType.I64, 'itemId', None, None, ), # 1
5361 mandeep.dh 968
    (2, TType.I64, 'warehouseId', None, None, ), # 2
2821 chandransh 969
  )
970
 
5361 mandeep.dh 971
  def __init__(self, itemId=None, warehouseId=None,):
4501 mandeep.dh 972
    self.itemId = itemId
5361 mandeep.dh 973
    self.warehouseId = warehouseId
2821 chandransh 974
 
975
  def read(self, iprot):
976
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
977
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
978
      return
979
    iprot.readStructBegin()
980
    while True:
981
      (fname, ftype, fid) = iprot.readFieldBegin()
982
      if ftype == TType.STOP:
983
        break
984
      if fid == 1:
985
        if ftype == TType.I64:
4501 mandeep.dh 986
          self.itemId = iprot.readI64();
2821 chandransh 987
        else:
988
          iprot.skip(ftype)
989
      elif fid == 2:
4501 mandeep.dh 990
        if ftype == TType.I64:
5361 mandeep.dh 991
          self.warehouseId = iprot.readI64();
2821 chandransh 992
        else:
993
          iprot.skip(ftype)
994
      else:
995
        iprot.skip(ftype)
996
      iprot.readFieldEnd()
997
    iprot.readStructEnd()
998
 
999
  def write(self, oprot):
1000
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1001
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1002
      return
5361 mandeep.dh 1003
    oprot.writeStructBegin('getNonSeralizedInventoryItem_args')
4501 mandeep.dh 1004
    if self.itemId is not None:
1005
      oprot.writeFieldBegin('itemId', TType.I64, 1)
1006
      oprot.writeI64(self.itemId)
2821 chandransh 1007
      oprot.writeFieldEnd()
5361 mandeep.dh 1008
    if self.warehouseId is not None:
1009
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
1010
      oprot.writeI64(self.warehouseId)
2821 chandransh 1011
      oprot.writeFieldEnd()
1012
    oprot.writeFieldStop()
1013
    oprot.writeStructEnd()
1014
 
3431 rajveer 1015
  def validate(self):
1016
    return
1017
 
1018
 
2821 chandransh 1019
  def __repr__(self):
1020
    L = ['%s=%r' % (key, value)
1021
      for key, value in self.__dict__.iteritems()]
1022
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1023
 
1024
  def __eq__(self, other):
1025
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1026
 
1027
  def __ne__(self, other):
1028
    return not (self == other)
1029
 
5361 mandeep.dh 1030
class getNonSeralizedInventoryItem_result:
2821 chandransh 1031
  """
1032
  Attributes:
1033
   - success
5361 mandeep.dh 1034
   - wex
2821 chandransh 1035
  """
1036
 
1037
  thrift_spec = (
5361 mandeep.dh 1038
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
1039
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2821 chandransh 1040
  )
1041
 
5361 mandeep.dh 1042
  def __init__(self, success=None, wex=None,):
2821 chandransh 1043
    self.success = success
5361 mandeep.dh 1044
    self.wex = wex
2821 chandransh 1045
 
1046
  def read(self, iprot):
1047
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1048
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1049
      return
1050
    iprot.readStructBegin()
1051
    while True:
1052
      (fname, ftype, fid) = iprot.readFieldBegin()
1053
      if ftype == TType.STOP:
1054
        break
1055
      if fid == 0:
5361 mandeep.dh 1056
        if ftype == TType.STRUCT:
1057
          self.success = InventoryItem()
1058
          self.success.read(iprot)
2821 chandransh 1059
        else:
1060
          iprot.skip(ftype)
5361 mandeep.dh 1061
      elif fid == 1:
1062
        if ftype == TType.STRUCT:
1063
          self.wex = WarehouseServiceException()
1064
          self.wex.read(iprot)
2821 chandransh 1065
        else:
1066
          iprot.skip(ftype)
1067
      else:
1068
        iprot.skip(ftype)
1069
      iprot.readFieldEnd()
1070
    iprot.readStructEnd()
1071
 
1072
  def write(self, oprot):
1073
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1074
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1075
      return
5361 mandeep.dh 1076
    oprot.writeStructBegin('getNonSeralizedInventoryItem_result')
3431 rajveer 1077
    if self.success is not None:
5361 mandeep.dh 1078
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1079
      self.success.write(oprot)
2821 chandransh 1080
      oprot.writeFieldEnd()
5361 mandeep.dh 1081
    if self.wex is not None:
1082
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1083
      self.wex.write(oprot)
3383 chandransh 1084
      oprot.writeFieldEnd()
1085
    oprot.writeFieldStop()
1086
    oprot.writeStructEnd()
1087
 
3431 rajveer 1088
  def validate(self):
1089
    return
1090
 
1091
 
3383 chandransh 1092
  def __repr__(self):
1093
    L = ['%s=%r' % (key, value)
1094
      for key, value in self.__dict__.iteritems()]
1095
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1096
 
1097
  def __eq__(self, other):
1098
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1099
 
1100
  def __ne__(self, other):
1101
    return not (self == other)
1102
 
4501 mandeep.dh 1103
class scanSerializedItem_args:
1104
  """
1105
  Attributes:
5110 mandeep.dh 1106
   - inventoryItem
4501 mandeep.dh 1107
   - type
5361 mandeep.dh 1108
   - billingWarehouseId
4501 mandeep.dh 1109
  """
1110
 
1111
  thrift_spec = (
1112
    None, # 0
5110 mandeep.dh 1113
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 1114
    (2, TType.I32, 'type', None, None, ), # 2
5361 mandeep.dh 1115
    (3, TType.I64, 'billingWarehouseId', None, None, ), # 3
4501 mandeep.dh 1116
  )
1117
 
5361 mandeep.dh 1118
  def __init__(self, inventoryItem=None, type=None, billingWarehouseId=None,):
5110 mandeep.dh 1119
    self.inventoryItem = inventoryItem
4501 mandeep.dh 1120
    self.type = type
5361 mandeep.dh 1121
    self.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 1122
 
1123
  def read(self, iprot):
1124
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1125
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1126
      return
1127
    iprot.readStructBegin()
1128
    while True:
1129
      (fname, ftype, fid) = iprot.readFieldBegin()
1130
      if ftype == TType.STOP:
1131
        break
1132
      if fid == 1:
5110 mandeep.dh 1133
        if ftype == TType.STRUCT:
1134
          self.inventoryItem = InventoryItem()
1135
          self.inventoryItem.read(iprot)
4501 mandeep.dh 1136
        else:
1137
          iprot.skip(ftype)
1138
      elif fid == 2:
1139
        if ftype == TType.I32:
1140
          self.type = iprot.readI32();
1141
        else:
1142
          iprot.skip(ftype)
1143
      elif fid == 3:
1144
        if ftype == TType.I64:
5361 mandeep.dh 1145
          self.billingWarehouseId = iprot.readI64();
4501 mandeep.dh 1146
        else:
1147
          iprot.skip(ftype)
1148
      else:
1149
        iprot.skip(ftype)
1150
      iprot.readFieldEnd()
1151
    iprot.readStructEnd()
1152
 
1153
  def write(self, oprot):
1154
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1155
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1156
      return
1157
    oprot.writeStructBegin('scanSerializedItem_args')
5110 mandeep.dh 1158
    if self.inventoryItem is not None:
1159
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
1160
      self.inventoryItem.write(oprot)
4501 mandeep.dh 1161
      oprot.writeFieldEnd()
1162
    if self.type is not None:
1163
      oprot.writeFieldBegin('type', TType.I32, 2)
1164
      oprot.writeI32(self.type)
1165
      oprot.writeFieldEnd()
5361 mandeep.dh 1166
    if self.billingWarehouseId is not None:
1167
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 3)
1168
      oprot.writeI64(self.billingWarehouseId)
4501 mandeep.dh 1169
      oprot.writeFieldEnd()
1170
    oprot.writeFieldStop()
1171
    oprot.writeStructEnd()
1172
 
1173
  def validate(self):
1174
    return
1175
 
1176
 
1177
  def __repr__(self):
1178
    L = ['%s=%r' % (key, value)
1179
      for key, value in self.__dict__.iteritems()]
1180
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1181
 
1182
  def __eq__(self, other):
1183
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1184
 
1185
  def __ne__(self, other):
1186
    return not (self == other)
1187
 
1188
class scanSerializedItem_result:
1189
  """
1190
  Attributes:
1191
   - wex
1192
  """
1193
 
1194
  thrift_spec = (
1195
    None, # 0
1196
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
1197
  )
1198
 
1199
  def __init__(self, wex=None,):
1200
    self.wex = wex
1201
 
1202
  def read(self, iprot):
1203
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1204
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1205
      return
1206
    iprot.readStructBegin()
1207
    while True:
1208
      (fname, ftype, fid) = iprot.readFieldBegin()
1209
      if ftype == TType.STOP:
1210
        break
1211
      if fid == 1:
1212
        if ftype == TType.STRUCT:
1213
          self.wex = WarehouseServiceException()
1214
          self.wex.read(iprot)
1215
        else:
1216
          iprot.skip(ftype)
1217
      else:
1218
        iprot.skip(ftype)
1219
      iprot.readFieldEnd()
1220
    iprot.readStructEnd()
1221
 
1222
  def write(self, oprot):
1223
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1224
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1225
      return
1226
    oprot.writeStructBegin('scanSerializedItem_result')
3431 rajveer 1227
    if self.wex is not None:
3383 chandransh 1228
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1229
      self.wex.write(oprot)
1230
      oprot.writeFieldEnd()
1231
    oprot.writeFieldStop()
1232
    oprot.writeStructEnd()
1233
 
3431 rajveer 1234
  def validate(self):
1235
    return
1236
 
1237
 
3383 chandransh 1238
  def __repr__(self):
1239
    L = ['%s=%r' % (key, value)
1240
      for key, value in self.__dict__.iteritems()]
1241
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1242
 
1243
  def __eq__(self, other):
1244
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1245
 
1246
  def __ne__(self, other):
1247
    return not (self == other)
1248
 
4501 mandeep.dh 1249
class scan_args:
2821 chandransh 1250
  """
1251
  Attributes:
5361 mandeep.dh 1252
   - inventoryItem
2821 chandransh 1253
   - type
4501 mandeep.dh 1254
   - quantity
5361 mandeep.dh 1255
   - billingWarehouseId
2821 chandransh 1256
  """
1257
 
1258
  thrift_spec = (
1259
    None, # 0
5361 mandeep.dh 1260
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 1261
    (2, TType.I32, 'type', None, None, ), # 2
1262
    (3, TType.I64, 'quantity', None, None, ), # 3
5361 mandeep.dh 1263
    (4, TType.I64, 'billingWarehouseId', None, None, ), # 4
2821 chandransh 1264
  )
1265
 
5361 mandeep.dh 1266
  def __init__(self, inventoryItem=None, type=None, quantity=None, billingWarehouseId=None,):
1267
    self.inventoryItem = inventoryItem
2821 chandransh 1268
    self.type = type
4501 mandeep.dh 1269
    self.quantity = quantity
5361 mandeep.dh 1270
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 1271
 
1272
  def read(self, iprot):
1273
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1274
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1275
      return
1276
    iprot.readStructBegin()
1277
    while True:
1278
      (fname, ftype, fid) = iprot.readFieldBegin()
1279
      if ftype == TType.STOP:
1280
        break
1281
      if fid == 1:
5361 mandeep.dh 1282
        if ftype == TType.STRUCT:
1283
          self.inventoryItem = InventoryItem()
1284
          self.inventoryItem.read(iprot)
2821 chandransh 1285
        else:
1286
          iprot.skip(ftype)
1287
      elif fid == 2:
4501 mandeep.dh 1288
        if ftype == TType.I32:
1289
          self.type = iprot.readI32();
2821 chandransh 1290
        else:
1291
          iprot.skip(ftype)
3383 chandransh 1292
      elif fid == 3:
4501 mandeep.dh 1293
        if ftype == TType.I64:
1294
          self.quantity = iprot.readI64();
2821 chandransh 1295
        else:
1296
          iprot.skip(ftype)
3383 chandransh 1297
      elif fid == 4:
4501 mandeep.dh 1298
        if ftype == TType.I64:
5361 mandeep.dh 1299
          self.billingWarehouseId = iprot.readI64();
2821 chandransh 1300
        else:
1301
          iprot.skip(ftype)
1302
      else:
1303
        iprot.skip(ftype)
1304
      iprot.readFieldEnd()
1305
    iprot.readStructEnd()
1306
 
1307
  def write(self, oprot):
1308
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1309
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1310
      return
4501 mandeep.dh 1311
    oprot.writeStructBegin('scan_args')
5361 mandeep.dh 1312
    if self.inventoryItem is not None:
1313
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
1314
      self.inventoryItem.write(oprot)
2821 chandransh 1315
      oprot.writeFieldEnd()
3431 rajveer 1316
    if self.type is not None:
4501 mandeep.dh 1317
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 1318
      oprot.writeI32(self.type)
1319
      oprot.writeFieldEnd()
4501 mandeep.dh 1320
    if self.quantity is not None:
1321
      oprot.writeFieldBegin('quantity', TType.I64, 3)
1322
      oprot.writeI64(self.quantity)
1323
      oprot.writeFieldEnd()
5361 mandeep.dh 1324
    if self.billingWarehouseId is not None:
1325
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)
1326
      oprot.writeI64(self.billingWarehouseId)
4501 mandeep.dh 1327
      oprot.writeFieldEnd()
2821 chandransh 1328
    oprot.writeFieldStop()
1329
    oprot.writeStructEnd()
1330
 
3431 rajveer 1331
  def validate(self):
1332
    return
1333
 
1334
 
2821 chandransh 1335
  def __repr__(self):
1336
    L = ['%s=%r' % (key, value)
1337
      for key, value in self.__dict__.iteritems()]
1338
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1339
 
1340
  def __eq__(self, other):
1341
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1342
 
1343
  def __ne__(self, other):
1344
    return not (self == other)
1345
 
4501 mandeep.dh 1346
class scan_result:
2821 chandransh 1347
  """
1348
  Attributes:
1349
   - wex
1350
  """
1351
 
1352
  thrift_spec = (
1353
    None, # 0
1354
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
1355
  )
1356
 
1357
  def __init__(self, wex=None,):
1358
    self.wex = wex
1359
 
1360
  def read(self, iprot):
1361
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1362
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1363
      return
1364
    iprot.readStructBegin()
1365
    while True:
1366
      (fname, ftype, fid) = iprot.readFieldBegin()
1367
      if ftype == TType.STOP:
1368
        break
1369
      if fid == 1:
1370
        if ftype == TType.STRUCT:
1371
          self.wex = WarehouseServiceException()
1372
          self.wex.read(iprot)
1373
        else:
1374
          iprot.skip(ftype)
1375
      else:
1376
        iprot.skip(ftype)
1377
      iprot.readFieldEnd()
1378
    iprot.readStructEnd()
1379
 
1380
  def write(self, oprot):
1381
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1382
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1383
      return
4501 mandeep.dh 1384
    oprot.writeStructBegin('scan_result')
3431 rajveer 1385
    if self.wex is not None:
2821 chandransh 1386
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1387
      self.wex.write(oprot)
1388
      oprot.writeFieldEnd()
1389
    oprot.writeFieldStop()
1390
    oprot.writeStructEnd()
1391
 
3431 rajveer 1392
  def validate(self):
1393
    return
1394
 
1395
 
2821 chandransh 1396
  def __repr__(self):
1397
    L = ['%s=%r' % (key, value)
1398
      for key, value in self.__dict__.iteritems()]
1399
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1400
 
1401
  def __eq__(self, other):
1402
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1403
 
1404
  def __ne__(self, other):
1405
    return not (self == other)
1406
 
4501 mandeep.dh 1407
class scanSerializedItemForOrder_args:
2821 chandransh 1408
  """
1409
  Attributes:
4555 mandeep.dh 1410
   - serialNumber
2821 chandransh 1411
   - type
4501 mandeep.dh 1412
   - orderId
5110 mandeep.dh 1413
   - fulfilmentWarehouseId
1414
   - quantity
1415
   - billingWarehouseId
2821 chandransh 1416
  """
1417
 
1418
  thrift_spec = (
1419
    None, # 0
4555 mandeep.dh 1420
    (1, TType.STRING, 'serialNumber', None, None, ), # 1
4501 mandeep.dh 1421
    (2, TType.I32, 'type', None, None, ), # 2
1422
    (3, TType.I64, 'orderId', None, None, ), # 3
5110 mandeep.dh 1423
    (4, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 4
1424
    (5, TType.DOUBLE, 'quantity', None, None, ), # 5
1425
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
2821 chandransh 1426
  )
1427
 
5110 mandeep.dh 1428
  def __init__(self, serialNumber=None, type=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):
4555 mandeep.dh 1429
    self.serialNumber = serialNumber
2821 chandransh 1430
    self.type = type
4501 mandeep.dh 1431
    self.orderId = orderId
5110 mandeep.dh 1432
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
1433
    self.quantity = quantity
1434
    self.billingWarehouseId = billingWarehouseId
2821 chandransh 1435
 
1436
  def read(self, iprot):
1437
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1438
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1439
      return
1440
    iprot.readStructBegin()
1441
    while True:
1442
      (fname, ftype, fid) = iprot.readFieldBegin()
1443
      if ftype == TType.STOP:
1444
        break
1445
      if fid == 1:
4555 mandeep.dh 1446
        if ftype == TType.STRING:
1447
          self.serialNumber = iprot.readString();
2821 chandransh 1448
        else:
1449
          iprot.skip(ftype)
1450
      elif fid == 2:
4501 mandeep.dh 1451
        if ftype == TType.I32:
1452
          self.type = iprot.readI32();
2821 chandransh 1453
        else:
1454
          iprot.skip(ftype)
1455
      elif fid == 3:
4501 mandeep.dh 1456
        if ftype == TType.I64:
1457
          self.orderId = iprot.readI64();
1458
        else:
1459
          iprot.skip(ftype)
1460
      elif fid == 4:
1461
        if ftype == TType.I64:
5110 mandeep.dh 1462
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 1463
        else:
1464
          iprot.skip(ftype)
5110 mandeep.dh 1465
      elif fid == 5:
1466
        if ftype == TType.DOUBLE:
1467
          self.quantity = iprot.readDouble();
1468
        else:
1469
          iprot.skip(ftype)
1470
      elif fid == 6:
1471
        if ftype == TType.I64:
1472
          self.billingWarehouseId = iprot.readI64();
1473
        else:
1474
          iprot.skip(ftype)
4501 mandeep.dh 1475
      else:
1476
        iprot.skip(ftype)
1477
      iprot.readFieldEnd()
1478
    iprot.readStructEnd()
1479
 
1480
  def write(self, oprot):
1481
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1482
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1483
      return
1484
    oprot.writeStructBegin('scanSerializedItemForOrder_args')
4555 mandeep.dh 1485
    if self.serialNumber is not None:
1486
      oprot.writeFieldBegin('serialNumber', TType.STRING, 1)
1487
      oprot.writeString(self.serialNumber)
4501 mandeep.dh 1488
      oprot.writeFieldEnd()
1489
    if self.type is not None:
1490
      oprot.writeFieldBegin('type', TType.I32, 2)
1491
      oprot.writeI32(self.type)
1492
      oprot.writeFieldEnd()
1493
    if self.orderId is not None:
1494
      oprot.writeFieldBegin('orderId', TType.I64, 3)
1495
      oprot.writeI64(self.orderId)
1496
      oprot.writeFieldEnd()
5110 mandeep.dh 1497
    if self.fulfilmentWarehouseId is not None:
1498
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 4)
1499
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 1500
      oprot.writeFieldEnd()
5110 mandeep.dh 1501
    if self.quantity is not None:
1502
      oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)
1503
      oprot.writeDouble(self.quantity)
1504
      oprot.writeFieldEnd()
1505
    if self.billingWarehouseId is not None:
1506
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
1507
      oprot.writeI64(self.billingWarehouseId)
1508
      oprot.writeFieldEnd()
4501 mandeep.dh 1509
    oprot.writeFieldStop()
1510
    oprot.writeStructEnd()
1511
 
1512
  def validate(self):
1513
    return
1514
 
1515
 
1516
  def __repr__(self):
1517
    L = ['%s=%r' % (key, value)
1518
      for key, value in self.__dict__.iteritems()]
1519
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1520
 
1521
  def __eq__(self, other):
1522
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1523
 
1524
  def __ne__(self, other):
1525
    return not (self == other)
1526
 
1527
class scanSerializedItemForOrder_result:
1528
  """
1529
  Attributes:
1530
   - success
1531
   - wex
1532
  """
1533
 
1534
  thrift_spec = (
4555 mandeep.dh 1535
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
4501 mandeep.dh 1536
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
1537
  )
1538
 
1539
  def __init__(self, success=None, wex=None,):
1540
    self.success = success
1541
    self.wex = wex
1542
 
1543
  def read(self, iprot):
1544
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1545
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1546
      return
1547
    iprot.readStructBegin()
1548
    while True:
1549
      (fname, ftype, fid) = iprot.readFieldBegin()
1550
      if ftype == TType.STOP:
1551
        break
1552
      if fid == 0:
4555 mandeep.dh 1553
        if ftype == TType.STRUCT:
1554
          self.success = InventoryItem()
1555
          self.success.read(iprot)
4501 mandeep.dh 1556
        else:
1557
          iprot.skip(ftype)
1558
      elif fid == 1:
1559
        if ftype == TType.STRUCT:
1560
          self.wex = WarehouseServiceException()
1561
          self.wex.read(iprot)
1562
        else:
1563
          iprot.skip(ftype)
1564
      else:
1565
        iprot.skip(ftype)
1566
      iprot.readFieldEnd()
1567
    iprot.readStructEnd()
1568
 
1569
  def write(self, oprot):
1570
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1571
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1572
      return
1573
    oprot.writeStructBegin('scanSerializedItemForOrder_result')
1574
    if self.success is not None:
4555 mandeep.dh 1575
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1576
      self.success.write(oprot)
4501 mandeep.dh 1577
      oprot.writeFieldEnd()
1578
    if self.wex is not None:
1579
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1580
      self.wex.write(oprot)
1581
      oprot.writeFieldEnd()
1582
    oprot.writeFieldStop()
1583
    oprot.writeStructEnd()
1584
 
1585
  def validate(self):
1586
    return
1587
 
1588
 
1589
  def __repr__(self):
1590
    L = ['%s=%r' % (key, value)
1591
      for key, value in self.__dict__.iteritems()]
1592
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1593
 
1594
  def __eq__(self, other):
1595
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1596
 
1597
  def __ne__(self, other):
1598
    return not (self == other)
1599
 
1600
class scanForOrder_args:
1601
  """
1602
  Attributes:
5361 mandeep.dh 1603
   - inventoryItem
4501 mandeep.dh 1604
   - type
1605
   - quantity
1606
   - orderId
5110 mandeep.dh 1607
   - fulfilmentWarehouseId
5361 mandeep.dh 1608
   - billingWarehouseId
4501 mandeep.dh 1609
  """
1610
 
1611
  thrift_spec = (
1612
    None, # 0
5361 mandeep.dh 1613
    (1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1
4501 mandeep.dh 1614
    (2, TType.I32, 'type', None, None, ), # 2
1615
    (3, TType.I64, 'quantity', None, None, ), # 3
1616
    (4, TType.I64, 'orderId', None, None, ), # 4
5110 mandeep.dh 1617
    (5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5
5361 mandeep.dh 1618
    (6, TType.I64, 'billingWarehouseId', None, None, ), # 6
4501 mandeep.dh 1619
  )
1620
 
5361 mandeep.dh 1621
  def __init__(self, inventoryItem=None, type=None, quantity=None, orderId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):
1622
    self.inventoryItem = inventoryItem
4501 mandeep.dh 1623
    self.type = type
1624
    self.quantity = quantity
1625
    self.orderId = orderId
5110 mandeep.dh 1626
    self.fulfilmentWarehouseId = fulfilmentWarehouseId
5361 mandeep.dh 1627
    self.billingWarehouseId = billingWarehouseId
4501 mandeep.dh 1628
 
1629
  def read(self, iprot):
1630
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1631
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1632
      return
1633
    iprot.readStructBegin()
1634
    while True:
1635
      (fname, ftype, fid) = iprot.readFieldBegin()
1636
      if ftype == TType.STOP:
1637
        break
1638
      if fid == 1:
5361 mandeep.dh 1639
        if ftype == TType.STRUCT:
1640
          self.inventoryItem = InventoryItem()
1641
          self.inventoryItem.read(iprot)
4501 mandeep.dh 1642
        else:
1643
          iprot.skip(ftype)
1644
      elif fid == 2:
2821 chandransh 1645
        if ftype == TType.I32:
1646
          self.type = iprot.readI32();
1647
        else:
1648
          iprot.skip(ftype)
4501 mandeep.dh 1649
      elif fid == 3:
1650
        if ftype == TType.I64:
1651
          self.quantity = iprot.readI64();
1652
        else:
1653
          iprot.skip(ftype)
1654
      elif fid == 4:
1655
        if ftype == TType.I64:
1656
          self.orderId = iprot.readI64();
1657
        else:
1658
          iprot.skip(ftype)
1659
      elif fid == 5:
1660
        if ftype == TType.I64:
5110 mandeep.dh 1661
          self.fulfilmentWarehouseId = iprot.readI64();
4501 mandeep.dh 1662
        else:
1663
          iprot.skip(ftype)
5361 mandeep.dh 1664
      elif fid == 6:
1665
        if ftype == TType.I64:
1666
          self.billingWarehouseId = iprot.readI64();
1667
        else:
1668
          iprot.skip(ftype)
2821 chandransh 1669
      else:
1670
        iprot.skip(ftype)
1671
      iprot.readFieldEnd()
1672
    iprot.readStructEnd()
1673
 
1674
  def write(self, oprot):
1675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1677
      return
4501 mandeep.dh 1678
    oprot.writeStructBegin('scanForOrder_args')
5361 mandeep.dh 1679
    if self.inventoryItem is not None:
1680
      oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)
1681
      self.inventoryItem.write(oprot)
2821 chandransh 1682
      oprot.writeFieldEnd()
3431 rajveer 1683
    if self.type is not None:
4501 mandeep.dh 1684
      oprot.writeFieldBegin('type', TType.I32, 2)
2821 chandransh 1685
      oprot.writeI32(self.type)
1686
      oprot.writeFieldEnd()
4501 mandeep.dh 1687
    if self.quantity is not None:
1688
      oprot.writeFieldBegin('quantity', TType.I64, 3)
1689
      oprot.writeI64(self.quantity)
1690
      oprot.writeFieldEnd()
1691
    if self.orderId is not None:
1692
      oprot.writeFieldBegin('orderId', TType.I64, 4)
1693
      oprot.writeI64(self.orderId)
1694
      oprot.writeFieldEnd()
5110 mandeep.dh 1695
    if self.fulfilmentWarehouseId is not None:
1696
      oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)
1697
      oprot.writeI64(self.fulfilmentWarehouseId)
4501 mandeep.dh 1698
      oprot.writeFieldEnd()
5361 mandeep.dh 1699
    if self.billingWarehouseId is not None:
1700
      oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)
1701
      oprot.writeI64(self.billingWarehouseId)
1702
      oprot.writeFieldEnd()
2821 chandransh 1703
    oprot.writeFieldStop()
1704
    oprot.writeStructEnd()
1705
 
3431 rajveer 1706
  def validate(self):
1707
    return
1708
 
1709
 
2821 chandransh 1710
  def __repr__(self):
1711
    L = ['%s=%r' % (key, value)
1712
      for key, value in self.__dict__.iteritems()]
1713
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1714
 
1715
  def __eq__(self, other):
1716
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1717
 
1718
  def __ne__(self, other):
1719
    return not (self == other)
1720
 
4501 mandeep.dh 1721
class scanForOrder_result:
2821 chandransh 1722
  """
1723
  Attributes:
5361 mandeep.dh 1724
   - success
2821 chandransh 1725
   - wex
1726
  """
1727
 
1728
  thrift_spec = (
5361 mandeep.dh 1729
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
2821 chandransh 1730
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
1731
  )
1732
 
5361 mandeep.dh 1733
  def __init__(self, success=None, wex=None,):
1734
    self.success = success
2821 chandransh 1735
    self.wex = wex
1736
 
1737
  def read(self, iprot):
1738
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1739
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1740
      return
1741
    iprot.readStructBegin()
1742
    while True:
1743
      (fname, ftype, fid) = iprot.readFieldBegin()
1744
      if ftype == TType.STOP:
1745
        break
5361 mandeep.dh 1746
      if fid == 0:
2821 chandransh 1747
        if ftype == TType.STRUCT:
5361 mandeep.dh 1748
          self.success = InventoryItem()
1749
          self.success.read(iprot)
1750
        else:
1751
          iprot.skip(ftype)
1752
      elif fid == 1:
1753
        if ftype == TType.STRUCT:
2821 chandransh 1754
          self.wex = WarehouseServiceException()
1755
          self.wex.read(iprot)
1756
        else:
1757
          iprot.skip(ftype)
1758
      else:
1759
        iprot.skip(ftype)
1760
      iprot.readFieldEnd()
1761
    iprot.readStructEnd()
1762
 
1763
  def write(self, oprot):
1764
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1765
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1766
      return
4501 mandeep.dh 1767
    oprot.writeStructBegin('scanForOrder_result')
5361 mandeep.dh 1768
    if self.success is not None:
1769
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
1770
      self.success.write(oprot)
1771
      oprot.writeFieldEnd()
3431 rajveer 1772
    if self.wex is not None:
2821 chandransh 1773
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
1774
      self.wex.write(oprot)
1775
      oprot.writeFieldEnd()
1776
    oprot.writeFieldStop()
1777
    oprot.writeStructEnd()
1778
 
3431 rajveer 1779
  def validate(self):
1780
    return
1781
 
1782
 
2821 chandransh 1783
  def __repr__(self):
1784
    L = ['%s=%r' % (key, value)
1785
      for key, value in self.__dict__.iteritems()]
1786
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1787
 
1788
  def __eq__(self, other):
1789
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1790
 
1791
  def __ne__(self, other):
1792
    return not (self == other)
4501 mandeep.dh 1793
 
1794
class createItemNumberMapping_args:
1795
  """
1796
  Attributes:
1797
   - itemNumber
1798
   - itemId
1799
  """
1800
 
1801
  thrift_spec = (
1802
    None, # 0
1803
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
1804
    (2, TType.I64, 'itemId', None, None, ), # 2
1805
  )
1806
 
1807
  def __init__(self, itemNumber=None, itemId=None,):
1808
    self.itemNumber = itemNumber
1809
    self.itemId = itemId
1810
 
1811
  def read(self, iprot):
1812
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1813
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1814
      return
1815
    iprot.readStructBegin()
1816
    while True:
1817
      (fname, ftype, fid) = iprot.readFieldBegin()
1818
      if ftype == TType.STOP:
1819
        break
1820
      if fid == 1:
1821
        if ftype == TType.STRING:
1822
          self.itemNumber = iprot.readString();
1823
        else:
1824
          iprot.skip(ftype)
1825
      elif fid == 2:
1826
        if ftype == TType.I64:
1827
          self.itemId = iprot.readI64();
1828
        else:
1829
          iprot.skip(ftype)
1830
      else:
1831
        iprot.skip(ftype)
1832
      iprot.readFieldEnd()
1833
    iprot.readStructEnd()
1834
 
1835
  def write(self, oprot):
1836
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1837
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1838
      return
1839
    oprot.writeStructBegin('createItemNumberMapping_args')
1840
    if self.itemNumber is not None:
1841
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
1842
      oprot.writeString(self.itemNumber)
1843
      oprot.writeFieldEnd()
1844
    if self.itemId is not None:
1845
      oprot.writeFieldBegin('itemId', TType.I64, 2)
1846
      oprot.writeI64(self.itemId)
1847
      oprot.writeFieldEnd()
1848
    oprot.writeFieldStop()
1849
    oprot.writeStructEnd()
1850
 
1851
  def validate(self):
1852
    return
1853
 
1854
 
1855
  def __repr__(self):
1856
    L = ['%s=%r' % (key, value)
1857
      for key, value in self.__dict__.iteritems()]
1858
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1859
 
1860
  def __eq__(self, other):
1861
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1862
 
1863
  def __ne__(self, other):
1864
    return not (self == other)
1865
 
1866
class createItemNumberMapping_result:
1867
 
1868
  thrift_spec = (
1869
  )
1870
 
1871
  def read(self, iprot):
1872
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1873
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1874
      return
1875
    iprot.readStructBegin()
1876
    while True:
1877
      (fname, ftype, fid) = iprot.readFieldBegin()
1878
      if ftype == TType.STOP:
1879
        break
1880
      else:
1881
        iprot.skip(ftype)
1882
      iprot.readFieldEnd()
1883
    iprot.readStructEnd()
1884
 
1885
  def write(self, oprot):
1886
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1887
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1888
      return
1889
    oprot.writeStructBegin('createItemNumberMapping_result')
1890
    oprot.writeFieldStop()
1891
    oprot.writeStructEnd()
1892
 
1893
  def validate(self):
1894
    return
1895
 
1896
 
1897
  def __repr__(self):
1898
    L = ['%s=%r' % (key, value)
1899
      for key, value in self.__dict__.iteritems()]
1900
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1901
 
1902
  def __eq__(self, other):
1903
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1904
 
1905
  def __ne__(self, other):
1906
    return not (self == other)
4620 amit.gupta 1907
 
1908
class getItemNumbers_args:
1909
  """
1910
  Attributes:
1911
   - itemId
1912
  """
1913
 
1914
  thrift_spec = (
1915
    None, # 0
1916
    (1, TType.I64, 'itemId', None, None, ), # 1
1917
  )
1918
 
1919
  def __init__(self, itemId=None,):
1920
    self.itemId = itemId
1921
 
1922
  def read(self, iprot):
1923
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1924
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1925
      return
1926
    iprot.readStructBegin()
1927
    while True:
1928
      (fname, ftype, fid) = iprot.readFieldBegin()
1929
      if ftype == TType.STOP:
1930
        break
1931
      if fid == 1:
1932
        if ftype == TType.I64:
1933
          self.itemId = iprot.readI64();
1934
        else:
1935
          iprot.skip(ftype)
1936
      else:
1937
        iprot.skip(ftype)
1938
      iprot.readFieldEnd()
1939
    iprot.readStructEnd()
1940
 
1941
  def write(self, oprot):
1942
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1943
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1944
      return
1945
    oprot.writeStructBegin('getItemNumbers_args')
1946
    if self.itemId is not None:
1947
      oprot.writeFieldBegin('itemId', TType.I64, 1)
1948
      oprot.writeI64(self.itemId)
1949
      oprot.writeFieldEnd()
1950
    oprot.writeFieldStop()
1951
    oprot.writeStructEnd()
1952
 
1953
  def validate(self):
1954
    return
1955
 
1956
 
1957
  def __repr__(self):
1958
    L = ['%s=%r' % (key, value)
1959
      for key, value in self.__dict__.iteritems()]
1960
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
1961
 
1962
  def __eq__(self, other):
1963
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
1964
 
1965
  def __ne__(self, other):
1966
    return not (self == other)
1967
 
1968
class getItemNumbers_result:
1969
  """
1970
  Attributes:
1971
   - success
1972
  """
1973
 
1974
  thrift_spec = (
1975
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
1976
  )
1977
 
1978
  def __init__(self, success=None,):
1979
    self.success = success
1980
 
1981
  def read(self, iprot):
1982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1984
      return
1985
    iprot.readStructBegin()
1986
    while True:
1987
      (fname, ftype, fid) = iprot.readFieldBegin()
1988
      if ftype == TType.STOP:
1989
        break
1990
      if fid == 0:
1991
        if ftype == TType.LIST:
1992
          self.success = []
5361 mandeep.dh 1993
          (_etype3, _size0) = iprot.readListBegin()
1994
          for _i4 in xrange(_size0):
1995
            _elem5 = iprot.readString();
1996
            self.success.append(_elem5)
4620 amit.gupta 1997
          iprot.readListEnd()
1998
        else:
1999
          iprot.skip(ftype)
2000
      else:
2001
        iprot.skip(ftype)
2002
      iprot.readFieldEnd()
2003
    iprot.readStructEnd()
2004
 
2005
  def write(self, oprot):
2006
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2007
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2008
      return
2009
    oprot.writeStructBegin('getItemNumbers_result')
2010
    if self.success is not None:
2011
      oprot.writeFieldBegin('success', TType.LIST, 0)
2012
      oprot.writeListBegin(TType.STRING, len(self.success))
5361 mandeep.dh 2013
      for iter6 in self.success:
2014
        oprot.writeString(iter6)
4620 amit.gupta 2015
      oprot.writeListEnd()
2016
      oprot.writeFieldEnd()
2017
    oprot.writeFieldStop()
2018
    oprot.writeStructEnd()
2019
 
2020
  def validate(self):
2021
    return
2022
 
2023
 
2024
  def __repr__(self):
2025
    L = ['%s=%r' % (key, value)
2026
      for key, value in self.__dict__.iteritems()]
2027
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2028
 
2029
  def __eq__(self, other):
2030
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2031
 
2032
  def __ne__(self, other):
2033
    return not (self == other)
5110 mandeep.dh 2034
 
2035
class getItemIds_args:
2036
  """
2037
  Attributes:
2038
   - itemNumber
2039
  """
2040
 
2041
  thrift_spec = (
2042
    None, # 0
2043
    (1, TType.STRING, 'itemNumber', None, None, ), # 1
2044
  )
2045
 
2046
  def __init__(self, itemNumber=None,):
2047
    self.itemNumber = itemNumber
2048
 
2049
  def read(self, iprot):
2050
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2051
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2052
      return
2053
    iprot.readStructBegin()
2054
    while True:
2055
      (fname, ftype, fid) = iprot.readFieldBegin()
2056
      if ftype == TType.STOP:
2057
        break
2058
      if fid == 1:
2059
        if ftype == TType.STRING:
2060
          self.itemNumber = iprot.readString();
2061
        else:
2062
          iprot.skip(ftype)
2063
      else:
2064
        iprot.skip(ftype)
2065
      iprot.readFieldEnd()
2066
    iprot.readStructEnd()
2067
 
2068
  def write(self, oprot):
2069
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2070
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2071
      return
2072
    oprot.writeStructBegin('getItemIds_args')
2073
    if self.itemNumber is not None:
2074
      oprot.writeFieldBegin('itemNumber', TType.STRING, 1)
2075
      oprot.writeString(self.itemNumber)
2076
      oprot.writeFieldEnd()
2077
    oprot.writeFieldStop()
2078
    oprot.writeStructEnd()
2079
 
2080
  def validate(self):
2081
    return
2082
 
2083
 
2084
  def __repr__(self):
2085
    L = ['%s=%r' % (key, value)
2086
      for key, value in self.__dict__.iteritems()]
2087
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2088
 
2089
  def __eq__(self, other):
2090
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2091
 
2092
  def __ne__(self, other):
2093
    return not (self == other)
2094
 
2095
class getItemIds_result:
2096
  """
2097
  Attributes:
2098
   - success
2099
  """
2100
 
2101
  thrift_spec = (
2102
    (0, TType.LIST, 'success', (TType.I64,None), None, ), # 0
2103
  )
2104
 
2105
  def __init__(self, success=None,):
2106
    self.success = success
2107
 
2108
  def read(self, iprot):
2109
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2110
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2111
      return
2112
    iprot.readStructBegin()
2113
    while True:
2114
      (fname, ftype, fid) = iprot.readFieldBegin()
2115
      if ftype == TType.STOP:
2116
        break
2117
      if fid == 0:
2118
        if ftype == TType.LIST:
2119
          self.success = []
5361 mandeep.dh 2120
          (_etype10, _size7) = iprot.readListBegin()
2121
          for _i11 in xrange(_size7):
2122
            _elem12 = iprot.readI64();
2123
            self.success.append(_elem12)
5110 mandeep.dh 2124
          iprot.readListEnd()
2125
        else:
2126
          iprot.skip(ftype)
2127
      else:
2128
        iprot.skip(ftype)
2129
      iprot.readFieldEnd()
2130
    iprot.readStructEnd()
2131
 
2132
  def write(self, oprot):
2133
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2134
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2135
      return
2136
    oprot.writeStructBegin('getItemIds_result')
2137
    if self.success is not None:
2138
      oprot.writeFieldBegin('success', TType.LIST, 0)
2139
      oprot.writeListBegin(TType.I64, len(self.success))
5361 mandeep.dh 2140
      for iter13 in self.success:
2141
        oprot.writeI64(iter13)
5110 mandeep.dh 2142
      oprot.writeListEnd()
2143
      oprot.writeFieldEnd()
2144
    oprot.writeFieldStop()
2145
    oprot.writeStructEnd()
2146
 
2147
  def validate(self):
2148
    return
2149
 
2150
 
2151
  def __repr__(self):
2152
    L = ['%s=%r' % (key, value)
2153
      for key, value in self.__dict__.iteritems()]
2154
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2155
 
2156
  def __eq__(self, other):
2157
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2158
 
2159
  def __ne__(self, other):
2160
    return not (self == other)
5185 mandeep.dh 2161
 
2162
class getInventoryItemsFromLastScanType_args:
2163
  """
2164
  Attributes:
2165
   - lastScanType
2166
  """
2167
 
2168
  thrift_spec = (
2169
    None, # 0
2170
    (1, TType.I32, 'lastScanType', None, None, ), # 1
2171
  )
2172
 
2173
  def __init__(self, lastScanType=None,):
2174
    self.lastScanType = lastScanType
2175
 
2176
  def read(self, iprot):
2177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2179
      return
2180
    iprot.readStructBegin()
2181
    while True:
2182
      (fname, ftype, fid) = iprot.readFieldBegin()
2183
      if ftype == TType.STOP:
2184
        break
2185
      if fid == 1:
2186
        if ftype == TType.I32:
2187
          self.lastScanType = iprot.readI32();
2188
        else:
2189
          iprot.skip(ftype)
2190
      else:
2191
        iprot.skip(ftype)
2192
      iprot.readFieldEnd()
2193
    iprot.readStructEnd()
2194
 
2195
  def write(self, oprot):
2196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2198
      return
2199
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_args')
2200
    if self.lastScanType is not None:
2201
      oprot.writeFieldBegin('lastScanType', TType.I32, 1)
2202
      oprot.writeI32(self.lastScanType)
2203
      oprot.writeFieldEnd()
2204
    oprot.writeFieldStop()
2205
    oprot.writeStructEnd()
2206
 
2207
  def validate(self):
2208
    return
2209
 
2210
 
2211
  def __repr__(self):
2212
    L = ['%s=%r' % (key, value)
2213
      for key, value in self.__dict__.iteritems()]
2214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2215
 
2216
  def __eq__(self, other):
2217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2218
 
2219
  def __ne__(self, other):
2220
    return not (self == other)
2221
 
2222
class getInventoryItemsFromLastScanType_result:
2223
  """
2224
  Attributes:
2225
   - success
2226
   - wex
2227
  """
2228
 
2229
  thrift_spec = (
2230
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0
2231
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2232
  )
2233
 
2234
  def __init__(self, success=None, wex=None,):
2235
    self.success = success
2236
    self.wex = wex
2237
 
2238
  def read(self, iprot):
2239
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2240
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2241
      return
2242
    iprot.readStructBegin()
2243
    while True:
2244
      (fname, ftype, fid) = iprot.readFieldBegin()
2245
      if ftype == TType.STOP:
2246
        break
2247
      if fid == 0:
2248
        if ftype == TType.LIST:
2249
          self.success = []
5361 mandeep.dh 2250
          (_etype17, _size14) = iprot.readListBegin()
2251
          for _i18 in xrange(_size14):
2252
            _elem19 = InventoryItem()
2253
            _elem19.read(iprot)
2254
            self.success.append(_elem19)
5185 mandeep.dh 2255
          iprot.readListEnd()
2256
        else:
2257
          iprot.skip(ftype)
2258
      elif fid == 1:
2259
        if ftype == TType.STRUCT:
2260
          self.wex = WarehouseServiceException()
2261
          self.wex.read(iprot)
2262
        else:
2263
          iprot.skip(ftype)
2264
      else:
2265
        iprot.skip(ftype)
2266
      iprot.readFieldEnd()
2267
    iprot.readStructEnd()
2268
 
2269
  def write(self, oprot):
2270
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2271
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2272
      return
2273
    oprot.writeStructBegin('getInventoryItemsFromLastScanType_result')
2274
    if self.success is not None:
2275
      oprot.writeFieldBegin('success', TType.LIST, 0)
2276
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5361 mandeep.dh 2277
      for iter20 in self.success:
2278
        iter20.write(oprot)
5185 mandeep.dh 2279
      oprot.writeListEnd()
2280
      oprot.writeFieldEnd()
2281
    if self.wex is not None:
2282
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
2283
      self.wex.write(oprot)
2284
      oprot.writeFieldEnd()
2285
    oprot.writeFieldStop()
2286
    oprot.writeStructEnd()
2287
 
2288
  def validate(self):
2289
    return
2290
 
2291
 
2292
  def __repr__(self):
2293
    L = ['%s=%r' % (key, value)
2294
      for key, value in self.__dict__.iteritems()]
2295
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2296
 
2297
  def __eq__(self, other):
2298
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2299
 
2300
  def __ne__(self, other):
2301
    return not (self == other)
2302
 
2303
class getInventoryItemFromId_args:
2304
  """
2305
  Attributes:
2306
   - inventoryItemId
2307
  """
2308
 
2309
  thrift_spec = (
2310
    None, # 0
2311
    (1, TType.I64, 'inventoryItemId', None, None, ), # 1
2312
  )
2313
 
2314
  def __init__(self, inventoryItemId=None,):
2315
    self.inventoryItemId = inventoryItemId
2316
 
2317
  def read(self, iprot):
2318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2320
      return
2321
    iprot.readStructBegin()
2322
    while True:
2323
      (fname, ftype, fid) = iprot.readFieldBegin()
2324
      if ftype == TType.STOP:
2325
        break
2326
      if fid == 1:
2327
        if ftype == TType.I64:
2328
          self.inventoryItemId = iprot.readI64();
2329
        else:
2330
          iprot.skip(ftype)
2331
      else:
2332
        iprot.skip(ftype)
2333
      iprot.readFieldEnd()
2334
    iprot.readStructEnd()
2335
 
2336
  def write(self, oprot):
2337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2339
      return
2340
    oprot.writeStructBegin('getInventoryItemFromId_args')
2341
    if self.inventoryItemId is not None:
2342
      oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)
2343
      oprot.writeI64(self.inventoryItemId)
2344
      oprot.writeFieldEnd()
2345
    oprot.writeFieldStop()
2346
    oprot.writeStructEnd()
2347
 
2348
  def validate(self):
2349
    return
2350
 
2351
 
2352
  def __repr__(self):
2353
    L = ['%s=%r' % (key, value)
2354
      for key, value in self.__dict__.iteritems()]
2355
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2356
 
2357
  def __eq__(self, other):
2358
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2359
 
2360
  def __ne__(self, other):
2361
    return not (self == other)
2362
 
2363
class getInventoryItemFromId_result:
2364
  """
2365
  Attributes:
2366
   - success
2367
   - wex
2368
  """
2369
 
2370
  thrift_spec = (
2371
    (0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0
2372
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
2373
  )
2374
 
2375
  def __init__(self, success=None, wex=None,):
2376
    self.success = success
2377
    self.wex = wex
2378
 
2379
  def read(self, iprot):
2380
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2381
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2382
      return
2383
    iprot.readStructBegin()
2384
    while True:
2385
      (fname, ftype, fid) = iprot.readFieldBegin()
2386
      if ftype == TType.STOP:
2387
        break
2388
      if fid == 0:
2389
        if ftype == TType.STRUCT:
2390
          self.success = InventoryItem()
2391
          self.success.read(iprot)
2392
        else:
2393
          iprot.skip(ftype)
2394
      elif fid == 1:
2395
        if ftype == TType.STRUCT:
2396
          self.wex = WarehouseServiceException()
2397
          self.wex.read(iprot)
2398
        else:
2399
          iprot.skip(ftype)
2400
      else:
2401
        iprot.skip(ftype)
2402
      iprot.readFieldEnd()
2403
    iprot.readStructEnd()
2404
 
2405
  def write(self, oprot):
2406
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2407
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2408
      return
2409
    oprot.writeStructBegin('getInventoryItemFromId_result')
2410
    if self.success is not None:
2411
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2412
      self.success.write(oprot)
2413
      oprot.writeFieldEnd()
2414
    if self.wex is not None:
2415
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
2416
      self.wex.write(oprot)
2417
      oprot.writeFieldEnd()
2418
    oprot.writeFieldStop()
2419
    oprot.writeStructEnd()
2420
 
2421
  def validate(self):
2422
    return
2423
 
2424
 
2425
  def __repr__(self):
2426
    L = ['%s=%r' % (key, value)
2427
      for key, value in self.__dict__.iteritems()]
2428
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2429
 
2430
  def __eq__(self, other):
2431
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2432
 
2433
  def __ne__(self, other):
2434
    return not (self == other)
5372 mandeep.dh 2435
 
2436
class getPurchaseScans_args:
2437
  """
2438
  Attributes:
2439
   - startDate
2440
   - endDate
2441
  """
2442
 
2443
  thrift_spec = (
2444
    None, # 0
2445
    (1, TType.I64, 'startDate', None, None, ), # 1
2446
    (2, TType.I64, 'endDate', None, None, ), # 2
2447
  )
2448
 
2449
  def __init__(self, startDate=None, endDate=None,):
2450
    self.startDate = startDate
2451
    self.endDate = endDate
2452
 
2453
  def read(self, iprot):
2454
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2455
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2456
      return
2457
    iprot.readStructBegin()
2458
    while True:
2459
      (fname, ftype, fid) = iprot.readFieldBegin()
2460
      if ftype == TType.STOP:
2461
        break
2462
      if fid == 1:
2463
        if ftype == TType.I64:
2464
          self.startDate = iprot.readI64();
2465
        else:
2466
          iprot.skip(ftype)
2467
      elif fid == 2:
2468
        if ftype == TType.I64:
2469
          self.endDate = iprot.readI64();
2470
        else:
2471
          iprot.skip(ftype)
2472
      else:
2473
        iprot.skip(ftype)
2474
      iprot.readFieldEnd()
2475
    iprot.readStructEnd()
2476
 
2477
  def write(self, oprot):
2478
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2479
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2480
      return
2481
    oprot.writeStructBegin('getPurchaseScans_args')
2482
    if self.startDate is not None:
2483
      oprot.writeFieldBegin('startDate', TType.I64, 1)
2484
      oprot.writeI64(self.startDate)
2485
      oprot.writeFieldEnd()
2486
    if self.endDate is not None:
2487
      oprot.writeFieldBegin('endDate', TType.I64, 2)
2488
      oprot.writeI64(self.endDate)
2489
      oprot.writeFieldEnd()
2490
    oprot.writeFieldStop()
2491
    oprot.writeStructEnd()
2492
 
2493
  def validate(self):
2494
    return
2495
 
2496
 
2497
  def __repr__(self):
2498
    L = ['%s=%r' % (key, value)
2499
      for key, value in self.__dict__.iteritems()]
2500
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2501
 
2502
  def __eq__(self, other):
2503
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2504
 
2505
  def __ne__(self, other):
2506
    return not (self == other)
2507
 
2508
class getPurchaseScans_result:
2509
  """
2510
  Attributes:
2511
   - success
2512
  """
2513
 
2514
  thrift_spec = (
2515
    (0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0
2516
  )
2517
 
2518
  def __init__(self, success=None,):
2519
    self.success = success
2520
 
2521
  def read(self, iprot):
2522
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2523
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2524
      return
2525
    iprot.readStructBegin()
2526
    while True:
2527
      (fname, ftype, fid) = iprot.readFieldBegin()
2528
      if ftype == TType.STOP:
2529
        break
2530
      if fid == 0:
2531
        if ftype == TType.LIST:
2532
          self.success = []
2533
          (_etype24, _size21) = iprot.readListBegin()
2534
          for _i25 in xrange(_size21):
2535
            _elem26 = DetailedPurchaseScan()
2536
            _elem26.read(iprot)
2537
            self.success.append(_elem26)
2538
          iprot.readListEnd()
2539
        else:
2540
          iprot.skip(ftype)
2541
      else:
2542
        iprot.skip(ftype)
2543
      iprot.readFieldEnd()
2544
    iprot.readStructEnd()
2545
 
2546
  def write(self, oprot):
2547
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2548
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2549
      return
2550
    oprot.writeStructBegin('getPurchaseScans_result')
2551
    if self.success is not None:
2552
      oprot.writeFieldBegin('success', TType.LIST, 0)
2553
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2554
      for iter27 in self.success:
2555
        iter27.write(oprot)
2556
      oprot.writeListEnd()
2557
      oprot.writeFieldEnd()
2558
    oprot.writeFieldStop()
2559
    oprot.writeStructEnd()
2560
 
2561
  def validate(self):
2562
    return
2563
 
2564
 
2565
  def __repr__(self):
2566
    L = ['%s=%r' % (key, value)
2567
      for key, value in self.__dict__.iteritems()]
2568
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2569
 
2570
  def __eq__(self, other):
2571
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2572
 
2573
  def __ne__(self, other):
2574
    return not (self == other)
5496 mandeep.dh 2575
 
2576
class fetchScansPerInvoiceNumber_args:
2577
  """
2578
  Attributes:
2579
   - date
2580
  """
2581
 
2582
  thrift_spec = (
2583
    None, # 0
2584
    (1, TType.I64, 'date', None, None, ), # 1
2585
  )
2586
 
2587
  def __init__(self, date=None,):
2588
    self.date = date
2589
 
2590
  def read(self, iprot):
2591
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2592
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2593
      return
2594
    iprot.readStructBegin()
2595
    while True:
2596
      (fname, ftype, fid) = iprot.readFieldBegin()
2597
      if ftype == TType.STOP:
2598
        break
2599
      if fid == 1:
2600
        if ftype == TType.I64:
2601
          self.date = iprot.readI64();
2602
        else:
2603
          iprot.skip(ftype)
2604
      else:
2605
        iprot.skip(ftype)
2606
      iprot.readFieldEnd()
2607
    iprot.readStructEnd()
2608
 
2609
  def write(self, oprot):
2610
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2611
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2612
      return
2613
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_args')
2614
    if self.date is not None:
2615
      oprot.writeFieldBegin('date', TType.I64, 1)
2616
      oprot.writeI64(self.date)
2617
      oprot.writeFieldEnd()
2618
    oprot.writeFieldStop()
2619
    oprot.writeStructEnd()
2620
 
2621
  def validate(self):
2622
    return
2623
 
2624
 
2625
  def __repr__(self):
2626
    L = ['%s=%r' % (key, value)
2627
      for key, value in self.__dict__.iteritems()]
2628
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2629
 
2630
  def __eq__(self, other):
2631
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2632
 
2633
  def __ne__(self, other):
2634
    return not (self == other)
2635
 
2636
class fetchScansPerInvoiceNumber_result:
2637
  """
2638
  Attributes:
2639
   - success
2640
  """
2641
 
2642
  thrift_spec = (
2643
    (0, TType.LIST, 'success', (TType.STRUCT,(InvoiceScan, InvoiceScan.thrift_spec)), None, ), # 0
2644
  )
2645
 
2646
  def __init__(self, success=None,):
2647
    self.success = success
2648
 
2649
  def read(self, iprot):
2650
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2651
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2652
      return
2653
    iprot.readStructBegin()
2654
    while True:
2655
      (fname, ftype, fid) = iprot.readFieldBegin()
2656
      if ftype == TType.STOP:
2657
        break
2658
      if fid == 0:
2659
        if ftype == TType.LIST:
2660
          self.success = []
2661
          (_etype31, _size28) = iprot.readListBegin()
2662
          for _i32 in xrange(_size28):
2663
            _elem33 = InvoiceScan()
2664
            _elem33.read(iprot)
2665
            self.success.append(_elem33)
2666
          iprot.readListEnd()
2667
        else:
2668
          iprot.skip(ftype)
2669
      else:
2670
        iprot.skip(ftype)
2671
      iprot.readFieldEnd()
2672
    iprot.readStructEnd()
2673
 
2674
  def write(self, oprot):
2675
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2676
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2677
      return
2678
    oprot.writeStructBegin('fetchScansPerInvoiceNumber_result')
2679
    if self.success is not None:
2680
      oprot.writeFieldBegin('success', TType.LIST, 0)
2681
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2682
      for iter34 in self.success:
2683
        iter34.write(oprot)
2684
      oprot.writeListEnd()
2685
      oprot.writeFieldEnd()
2686
    oprot.writeFieldStop()
2687
    oprot.writeStructEnd()
2688
 
2689
  def validate(self):
2690
    return
2691
 
2692
 
2693
  def __repr__(self):
2694
    L = ['%s=%r' % (key, value)
2695
      for key, value in self.__dict__.iteritems()]
2696
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2697
 
2698
  def __eq__(self, other):
2699
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2700
 
2701
  def __ne__(self, other):
2702
    return not (self == other)