Subversion Repositories SmartDukaan

Rev

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