Subversion Repositories SmartDukaan

Rev

Rev 21838 | Details | Compare with Previous | Last modification | View Log | RSS feed

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