Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
4502 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.GenericService
9
from ttypes import *
10
from thrift.Thrift import TProcessor
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
 
19
class Iface(shop2020.thriftpy.generic.GenericService.Iface):
20
  def createPurchaseOrder(self, purchaseOrder):
21
    """
22
    Creates a purchase order based on the data in the given purchase order object.
23
    This method populates a nummber of missing fields
24
 
25
    Parameters:
26
     - purchaseOrder
27
    """
28
    pass
29
 
30
  def getPurchaseOrder(self, id):
31
    """
32
    Returns the purchase order with the given id. Throws an exception if there is no such purchase order.
33
 
34
    Parameters:
35
     - id
36
    """
37
    pass
38
 
39
  def getAllPurchaseOrders(self, status):
40
    """
41
    Returns a list of all the purchase orders in the given state
42
 
43
    Parameters:
44
     - status
45
    """
46
    pass
47
 
48
  def getSupplier(self, id):
49
    """
50
    Returns the supplier with the given order id. Throws an exception if there is no such supplier.
51
 
52
    Parameters:
53
     - id
54
    """
55
    pass
56
 
11801 manish.sha 57
  def startPurchase(self, purchaseOrderId, invoiceNumber, freightCharges, purchaseComments):
4502 mandeep.dh 58
    """
59
    Creates a purchase for the given purchase order.
60
    Throws an exception if no more purchases are allowed against the given purchase order.
61
 
62
    Parameters:
63
     - purchaseOrderId
64
     - invoiceNumber
65
     - freightCharges
11801 manish.sha 66
     - purchaseComments
4502 mandeep.dh 67
    """
68
    pass
69
 
70
  def closePurchase(self, purchaseId):
71
    """
72
    Marks a purchase as complete and updates the receivedOn time.
73
    Throws an exception if no such purchase exists.
74
 
75
    Parameters:
76
     - purchaseId
77
    """
78
    pass
79
 
80
  def getAllPurchases(self, purchaseOrderId, open):
81
    """
82
    Returns all open or closed purchases for the given purchase order. Throws an exception if no such purchase order exists
83
 
84
    Parameters:
85
     - purchaseOrderId
86
     - open
87
    """
88
    pass
89
 
6386 amar.kumar 90
  def getPurchasesForPO(self, purchaseOrderId):
91
    """
92
    Returns all purchases for the given purchase order. Throws an exception if no such purchase order exists
93
 
94
    Parameters:
95
     - purchaseOrderId
96
    """
97
    pass
98
 
4555 mandeep.dh 99
  def getPurchaseOrderForPurchase(self, purchaseId):
4502 mandeep.dh 100
    """
4555 mandeep.dh 101
    Returns the purchase order object for a given purchase
4502 mandeep.dh 102
 
103
    Parameters:
104
     - purchaseId
105
    """
106
    pass
107
 
4754 mandeep.dh 108
  def getPendingPurchaseOrders(self, warehouseId):
109
    """
110
    Creates purchase order objects from pending orders
4502 mandeep.dh 111
 
4754 mandeep.dh 112
    Parameters:
113
     - warehouseId
114
    """
115
    pass
116
 
117
  def getSuppliers(self, ):
118
    """
21847 amit.gupta 119
    Returns all the valid suppliers with GST Codes
120
    """
121
    pass
122
 
123
  def getAllSuppliers(self, ):
124
    """
4754 mandeep.dh 125
    Returns all the valid suppliers
126
    """
127
    pass
128
 
129
  def fulfillPO(self, purchaseOrderId, itemId, quantity):
130
    """
131
    Fulfills a given purchase order with an item.
132
 
133
    Parameters:
134
     - purchaseOrderId
135
     - itemId
136
     - quantity
137
    """
138
    pass
139
 
140
  def updatePurchaseOrder(self, purchaseOrder):
141
    """
142
    Amends a PO as per the new lineitems passed
143
 
144
    Parameters:
145
     - purchaseOrder
146
    """
147
    pass
148
 
5185 mandeep.dh 149
  def unFulfillPO(self, purchaseId, itemId, quantity):
150
    """
151
    Fulfills a given purchase id with an item and its quantity.
4754 mandeep.dh 152
 
5185 mandeep.dh 153
    Parameters:
154
     - purchaseId
155
     - itemId
156
     - quantity
157
    """
158
    pass
159
 
5443 mandeep.dh 160
  def getInvoices(self, date):
161
    """
5530 mandeep.dh 162
    Fetches all invoices after a given date
5185 mandeep.dh 163
 
5443 mandeep.dh 164
    Parameters:
165
     - date
166
    """
167
    pass
168
 
7410 amar.kumar 169
  def getInvoicesForWarehouse(self, warehouseId, supplierId, date):
170
    """
171
    Fetches all invoices after a given date
172
 
173
    Parameters:
174
     - warehouseId
175
     - supplierId
176
     - date
177
    """
178
    pass
179
 
5443 mandeep.dh 180
  def createInvoice(self, invoice):
181
    """
182
    Creates an invoice object
183
 
184
    Parameters:
185
     - invoice
186
    """
187
    pass
188
 
5591 mandeep.dh 189
  def addSupplier(self, supplier):
190
    """
191
    Creates a supplier
5443 mandeep.dh 192
 
5591 mandeep.dh 193
    Parameters:
194
     - supplier
195
    """
196
    pass
197
 
198
  def updateSupplier(self, supplier):
199
    """
200
    Updates a supplier
201
 
202
    Parameters:
203
     - supplier
204
    """
205
    pass
206
 
6467 amar.kumar 207
  def createPurchaseReturn(self, purchaseReturn):
208
    """
209
    Create a new Purchase Return
5591 mandeep.dh 210
 
6467 amar.kumar 211
    Parameters:
212
     - purchaseReturn
213
    """
214
    pass
215
 
216
  def settlePurchaseReturn(self, id):
217
    """
218
    Create a new Purchase Return
219
 
220
    Parameters:
221
     - id
222
    """
223
    pass
224
 
225
  def getUnsettledPurchaseReturns(self, ):
226
    """
227
    Create a new Purchase Return
228
    """
229
    pass
230
 
6630 amar.kumar 231
  def getInvoice(self, invoiceNumber, supplierId):
232
    """
233
    Get invoice with given supplierId and invoiceNumber
6467 amar.kumar 234
 
6630 amar.kumar 235
    Parameters:
236
     - invoiceNumber
237
     - supplierId
238
    """
239
    pass
240
 
7672 rajveer 241
  def createPurchaseForOurExtBilling(self, invoiceNumber, unitPrice, nlc, itemId):
6762 amar.kumar 242
    """
243
     * Inserts new Invoice/LineItem/Purchase Entries for Billed Product done through Our External Billing
244
    *
6630 amar.kumar 245
 
6762 amar.kumar 246
    Parameters:
247
     - invoiceNumber
248
     - unitPrice
7672 rajveer 249
     - nlc
6762 amar.kumar 250
     - itemId
251
    """
252
    pass
253
 
254
  def fulfillPOForExtBilling(self, itemId, quantity):
255
    """
256
    Parameters:
257
     - itemId
258
     - quantity
259
    """
260
    pass
261
 
7410 amar.kumar 262
  def closePO(self, poId):
263
    """
264
    Marks a purchase order as closedcomplete and updates the receivedOn time.
6762 amar.kumar 265
 
7410 amar.kumar 266
    Parameters:
267
     - poId
268
    """
269
    pass
270
 
271
  def isInvoiceReceived(self, invoiceNumber, supplierId):
272
    """
273
    Check if invoice is already received with given supplierId and invoiceNumber
274
 
275
    Parameters:
276
     - invoiceNumber
277
     - supplierId
278
    """
279
    pass
280
 
9829 amar.kumar 281
  def changeWarehouseForPO(self, id, warehouseId):
282
    """
283
    Change warehouseId of PO if no items have been received yet for the PO
7410 amar.kumar 284
 
9829 amar.kumar 285
    Parameters:
286
     - id
287
     - warehouseId
288
    """
289
    pass
290
 
9925 amar.kumar 291
  def changePOStatus(self, id, poStatus):
292
    """
293
    Change status of PO
9829 amar.kumar 294
 
9925 amar.kumar 295
    Parameters:
296
     - id
297
     - poStatus
298
    """
299
    pass
300
 
11751 manish.sha 301
  def getPurchaseReturn(self, id):
302
    """
303
    Get Purchase Return from Id
9925 amar.kumar 304
 
11751 manish.sha 305
    Parameters:
306
     - id
307
    """
308
    pass
309
 
13600 manish.sha 310
  def markPurchasereturnSettled(self, id, settlementType, documentNumber, settlementBy, settledAmount):
311
    """
312
    Parameters:
313
     - id
314
     - settlementType
315
     - documentNumber
316
     - settlementBy
317
     - settledAmount
318
    """
319
    pass
11751 manish.sha 320
 
13600 manish.sha 321
  def getPrSettlementsForPurchaseReturn(self, purchaseReturnId):
322
    """
323
    Parameters:
324
     - purchaseReturnId
325
    """
326
    pass
327
 
328
  def updatePurchaseReturn(self, purchaseReturn):
329
    """
330
    Parameters:
331
     - purchaseReturn
332
    """
333
    pass
334
 
335
 
4502 mandeep.dh 336
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
337
  def __init__(self, iprot, oprot=None):
338
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
339
 
340
  def createPurchaseOrder(self, purchaseOrder):
341
    """
342
    Creates a purchase order based on the data in the given purchase order object.
343
    This method populates a nummber of missing fields
344
 
345
    Parameters:
346
     - purchaseOrder
347
    """
348
    self.send_createPurchaseOrder(purchaseOrder)
349
    return self.recv_createPurchaseOrder()
350
 
351
  def send_createPurchaseOrder(self, purchaseOrder):
352
    self._oprot.writeMessageBegin('createPurchaseOrder', TMessageType.CALL, self._seqid)
353
    args = createPurchaseOrder_args()
354
    args.purchaseOrder = purchaseOrder
355
    args.write(self._oprot)
356
    self._oprot.writeMessageEnd()
357
    self._oprot.trans.flush()
358
 
359
  def recv_createPurchaseOrder(self, ):
360
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
361
    if mtype == TMessageType.EXCEPTION:
362
      x = TApplicationException()
363
      x.read(self._iprot)
364
      self._iprot.readMessageEnd()
365
      raise x
366
    result = createPurchaseOrder_result()
367
    result.read(self._iprot)
368
    self._iprot.readMessageEnd()
369
    if result.success is not None:
370
      return result.success
371
    if result.e is not None:
372
      raise result.e
373
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createPurchaseOrder failed: unknown result");
374
 
375
  def getPurchaseOrder(self, id):
376
    """
377
    Returns the purchase order with the given id. Throws an exception if there is no such purchase order.
378
 
379
    Parameters:
380
     - id
381
    """
382
    self.send_getPurchaseOrder(id)
383
    return self.recv_getPurchaseOrder()
384
 
385
  def send_getPurchaseOrder(self, id):
386
    self._oprot.writeMessageBegin('getPurchaseOrder', TMessageType.CALL, self._seqid)
387
    args = getPurchaseOrder_args()
388
    args.id = id
389
    args.write(self._oprot)
390
    self._oprot.writeMessageEnd()
391
    self._oprot.trans.flush()
392
 
393
  def recv_getPurchaseOrder(self, ):
394
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
395
    if mtype == TMessageType.EXCEPTION:
396
      x = TApplicationException()
397
      x.read(self._iprot)
398
      self._iprot.readMessageEnd()
399
      raise x
400
    result = getPurchaseOrder_result()
401
    result.read(self._iprot)
402
    self._iprot.readMessageEnd()
403
    if result.success is not None:
404
      return result.success
405
    if result.e is not None:
406
      raise result.e
407
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseOrder failed: unknown result");
408
 
409
  def getAllPurchaseOrders(self, status):
410
    """
411
    Returns a list of all the purchase orders in the given state
412
 
413
    Parameters:
414
     - status
415
    """
416
    self.send_getAllPurchaseOrders(status)
417
    return self.recv_getAllPurchaseOrders()
418
 
419
  def send_getAllPurchaseOrders(self, status):
420
    self._oprot.writeMessageBegin('getAllPurchaseOrders', TMessageType.CALL, self._seqid)
421
    args = getAllPurchaseOrders_args()
422
    args.status = status
423
    args.write(self._oprot)
424
    self._oprot.writeMessageEnd()
425
    self._oprot.trans.flush()
426
 
427
  def recv_getAllPurchaseOrders(self, ):
428
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
429
    if mtype == TMessageType.EXCEPTION:
430
      x = TApplicationException()
431
      x.read(self._iprot)
432
      self._iprot.readMessageEnd()
433
      raise x
434
    result = getAllPurchaseOrders_result()
435
    result.read(self._iprot)
436
    self._iprot.readMessageEnd()
437
    if result.success is not None:
438
      return result.success
439
    if result.e is not None:
440
      raise result.e
441
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPurchaseOrders failed: unknown result");
442
 
443
  def getSupplier(self, id):
444
    """
445
    Returns the supplier with the given order id. Throws an exception if there is no such supplier.
446
 
447
    Parameters:
448
     - id
449
    """
450
    self.send_getSupplier(id)
451
    return self.recv_getSupplier()
452
 
453
  def send_getSupplier(self, id):
454
    self._oprot.writeMessageBegin('getSupplier', TMessageType.CALL, self._seqid)
455
    args = getSupplier_args()
456
    args.id = id
457
    args.write(self._oprot)
458
    self._oprot.writeMessageEnd()
459
    self._oprot.trans.flush()
460
 
461
  def recv_getSupplier(self, ):
462
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
463
    if mtype == TMessageType.EXCEPTION:
464
      x = TApplicationException()
465
      x.read(self._iprot)
466
      self._iprot.readMessageEnd()
467
      raise x
468
    result = getSupplier_result()
469
    result.read(self._iprot)
470
    self._iprot.readMessageEnd()
471
    if result.success is not None:
472
      return result.success
473
    if result.e is not None:
474
      raise result.e
475
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSupplier failed: unknown result");
476
 
11801 manish.sha 477
  def startPurchase(self, purchaseOrderId, invoiceNumber, freightCharges, purchaseComments):
4502 mandeep.dh 478
    """
479
    Creates a purchase for the given purchase order.
480
    Throws an exception if no more purchases are allowed against the given purchase order.
481
 
482
    Parameters:
483
     - purchaseOrderId
484
     - invoiceNumber
485
     - freightCharges
11801 manish.sha 486
     - purchaseComments
4502 mandeep.dh 487
    """
11801 manish.sha 488
    self.send_startPurchase(purchaseOrderId, invoiceNumber, freightCharges, purchaseComments)
4502 mandeep.dh 489
    return self.recv_startPurchase()
490
 
11801 manish.sha 491
  def send_startPurchase(self, purchaseOrderId, invoiceNumber, freightCharges, purchaseComments):
4502 mandeep.dh 492
    self._oprot.writeMessageBegin('startPurchase', TMessageType.CALL, self._seqid)
493
    args = startPurchase_args()
494
    args.purchaseOrderId = purchaseOrderId
495
    args.invoiceNumber = invoiceNumber
496
    args.freightCharges = freightCharges
11801 manish.sha 497
    args.purchaseComments = purchaseComments
4502 mandeep.dh 498
    args.write(self._oprot)
499
    self._oprot.writeMessageEnd()
500
    self._oprot.trans.flush()
501
 
502
  def recv_startPurchase(self, ):
503
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
504
    if mtype == TMessageType.EXCEPTION:
505
      x = TApplicationException()
506
      x.read(self._iprot)
507
      self._iprot.readMessageEnd()
508
      raise x
509
    result = startPurchase_result()
510
    result.read(self._iprot)
511
    self._iprot.readMessageEnd()
512
    if result.success is not None:
513
      return result.success
514
    if result.e is not None:
515
      raise result.e
516
    raise TApplicationException(TApplicationException.MISSING_RESULT, "startPurchase failed: unknown result");
517
 
518
  def closePurchase(self, purchaseId):
519
    """
520
    Marks a purchase as complete and updates the receivedOn time.
521
    Throws an exception if no such purchase exists.
522
 
523
    Parameters:
524
     - purchaseId
525
    """
526
    self.send_closePurchase(purchaseId)
527
    return self.recv_closePurchase()
528
 
529
  def send_closePurchase(self, purchaseId):
530
    self._oprot.writeMessageBegin('closePurchase', TMessageType.CALL, self._seqid)
531
    args = closePurchase_args()
532
    args.purchaseId = purchaseId
533
    args.write(self._oprot)
534
    self._oprot.writeMessageEnd()
535
    self._oprot.trans.flush()
536
 
537
  def recv_closePurchase(self, ):
538
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
539
    if mtype == TMessageType.EXCEPTION:
540
      x = TApplicationException()
541
      x.read(self._iprot)
542
      self._iprot.readMessageEnd()
543
      raise x
544
    result = closePurchase_result()
545
    result.read(self._iprot)
546
    self._iprot.readMessageEnd()
547
    if result.success is not None:
548
      return result.success
549
    if result.e is not None:
550
      raise result.e
551
    raise TApplicationException(TApplicationException.MISSING_RESULT, "closePurchase failed: unknown result");
552
 
553
  def getAllPurchases(self, purchaseOrderId, open):
554
    """
555
    Returns all open or closed purchases for the given purchase order. Throws an exception if no such purchase order exists
556
 
557
    Parameters:
558
     - purchaseOrderId
559
     - open
560
    """
561
    self.send_getAllPurchases(purchaseOrderId, open)
562
    return self.recv_getAllPurchases()
563
 
564
  def send_getAllPurchases(self, purchaseOrderId, open):
565
    self._oprot.writeMessageBegin('getAllPurchases', TMessageType.CALL, self._seqid)
566
    args = getAllPurchases_args()
567
    args.purchaseOrderId = purchaseOrderId
568
    args.open = open
569
    args.write(self._oprot)
570
    self._oprot.writeMessageEnd()
571
    self._oprot.trans.flush()
572
 
573
  def recv_getAllPurchases(self, ):
574
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
575
    if mtype == TMessageType.EXCEPTION:
576
      x = TApplicationException()
577
      x.read(self._iprot)
578
      self._iprot.readMessageEnd()
579
      raise x
580
    result = getAllPurchases_result()
581
    result.read(self._iprot)
582
    self._iprot.readMessageEnd()
583
    if result.success is not None:
584
      return result.success
585
    if result.e is not None:
586
      raise result.e
587
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllPurchases failed: unknown result");
588
 
6386 amar.kumar 589
  def getPurchasesForPO(self, purchaseOrderId):
590
    """
591
    Returns all purchases for the given purchase order. Throws an exception if no such purchase order exists
592
 
593
    Parameters:
594
     - purchaseOrderId
595
    """
596
    self.send_getPurchasesForPO(purchaseOrderId)
597
    return self.recv_getPurchasesForPO()
598
 
599
  def send_getPurchasesForPO(self, purchaseOrderId):
600
    self._oprot.writeMessageBegin('getPurchasesForPO', TMessageType.CALL, self._seqid)
601
    args = getPurchasesForPO_args()
602
    args.purchaseOrderId = purchaseOrderId
603
    args.write(self._oprot)
604
    self._oprot.writeMessageEnd()
605
    self._oprot.trans.flush()
606
 
607
  def recv_getPurchasesForPO(self, ):
608
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
609
    if mtype == TMessageType.EXCEPTION:
610
      x = TApplicationException()
611
      x.read(self._iprot)
612
      self._iprot.readMessageEnd()
613
      raise x
614
    result = getPurchasesForPO_result()
615
    result.read(self._iprot)
616
    self._iprot.readMessageEnd()
617
    if result.success is not None:
618
      return result.success
619
    if result.e is not None:
620
      raise result.e
621
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchasesForPO failed: unknown result");
622
 
4555 mandeep.dh 623
  def getPurchaseOrderForPurchase(self, purchaseId):
4502 mandeep.dh 624
    """
4555 mandeep.dh 625
    Returns the purchase order object for a given purchase
4502 mandeep.dh 626
 
627
    Parameters:
628
     - purchaseId
629
    """
4555 mandeep.dh 630
    self.send_getPurchaseOrderForPurchase(purchaseId)
631
    return self.recv_getPurchaseOrderForPurchase()
4502 mandeep.dh 632
 
4555 mandeep.dh 633
  def send_getPurchaseOrderForPurchase(self, purchaseId):
634
    self._oprot.writeMessageBegin('getPurchaseOrderForPurchase', TMessageType.CALL, self._seqid)
635
    args = getPurchaseOrderForPurchase_args()
4502 mandeep.dh 636
    args.purchaseId = purchaseId
637
    args.write(self._oprot)
638
    self._oprot.writeMessageEnd()
639
    self._oprot.trans.flush()
640
 
4555 mandeep.dh 641
  def recv_getPurchaseOrderForPurchase(self, ):
4502 mandeep.dh 642
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
643
    if mtype == TMessageType.EXCEPTION:
644
      x = TApplicationException()
645
      x.read(self._iprot)
646
      self._iprot.readMessageEnd()
647
      raise x
4555 mandeep.dh 648
    result = getPurchaseOrderForPurchase_result()
4502 mandeep.dh 649
    result.read(self._iprot)
650
    self._iprot.readMessageEnd()
651
    if result.success is not None:
652
      return result.success
4555 mandeep.dh 653
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseOrderForPurchase failed: unknown result");
4502 mandeep.dh 654
 
4754 mandeep.dh 655
  def getPendingPurchaseOrders(self, warehouseId):
656
    """
657
    Creates purchase order objects from pending orders
4502 mandeep.dh 658
 
4754 mandeep.dh 659
    Parameters:
660
     - warehouseId
661
    """
662
    self.send_getPendingPurchaseOrders(warehouseId)
663
    return self.recv_getPendingPurchaseOrders()
664
 
665
  def send_getPendingPurchaseOrders(self, warehouseId):
666
    self._oprot.writeMessageBegin('getPendingPurchaseOrders', TMessageType.CALL, self._seqid)
667
    args = getPendingPurchaseOrders_args()
668
    args.warehouseId = warehouseId
669
    args.write(self._oprot)
670
    self._oprot.writeMessageEnd()
671
    self._oprot.trans.flush()
672
 
673
  def recv_getPendingPurchaseOrders(self, ):
674
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
675
    if mtype == TMessageType.EXCEPTION:
676
      x = TApplicationException()
677
      x.read(self._iprot)
678
      self._iprot.readMessageEnd()
679
      raise x
680
    result = getPendingPurchaseOrders_result()
681
    result.read(self._iprot)
682
    self._iprot.readMessageEnd()
683
    if result.success is not None:
684
      return result.success
685
    if result.e is not None:
686
      raise result.e
687
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingPurchaseOrders failed: unknown result");
688
 
689
  def getSuppliers(self, ):
690
    """
21847 amit.gupta 691
    Returns all the valid suppliers with GST Codes
4754 mandeep.dh 692
    """
693
    self.send_getSuppliers()
694
    return self.recv_getSuppliers()
695
 
696
  def send_getSuppliers(self, ):
697
    self._oprot.writeMessageBegin('getSuppliers', TMessageType.CALL, self._seqid)
698
    args = getSuppliers_args()
699
    args.write(self._oprot)
700
    self._oprot.writeMessageEnd()
701
    self._oprot.trans.flush()
702
 
703
  def recv_getSuppliers(self, ):
704
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
705
    if mtype == TMessageType.EXCEPTION:
706
      x = TApplicationException()
707
      x.read(self._iprot)
708
      self._iprot.readMessageEnd()
709
      raise x
710
    result = getSuppliers_result()
711
    result.read(self._iprot)
712
    self._iprot.readMessageEnd()
713
    if result.success is not None:
714
      return result.success
715
    if result.e is not None:
716
      raise result.e
717
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuppliers failed: unknown result");
718
 
21847 amit.gupta 719
  def getAllSuppliers(self, ):
720
    """
721
    Returns all the valid suppliers
722
    """
723
    self.send_getAllSuppliers()
724
    return self.recv_getAllSuppliers()
725
 
726
  def send_getAllSuppliers(self, ):
727
    self._oprot.writeMessageBegin('getAllSuppliers', TMessageType.CALL, self._seqid)
728
    args = getAllSuppliers_args()
729
    args.write(self._oprot)
730
    self._oprot.writeMessageEnd()
731
    self._oprot.trans.flush()
732
 
733
  def recv_getAllSuppliers(self, ):
734
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
735
    if mtype == TMessageType.EXCEPTION:
736
      x = TApplicationException()
737
      x.read(self._iprot)
738
      self._iprot.readMessageEnd()
739
      raise x
740
    result = getAllSuppliers_result()
741
    result.read(self._iprot)
742
    self._iprot.readMessageEnd()
743
    if result.success is not None:
744
      return result.success
745
    if result.e is not None:
746
      raise result.e
747
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSuppliers failed: unknown result");
748
 
4754 mandeep.dh 749
  def fulfillPO(self, purchaseOrderId, itemId, quantity):
750
    """
751
    Fulfills a given purchase order with an item.
752
 
753
    Parameters:
754
     - purchaseOrderId
755
     - itemId
756
     - quantity
757
    """
758
    self.send_fulfillPO(purchaseOrderId, itemId, quantity)
759
    self.recv_fulfillPO()
760
 
761
  def send_fulfillPO(self, purchaseOrderId, itemId, quantity):
762
    self._oprot.writeMessageBegin('fulfillPO', TMessageType.CALL, self._seqid)
763
    args = fulfillPO_args()
764
    args.purchaseOrderId = purchaseOrderId
765
    args.itemId = itemId
766
    args.quantity = quantity
767
    args.write(self._oprot)
768
    self._oprot.writeMessageEnd()
769
    self._oprot.trans.flush()
770
 
771
  def recv_fulfillPO(self, ):
772
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
773
    if mtype == TMessageType.EXCEPTION:
774
      x = TApplicationException()
775
      x.read(self._iprot)
776
      self._iprot.readMessageEnd()
777
      raise x
778
    result = fulfillPO_result()
779
    result.read(self._iprot)
780
    self._iprot.readMessageEnd()
781
    if result.e is not None:
782
      raise result.e
783
    return
784
 
785
  def updatePurchaseOrder(self, purchaseOrder):
786
    """
787
    Amends a PO as per the new lineitems passed
788
 
789
    Parameters:
790
     - purchaseOrder
791
    """
792
    self.send_updatePurchaseOrder(purchaseOrder)
793
    self.recv_updatePurchaseOrder()
794
 
795
  def send_updatePurchaseOrder(self, purchaseOrder):
796
    self._oprot.writeMessageBegin('updatePurchaseOrder', TMessageType.CALL, self._seqid)
797
    args = updatePurchaseOrder_args()
798
    args.purchaseOrder = purchaseOrder
799
    args.write(self._oprot)
800
    self._oprot.writeMessageEnd()
801
    self._oprot.trans.flush()
802
 
803
  def recv_updatePurchaseOrder(self, ):
804
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
805
    if mtype == TMessageType.EXCEPTION:
806
      x = TApplicationException()
807
      x.read(self._iprot)
808
      self._iprot.readMessageEnd()
809
      raise x
810
    result = updatePurchaseOrder_result()
811
    result.read(self._iprot)
812
    self._iprot.readMessageEnd()
813
    if result.e is not None:
814
      raise result.e
815
    return
816
 
5185 mandeep.dh 817
  def unFulfillPO(self, purchaseId, itemId, quantity):
818
    """
819
    Fulfills a given purchase id with an item and its quantity.
4754 mandeep.dh 820
 
5185 mandeep.dh 821
    Parameters:
822
     - purchaseId
823
     - itemId
824
     - quantity
825
    """
826
    self.send_unFulfillPO(purchaseId, itemId, quantity)
827
    self.recv_unFulfillPO()
828
 
829
  def send_unFulfillPO(self, purchaseId, itemId, quantity):
830
    self._oprot.writeMessageBegin('unFulfillPO', TMessageType.CALL, self._seqid)
831
    args = unFulfillPO_args()
832
    args.purchaseId = purchaseId
833
    args.itemId = itemId
834
    args.quantity = quantity
835
    args.write(self._oprot)
836
    self._oprot.writeMessageEnd()
837
    self._oprot.trans.flush()
838
 
839
  def recv_unFulfillPO(self, ):
840
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
841
    if mtype == TMessageType.EXCEPTION:
842
      x = TApplicationException()
843
      x.read(self._iprot)
844
      self._iprot.readMessageEnd()
845
      raise x
846
    result = unFulfillPO_result()
847
    result.read(self._iprot)
848
    self._iprot.readMessageEnd()
849
    if result.e is not None:
850
      raise result.e
851
    return
852
 
5443 mandeep.dh 853
  def getInvoices(self, date):
854
    """
5530 mandeep.dh 855
    Fetches all invoices after a given date
5185 mandeep.dh 856
 
5443 mandeep.dh 857
    Parameters:
858
     - date
859
    """
860
    self.send_getInvoices(date)
861
    return self.recv_getInvoices()
862
 
863
  def send_getInvoices(self, date):
864
    self._oprot.writeMessageBegin('getInvoices', TMessageType.CALL, self._seqid)
865
    args = getInvoices_args()
866
    args.date = date
867
    args.write(self._oprot)
868
    self._oprot.writeMessageEnd()
869
    self._oprot.trans.flush()
870
 
871
  def recv_getInvoices(self, ):
872
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
873
    if mtype == TMessageType.EXCEPTION:
874
      x = TApplicationException()
875
      x.read(self._iprot)
876
      self._iprot.readMessageEnd()
877
      raise x
878
    result = getInvoices_result()
879
    result.read(self._iprot)
880
    self._iprot.readMessageEnd()
881
    if result.success is not None:
882
      return result.success
883
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInvoices failed: unknown result");
884
 
7410 amar.kumar 885
  def getInvoicesForWarehouse(self, warehouseId, supplierId, date):
886
    """
887
    Fetches all invoices after a given date
888
 
889
    Parameters:
890
     - warehouseId
891
     - supplierId
892
     - date
893
    """
894
    self.send_getInvoicesForWarehouse(warehouseId, supplierId, date)
895
    return self.recv_getInvoicesForWarehouse()
896
 
897
  def send_getInvoicesForWarehouse(self, warehouseId, supplierId, date):
898
    self._oprot.writeMessageBegin('getInvoicesForWarehouse', TMessageType.CALL, self._seqid)
899
    args = getInvoicesForWarehouse_args()
900
    args.warehouseId = warehouseId
901
    args.supplierId = supplierId
902
    args.date = date
903
    args.write(self._oprot)
904
    self._oprot.writeMessageEnd()
905
    self._oprot.trans.flush()
906
 
907
  def recv_getInvoicesForWarehouse(self, ):
908
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
909
    if mtype == TMessageType.EXCEPTION:
910
      x = TApplicationException()
911
      x.read(self._iprot)
912
      self._iprot.readMessageEnd()
913
      raise x
914
    result = getInvoicesForWarehouse_result()
915
    result.read(self._iprot)
916
    self._iprot.readMessageEnd()
917
    if result.success is not None:
918
      return result.success
919
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInvoicesForWarehouse failed: unknown result");
920
 
5443 mandeep.dh 921
  def createInvoice(self, invoice):
922
    """
923
    Creates an invoice object
924
 
925
    Parameters:
926
     - invoice
927
    """
928
    self.send_createInvoice(invoice)
929
    self.recv_createInvoice()
930
 
931
  def send_createInvoice(self, invoice):
932
    self._oprot.writeMessageBegin('createInvoice', TMessageType.CALL, self._seqid)
933
    args = createInvoice_args()
934
    args.invoice = invoice
935
    args.write(self._oprot)
936
    self._oprot.writeMessageEnd()
937
    self._oprot.trans.flush()
938
 
939
  def recv_createInvoice(self, ):
940
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
941
    if mtype == TMessageType.EXCEPTION:
942
      x = TApplicationException()
943
      x.read(self._iprot)
944
      self._iprot.readMessageEnd()
945
      raise x
946
    result = createInvoice_result()
947
    result.read(self._iprot)
948
    self._iprot.readMessageEnd()
949
    if result.e is not None:
950
      raise result.e
951
    return
952
 
5591 mandeep.dh 953
  def addSupplier(self, supplier):
954
    """
955
    Creates a supplier
5443 mandeep.dh 956
 
5591 mandeep.dh 957
    Parameters:
958
     - supplier
959
    """
960
    self.send_addSupplier(supplier)
961
    return self.recv_addSupplier()
962
 
963
  def send_addSupplier(self, supplier):
964
    self._oprot.writeMessageBegin('addSupplier', TMessageType.CALL, self._seqid)
965
    args = addSupplier_args()
966
    args.supplier = supplier
967
    args.write(self._oprot)
968
    self._oprot.writeMessageEnd()
969
    self._oprot.trans.flush()
970
 
971
  def recv_addSupplier(self, ):
972
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
973
    if mtype == TMessageType.EXCEPTION:
974
      x = TApplicationException()
975
      x.read(self._iprot)
976
      self._iprot.readMessageEnd()
977
      raise x
978
    result = addSupplier_result()
979
    result.read(self._iprot)
980
    self._iprot.readMessageEnd()
981
    if result.success is not None:
982
      return result.success
983
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addSupplier failed: unknown result");
984
 
985
  def updateSupplier(self, supplier):
986
    """
987
    Updates a supplier
988
 
989
    Parameters:
990
     - supplier
991
    """
992
    self.send_updateSupplier(supplier)
993
    self.recv_updateSupplier()
994
 
995
  def send_updateSupplier(self, supplier):
996
    self._oprot.writeMessageBegin('updateSupplier', TMessageType.CALL, self._seqid)
997
    args = updateSupplier_args()
998
    args.supplier = supplier
999
    args.write(self._oprot)
1000
    self._oprot.writeMessageEnd()
1001
    self._oprot.trans.flush()
1002
 
1003
  def recv_updateSupplier(self, ):
1004
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1005
    if mtype == TMessageType.EXCEPTION:
1006
      x = TApplicationException()
1007
      x.read(self._iprot)
1008
      self._iprot.readMessageEnd()
1009
      raise x
1010
    result = updateSupplier_result()
1011
    result.read(self._iprot)
1012
    self._iprot.readMessageEnd()
1013
    return
1014
 
6467 amar.kumar 1015
  def createPurchaseReturn(self, purchaseReturn):
1016
    """
1017
    Create a new Purchase Return
5591 mandeep.dh 1018
 
6467 amar.kumar 1019
    Parameters:
1020
     - purchaseReturn
1021
    """
1022
    self.send_createPurchaseReturn(purchaseReturn)
1023
    return self.recv_createPurchaseReturn()
1024
 
1025
  def send_createPurchaseReturn(self, purchaseReturn):
1026
    self._oprot.writeMessageBegin('createPurchaseReturn', TMessageType.CALL, self._seqid)
1027
    args = createPurchaseReturn_args()
1028
    args.purchaseReturn = purchaseReturn
1029
    args.write(self._oprot)
1030
    self._oprot.writeMessageEnd()
1031
    self._oprot.trans.flush()
1032
 
1033
  def recv_createPurchaseReturn(self, ):
1034
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1035
    if mtype == TMessageType.EXCEPTION:
1036
      x = TApplicationException()
1037
      x.read(self._iprot)
1038
      self._iprot.readMessageEnd()
1039
      raise x
1040
    result = createPurchaseReturn_result()
1041
    result.read(self._iprot)
1042
    self._iprot.readMessageEnd()
1043
    if result.success is not None:
1044
      return result.success
1045
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createPurchaseReturn failed: unknown result");
1046
 
1047
  def settlePurchaseReturn(self, id):
1048
    """
1049
    Create a new Purchase Return
1050
 
1051
    Parameters:
1052
     - id
1053
    """
1054
    self.send_settlePurchaseReturn(id)
1055
    self.recv_settlePurchaseReturn()
1056
 
1057
  def send_settlePurchaseReturn(self, id):
1058
    self._oprot.writeMessageBegin('settlePurchaseReturn', TMessageType.CALL, self._seqid)
1059
    args = settlePurchaseReturn_args()
1060
    args.id = id
1061
    args.write(self._oprot)
1062
    self._oprot.writeMessageEnd()
1063
    self._oprot.trans.flush()
1064
 
1065
  def recv_settlePurchaseReturn(self, ):
1066
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1067
    if mtype == TMessageType.EXCEPTION:
1068
      x = TApplicationException()
1069
      x.read(self._iprot)
1070
      self._iprot.readMessageEnd()
1071
      raise x
1072
    result = settlePurchaseReturn_result()
1073
    result.read(self._iprot)
1074
    self._iprot.readMessageEnd()
1075
    return
1076
 
1077
  def getUnsettledPurchaseReturns(self, ):
1078
    """
1079
    Create a new Purchase Return
1080
    """
1081
    self.send_getUnsettledPurchaseReturns()
1082
    return self.recv_getUnsettledPurchaseReturns()
1083
 
1084
  def send_getUnsettledPurchaseReturns(self, ):
1085
    self._oprot.writeMessageBegin('getUnsettledPurchaseReturns', TMessageType.CALL, self._seqid)
1086
    args = getUnsettledPurchaseReturns_args()
1087
    args.write(self._oprot)
1088
    self._oprot.writeMessageEnd()
1089
    self._oprot.trans.flush()
1090
 
1091
  def recv_getUnsettledPurchaseReturns(self, ):
1092
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1093
    if mtype == TMessageType.EXCEPTION:
1094
      x = TApplicationException()
1095
      x.read(self._iprot)
1096
      self._iprot.readMessageEnd()
1097
      raise x
1098
    result = getUnsettledPurchaseReturns_result()
1099
    result.read(self._iprot)
1100
    self._iprot.readMessageEnd()
1101
    if result.success is not None:
1102
      return result.success
1103
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getUnsettledPurchaseReturns failed: unknown result");
1104
 
6630 amar.kumar 1105
  def getInvoice(self, invoiceNumber, supplierId):
1106
    """
1107
    Get invoice with given supplierId and invoiceNumber
6467 amar.kumar 1108
 
6630 amar.kumar 1109
    Parameters:
1110
     - invoiceNumber
1111
     - supplierId
1112
    """
1113
    self.send_getInvoice(invoiceNumber, supplierId)
1114
    return self.recv_getInvoice()
1115
 
1116
  def send_getInvoice(self, invoiceNumber, supplierId):
1117
    self._oprot.writeMessageBegin('getInvoice', TMessageType.CALL, self._seqid)
1118
    args = getInvoice_args()
1119
    args.invoiceNumber = invoiceNumber
1120
    args.supplierId = supplierId
1121
    args.write(self._oprot)
1122
    self._oprot.writeMessageEnd()
1123
    self._oprot.trans.flush()
1124
 
1125
  def recv_getInvoice(self, ):
1126
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1127
    if mtype == TMessageType.EXCEPTION:
1128
      x = TApplicationException()
1129
      x.read(self._iprot)
1130
      self._iprot.readMessageEnd()
1131
      raise x
1132
    result = getInvoice_result()
1133
    result.read(self._iprot)
1134
    self._iprot.readMessageEnd()
1135
    if result.success is not None:
1136
      return result.success
1137
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInvoice failed: unknown result");
1138
 
7672 rajveer 1139
  def createPurchaseForOurExtBilling(self, invoiceNumber, unitPrice, nlc, itemId):
6762 amar.kumar 1140
    """
1141
     * Inserts new Invoice/LineItem/Purchase Entries for Billed Product done through Our External Billing
1142
    *
6630 amar.kumar 1143
 
6762 amar.kumar 1144
    Parameters:
1145
     - invoiceNumber
1146
     - unitPrice
7672 rajveer 1147
     - nlc
6762 amar.kumar 1148
     - itemId
1149
    """
7672 rajveer 1150
    self.send_createPurchaseForOurExtBilling(invoiceNumber, unitPrice, nlc, itemId)
6762 amar.kumar 1151
    return self.recv_createPurchaseForOurExtBilling()
1152
 
7672 rajveer 1153
  def send_createPurchaseForOurExtBilling(self, invoiceNumber, unitPrice, nlc, itemId):
6762 amar.kumar 1154
    self._oprot.writeMessageBegin('createPurchaseForOurExtBilling', TMessageType.CALL, self._seqid)
1155
    args = createPurchaseForOurExtBilling_args()
1156
    args.invoiceNumber = invoiceNumber
1157
    args.unitPrice = unitPrice
7672 rajveer 1158
    args.nlc = nlc
6762 amar.kumar 1159
    args.itemId = itemId
1160
    args.write(self._oprot)
1161
    self._oprot.writeMessageEnd()
1162
    self._oprot.trans.flush()
1163
 
1164
  def recv_createPurchaseForOurExtBilling(self, ):
1165
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1166
    if mtype == TMessageType.EXCEPTION:
1167
      x = TApplicationException()
1168
      x.read(self._iprot)
1169
      self._iprot.readMessageEnd()
1170
      raise x
1171
    result = createPurchaseForOurExtBilling_result()
1172
    result.read(self._iprot)
1173
    self._iprot.readMessageEnd()
1174
    if result.success is not None:
1175
      return result.success
1176
    raise TApplicationException(TApplicationException.MISSING_RESULT, "createPurchaseForOurExtBilling failed: unknown result");
1177
 
1178
  def fulfillPOForExtBilling(self, itemId, quantity):
1179
    """
1180
    Parameters:
1181
     - itemId
1182
     - quantity
1183
    """
1184
    self.send_fulfillPOForExtBilling(itemId, quantity)
1185
    self.recv_fulfillPOForExtBilling()
1186
 
1187
  def send_fulfillPOForExtBilling(self, itemId, quantity):
1188
    self._oprot.writeMessageBegin('fulfillPOForExtBilling', TMessageType.CALL, self._seqid)
1189
    args = fulfillPOForExtBilling_args()
1190
    args.itemId = itemId
1191
    args.quantity = quantity
1192
    args.write(self._oprot)
1193
    self._oprot.writeMessageEnd()
1194
    self._oprot.trans.flush()
1195
 
1196
  def recv_fulfillPOForExtBilling(self, ):
1197
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1198
    if mtype == TMessageType.EXCEPTION:
1199
      x = TApplicationException()
1200
      x.read(self._iprot)
1201
      self._iprot.readMessageEnd()
1202
      raise x
1203
    result = fulfillPOForExtBilling_result()
1204
    result.read(self._iprot)
1205
    self._iprot.readMessageEnd()
1206
    return
1207
 
7410 amar.kumar 1208
  def closePO(self, poId):
1209
    """
1210
    Marks a purchase order as closedcomplete and updates the receivedOn time.
6762 amar.kumar 1211
 
7410 amar.kumar 1212
    Parameters:
1213
     - poId
1214
    """
1215
    self.send_closePO(poId)
1216
    self.recv_closePO()
1217
 
1218
  def send_closePO(self, poId):
1219
    self._oprot.writeMessageBegin('closePO', TMessageType.CALL, self._seqid)
1220
    args = closePO_args()
1221
    args.poId = poId
1222
    args.write(self._oprot)
1223
    self._oprot.writeMessageEnd()
1224
    self._oprot.trans.flush()
1225
 
1226
  def recv_closePO(self, ):
1227
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1228
    if mtype == TMessageType.EXCEPTION:
1229
      x = TApplicationException()
1230
      x.read(self._iprot)
1231
      self._iprot.readMessageEnd()
1232
      raise x
1233
    result = closePO_result()
1234
    result.read(self._iprot)
1235
    self._iprot.readMessageEnd()
1236
    if result.e is not None:
1237
      raise result.e
1238
    return
1239
 
1240
  def isInvoiceReceived(self, invoiceNumber, supplierId):
1241
    """
1242
    Check if invoice is already received with given supplierId and invoiceNumber
1243
 
1244
    Parameters:
1245
     - invoiceNumber
1246
     - supplierId
1247
    """
1248
    self.send_isInvoiceReceived(invoiceNumber, supplierId)
1249
    return self.recv_isInvoiceReceived()
1250
 
1251
  def send_isInvoiceReceived(self, invoiceNumber, supplierId):
1252
    self._oprot.writeMessageBegin('isInvoiceReceived', TMessageType.CALL, self._seqid)
1253
    args = isInvoiceReceived_args()
1254
    args.invoiceNumber = invoiceNumber
1255
    args.supplierId = supplierId
1256
    args.write(self._oprot)
1257
    self._oprot.writeMessageEnd()
1258
    self._oprot.trans.flush()
1259
 
1260
  def recv_isInvoiceReceived(self, ):
1261
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1262
    if mtype == TMessageType.EXCEPTION:
1263
      x = TApplicationException()
1264
      x.read(self._iprot)
1265
      self._iprot.readMessageEnd()
1266
      raise x
1267
    result = isInvoiceReceived_result()
1268
    result.read(self._iprot)
1269
    self._iprot.readMessageEnd()
1270
    if result.success is not None:
1271
      return result.success
1272
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isInvoiceReceived failed: unknown result");
1273
 
9829 amar.kumar 1274
  def changeWarehouseForPO(self, id, warehouseId):
1275
    """
1276
    Change warehouseId of PO if no items have been received yet for the PO
7410 amar.kumar 1277
 
9829 amar.kumar 1278
    Parameters:
1279
     - id
1280
     - warehouseId
1281
    """
1282
    self.send_changeWarehouseForPO(id, warehouseId)
1283
    self.recv_changeWarehouseForPO()
1284
 
1285
  def send_changeWarehouseForPO(self, id, warehouseId):
1286
    self._oprot.writeMessageBegin('changeWarehouseForPO', TMessageType.CALL, self._seqid)
1287
    args = changeWarehouseForPO_args()
1288
    args.id = id
1289
    args.warehouseId = warehouseId
1290
    args.write(self._oprot)
1291
    self._oprot.writeMessageEnd()
1292
    self._oprot.trans.flush()
1293
 
1294
  def recv_changeWarehouseForPO(self, ):
1295
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1296
    if mtype == TMessageType.EXCEPTION:
1297
      x = TApplicationException()
1298
      x.read(self._iprot)
1299
      self._iprot.readMessageEnd()
1300
      raise x
1301
    result = changeWarehouseForPO_result()
1302
    result.read(self._iprot)
1303
    self._iprot.readMessageEnd()
1304
    if result.e is not None:
1305
      raise result.e
1306
    return
1307
 
9925 amar.kumar 1308
  def changePOStatus(self, id, poStatus):
1309
    """
1310
    Change status of PO
9829 amar.kumar 1311
 
9925 amar.kumar 1312
    Parameters:
1313
     - id
1314
     - poStatus
1315
    """
1316
    self.send_changePOStatus(id, poStatus)
1317
    self.recv_changePOStatus()
1318
 
1319
  def send_changePOStatus(self, id, poStatus):
1320
    self._oprot.writeMessageBegin('changePOStatus', TMessageType.CALL, self._seqid)
1321
    args = changePOStatus_args()
1322
    args.id = id
1323
    args.poStatus = poStatus
1324
    args.write(self._oprot)
1325
    self._oprot.writeMessageEnd()
1326
    self._oprot.trans.flush()
1327
 
1328
  def recv_changePOStatus(self, ):
1329
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1330
    if mtype == TMessageType.EXCEPTION:
1331
      x = TApplicationException()
1332
      x.read(self._iprot)
1333
      self._iprot.readMessageEnd()
1334
      raise x
1335
    result = changePOStatus_result()
1336
    result.read(self._iprot)
1337
    self._iprot.readMessageEnd()
1338
    if result.e is not None:
1339
      raise result.e
1340
    return
1341
 
11751 manish.sha 1342
  def getPurchaseReturn(self, id):
1343
    """
1344
    Get Purchase Return from Id
9925 amar.kumar 1345
 
11751 manish.sha 1346
    Parameters:
1347
     - id
1348
    """
1349
    self.send_getPurchaseReturn(id)
1350
    return self.recv_getPurchaseReturn()
1351
 
1352
  def send_getPurchaseReturn(self, id):
1353
    self._oprot.writeMessageBegin('getPurchaseReturn', TMessageType.CALL, self._seqid)
1354
    args = getPurchaseReturn_args()
1355
    args.id = id
1356
    args.write(self._oprot)
1357
    self._oprot.writeMessageEnd()
1358
    self._oprot.trans.flush()
1359
 
1360
  def recv_getPurchaseReturn(self, ):
1361
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1362
    if mtype == TMessageType.EXCEPTION:
1363
      x = TApplicationException()
1364
      x.read(self._iprot)
1365
      self._iprot.readMessageEnd()
1366
      raise x
1367
    result = getPurchaseReturn_result()
1368
    result.read(self._iprot)
1369
    self._iprot.readMessageEnd()
1370
    if result.success is not None:
1371
      return result.success
1372
    if result.e is not None:
1373
      raise result.e
1374
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseReturn failed: unknown result");
1375
 
13600 manish.sha 1376
  def markPurchasereturnSettled(self, id, settlementType, documentNumber, settlementBy, settledAmount):
1377
    """
1378
    Parameters:
1379
     - id
1380
     - settlementType
1381
     - documentNumber
1382
     - settlementBy
1383
     - settledAmount
1384
    """
1385
    self.send_markPurchasereturnSettled(id, settlementType, documentNumber, settlementBy, settledAmount)
1386
    return self.recv_markPurchasereturnSettled()
11751 manish.sha 1387
 
13600 manish.sha 1388
  def send_markPurchasereturnSettled(self, id, settlementType, documentNumber, settlementBy, settledAmount):
1389
    self._oprot.writeMessageBegin('markPurchasereturnSettled', TMessageType.CALL, self._seqid)
1390
    args = markPurchasereturnSettled_args()
1391
    args.id = id
1392
    args.settlementType = settlementType
1393
    args.documentNumber = documentNumber
1394
    args.settlementBy = settlementBy
1395
    args.settledAmount = settledAmount
1396
    args.write(self._oprot)
1397
    self._oprot.writeMessageEnd()
1398
    self._oprot.trans.flush()
1399
 
1400
  def recv_markPurchasereturnSettled(self, ):
1401
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1402
    if mtype == TMessageType.EXCEPTION:
1403
      x = TApplicationException()
1404
      x.read(self._iprot)
1405
      self._iprot.readMessageEnd()
1406
      raise x
1407
    result = markPurchasereturnSettled_result()
1408
    result.read(self._iprot)
1409
    self._iprot.readMessageEnd()
1410
    if result.success is not None:
1411
      return result.success
1412
    if result.e is not None:
1413
      raise result.e
1414
    raise TApplicationException(TApplicationException.MISSING_RESULT, "markPurchasereturnSettled failed: unknown result");
1415
 
1416
  def getPrSettlementsForPurchaseReturn(self, purchaseReturnId):
1417
    """
1418
    Parameters:
1419
     - purchaseReturnId
1420
    """
1421
    self.send_getPrSettlementsForPurchaseReturn(purchaseReturnId)
1422
    return self.recv_getPrSettlementsForPurchaseReturn()
1423
 
1424
  def send_getPrSettlementsForPurchaseReturn(self, purchaseReturnId):
1425
    self._oprot.writeMessageBegin('getPrSettlementsForPurchaseReturn', TMessageType.CALL, self._seqid)
1426
    args = getPrSettlementsForPurchaseReturn_args()
1427
    args.purchaseReturnId = purchaseReturnId
1428
    args.write(self._oprot)
1429
    self._oprot.writeMessageEnd()
1430
    self._oprot.trans.flush()
1431
 
1432
  def recv_getPrSettlementsForPurchaseReturn(self, ):
1433
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1434
    if mtype == TMessageType.EXCEPTION:
1435
      x = TApplicationException()
1436
      x.read(self._iprot)
1437
      self._iprot.readMessageEnd()
1438
      raise x
1439
    result = getPrSettlementsForPurchaseReturn_result()
1440
    result.read(self._iprot)
1441
    self._iprot.readMessageEnd()
1442
    if result.success is not None:
1443
      return result.success
1444
    if result.e is not None:
1445
      raise result.e
1446
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPrSettlementsForPurchaseReturn failed: unknown result");
1447
 
1448
  def updatePurchaseReturn(self, purchaseReturn):
1449
    """
1450
    Parameters:
1451
     - purchaseReturn
1452
    """
1453
    self.send_updatePurchaseReturn(purchaseReturn)
1454
    self.recv_updatePurchaseReturn()
1455
 
1456
  def send_updatePurchaseReturn(self, purchaseReturn):
1457
    self._oprot.writeMessageBegin('updatePurchaseReturn', TMessageType.CALL, self._seqid)
1458
    args = updatePurchaseReturn_args()
1459
    args.purchaseReturn = purchaseReturn
1460
    args.write(self._oprot)
1461
    self._oprot.writeMessageEnd()
1462
    self._oprot.trans.flush()
1463
 
1464
  def recv_updatePurchaseReturn(self, ):
1465
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
1466
    if mtype == TMessageType.EXCEPTION:
1467
      x = TApplicationException()
1468
      x.read(self._iprot)
1469
      self._iprot.readMessageEnd()
1470
      raise x
1471
    result = updatePurchaseReturn_result()
1472
    result.read(self._iprot)
1473
    self._iprot.readMessageEnd()
1474
    if result.e is not None:
1475
      raise result.e
1476
    return
1477
 
1478
 
4502 mandeep.dh 1479
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1480
  def __init__(self, handler):
1481
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1482
    self._processMap["createPurchaseOrder"] = Processor.process_createPurchaseOrder
1483
    self._processMap["getPurchaseOrder"] = Processor.process_getPurchaseOrder
1484
    self._processMap["getAllPurchaseOrders"] = Processor.process_getAllPurchaseOrders
1485
    self._processMap["getSupplier"] = Processor.process_getSupplier
1486
    self._processMap["startPurchase"] = Processor.process_startPurchase
1487
    self._processMap["closePurchase"] = Processor.process_closePurchase
1488
    self._processMap["getAllPurchases"] = Processor.process_getAllPurchases
6386 amar.kumar 1489
    self._processMap["getPurchasesForPO"] = Processor.process_getPurchasesForPO
4555 mandeep.dh 1490
    self._processMap["getPurchaseOrderForPurchase"] = Processor.process_getPurchaseOrderForPurchase
4754 mandeep.dh 1491
    self._processMap["getPendingPurchaseOrders"] = Processor.process_getPendingPurchaseOrders
1492
    self._processMap["getSuppliers"] = Processor.process_getSuppliers
21847 amit.gupta 1493
    self._processMap["getAllSuppliers"] = Processor.process_getAllSuppliers
4754 mandeep.dh 1494
    self._processMap["fulfillPO"] = Processor.process_fulfillPO
1495
    self._processMap["updatePurchaseOrder"] = Processor.process_updatePurchaseOrder
5185 mandeep.dh 1496
    self._processMap["unFulfillPO"] = Processor.process_unFulfillPO
5443 mandeep.dh 1497
    self._processMap["getInvoices"] = Processor.process_getInvoices
7410 amar.kumar 1498
    self._processMap["getInvoicesForWarehouse"] = Processor.process_getInvoicesForWarehouse
5443 mandeep.dh 1499
    self._processMap["createInvoice"] = Processor.process_createInvoice
5591 mandeep.dh 1500
    self._processMap["addSupplier"] = Processor.process_addSupplier
1501
    self._processMap["updateSupplier"] = Processor.process_updateSupplier
6467 amar.kumar 1502
    self._processMap["createPurchaseReturn"] = Processor.process_createPurchaseReturn
1503
    self._processMap["settlePurchaseReturn"] = Processor.process_settlePurchaseReturn
1504
    self._processMap["getUnsettledPurchaseReturns"] = Processor.process_getUnsettledPurchaseReturns
6630 amar.kumar 1505
    self._processMap["getInvoice"] = Processor.process_getInvoice
6762 amar.kumar 1506
    self._processMap["createPurchaseForOurExtBilling"] = Processor.process_createPurchaseForOurExtBilling
1507
    self._processMap["fulfillPOForExtBilling"] = Processor.process_fulfillPOForExtBilling
7410 amar.kumar 1508
    self._processMap["closePO"] = Processor.process_closePO
1509
    self._processMap["isInvoiceReceived"] = Processor.process_isInvoiceReceived
9829 amar.kumar 1510
    self._processMap["changeWarehouseForPO"] = Processor.process_changeWarehouseForPO
9925 amar.kumar 1511
    self._processMap["changePOStatus"] = Processor.process_changePOStatus
11751 manish.sha 1512
    self._processMap["getPurchaseReturn"] = Processor.process_getPurchaseReturn
13600 manish.sha 1513
    self._processMap["markPurchasereturnSettled"] = Processor.process_markPurchasereturnSettled
1514
    self._processMap["getPrSettlementsForPurchaseReturn"] = Processor.process_getPrSettlementsForPurchaseReturn
1515
    self._processMap["updatePurchaseReturn"] = Processor.process_updatePurchaseReturn
4502 mandeep.dh 1516
 
1517
  def process(self, iprot, oprot):
1518
    (name, type, seqid) = iprot.readMessageBegin()
1519
    if name not in self._processMap:
1520
      iprot.skip(TType.STRUCT)
1521
      iprot.readMessageEnd()
1522
      x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))
1523
      oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)
1524
      x.write(oprot)
1525
      oprot.writeMessageEnd()
1526
      oprot.trans.flush()
1527
      return
1528
    else:
1529
      self._processMap[name](self, seqid, iprot, oprot)
1530
    return True
1531
 
1532
  def process_createPurchaseOrder(self, seqid, iprot, oprot):
1533
    args = createPurchaseOrder_args()
1534
    args.read(iprot)
1535
    iprot.readMessageEnd()
1536
    result = createPurchaseOrder_result()
1537
    try:
1538
      result.success = self._handler.createPurchaseOrder(args.purchaseOrder)
1539
    except PurchaseServiceException, e:
1540
      result.e = e
1541
    oprot.writeMessageBegin("createPurchaseOrder", TMessageType.REPLY, seqid)
1542
    result.write(oprot)
1543
    oprot.writeMessageEnd()
1544
    oprot.trans.flush()
1545
 
1546
  def process_getPurchaseOrder(self, seqid, iprot, oprot):
1547
    args = getPurchaseOrder_args()
1548
    args.read(iprot)
1549
    iprot.readMessageEnd()
1550
    result = getPurchaseOrder_result()
1551
    try:
1552
      result.success = self._handler.getPurchaseOrder(args.id)
1553
    except PurchaseServiceException, e:
1554
      result.e = e
1555
    oprot.writeMessageBegin("getPurchaseOrder", TMessageType.REPLY, seqid)
1556
    result.write(oprot)
1557
    oprot.writeMessageEnd()
1558
    oprot.trans.flush()
1559
 
1560
  def process_getAllPurchaseOrders(self, seqid, iprot, oprot):
1561
    args = getAllPurchaseOrders_args()
1562
    args.read(iprot)
1563
    iprot.readMessageEnd()
1564
    result = getAllPurchaseOrders_result()
1565
    try:
1566
      result.success = self._handler.getAllPurchaseOrders(args.status)
1567
    except PurchaseServiceException, e:
1568
      result.e = e
1569
    oprot.writeMessageBegin("getAllPurchaseOrders", TMessageType.REPLY, seqid)
1570
    result.write(oprot)
1571
    oprot.writeMessageEnd()
1572
    oprot.trans.flush()
1573
 
1574
  def process_getSupplier(self, seqid, iprot, oprot):
1575
    args = getSupplier_args()
1576
    args.read(iprot)
1577
    iprot.readMessageEnd()
1578
    result = getSupplier_result()
1579
    try:
1580
      result.success = self._handler.getSupplier(args.id)
1581
    except PurchaseServiceException, e:
1582
      result.e = e
1583
    oprot.writeMessageBegin("getSupplier", TMessageType.REPLY, seqid)
1584
    result.write(oprot)
1585
    oprot.writeMessageEnd()
1586
    oprot.trans.flush()
1587
 
1588
  def process_startPurchase(self, seqid, iprot, oprot):
1589
    args = startPurchase_args()
1590
    args.read(iprot)
1591
    iprot.readMessageEnd()
1592
    result = startPurchase_result()
1593
    try:
11801 manish.sha 1594
      result.success = self._handler.startPurchase(args.purchaseOrderId, args.invoiceNumber, args.freightCharges, args.purchaseComments)
4502 mandeep.dh 1595
    except PurchaseServiceException, e:
1596
      result.e = e
1597
    oprot.writeMessageBegin("startPurchase", TMessageType.REPLY, seqid)
1598
    result.write(oprot)
1599
    oprot.writeMessageEnd()
1600
    oprot.trans.flush()
1601
 
1602
  def process_closePurchase(self, seqid, iprot, oprot):
1603
    args = closePurchase_args()
1604
    args.read(iprot)
1605
    iprot.readMessageEnd()
1606
    result = closePurchase_result()
1607
    try:
1608
      result.success = self._handler.closePurchase(args.purchaseId)
1609
    except PurchaseServiceException, e:
1610
      result.e = e
1611
    oprot.writeMessageBegin("closePurchase", TMessageType.REPLY, seqid)
1612
    result.write(oprot)
1613
    oprot.writeMessageEnd()
1614
    oprot.trans.flush()
1615
 
1616
  def process_getAllPurchases(self, seqid, iprot, oprot):
1617
    args = getAllPurchases_args()
1618
    args.read(iprot)
1619
    iprot.readMessageEnd()
1620
    result = getAllPurchases_result()
1621
    try:
1622
      result.success = self._handler.getAllPurchases(args.purchaseOrderId, args.open)
1623
    except PurchaseServiceException, e:
1624
      result.e = e
1625
    oprot.writeMessageBegin("getAllPurchases", TMessageType.REPLY, seqid)
1626
    result.write(oprot)
1627
    oprot.writeMessageEnd()
1628
    oprot.trans.flush()
1629
 
6386 amar.kumar 1630
  def process_getPurchasesForPO(self, seqid, iprot, oprot):
1631
    args = getPurchasesForPO_args()
1632
    args.read(iprot)
1633
    iprot.readMessageEnd()
1634
    result = getPurchasesForPO_result()
1635
    try:
1636
      result.success = self._handler.getPurchasesForPO(args.purchaseOrderId)
1637
    except PurchaseServiceException, e:
1638
      result.e = e
1639
    oprot.writeMessageBegin("getPurchasesForPO", TMessageType.REPLY, seqid)
1640
    result.write(oprot)
1641
    oprot.writeMessageEnd()
1642
    oprot.trans.flush()
1643
 
4555 mandeep.dh 1644
  def process_getPurchaseOrderForPurchase(self, seqid, iprot, oprot):
1645
    args = getPurchaseOrderForPurchase_args()
4502 mandeep.dh 1646
    args.read(iprot)
1647
    iprot.readMessageEnd()
4555 mandeep.dh 1648
    result = getPurchaseOrderForPurchase_result()
1649
    result.success = self._handler.getPurchaseOrderForPurchase(args.purchaseId)
1650
    oprot.writeMessageBegin("getPurchaseOrderForPurchase", TMessageType.REPLY, seqid)
4502 mandeep.dh 1651
    result.write(oprot)
1652
    oprot.writeMessageEnd()
1653
    oprot.trans.flush()
1654
 
4754 mandeep.dh 1655
  def process_getPendingPurchaseOrders(self, seqid, iprot, oprot):
1656
    args = getPendingPurchaseOrders_args()
1657
    args.read(iprot)
1658
    iprot.readMessageEnd()
1659
    result = getPendingPurchaseOrders_result()
1660
    try:
1661
      result.success = self._handler.getPendingPurchaseOrders(args.warehouseId)
1662
    except PurchaseServiceException, e:
1663
      result.e = e
1664
    oprot.writeMessageBegin("getPendingPurchaseOrders", TMessageType.REPLY, seqid)
1665
    result.write(oprot)
1666
    oprot.writeMessageEnd()
1667
    oprot.trans.flush()
4502 mandeep.dh 1668
 
4754 mandeep.dh 1669
  def process_getSuppliers(self, seqid, iprot, oprot):
1670
    args = getSuppliers_args()
1671
    args.read(iprot)
1672
    iprot.readMessageEnd()
1673
    result = getSuppliers_result()
1674
    try:
1675
      result.success = self._handler.getSuppliers()
1676
    except PurchaseServiceException, e:
1677
      result.e = e
1678
    oprot.writeMessageBegin("getSuppliers", TMessageType.REPLY, seqid)
1679
    result.write(oprot)
1680
    oprot.writeMessageEnd()
1681
    oprot.trans.flush()
1682
 
21847 amit.gupta 1683
  def process_getAllSuppliers(self, seqid, iprot, oprot):
1684
    args = getAllSuppliers_args()
1685
    args.read(iprot)
1686
    iprot.readMessageEnd()
1687
    result = getAllSuppliers_result()
1688
    try:
1689
      result.success = self._handler.getAllSuppliers()
1690
    except PurchaseServiceException, e:
1691
      result.e = e
1692
    oprot.writeMessageBegin("getAllSuppliers", TMessageType.REPLY, seqid)
1693
    result.write(oprot)
1694
    oprot.writeMessageEnd()
1695
    oprot.trans.flush()
1696
 
4754 mandeep.dh 1697
  def process_fulfillPO(self, seqid, iprot, oprot):
1698
    args = fulfillPO_args()
1699
    args.read(iprot)
1700
    iprot.readMessageEnd()
1701
    result = fulfillPO_result()
1702
    try:
1703
      self._handler.fulfillPO(args.purchaseOrderId, args.itemId, args.quantity)
1704
    except PurchaseServiceException, e:
1705
      result.e = e
1706
    oprot.writeMessageBegin("fulfillPO", TMessageType.REPLY, seqid)
1707
    result.write(oprot)
1708
    oprot.writeMessageEnd()
1709
    oprot.trans.flush()
1710
 
1711
  def process_updatePurchaseOrder(self, seqid, iprot, oprot):
1712
    args = updatePurchaseOrder_args()
1713
    args.read(iprot)
1714
    iprot.readMessageEnd()
1715
    result = updatePurchaseOrder_result()
1716
    try:
1717
      self._handler.updatePurchaseOrder(args.purchaseOrder)
1718
    except PurchaseServiceException, e:
1719
      result.e = e
1720
    oprot.writeMessageBegin("updatePurchaseOrder", TMessageType.REPLY, seqid)
1721
    result.write(oprot)
1722
    oprot.writeMessageEnd()
1723
    oprot.trans.flush()
1724
 
5185 mandeep.dh 1725
  def process_unFulfillPO(self, seqid, iprot, oprot):
1726
    args = unFulfillPO_args()
1727
    args.read(iprot)
1728
    iprot.readMessageEnd()
1729
    result = unFulfillPO_result()
1730
    try:
1731
      self._handler.unFulfillPO(args.purchaseId, args.itemId, args.quantity)
1732
    except PurchaseServiceException, e:
1733
      result.e = e
1734
    oprot.writeMessageBegin("unFulfillPO", TMessageType.REPLY, seqid)
1735
    result.write(oprot)
1736
    oprot.writeMessageEnd()
1737
    oprot.trans.flush()
4754 mandeep.dh 1738
 
5443 mandeep.dh 1739
  def process_getInvoices(self, seqid, iprot, oprot):
1740
    args = getInvoices_args()
1741
    args.read(iprot)
1742
    iprot.readMessageEnd()
1743
    result = getInvoices_result()
1744
    result.success = self._handler.getInvoices(args.date)
1745
    oprot.writeMessageBegin("getInvoices", TMessageType.REPLY, seqid)
1746
    result.write(oprot)
1747
    oprot.writeMessageEnd()
1748
    oprot.trans.flush()
5185 mandeep.dh 1749
 
7410 amar.kumar 1750
  def process_getInvoicesForWarehouse(self, seqid, iprot, oprot):
1751
    args = getInvoicesForWarehouse_args()
1752
    args.read(iprot)
1753
    iprot.readMessageEnd()
1754
    result = getInvoicesForWarehouse_result()
1755
    result.success = self._handler.getInvoicesForWarehouse(args.warehouseId, args.supplierId, args.date)
1756
    oprot.writeMessageBegin("getInvoicesForWarehouse", TMessageType.REPLY, seqid)
1757
    result.write(oprot)
1758
    oprot.writeMessageEnd()
1759
    oprot.trans.flush()
1760
 
5443 mandeep.dh 1761
  def process_createInvoice(self, seqid, iprot, oprot):
1762
    args = createInvoice_args()
1763
    args.read(iprot)
1764
    iprot.readMessageEnd()
1765
    result = createInvoice_result()
1766
    try:
1767
      self._handler.createInvoice(args.invoice)
1768
    except PurchaseServiceException, e:
1769
      result.e = e
1770
    oprot.writeMessageBegin("createInvoice", TMessageType.REPLY, seqid)
1771
    result.write(oprot)
1772
    oprot.writeMessageEnd()
1773
    oprot.trans.flush()
1774
 
5591 mandeep.dh 1775
  def process_addSupplier(self, seqid, iprot, oprot):
1776
    args = addSupplier_args()
1777
    args.read(iprot)
1778
    iprot.readMessageEnd()
1779
    result = addSupplier_result()
1780
    result.success = self._handler.addSupplier(args.supplier)
1781
    oprot.writeMessageBegin("addSupplier", TMessageType.REPLY, seqid)
1782
    result.write(oprot)
1783
    oprot.writeMessageEnd()
1784
    oprot.trans.flush()
5443 mandeep.dh 1785
 
5591 mandeep.dh 1786
  def process_updateSupplier(self, seqid, iprot, oprot):
1787
    args = updateSupplier_args()
1788
    args.read(iprot)
1789
    iprot.readMessageEnd()
1790
    result = updateSupplier_result()
1791
    self._handler.updateSupplier(args.supplier)
1792
    oprot.writeMessageBegin("updateSupplier", TMessageType.REPLY, seqid)
1793
    result.write(oprot)
1794
    oprot.writeMessageEnd()
1795
    oprot.trans.flush()
1796
 
6467 amar.kumar 1797
  def process_createPurchaseReturn(self, seqid, iprot, oprot):
1798
    args = createPurchaseReturn_args()
1799
    args.read(iprot)
1800
    iprot.readMessageEnd()
1801
    result = createPurchaseReturn_result()
1802
    result.success = self._handler.createPurchaseReturn(args.purchaseReturn)
1803
    oprot.writeMessageBegin("createPurchaseReturn", TMessageType.REPLY, seqid)
1804
    result.write(oprot)
1805
    oprot.writeMessageEnd()
1806
    oprot.trans.flush()
5591 mandeep.dh 1807
 
6467 amar.kumar 1808
  def process_settlePurchaseReturn(self, seqid, iprot, oprot):
1809
    args = settlePurchaseReturn_args()
1810
    args.read(iprot)
1811
    iprot.readMessageEnd()
1812
    result = settlePurchaseReturn_result()
1813
    self._handler.settlePurchaseReturn(args.id)
1814
    oprot.writeMessageBegin("settlePurchaseReturn", TMessageType.REPLY, seqid)
1815
    result.write(oprot)
1816
    oprot.writeMessageEnd()
1817
    oprot.trans.flush()
1818
 
1819
  def process_getUnsettledPurchaseReturns(self, seqid, iprot, oprot):
1820
    args = getUnsettledPurchaseReturns_args()
1821
    args.read(iprot)
1822
    iprot.readMessageEnd()
1823
    result = getUnsettledPurchaseReturns_result()
1824
    result.success = self._handler.getUnsettledPurchaseReturns()
1825
    oprot.writeMessageBegin("getUnsettledPurchaseReturns", TMessageType.REPLY, seqid)
1826
    result.write(oprot)
1827
    oprot.writeMessageEnd()
1828
    oprot.trans.flush()
1829
 
6630 amar.kumar 1830
  def process_getInvoice(self, seqid, iprot, oprot):
1831
    args = getInvoice_args()
1832
    args.read(iprot)
1833
    iprot.readMessageEnd()
1834
    result = getInvoice_result()
1835
    result.success = self._handler.getInvoice(args.invoiceNumber, args.supplierId)
1836
    oprot.writeMessageBegin("getInvoice", TMessageType.REPLY, seqid)
1837
    result.write(oprot)
1838
    oprot.writeMessageEnd()
1839
    oprot.trans.flush()
6467 amar.kumar 1840
 
6762 amar.kumar 1841
  def process_createPurchaseForOurExtBilling(self, seqid, iprot, oprot):
1842
    args = createPurchaseForOurExtBilling_args()
1843
    args.read(iprot)
1844
    iprot.readMessageEnd()
1845
    result = createPurchaseForOurExtBilling_result()
7672 rajveer 1846
    result.success = self._handler.createPurchaseForOurExtBilling(args.invoiceNumber, args.unitPrice, args.nlc, args.itemId)
6762 amar.kumar 1847
    oprot.writeMessageBegin("createPurchaseForOurExtBilling", TMessageType.REPLY, seqid)
1848
    result.write(oprot)
1849
    oprot.writeMessageEnd()
1850
    oprot.trans.flush()
6630 amar.kumar 1851
 
6762 amar.kumar 1852
  def process_fulfillPOForExtBilling(self, seqid, iprot, oprot):
1853
    args = fulfillPOForExtBilling_args()
1854
    args.read(iprot)
1855
    iprot.readMessageEnd()
1856
    result = fulfillPOForExtBilling_result()
1857
    self._handler.fulfillPOForExtBilling(args.itemId, args.quantity)
1858
    oprot.writeMessageBegin("fulfillPOForExtBilling", TMessageType.REPLY, seqid)
1859
    result.write(oprot)
1860
    oprot.writeMessageEnd()
1861
    oprot.trans.flush()
1862
 
7410 amar.kumar 1863
  def process_closePO(self, seqid, iprot, oprot):
1864
    args = closePO_args()
1865
    args.read(iprot)
1866
    iprot.readMessageEnd()
1867
    result = closePO_result()
1868
    try:
1869
      self._handler.closePO(args.poId)
1870
    except PurchaseServiceException, e:
1871
      result.e = e
1872
    oprot.writeMessageBegin("closePO", TMessageType.REPLY, seqid)
1873
    result.write(oprot)
1874
    oprot.writeMessageEnd()
1875
    oprot.trans.flush()
6762 amar.kumar 1876
 
7410 amar.kumar 1877
  def process_isInvoiceReceived(self, seqid, iprot, oprot):
1878
    args = isInvoiceReceived_args()
1879
    args.read(iprot)
1880
    iprot.readMessageEnd()
1881
    result = isInvoiceReceived_result()
1882
    result.success = self._handler.isInvoiceReceived(args.invoiceNumber, args.supplierId)
1883
    oprot.writeMessageBegin("isInvoiceReceived", TMessageType.REPLY, seqid)
1884
    result.write(oprot)
1885
    oprot.writeMessageEnd()
1886
    oprot.trans.flush()
1887
 
9829 amar.kumar 1888
  def process_changeWarehouseForPO(self, seqid, iprot, oprot):
1889
    args = changeWarehouseForPO_args()
1890
    args.read(iprot)
1891
    iprot.readMessageEnd()
1892
    result = changeWarehouseForPO_result()
1893
    try:
1894
      self._handler.changeWarehouseForPO(args.id, args.warehouseId)
1895
    except PurchaseServiceException, e:
1896
      result.e = e
1897
    oprot.writeMessageBegin("changeWarehouseForPO", TMessageType.REPLY, seqid)
1898
    result.write(oprot)
1899
    oprot.writeMessageEnd()
1900
    oprot.trans.flush()
7410 amar.kumar 1901
 
9925 amar.kumar 1902
  def process_changePOStatus(self, seqid, iprot, oprot):
1903
    args = changePOStatus_args()
1904
    args.read(iprot)
1905
    iprot.readMessageEnd()
1906
    result = changePOStatus_result()
1907
    try:
1908
      self._handler.changePOStatus(args.id, args.poStatus)
1909
    except PurchaseServiceException, e:
1910
      result.e = e
1911
    oprot.writeMessageBegin("changePOStatus", TMessageType.REPLY, seqid)
1912
    result.write(oprot)
1913
    oprot.writeMessageEnd()
1914
    oprot.trans.flush()
9829 amar.kumar 1915
 
11751 manish.sha 1916
  def process_getPurchaseReturn(self, seqid, iprot, oprot):
1917
    args = getPurchaseReturn_args()
1918
    args.read(iprot)
1919
    iprot.readMessageEnd()
1920
    result = getPurchaseReturn_result()
1921
    try:
1922
      result.success = self._handler.getPurchaseReturn(args.id)
1923
    except PurchaseServiceException, e:
1924
      result.e = e
1925
    oprot.writeMessageBegin("getPurchaseReturn", TMessageType.REPLY, seqid)
1926
    result.write(oprot)
1927
    oprot.writeMessageEnd()
1928
    oprot.trans.flush()
9925 amar.kumar 1929
 
13600 manish.sha 1930
  def process_markPurchasereturnSettled(self, seqid, iprot, oprot):
1931
    args = markPurchasereturnSettled_args()
1932
    args.read(iprot)
1933
    iprot.readMessageEnd()
1934
    result = markPurchasereturnSettled_result()
1935
    try:
1936
      result.success = self._handler.markPurchasereturnSettled(args.id, args.settlementType, args.documentNumber, args.settlementBy, args.settledAmount)
1937
    except PurchaseServiceException, e:
1938
      result.e = e
1939
    oprot.writeMessageBegin("markPurchasereturnSettled", TMessageType.REPLY, seqid)
1940
    result.write(oprot)
1941
    oprot.writeMessageEnd()
1942
    oprot.trans.flush()
11751 manish.sha 1943
 
13600 manish.sha 1944
  def process_getPrSettlementsForPurchaseReturn(self, seqid, iprot, oprot):
1945
    args = getPrSettlementsForPurchaseReturn_args()
1946
    args.read(iprot)
1947
    iprot.readMessageEnd()
1948
    result = getPrSettlementsForPurchaseReturn_result()
1949
    try:
1950
      result.success = self._handler.getPrSettlementsForPurchaseReturn(args.purchaseReturnId)
1951
    except PurchaseServiceException, e:
1952
      result.e = e
1953
    oprot.writeMessageBegin("getPrSettlementsForPurchaseReturn", TMessageType.REPLY, seqid)
1954
    result.write(oprot)
1955
    oprot.writeMessageEnd()
1956
    oprot.trans.flush()
1957
 
1958
  def process_updatePurchaseReturn(self, seqid, iprot, oprot):
1959
    args = updatePurchaseReturn_args()
1960
    args.read(iprot)
1961
    iprot.readMessageEnd()
1962
    result = updatePurchaseReturn_result()
1963
    try:
1964
      self._handler.updatePurchaseReturn(args.purchaseReturn)
1965
    except PurchaseServiceException, e:
1966
      result.e = e
1967
    oprot.writeMessageBegin("updatePurchaseReturn", TMessageType.REPLY, seqid)
1968
    result.write(oprot)
1969
    oprot.writeMessageEnd()
1970
    oprot.trans.flush()
1971
 
1972
 
4502 mandeep.dh 1973
# HELPER FUNCTIONS AND STRUCTURES
1974
 
1975
class createPurchaseOrder_args:
1976
  """
1977
  Attributes:
1978
   - purchaseOrder
1979
  """
1980
 
1981
  thrift_spec = (
1982
    None, # 0
1983
    (1, TType.STRUCT, 'purchaseOrder', (PurchaseOrder, PurchaseOrder.thrift_spec), None, ), # 1
1984
  )
1985
 
1986
  def __init__(self, purchaseOrder=None,):
1987
    self.purchaseOrder = purchaseOrder
1988
 
1989
  def read(self, iprot):
1990
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1991
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1992
      return
1993
    iprot.readStructBegin()
1994
    while True:
1995
      (fname, ftype, fid) = iprot.readFieldBegin()
1996
      if ftype == TType.STOP:
1997
        break
1998
      if fid == 1:
1999
        if ftype == TType.STRUCT:
2000
          self.purchaseOrder = PurchaseOrder()
2001
          self.purchaseOrder.read(iprot)
2002
        else:
2003
          iprot.skip(ftype)
2004
      else:
2005
        iprot.skip(ftype)
2006
      iprot.readFieldEnd()
2007
    iprot.readStructEnd()
2008
 
2009
  def write(self, oprot):
2010
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2011
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2012
      return
2013
    oprot.writeStructBegin('createPurchaseOrder_args')
2014
    if self.purchaseOrder is not None:
2015
      oprot.writeFieldBegin('purchaseOrder', TType.STRUCT, 1)
2016
      self.purchaseOrder.write(oprot)
2017
      oprot.writeFieldEnd()
2018
    oprot.writeFieldStop()
2019
    oprot.writeStructEnd()
2020
 
2021
  def validate(self):
2022
    return
2023
 
2024
 
2025
  def __repr__(self):
2026
    L = ['%s=%r' % (key, value)
2027
      for key, value in self.__dict__.iteritems()]
2028
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2029
 
2030
  def __eq__(self, other):
2031
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2032
 
2033
  def __ne__(self, other):
2034
    return not (self == other)
2035
 
2036
class createPurchaseOrder_result:
2037
  """
2038
  Attributes:
2039
   - success
2040
   - e
2041
  """
2042
 
2043
  thrift_spec = (
2044
    (0, TType.I64, 'success', None, None, ), # 0
2045
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
2046
  )
2047
 
2048
  def __init__(self, success=None, e=None,):
2049
    self.success = success
2050
    self.e = e
2051
 
2052
  def read(self, iprot):
2053
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2054
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2055
      return
2056
    iprot.readStructBegin()
2057
    while True:
2058
      (fname, ftype, fid) = iprot.readFieldBegin()
2059
      if ftype == TType.STOP:
2060
        break
2061
      if fid == 0:
2062
        if ftype == TType.I64:
2063
          self.success = iprot.readI64();
2064
        else:
2065
          iprot.skip(ftype)
2066
      elif fid == 1:
2067
        if ftype == TType.STRUCT:
2068
          self.e = PurchaseServiceException()
2069
          self.e.read(iprot)
2070
        else:
2071
          iprot.skip(ftype)
2072
      else:
2073
        iprot.skip(ftype)
2074
      iprot.readFieldEnd()
2075
    iprot.readStructEnd()
2076
 
2077
  def write(self, oprot):
2078
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2079
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2080
      return
2081
    oprot.writeStructBegin('createPurchaseOrder_result')
2082
    if self.success is not None:
2083
      oprot.writeFieldBegin('success', TType.I64, 0)
2084
      oprot.writeI64(self.success)
2085
      oprot.writeFieldEnd()
2086
    if self.e is not None:
2087
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
2088
      self.e.write(oprot)
2089
      oprot.writeFieldEnd()
2090
    oprot.writeFieldStop()
2091
    oprot.writeStructEnd()
2092
 
2093
  def validate(self):
2094
    return
2095
 
2096
 
2097
  def __repr__(self):
2098
    L = ['%s=%r' % (key, value)
2099
      for key, value in self.__dict__.iteritems()]
2100
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2101
 
2102
  def __eq__(self, other):
2103
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2104
 
2105
  def __ne__(self, other):
2106
    return not (self == other)
2107
 
2108
class getPurchaseOrder_args:
2109
  """
2110
  Attributes:
2111
   - id
2112
  """
2113
 
2114
  thrift_spec = (
2115
    None, # 0
2116
    (1, TType.I64, 'id', None, None, ), # 1
2117
  )
2118
 
2119
  def __init__(self, id=None,):
2120
    self.id = id
2121
 
2122
  def read(self, iprot):
2123
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2124
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2125
      return
2126
    iprot.readStructBegin()
2127
    while True:
2128
      (fname, ftype, fid) = iprot.readFieldBegin()
2129
      if ftype == TType.STOP:
2130
        break
2131
      if fid == 1:
2132
        if ftype == TType.I64:
2133
          self.id = iprot.readI64();
2134
        else:
2135
          iprot.skip(ftype)
2136
      else:
2137
        iprot.skip(ftype)
2138
      iprot.readFieldEnd()
2139
    iprot.readStructEnd()
2140
 
2141
  def write(self, oprot):
2142
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2143
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2144
      return
2145
    oprot.writeStructBegin('getPurchaseOrder_args')
2146
    if self.id is not None:
2147
      oprot.writeFieldBegin('id', TType.I64, 1)
2148
      oprot.writeI64(self.id)
2149
      oprot.writeFieldEnd()
2150
    oprot.writeFieldStop()
2151
    oprot.writeStructEnd()
2152
 
2153
  def validate(self):
2154
    return
2155
 
2156
 
2157
  def __repr__(self):
2158
    L = ['%s=%r' % (key, value)
2159
      for key, value in self.__dict__.iteritems()]
2160
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2161
 
2162
  def __eq__(self, other):
2163
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2164
 
2165
  def __ne__(self, other):
2166
    return not (self == other)
2167
 
2168
class getPurchaseOrder_result:
2169
  """
2170
  Attributes:
2171
   - success
2172
   - e
2173
  """
2174
 
2175
  thrift_spec = (
2176
    (0, TType.STRUCT, 'success', (PurchaseOrder, PurchaseOrder.thrift_spec), None, ), # 0
2177
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
2178
  )
2179
 
2180
  def __init__(self, success=None, e=None,):
2181
    self.success = success
2182
    self.e = e
2183
 
2184
  def read(self, iprot):
2185
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2186
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2187
      return
2188
    iprot.readStructBegin()
2189
    while True:
2190
      (fname, ftype, fid) = iprot.readFieldBegin()
2191
      if ftype == TType.STOP:
2192
        break
2193
      if fid == 0:
2194
        if ftype == TType.STRUCT:
2195
          self.success = PurchaseOrder()
2196
          self.success.read(iprot)
2197
        else:
2198
          iprot.skip(ftype)
2199
      elif fid == 1:
2200
        if ftype == TType.STRUCT:
2201
          self.e = PurchaseServiceException()
2202
          self.e.read(iprot)
2203
        else:
2204
          iprot.skip(ftype)
2205
      else:
2206
        iprot.skip(ftype)
2207
      iprot.readFieldEnd()
2208
    iprot.readStructEnd()
2209
 
2210
  def write(self, oprot):
2211
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2212
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2213
      return
2214
    oprot.writeStructBegin('getPurchaseOrder_result')
2215
    if self.success is not None:
2216
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2217
      self.success.write(oprot)
2218
      oprot.writeFieldEnd()
2219
    if self.e is not None:
2220
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
2221
      self.e.write(oprot)
2222
      oprot.writeFieldEnd()
2223
    oprot.writeFieldStop()
2224
    oprot.writeStructEnd()
2225
 
2226
  def validate(self):
2227
    return
2228
 
2229
 
2230
  def __repr__(self):
2231
    L = ['%s=%r' % (key, value)
2232
      for key, value in self.__dict__.iteritems()]
2233
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2234
 
2235
  def __eq__(self, other):
2236
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2237
 
2238
  def __ne__(self, other):
2239
    return not (self == other)
2240
 
2241
class getAllPurchaseOrders_args:
2242
  """
2243
  Attributes:
2244
   - status
2245
  """
2246
 
2247
  thrift_spec = (
2248
    None, # 0
2249
    (1, TType.I32, 'status', None, None, ), # 1
2250
  )
2251
 
2252
  def __init__(self, status=None,):
2253
    self.status = status
2254
 
2255
  def read(self, iprot):
2256
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2257
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2258
      return
2259
    iprot.readStructBegin()
2260
    while True:
2261
      (fname, ftype, fid) = iprot.readFieldBegin()
2262
      if ftype == TType.STOP:
2263
        break
2264
      if fid == 1:
2265
        if ftype == TType.I32:
2266
          self.status = iprot.readI32();
2267
        else:
2268
          iprot.skip(ftype)
2269
      else:
2270
        iprot.skip(ftype)
2271
      iprot.readFieldEnd()
2272
    iprot.readStructEnd()
2273
 
2274
  def write(self, oprot):
2275
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2276
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2277
      return
2278
    oprot.writeStructBegin('getAllPurchaseOrders_args')
2279
    if self.status is not None:
2280
      oprot.writeFieldBegin('status', TType.I32, 1)
2281
      oprot.writeI32(self.status)
2282
      oprot.writeFieldEnd()
2283
    oprot.writeFieldStop()
2284
    oprot.writeStructEnd()
2285
 
2286
  def validate(self):
2287
    return
2288
 
2289
 
2290
  def __repr__(self):
2291
    L = ['%s=%r' % (key, value)
2292
      for key, value in self.__dict__.iteritems()]
2293
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2294
 
2295
  def __eq__(self, other):
2296
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2297
 
2298
  def __ne__(self, other):
2299
    return not (self == other)
2300
 
2301
class getAllPurchaseOrders_result:
2302
  """
2303
  Attributes:
2304
   - success
2305
   - e
2306
  """
2307
 
2308
  thrift_spec = (
2309
    (0, TType.LIST, 'success', (TType.STRUCT,(PurchaseOrder, PurchaseOrder.thrift_spec)), None, ), # 0
2310
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
2311
  )
2312
 
2313
  def __init__(self, success=None, e=None,):
2314
    self.success = success
2315
    self.e = e
2316
 
2317
  def read(self, iprot):
2318
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2319
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2320
      return
2321
    iprot.readStructBegin()
2322
    while True:
2323
      (fname, ftype, fid) = iprot.readFieldBegin()
2324
      if ftype == TType.STOP:
2325
        break
2326
      if fid == 0:
2327
        if ftype == TType.LIST:
2328
          self.success = []
2329
          (_etype10, _size7) = iprot.readListBegin()
2330
          for _i11 in xrange(_size7):
2331
            _elem12 = PurchaseOrder()
2332
            _elem12.read(iprot)
2333
            self.success.append(_elem12)
2334
          iprot.readListEnd()
2335
        else:
2336
          iprot.skip(ftype)
2337
      elif fid == 1:
2338
        if ftype == TType.STRUCT:
2339
          self.e = PurchaseServiceException()
2340
          self.e.read(iprot)
2341
        else:
2342
          iprot.skip(ftype)
2343
      else:
2344
        iprot.skip(ftype)
2345
      iprot.readFieldEnd()
2346
    iprot.readStructEnd()
2347
 
2348
  def write(self, oprot):
2349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2351
      return
2352
    oprot.writeStructBegin('getAllPurchaseOrders_result')
2353
    if self.success is not None:
2354
      oprot.writeFieldBegin('success', TType.LIST, 0)
2355
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2356
      for iter13 in self.success:
2357
        iter13.write(oprot)
2358
      oprot.writeListEnd()
2359
      oprot.writeFieldEnd()
2360
    if self.e is not None:
2361
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
2362
      self.e.write(oprot)
2363
      oprot.writeFieldEnd()
2364
    oprot.writeFieldStop()
2365
    oprot.writeStructEnd()
2366
 
2367
  def validate(self):
2368
    return
2369
 
2370
 
2371
  def __repr__(self):
2372
    L = ['%s=%r' % (key, value)
2373
      for key, value in self.__dict__.iteritems()]
2374
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2375
 
2376
  def __eq__(self, other):
2377
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2378
 
2379
  def __ne__(self, other):
2380
    return not (self == other)
2381
 
2382
class getSupplier_args:
2383
  """
2384
  Attributes:
2385
   - id
2386
  """
2387
 
2388
  thrift_spec = (
2389
    None, # 0
2390
    (1, TType.I64, 'id', None, None, ), # 1
2391
  )
2392
 
2393
  def __init__(self, id=None,):
2394
    self.id = id
2395
 
2396
  def read(self, iprot):
2397
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2398
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2399
      return
2400
    iprot.readStructBegin()
2401
    while True:
2402
      (fname, ftype, fid) = iprot.readFieldBegin()
2403
      if ftype == TType.STOP:
2404
        break
2405
      if fid == 1:
2406
        if ftype == TType.I64:
2407
          self.id = iprot.readI64();
2408
        else:
2409
          iprot.skip(ftype)
2410
      else:
2411
        iprot.skip(ftype)
2412
      iprot.readFieldEnd()
2413
    iprot.readStructEnd()
2414
 
2415
  def write(self, oprot):
2416
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2417
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2418
      return
2419
    oprot.writeStructBegin('getSupplier_args')
2420
    if self.id is not None:
2421
      oprot.writeFieldBegin('id', TType.I64, 1)
2422
      oprot.writeI64(self.id)
2423
      oprot.writeFieldEnd()
2424
    oprot.writeFieldStop()
2425
    oprot.writeStructEnd()
2426
 
2427
  def validate(self):
2428
    return
2429
 
2430
 
2431
  def __repr__(self):
2432
    L = ['%s=%r' % (key, value)
2433
      for key, value in self.__dict__.iteritems()]
2434
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2435
 
2436
  def __eq__(self, other):
2437
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2438
 
2439
  def __ne__(self, other):
2440
    return not (self == other)
2441
 
2442
class getSupplier_result:
2443
  """
2444
  Attributes:
2445
   - success
2446
   - e
2447
  """
2448
 
2449
  thrift_spec = (
2450
    (0, TType.STRUCT, 'success', (Supplier, Supplier.thrift_spec), None, ), # 0
2451
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
2452
  )
2453
 
2454
  def __init__(self, success=None, e=None,):
2455
    self.success = success
2456
    self.e = e
2457
 
2458
  def read(self, iprot):
2459
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2460
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2461
      return
2462
    iprot.readStructBegin()
2463
    while True:
2464
      (fname, ftype, fid) = iprot.readFieldBegin()
2465
      if ftype == TType.STOP:
2466
        break
2467
      if fid == 0:
2468
        if ftype == TType.STRUCT:
2469
          self.success = Supplier()
2470
          self.success.read(iprot)
2471
        else:
2472
          iprot.skip(ftype)
2473
      elif fid == 1:
2474
        if ftype == TType.STRUCT:
2475
          self.e = PurchaseServiceException()
2476
          self.e.read(iprot)
2477
        else:
2478
          iprot.skip(ftype)
2479
      else:
2480
        iprot.skip(ftype)
2481
      iprot.readFieldEnd()
2482
    iprot.readStructEnd()
2483
 
2484
  def write(self, oprot):
2485
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2486
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2487
      return
2488
    oprot.writeStructBegin('getSupplier_result')
2489
    if self.success is not None:
2490
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
2491
      self.success.write(oprot)
2492
      oprot.writeFieldEnd()
2493
    if self.e is not None:
2494
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
2495
      self.e.write(oprot)
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 startPurchase_args:
2516
  """
2517
  Attributes:
2518
   - purchaseOrderId
2519
   - invoiceNumber
2520
   - freightCharges
11801 manish.sha 2521
   - purchaseComments
4502 mandeep.dh 2522
  """
2523
 
2524
  thrift_spec = (
2525
    None, # 0
2526
    (1, TType.I64, 'purchaseOrderId', None, None, ), # 1
2527
    (2, TType.STRING, 'invoiceNumber', None, None, ), # 2
2528
    (3, TType.DOUBLE, 'freightCharges', None, None, ), # 3
11801 manish.sha 2529
    (4, TType.STRING, 'purchaseComments', None, None, ), # 4
4502 mandeep.dh 2530
  )
2531
 
11801 manish.sha 2532
  def __init__(self, purchaseOrderId=None, invoiceNumber=None, freightCharges=None, purchaseComments=None,):
4502 mandeep.dh 2533
    self.purchaseOrderId = purchaseOrderId
2534
    self.invoiceNumber = invoiceNumber
2535
    self.freightCharges = freightCharges
11801 manish.sha 2536
    self.purchaseComments = purchaseComments
4502 mandeep.dh 2537
 
2538
  def read(self, iprot):
2539
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2540
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2541
      return
2542
    iprot.readStructBegin()
2543
    while True:
2544
      (fname, ftype, fid) = iprot.readFieldBegin()
2545
      if ftype == TType.STOP:
2546
        break
2547
      if fid == 1:
2548
        if ftype == TType.I64:
2549
          self.purchaseOrderId = iprot.readI64();
2550
        else:
2551
          iprot.skip(ftype)
2552
      elif fid == 2:
2553
        if ftype == TType.STRING:
2554
          self.invoiceNumber = iprot.readString();
2555
        else:
2556
          iprot.skip(ftype)
2557
      elif fid == 3:
2558
        if ftype == TType.DOUBLE:
2559
          self.freightCharges = iprot.readDouble();
2560
        else:
2561
          iprot.skip(ftype)
11801 manish.sha 2562
      elif fid == 4:
2563
        if ftype == TType.STRING:
2564
          self.purchaseComments = iprot.readString();
2565
        else:
2566
          iprot.skip(ftype)
4502 mandeep.dh 2567
      else:
2568
        iprot.skip(ftype)
2569
      iprot.readFieldEnd()
2570
    iprot.readStructEnd()
2571
 
2572
  def write(self, oprot):
2573
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2574
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2575
      return
2576
    oprot.writeStructBegin('startPurchase_args')
2577
    if self.purchaseOrderId is not None:
2578
      oprot.writeFieldBegin('purchaseOrderId', TType.I64, 1)
2579
      oprot.writeI64(self.purchaseOrderId)
2580
      oprot.writeFieldEnd()
2581
    if self.invoiceNumber is not None:
2582
      oprot.writeFieldBegin('invoiceNumber', TType.STRING, 2)
2583
      oprot.writeString(self.invoiceNumber)
2584
      oprot.writeFieldEnd()
2585
    if self.freightCharges is not None:
2586
      oprot.writeFieldBegin('freightCharges', TType.DOUBLE, 3)
2587
      oprot.writeDouble(self.freightCharges)
2588
      oprot.writeFieldEnd()
11801 manish.sha 2589
    if self.purchaseComments is not None:
2590
      oprot.writeFieldBegin('purchaseComments', TType.STRING, 4)
2591
      oprot.writeString(self.purchaseComments)
2592
      oprot.writeFieldEnd()
4502 mandeep.dh 2593
    oprot.writeFieldStop()
2594
    oprot.writeStructEnd()
2595
 
2596
  def validate(self):
2597
    return
2598
 
2599
 
2600
  def __repr__(self):
2601
    L = ['%s=%r' % (key, value)
2602
      for key, value in self.__dict__.iteritems()]
2603
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2604
 
2605
  def __eq__(self, other):
2606
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2607
 
2608
  def __ne__(self, other):
2609
    return not (self == other)
2610
 
2611
class startPurchase_result:
2612
  """
2613
  Attributes:
2614
   - success
2615
   - e
2616
  """
2617
 
2618
  thrift_spec = (
2619
    (0, TType.I64, 'success', None, None, ), # 0
2620
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
2621
  )
2622
 
2623
  def __init__(self, success=None, e=None,):
2624
    self.success = success
2625
    self.e = e
2626
 
2627
  def read(self, iprot):
2628
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2629
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2630
      return
2631
    iprot.readStructBegin()
2632
    while True:
2633
      (fname, ftype, fid) = iprot.readFieldBegin()
2634
      if ftype == TType.STOP:
2635
        break
2636
      if fid == 0:
2637
        if ftype == TType.I64:
2638
          self.success = iprot.readI64();
2639
        else:
2640
          iprot.skip(ftype)
2641
      elif fid == 1:
2642
        if ftype == TType.STRUCT:
2643
          self.e = PurchaseServiceException()
2644
          self.e.read(iprot)
2645
        else:
2646
          iprot.skip(ftype)
2647
      else:
2648
        iprot.skip(ftype)
2649
      iprot.readFieldEnd()
2650
    iprot.readStructEnd()
2651
 
2652
  def write(self, oprot):
2653
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2654
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2655
      return
2656
    oprot.writeStructBegin('startPurchase_result')
2657
    if self.success is not None:
2658
      oprot.writeFieldBegin('success', TType.I64, 0)
2659
      oprot.writeI64(self.success)
2660
      oprot.writeFieldEnd()
2661
    if self.e is not None:
2662
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
2663
      self.e.write(oprot)
2664
      oprot.writeFieldEnd()
2665
    oprot.writeFieldStop()
2666
    oprot.writeStructEnd()
2667
 
2668
  def validate(self):
2669
    return
2670
 
2671
 
2672
  def __repr__(self):
2673
    L = ['%s=%r' % (key, value)
2674
      for key, value in self.__dict__.iteritems()]
2675
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2676
 
2677
  def __eq__(self, other):
2678
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2679
 
2680
  def __ne__(self, other):
2681
    return not (self == other)
2682
 
2683
class closePurchase_args:
2684
  """
2685
  Attributes:
2686
   - purchaseId
2687
  """
2688
 
2689
  thrift_spec = (
2690
    None, # 0
2691
    (1, TType.I64, 'purchaseId', None, None, ), # 1
2692
  )
2693
 
2694
  def __init__(self, purchaseId=None,):
2695
    self.purchaseId = purchaseId
2696
 
2697
  def read(self, iprot):
2698
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2699
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2700
      return
2701
    iprot.readStructBegin()
2702
    while True:
2703
      (fname, ftype, fid) = iprot.readFieldBegin()
2704
      if ftype == TType.STOP:
2705
        break
2706
      if fid == 1:
2707
        if ftype == TType.I64:
2708
          self.purchaseId = iprot.readI64();
2709
        else:
2710
          iprot.skip(ftype)
2711
      else:
2712
        iprot.skip(ftype)
2713
      iprot.readFieldEnd()
2714
    iprot.readStructEnd()
2715
 
2716
  def write(self, oprot):
2717
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2718
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2719
      return
2720
    oprot.writeStructBegin('closePurchase_args')
2721
    if self.purchaseId is not None:
2722
      oprot.writeFieldBegin('purchaseId', TType.I64, 1)
2723
      oprot.writeI64(self.purchaseId)
2724
      oprot.writeFieldEnd()
2725
    oprot.writeFieldStop()
2726
    oprot.writeStructEnd()
2727
 
2728
  def validate(self):
2729
    return
2730
 
2731
 
2732
  def __repr__(self):
2733
    L = ['%s=%r' % (key, value)
2734
      for key, value in self.__dict__.iteritems()]
2735
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2736
 
2737
  def __eq__(self, other):
2738
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2739
 
2740
  def __ne__(self, other):
2741
    return not (self == other)
2742
 
2743
class closePurchase_result:
2744
  """
2745
  Attributes:
2746
   - success
2747
   - e
2748
  """
2749
 
2750
  thrift_spec = (
2751
    (0, TType.I64, 'success', None, None, ), # 0
2752
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
2753
  )
2754
 
2755
  def __init__(self, success=None, e=None,):
2756
    self.success = success
2757
    self.e = e
2758
 
2759
  def read(self, iprot):
2760
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2761
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2762
      return
2763
    iprot.readStructBegin()
2764
    while True:
2765
      (fname, ftype, fid) = iprot.readFieldBegin()
2766
      if ftype == TType.STOP:
2767
        break
2768
      if fid == 0:
2769
        if ftype == TType.I64:
2770
          self.success = iprot.readI64();
2771
        else:
2772
          iprot.skip(ftype)
2773
      elif fid == 1:
2774
        if ftype == TType.STRUCT:
2775
          self.e = PurchaseServiceException()
2776
          self.e.read(iprot)
2777
        else:
2778
          iprot.skip(ftype)
2779
      else:
2780
        iprot.skip(ftype)
2781
      iprot.readFieldEnd()
2782
    iprot.readStructEnd()
2783
 
2784
  def write(self, oprot):
2785
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2786
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2787
      return
2788
    oprot.writeStructBegin('closePurchase_result')
2789
    if self.success is not None:
2790
      oprot.writeFieldBegin('success', TType.I64, 0)
2791
      oprot.writeI64(self.success)
2792
      oprot.writeFieldEnd()
2793
    if self.e is not None:
2794
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
2795
      self.e.write(oprot)
2796
      oprot.writeFieldEnd()
2797
    oprot.writeFieldStop()
2798
    oprot.writeStructEnd()
2799
 
2800
  def validate(self):
2801
    return
2802
 
2803
 
2804
  def __repr__(self):
2805
    L = ['%s=%r' % (key, value)
2806
      for key, value in self.__dict__.iteritems()]
2807
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2808
 
2809
  def __eq__(self, other):
2810
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2811
 
2812
  def __ne__(self, other):
2813
    return not (self == other)
2814
 
2815
class getAllPurchases_args:
2816
  """
2817
  Attributes:
2818
   - purchaseOrderId
2819
   - open
2820
  """
2821
 
2822
  thrift_spec = (
2823
    None, # 0
2824
    (1, TType.I64, 'purchaseOrderId', None, None, ), # 1
2825
    (2, TType.BOOL, 'open', None, None, ), # 2
2826
  )
2827
 
2828
  def __init__(self, purchaseOrderId=None, open=None,):
2829
    self.purchaseOrderId = purchaseOrderId
2830
    self.open = open
2831
 
2832
  def read(self, iprot):
2833
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2834
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2835
      return
2836
    iprot.readStructBegin()
2837
    while True:
2838
      (fname, ftype, fid) = iprot.readFieldBegin()
2839
      if ftype == TType.STOP:
2840
        break
2841
      if fid == 1:
2842
        if ftype == TType.I64:
2843
          self.purchaseOrderId = iprot.readI64();
2844
        else:
2845
          iprot.skip(ftype)
2846
      elif fid == 2:
2847
        if ftype == TType.BOOL:
2848
          self.open = iprot.readBool();
2849
        else:
2850
          iprot.skip(ftype)
2851
      else:
2852
        iprot.skip(ftype)
2853
      iprot.readFieldEnd()
2854
    iprot.readStructEnd()
2855
 
2856
  def write(self, oprot):
2857
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2858
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2859
      return
2860
    oprot.writeStructBegin('getAllPurchases_args')
2861
    if self.purchaseOrderId is not None:
2862
      oprot.writeFieldBegin('purchaseOrderId', TType.I64, 1)
2863
      oprot.writeI64(self.purchaseOrderId)
2864
      oprot.writeFieldEnd()
2865
    if self.open is not None:
2866
      oprot.writeFieldBegin('open', TType.BOOL, 2)
2867
      oprot.writeBool(self.open)
2868
      oprot.writeFieldEnd()
2869
    oprot.writeFieldStop()
2870
    oprot.writeStructEnd()
2871
 
2872
  def validate(self):
2873
    return
2874
 
2875
 
2876
  def __repr__(self):
2877
    L = ['%s=%r' % (key, value)
2878
      for key, value in self.__dict__.iteritems()]
2879
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2880
 
2881
  def __eq__(self, other):
2882
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2883
 
2884
  def __ne__(self, other):
2885
    return not (self == other)
2886
 
2887
class getAllPurchases_result:
2888
  """
2889
  Attributes:
2890
   - success
2891
   - e
2892
  """
2893
 
2894
  thrift_spec = (
2895
    (0, TType.LIST, 'success', (TType.STRUCT,(Purchase, Purchase.thrift_spec)), None, ), # 0
2896
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
2897
  )
2898
 
2899
  def __init__(self, success=None, e=None,):
2900
    self.success = success
2901
    self.e = e
2902
 
2903
  def read(self, iprot):
2904
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2905
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2906
      return
2907
    iprot.readStructBegin()
2908
    while True:
2909
      (fname, ftype, fid) = iprot.readFieldBegin()
2910
      if ftype == TType.STOP:
2911
        break
2912
      if fid == 0:
2913
        if ftype == TType.LIST:
2914
          self.success = []
2915
          (_etype17, _size14) = iprot.readListBegin()
2916
          for _i18 in xrange(_size14):
2917
            _elem19 = Purchase()
2918
            _elem19.read(iprot)
2919
            self.success.append(_elem19)
2920
          iprot.readListEnd()
2921
        else:
2922
          iprot.skip(ftype)
2923
      elif fid == 1:
2924
        if ftype == TType.STRUCT:
2925
          self.e = PurchaseServiceException()
2926
          self.e.read(iprot)
2927
        else:
2928
          iprot.skip(ftype)
2929
      else:
2930
        iprot.skip(ftype)
2931
      iprot.readFieldEnd()
2932
    iprot.readStructEnd()
2933
 
2934
  def write(self, oprot):
2935
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
2936
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
2937
      return
2938
    oprot.writeStructBegin('getAllPurchases_result')
2939
    if self.success is not None:
2940
      oprot.writeFieldBegin('success', TType.LIST, 0)
2941
      oprot.writeListBegin(TType.STRUCT, len(self.success))
2942
      for iter20 in self.success:
2943
        iter20.write(oprot)
2944
      oprot.writeListEnd()
2945
      oprot.writeFieldEnd()
2946
    if self.e is not None:
2947
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
2948
      self.e.write(oprot)
2949
      oprot.writeFieldEnd()
2950
    oprot.writeFieldStop()
2951
    oprot.writeStructEnd()
2952
 
2953
  def validate(self):
2954
    return
2955
 
2956
 
2957
  def __repr__(self):
2958
    L = ['%s=%r' % (key, value)
2959
      for key, value in self.__dict__.iteritems()]
2960
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
2961
 
2962
  def __eq__(self, other):
2963
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
2964
 
2965
  def __ne__(self, other):
2966
    return not (self == other)
2967
 
6386 amar.kumar 2968
class getPurchasesForPO_args:
2969
  """
2970
  Attributes:
2971
   - purchaseOrderId
2972
  """
2973
 
2974
  thrift_spec = (
2975
    None, # 0
2976
    (1, TType.I64, 'purchaseOrderId', None, None, ), # 1
2977
  )
2978
 
2979
  def __init__(self, purchaseOrderId=None,):
2980
    self.purchaseOrderId = purchaseOrderId
2981
 
2982
  def read(self, iprot):
2983
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
2984
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
2985
      return
2986
    iprot.readStructBegin()
2987
    while True:
2988
      (fname, ftype, fid) = iprot.readFieldBegin()
2989
      if ftype == TType.STOP:
2990
        break
2991
      if fid == 1:
2992
        if ftype == TType.I64:
2993
          self.purchaseOrderId = iprot.readI64();
2994
        else:
2995
          iprot.skip(ftype)
2996
      else:
2997
        iprot.skip(ftype)
2998
      iprot.readFieldEnd()
2999
    iprot.readStructEnd()
3000
 
3001
  def write(self, oprot):
3002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3004
      return
3005
    oprot.writeStructBegin('getPurchasesForPO_args')
3006
    if self.purchaseOrderId is not None:
3007
      oprot.writeFieldBegin('purchaseOrderId', TType.I64, 1)
3008
      oprot.writeI64(self.purchaseOrderId)
3009
      oprot.writeFieldEnd()
3010
    oprot.writeFieldStop()
3011
    oprot.writeStructEnd()
3012
 
3013
  def validate(self):
3014
    return
3015
 
3016
 
3017
  def __repr__(self):
3018
    L = ['%s=%r' % (key, value)
3019
      for key, value in self.__dict__.iteritems()]
3020
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3021
 
3022
  def __eq__(self, other):
3023
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3024
 
3025
  def __ne__(self, other):
3026
    return not (self == other)
3027
 
3028
class getPurchasesForPO_result:
3029
  """
3030
  Attributes:
3031
   - success
3032
   - e
3033
  """
3034
 
3035
  thrift_spec = (
3036
    (0, TType.LIST, 'success', (TType.STRUCT,(Purchase, Purchase.thrift_spec)), None, ), # 0
3037
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
3038
  )
3039
 
3040
  def __init__(self, success=None, e=None,):
3041
    self.success = success
3042
    self.e = e
3043
 
3044
  def read(self, iprot):
3045
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3046
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3047
      return
3048
    iprot.readStructBegin()
3049
    while True:
3050
      (fname, ftype, fid) = iprot.readFieldBegin()
3051
      if ftype == TType.STOP:
3052
        break
3053
      if fid == 0:
3054
        if ftype == TType.LIST:
3055
          self.success = []
3056
          (_etype24, _size21) = iprot.readListBegin()
3057
          for _i25 in xrange(_size21):
3058
            _elem26 = Purchase()
3059
            _elem26.read(iprot)
3060
            self.success.append(_elem26)
3061
          iprot.readListEnd()
3062
        else:
3063
          iprot.skip(ftype)
3064
      elif fid == 1:
3065
        if ftype == TType.STRUCT:
3066
          self.e = PurchaseServiceException()
3067
          self.e.read(iprot)
3068
        else:
3069
          iprot.skip(ftype)
3070
      else:
3071
        iprot.skip(ftype)
3072
      iprot.readFieldEnd()
3073
    iprot.readStructEnd()
3074
 
3075
  def write(self, oprot):
3076
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3077
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3078
      return
3079
    oprot.writeStructBegin('getPurchasesForPO_result')
3080
    if self.success is not None:
3081
      oprot.writeFieldBegin('success', TType.LIST, 0)
3082
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3083
      for iter27 in self.success:
3084
        iter27.write(oprot)
3085
      oprot.writeListEnd()
3086
      oprot.writeFieldEnd()
3087
    if self.e is not None:
3088
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
3089
      self.e.write(oprot)
3090
      oprot.writeFieldEnd()
3091
    oprot.writeFieldStop()
3092
    oprot.writeStructEnd()
3093
 
3094
  def validate(self):
3095
    return
3096
 
3097
 
3098
  def __repr__(self):
3099
    L = ['%s=%r' % (key, value)
3100
      for key, value in self.__dict__.iteritems()]
3101
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3102
 
3103
  def __eq__(self, other):
3104
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3105
 
3106
  def __ne__(self, other):
3107
    return not (self == other)
3108
 
4555 mandeep.dh 3109
class getPurchaseOrderForPurchase_args:
4502 mandeep.dh 3110
  """
3111
  Attributes:
3112
   - purchaseId
3113
  """
3114
 
3115
  thrift_spec = (
3116
    None, # 0
3117
    (1, TType.I64, 'purchaseId', None, None, ), # 1
3118
  )
3119
 
4555 mandeep.dh 3120
  def __init__(self, purchaseId=None,):
4502 mandeep.dh 3121
    self.purchaseId = purchaseId
3122
 
3123
  def read(self, iprot):
3124
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3125
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3126
      return
3127
    iprot.readStructBegin()
3128
    while True:
3129
      (fname, ftype, fid) = iprot.readFieldBegin()
3130
      if ftype == TType.STOP:
3131
        break
3132
      if fid == 1:
3133
        if ftype == TType.I64:
3134
          self.purchaseId = iprot.readI64();
3135
        else:
3136
          iprot.skip(ftype)
3137
      else:
3138
        iprot.skip(ftype)
3139
      iprot.readFieldEnd()
3140
    iprot.readStructEnd()
3141
 
3142
  def write(self, oprot):
3143
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3144
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3145
      return
4555 mandeep.dh 3146
    oprot.writeStructBegin('getPurchaseOrderForPurchase_args')
4502 mandeep.dh 3147
    if self.purchaseId is not None:
3148
      oprot.writeFieldBegin('purchaseId', TType.I64, 1)
3149
      oprot.writeI64(self.purchaseId)
3150
      oprot.writeFieldEnd()
3151
    oprot.writeFieldStop()
3152
    oprot.writeStructEnd()
3153
 
3154
  def validate(self):
3155
    return
3156
 
3157
 
3158
  def __repr__(self):
3159
    L = ['%s=%r' % (key, value)
3160
      for key, value in self.__dict__.iteritems()]
3161
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3162
 
3163
  def __eq__(self, other):
3164
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3165
 
3166
  def __ne__(self, other):
3167
    return not (self == other)
3168
 
4555 mandeep.dh 3169
class getPurchaseOrderForPurchase_result:
4502 mandeep.dh 3170
  """
3171
  Attributes:
3172
   - success
3173
  """
3174
 
3175
  thrift_spec = (
4555 mandeep.dh 3176
    (0, TType.STRUCT, 'success', (PurchaseOrder, PurchaseOrder.thrift_spec), None, ), # 0
4502 mandeep.dh 3177
  )
3178
 
3179
  def __init__(self, success=None,):
3180
    self.success = success
3181
 
3182
  def read(self, iprot):
3183
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3184
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3185
      return
3186
    iprot.readStructBegin()
3187
    while True:
3188
      (fname, ftype, fid) = iprot.readFieldBegin()
3189
      if ftype == TType.STOP:
3190
        break
3191
      if fid == 0:
4555 mandeep.dh 3192
        if ftype == TType.STRUCT:
3193
          self.success = PurchaseOrder()
3194
          self.success.read(iprot)
4502 mandeep.dh 3195
        else:
3196
          iprot.skip(ftype)
3197
      else:
3198
        iprot.skip(ftype)
3199
      iprot.readFieldEnd()
3200
    iprot.readStructEnd()
3201
 
3202
  def write(self, oprot):
3203
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3204
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3205
      return
4555 mandeep.dh 3206
    oprot.writeStructBegin('getPurchaseOrderForPurchase_result')
4502 mandeep.dh 3207
    if self.success is not None:
4555 mandeep.dh 3208
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
3209
      self.success.write(oprot)
4502 mandeep.dh 3210
      oprot.writeFieldEnd()
3211
    oprot.writeFieldStop()
3212
    oprot.writeStructEnd()
3213
 
3214
  def validate(self):
3215
    return
3216
 
3217
 
3218
  def __repr__(self):
3219
    L = ['%s=%r' % (key, value)
3220
      for key, value in self.__dict__.iteritems()]
3221
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3222
 
3223
  def __eq__(self, other):
3224
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3225
 
3226
  def __ne__(self, other):
3227
    return not (self == other)
4754 mandeep.dh 3228
 
3229
class getPendingPurchaseOrders_args:
3230
  """
3231
  Attributes:
3232
   - warehouseId
3233
  """
3234
 
3235
  thrift_spec = (
3236
    None, # 0
3237
    (1, TType.I64, 'warehouseId', None, None, ), # 1
3238
  )
3239
 
3240
  def __init__(self, warehouseId=None,):
3241
    self.warehouseId = warehouseId
3242
 
3243
  def read(self, iprot):
3244
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3245
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3246
      return
3247
    iprot.readStructBegin()
3248
    while True:
3249
      (fname, ftype, fid) = iprot.readFieldBegin()
3250
      if ftype == TType.STOP:
3251
        break
3252
      if fid == 1:
3253
        if ftype == TType.I64:
3254
          self.warehouseId = iprot.readI64();
3255
        else:
3256
          iprot.skip(ftype)
3257
      else:
3258
        iprot.skip(ftype)
3259
      iprot.readFieldEnd()
3260
    iprot.readStructEnd()
3261
 
3262
  def write(self, oprot):
3263
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3264
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3265
      return
3266
    oprot.writeStructBegin('getPendingPurchaseOrders_args')
3267
    if self.warehouseId is not None:
3268
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
3269
      oprot.writeI64(self.warehouseId)
3270
      oprot.writeFieldEnd()
3271
    oprot.writeFieldStop()
3272
    oprot.writeStructEnd()
3273
 
3274
  def validate(self):
3275
    return
3276
 
3277
 
3278
  def __repr__(self):
3279
    L = ['%s=%r' % (key, value)
3280
      for key, value in self.__dict__.iteritems()]
3281
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3282
 
3283
  def __eq__(self, other):
3284
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3285
 
3286
  def __ne__(self, other):
3287
    return not (self == other)
3288
 
3289
class getPendingPurchaseOrders_result:
3290
  """
3291
  Attributes:
3292
   - success
3293
   - e
3294
  """
3295
 
3296
  thrift_spec = (
3297
    (0, TType.LIST, 'success', (TType.STRUCT,(PurchaseOrder, PurchaseOrder.thrift_spec)), None, ), # 0
3298
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
3299
  )
3300
 
3301
  def __init__(self, success=None, e=None,):
3302
    self.success = success
3303
    self.e = e
3304
 
3305
  def read(self, iprot):
3306
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3307
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3308
      return
3309
    iprot.readStructBegin()
3310
    while True:
3311
      (fname, ftype, fid) = iprot.readFieldBegin()
3312
      if ftype == TType.STOP:
3313
        break
3314
      if fid == 0:
3315
        if ftype == TType.LIST:
3316
          self.success = []
6386 amar.kumar 3317
          (_etype31, _size28) = iprot.readListBegin()
3318
          for _i32 in xrange(_size28):
3319
            _elem33 = PurchaseOrder()
3320
            _elem33.read(iprot)
3321
            self.success.append(_elem33)
4754 mandeep.dh 3322
          iprot.readListEnd()
3323
        else:
3324
          iprot.skip(ftype)
3325
      elif fid == 1:
3326
        if ftype == TType.STRUCT:
3327
          self.e = PurchaseServiceException()
3328
          self.e.read(iprot)
3329
        else:
3330
          iprot.skip(ftype)
3331
      else:
3332
        iprot.skip(ftype)
3333
      iprot.readFieldEnd()
3334
    iprot.readStructEnd()
3335
 
3336
  def write(self, oprot):
3337
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3338
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3339
      return
3340
    oprot.writeStructBegin('getPendingPurchaseOrders_result')
3341
    if self.success is not None:
3342
      oprot.writeFieldBegin('success', TType.LIST, 0)
3343
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6386 amar.kumar 3344
      for iter34 in self.success:
3345
        iter34.write(oprot)
4754 mandeep.dh 3346
      oprot.writeListEnd()
3347
      oprot.writeFieldEnd()
3348
    if self.e is not None:
3349
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
3350
      self.e.write(oprot)
3351
      oprot.writeFieldEnd()
3352
    oprot.writeFieldStop()
3353
    oprot.writeStructEnd()
3354
 
3355
  def validate(self):
3356
    return
3357
 
3358
 
3359
  def __repr__(self):
3360
    L = ['%s=%r' % (key, value)
3361
      for key, value in self.__dict__.iteritems()]
3362
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3363
 
3364
  def __eq__(self, other):
3365
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3366
 
3367
  def __ne__(self, other):
3368
    return not (self == other)
3369
 
3370
class getSuppliers_args:
3371
 
3372
  thrift_spec = (
3373
  )
3374
 
3375
  def read(self, iprot):
3376
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3377
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3378
      return
3379
    iprot.readStructBegin()
3380
    while True:
3381
      (fname, ftype, fid) = iprot.readFieldBegin()
3382
      if ftype == TType.STOP:
3383
        break
3384
      else:
3385
        iprot.skip(ftype)
3386
      iprot.readFieldEnd()
3387
    iprot.readStructEnd()
3388
 
3389
  def write(self, oprot):
3390
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3391
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3392
      return
3393
    oprot.writeStructBegin('getSuppliers_args')
3394
    oprot.writeFieldStop()
3395
    oprot.writeStructEnd()
3396
 
3397
  def validate(self):
3398
    return
3399
 
3400
 
3401
  def __repr__(self):
3402
    L = ['%s=%r' % (key, value)
3403
      for key, value in self.__dict__.iteritems()]
3404
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3405
 
3406
  def __eq__(self, other):
3407
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3408
 
3409
  def __ne__(self, other):
3410
    return not (self == other)
3411
 
3412
class getSuppliers_result:
3413
  """
3414
  Attributes:
3415
   - success
3416
   - e
3417
  """
3418
 
3419
  thrift_spec = (
3420
    (0, TType.LIST, 'success', (TType.STRUCT,(Supplier, Supplier.thrift_spec)), None, ), # 0
3421
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
3422
  )
3423
 
3424
  def __init__(self, success=None, e=None,):
3425
    self.success = success
3426
    self.e = e
3427
 
3428
  def read(self, iprot):
3429
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3430
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3431
      return
3432
    iprot.readStructBegin()
3433
    while True:
3434
      (fname, ftype, fid) = iprot.readFieldBegin()
3435
      if ftype == TType.STOP:
3436
        break
3437
      if fid == 0:
3438
        if ftype == TType.LIST:
3439
          self.success = []
6386 amar.kumar 3440
          (_etype38, _size35) = iprot.readListBegin()
3441
          for _i39 in xrange(_size35):
3442
            _elem40 = Supplier()
3443
            _elem40.read(iprot)
3444
            self.success.append(_elem40)
4754 mandeep.dh 3445
          iprot.readListEnd()
3446
        else:
3447
          iprot.skip(ftype)
3448
      elif fid == 1:
3449
        if ftype == TType.STRUCT:
3450
          self.e = PurchaseServiceException()
3451
          self.e.read(iprot)
3452
        else:
3453
          iprot.skip(ftype)
3454
      else:
3455
        iprot.skip(ftype)
3456
      iprot.readFieldEnd()
3457
    iprot.readStructEnd()
3458
 
3459
  def write(self, oprot):
3460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3462
      return
3463
    oprot.writeStructBegin('getSuppliers_result')
3464
    if self.success is not None:
3465
      oprot.writeFieldBegin('success', TType.LIST, 0)
3466
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6386 amar.kumar 3467
      for iter41 in self.success:
3468
        iter41.write(oprot)
4754 mandeep.dh 3469
      oprot.writeListEnd()
3470
      oprot.writeFieldEnd()
3471
    if self.e is not None:
3472
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
3473
      self.e.write(oprot)
3474
      oprot.writeFieldEnd()
3475
    oprot.writeFieldStop()
3476
    oprot.writeStructEnd()
3477
 
3478
  def validate(self):
3479
    return
3480
 
3481
 
3482
  def __repr__(self):
3483
    L = ['%s=%r' % (key, value)
3484
      for key, value in self.__dict__.iteritems()]
3485
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3486
 
3487
  def __eq__(self, other):
3488
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3489
 
3490
  def __ne__(self, other):
3491
    return not (self == other)
3492
 
21847 amit.gupta 3493
class getAllSuppliers_args:
3494
 
3495
  thrift_spec = (
3496
  )
3497
 
3498
  def read(self, iprot):
3499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3501
      return
3502
    iprot.readStructBegin()
3503
    while True:
3504
      (fname, ftype, fid) = iprot.readFieldBegin()
3505
      if ftype == TType.STOP:
3506
        break
3507
      else:
3508
        iprot.skip(ftype)
3509
      iprot.readFieldEnd()
3510
    iprot.readStructEnd()
3511
 
3512
  def write(self, oprot):
3513
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3514
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3515
      return
3516
    oprot.writeStructBegin('getAllSuppliers_args')
3517
    oprot.writeFieldStop()
3518
    oprot.writeStructEnd()
3519
 
3520
  def validate(self):
3521
    return
3522
 
3523
 
3524
  def __repr__(self):
3525
    L = ['%s=%r' % (key, value)
3526
      for key, value in self.__dict__.iteritems()]
3527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3528
 
3529
  def __eq__(self, other):
3530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3531
 
3532
  def __ne__(self, other):
3533
    return not (self == other)
3534
 
3535
class getAllSuppliers_result:
3536
  """
3537
  Attributes:
3538
   - success
3539
   - e
3540
  """
3541
 
3542
  thrift_spec = (
3543
    (0, TType.LIST, 'success', (TType.STRUCT,(Supplier, Supplier.thrift_spec)), None, ), # 0
3544
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
3545
  )
3546
 
3547
  def __init__(self, success=None, e=None,):
3548
    self.success = success
3549
    self.e = e
3550
 
3551
  def read(self, iprot):
3552
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3553
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3554
      return
3555
    iprot.readStructBegin()
3556
    while True:
3557
      (fname, ftype, fid) = iprot.readFieldBegin()
3558
      if ftype == TType.STOP:
3559
        break
3560
      if fid == 0:
3561
        if ftype == TType.LIST:
3562
          self.success = []
3563
          (_etype45, _size42) = iprot.readListBegin()
3564
          for _i46 in xrange(_size42):
3565
            _elem47 = Supplier()
3566
            _elem47.read(iprot)
3567
            self.success.append(_elem47)
3568
          iprot.readListEnd()
3569
        else:
3570
          iprot.skip(ftype)
3571
      elif fid == 1:
3572
        if ftype == TType.STRUCT:
3573
          self.e = PurchaseServiceException()
3574
          self.e.read(iprot)
3575
        else:
3576
          iprot.skip(ftype)
3577
      else:
3578
        iprot.skip(ftype)
3579
      iprot.readFieldEnd()
3580
    iprot.readStructEnd()
3581
 
3582
  def write(self, oprot):
3583
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3584
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3585
      return
3586
    oprot.writeStructBegin('getAllSuppliers_result')
3587
    if self.success is not None:
3588
      oprot.writeFieldBegin('success', TType.LIST, 0)
3589
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3590
      for iter48 in self.success:
3591
        iter48.write(oprot)
3592
      oprot.writeListEnd()
3593
      oprot.writeFieldEnd()
3594
    if self.e is not None:
3595
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
3596
      self.e.write(oprot)
3597
      oprot.writeFieldEnd()
3598
    oprot.writeFieldStop()
3599
    oprot.writeStructEnd()
3600
 
3601
  def validate(self):
3602
    return
3603
 
3604
 
3605
  def __repr__(self):
3606
    L = ['%s=%r' % (key, value)
3607
      for key, value in self.__dict__.iteritems()]
3608
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3609
 
3610
  def __eq__(self, other):
3611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3612
 
3613
  def __ne__(self, other):
3614
    return not (self == other)
3615
 
4754 mandeep.dh 3616
class fulfillPO_args:
3617
  """
3618
  Attributes:
3619
   - purchaseOrderId
3620
   - itemId
3621
   - quantity
3622
  """
3623
 
3624
  thrift_spec = (
3625
    None, # 0
3626
    (1, TType.I64, 'purchaseOrderId', None, None, ), # 1
3627
    (2, TType.I64, 'itemId', None, None, ), # 2
3628
    (3, TType.I64, 'quantity', None, None, ), # 3
3629
  )
3630
 
3631
  def __init__(self, purchaseOrderId=None, itemId=None, quantity=None,):
3632
    self.purchaseOrderId = purchaseOrderId
3633
    self.itemId = itemId
3634
    self.quantity = quantity
3635
 
3636
  def read(self, iprot):
3637
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3638
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3639
      return
3640
    iprot.readStructBegin()
3641
    while True:
3642
      (fname, ftype, fid) = iprot.readFieldBegin()
3643
      if ftype == TType.STOP:
3644
        break
3645
      if fid == 1:
3646
        if ftype == TType.I64:
3647
          self.purchaseOrderId = iprot.readI64();
3648
        else:
3649
          iprot.skip(ftype)
3650
      elif fid == 2:
3651
        if ftype == TType.I64:
3652
          self.itemId = iprot.readI64();
3653
        else:
3654
          iprot.skip(ftype)
3655
      elif fid == 3:
3656
        if ftype == TType.I64:
3657
          self.quantity = iprot.readI64();
3658
        else:
3659
          iprot.skip(ftype)
3660
      else:
3661
        iprot.skip(ftype)
3662
      iprot.readFieldEnd()
3663
    iprot.readStructEnd()
3664
 
3665
  def write(self, oprot):
3666
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3667
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3668
      return
3669
    oprot.writeStructBegin('fulfillPO_args')
3670
    if self.purchaseOrderId is not None:
3671
      oprot.writeFieldBegin('purchaseOrderId', TType.I64, 1)
3672
      oprot.writeI64(self.purchaseOrderId)
3673
      oprot.writeFieldEnd()
3674
    if self.itemId is not None:
3675
      oprot.writeFieldBegin('itemId', TType.I64, 2)
3676
      oprot.writeI64(self.itemId)
3677
      oprot.writeFieldEnd()
3678
    if self.quantity is not None:
3679
      oprot.writeFieldBegin('quantity', TType.I64, 3)
3680
      oprot.writeI64(self.quantity)
3681
      oprot.writeFieldEnd()
3682
    oprot.writeFieldStop()
3683
    oprot.writeStructEnd()
3684
 
3685
  def validate(self):
3686
    return
3687
 
3688
 
3689
  def __repr__(self):
3690
    L = ['%s=%r' % (key, value)
3691
      for key, value in self.__dict__.iteritems()]
3692
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3693
 
3694
  def __eq__(self, other):
3695
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3696
 
3697
  def __ne__(self, other):
3698
    return not (self == other)
3699
 
3700
class fulfillPO_result:
3701
  """
3702
  Attributes:
3703
   - e
3704
  """
3705
 
3706
  thrift_spec = (
3707
    None, # 0
3708
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
3709
  )
3710
 
3711
  def __init__(self, e=None,):
3712
    self.e = e
3713
 
3714
  def read(self, iprot):
3715
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3716
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3717
      return
3718
    iprot.readStructBegin()
3719
    while True:
3720
      (fname, ftype, fid) = iprot.readFieldBegin()
3721
      if ftype == TType.STOP:
3722
        break
3723
      if fid == 1:
3724
        if ftype == TType.STRUCT:
3725
          self.e = PurchaseServiceException()
3726
          self.e.read(iprot)
3727
        else:
3728
          iprot.skip(ftype)
3729
      else:
3730
        iprot.skip(ftype)
3731
      iprot.readFieldEnd()
3732
    iprot.readStructEnd()
3733
 
3734
  def write(self, oprot):
3735
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3736
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3737
      return
3738
    oprot.writeStructBegin('fulfillPO_result')
3739
    if self.e is not None:
3740
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
3741
      self.e.write(oprot)
3742
      oprot.writeFieldEnd()
3743
    oprot.writeFieldStop()
3744
    oprot.writeStructEnd()
3745
 
3746
  def validate(self):
3747
    return
3748
 
3749
 
3750
  def __repr__(self):
3751
    L = ['%s=%r' % (key, value)
3752
      for key, value in self.__dict__.iteritems()]
3753
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3754
 
3755
  def __eq__(self, other):
3756
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3757
 
3758
  def __ne__(self, other):
3759
    return not (self == other)
3760
 
3761
class updatePurchaseOrder_args:
3762
  """
3763
  Attributes:
3764
   - purchaseOrder
3765
  """
3766
 
3767
  thrift_spec = (
3768
    None, # 0
3769
    (1, TType.STRUCT, 'purchaseOrder', (PurchaseOrder, PurchaseOrder.thrift_spec), None, ), # 1
3770
  )
3771
 
3772
  def __init__(self, purchaseOrder=None,):
3773
    self.purchaseOrder = purchaseOrder
3774
 
3775
  def read(self, iprot):
3776
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3777
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3778
      return
3779
    iprot.readStructBegin()
3780
    while True:
3781
      (fname, ftype, fid) = iprot.readFieldBegin()
3782
      if ftype == TType.STOP:
3783
        break
3784
      if fid == 1:
3785
        if ftype == TType.STRUCT:
3786
          self.purchaseOrder = PurchaseOrder()
3787
          self.purchaseOrder.read(iprot)
3788
        else:
3789
          iprot.skip(ftype)
3790
      else:
3791
        iprot.skip(ftype)
3792
      iprot.readFieldEnd()
3793
    iprot.readStructEnd()
3794
 
3795
  def write(self, oprot):
3796
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3797
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3798
      return
3799
    oprot.writeStructBegin('updatePurchaseOrder_args')
3800
    if self.purchaseOrder is not None:
3801
      oprot.writeFieldBegin('purchaseOrder', TType.STRUCT, 1)
3802
      self.purchaseOrder.write(oprot)
3803
      oprot.writeFieldEnd()
3804
    oprot.writeFieldStop()
3805
    oprot.writeStructEnd()
3806
 
3807
  def validate(self):
3808
    return
3809
 
3810
 
3811
  def __repr__(self):
3812
    L = ['%s=%r' % (key, value)
3813
      for key, value in self.__dict__.iteritems()]
3814
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3815
 
3816
  def __eq__(self, other):
3817
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3818
 
3819
  def __ne__(self, other):
3820
    return not (self == other)
3821
 
3822
class updatePurchaseOrder_result:
3823
  """
3824
  Attributes:
3825
   - e
3826
  """
3827
 
3828
  thrift_spec = (
3829
    None, # 0
3830
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
3831
  )
3832
 
3833
  def __init__(self, e=None,):
3834
    self.e = e
3835
 
3836
  def read(self, iprot):
3837
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3838
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3839
      return
3840
    iprot.readStructBegin()
3841
    while True:
3842
      (fname, ftype, fid) = iprot.readFieldBegin()
3843
      if ftype == TType.STOP:
3844
        break
3845
      if fid == 1:
3846
        if ftype == TType.STRUCT:
3847
          self.e = PurchaseServiceException()
3848
          self.e.read(iprot)
3849
        else:
3850
          iprot.skip(ftype)
3851
      else:
3852
        iprot.skip(ftype)
3853
      iprot.readFieldEnd()
3854
    iprot.readStructEnd()
3855
 
3856
  def write(self, oprot):
3857
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3858
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3859
      return
3860
    oprot.writeStructBegin('updatePurchaseOrder_result')
3861
    if self.e is not None:
3862
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
3863
      self.e.write(oprot)
3864
      oprot.writeFieldEnd()
3865
    oprot.writeFieldStop()
3866
    oprot.writeStructEnd()
3867
 
3868
  def validate(self):
3869
    return
3870
 
3871
 
3872
  def __repr__(self):
3873
    L = ['%s=%r' % (key, value)
3874
      for key, value in self.__dict__.iteritems()]
3875
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3876
 
3877
  def __eq__(self, other):
3878
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3879
 
3880
  def __ne__(self, other):
3881
    return not (self == other)
5185 mandeep.dh 3882
 
3883
class unFulfillPO_args:
3884
  """
3885
  Attributes:
3886
   - purchaseId
3887
   - itemId
3888
   - quantity
3889
  """
3890
 
3891
  thrift_spec = (
3892
    None, # 0
3893
    (1, TType.I64, 'purchaseId', None, None, ), # 1
3894
    (2, TType.I64, 'itemId', None, None, ), # 2
3895
    (3, TType.I64, 'quantity', None, None, ), # 3
3896
  )
3897
 
3898
  def __init__(self, purchaseId=None, itemId=None, quantity=None,):
3899
    self.purchaseId = purchaseId
3900
    self.itemId = itemId
3901
    self.quantity = quantity
3902
 
3903
  def read(self, iprot):
3904
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3905
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3906
      return
3907
    iprot.readStructBegin()
3908
    while True:
3909
      (fname, ftype, fid) = iprot.readFieldBegin()
3910
      if ftype == TType.STOP:
3911
        break
3912
      if fid == 1:
3913
        if ftype == TType.I64:
3914
          self.purchaseId = iprot.readI64();
3915
        else:
3916
          iprot.skip(ftype)
3917
      elif fid == 2:
3918
        if ftype == TType.I64:
3919
          self.itemId = iprot.readI64();
3920
        else:
3921
          iprot.skip(ftype)
3922
      elif fid == 3:
3923
        if ftype == TType.I64:
3924
          self.quantity = iprot.readI64();
3925
        else:
3926
          iprot.skip(ftype)
3927
      else:
3928
        iprot.skip(ftype)
3929
      iprot.readFieldEnd()
3930
    iprot.readStructEnd()
3931
 
3932
  def write(self, oprot):
3933
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
3934
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
3935
      return
3936
    oprot.writeStructBegin('unFulfillPO_args')
3937
    if self.purchaseId is not None:
3938
      oprot.writeFieldBegin('purchaseId', TType.I64, 1)
3939
      oprot.writeI64(self.purchaseId)
3940
      oprot.writeFieldEnd()
3941
    if self.itemId is not None:
3942
      oprot.writeFieldBegin('itemId', TType.I64, 2)
3943
      oprot.writeI64(self.itemId)
3944
      oprot.writeFieldEnd()
3945
    if self.quantity is not None:
3946
      oprot.writeFieldBegin('quantity', TType.I64, 3)
3947
      oprot.writeI64(self.quantity)
3948
      oprot.writeFieldEnd()
3949
    oprot.writeFieldStop()
3950
    oprot.writeStructEnd()
3951
 
3952
  def validate(self):
3953
    return
3954
 
3955
 
3956
  def __repr__(self):
3957
    L = ['%s=%r' % (key, value)
3958
      for key, value in self.__dict__.iteritems()]
3959
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
3960
 
3961
  def __eq__(self, other):
3962
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3963
 
3964
  def __ne__(self, other):
3965
    return not (self == other)
3966
 
3967
class unFulfillPO_result:
3968
  """
3969
  Attributes:
3970
   - e
3971
  """
3972
 
3973
  thrift_spec = (
3974
    None, # 0
3975
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
3976
  )
3977
 
3978
  def __init__(self, e=None,):
3979
    self.e = e
3980
 
3981
  def read(self, iprot):
3982
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
3983
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
3984
      return
3985
    iprot.readStructBegin()
3986
    while True:
3987
      (fname, ftype, fid) = iprot.readFieldBegin()
3988
      if ftype == TType.STOP:
3989
        break
3990
      if fid == 1:
3991
        if ftype == TType.STRUCT:
3992
          self.e = PurchaseServiceException()
3993
          self.e.read(iprot)
3994
        else:
3995
          iprot.skip(ftype)
3996
      else:
3997
        iprot.skip(ftype)
3998
      iprot.readFieldEnd()
3999
    iprot.readStructEnd()
4000
 
4001
  def write(self, oprot):
4002
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4003
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4004
      return
4005
    oprot.writeStructBegin('unFulfillPO_result')
4006
    if self.e is not None:
4007
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
4008
      self.e.write(oprot)
4009
      oprot.writeFieldEnd()
4010
    oprot.writeFieldStop()
4011
    oprot.writeStructEnd()
4012
 
4013
  def validate(self):
4014
    return
4015
 
4016
 
4017
  def __repr__(self):
4018
    L = ['%s=%r' % (key, value)
4019
      for key, value in self.__dict__.iteritems()]
4020
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4021
 
4022
  def __eq__(self, other):
4023
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4024
 
4025
  def __ne__(self, other):
4026
    return not (self == other)
5443 mandeep.dh 4027
 
4028
class getInvoices_args:
4029
  """
4030
  Attributes:
4031
   - date
4032
  """
4033
 
4034
  thrift_spec = (
4035
    None, # 0
4036
    (1, TType.I64, 'date', None, None, ), # 1
4037
  )
4038
 
4039
  def __init__(self, date=None,):
4040
    self.date = date
4041
 
4042
  def read(self, iprot):
4043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4045
      return
4046
    iprot.readStructBegin()
4047
    while True:
4048
      (fname, ftype, fid) = iprot.readFieldBegin()
4049
      if ftype == TType.STOP:
4050
        break
4051
      if fid == 1:
4052
        if ftype == TType.I64:
4053
          self.date = iprot.readI64();
4054
        else:
4055
          iprot.skip(ftype)
4056
      else:
4057
        iprot.skip(ftype)
4058
      iprot.readFieldEnd()
4059
    iprot.readStructEnd()
4060
 
4061
  def write(self, oprot):
4062
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4063
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4064
      return
4065
    oprot.writeStructBegin('getInvoices_args')
4066
    if self.date is not None:
4067
      oprot.writeFieldBegin('date', TType.I64, 1)
4068
      oprot.writeI64(self.date)
4069
      oprot.writeFieldEnd()
4070
    oprot.writeFieldStop()
4071
    oprot.writeStructEnd()
4072
 
4073
  def validate(self):
4074
    return
4075
 
4076
 
4077
  def __repr__(self):
4078
    L = ['%s=%r' % (key, value)
4079
      for key, value in self.__dict__.iteritems()]
4080
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4081
 
4082
  def __eq__(self, other):
4083
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4084
 
4085
  def __ne__(self, other):
4086
    return not (self == other)
4087
 
4088
class getInvoices_result:
4089
  """
4090
  Attributes:
4091
   - success
4092
  """
4093
 
4094
  thrift_spec = (
4095
    (0, TType.LIST, 'success', (TType.STRUCT,(Invoice, Invoice.thrift_spec)), None, ), # 0
4096
  )
4097
 
4098
  def __init__(self, success=None,):
4099
    self.success = success
4100
 
4101
  def read(self, iprot):
4102
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4103
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4104
      return
4105
    iprot.readStructBegin()
4106
    while True:
4107
      (fname, ftype, fid) = iprot.readFieldBegin()
4108
      if ftype == TType.STOP:
4109
        break
4110
      if fid == 0:
4111
        if ftype == TType.LIST:
4112
          self.success = []
21847 amit.gupta 4113
          (_etype52, _size49) = iprot.readListBegin()
4114
          for _i53 in xrange(_size49):
4115
            _elem54 = Invoice()
4116
            _elem54.read(iprot)
4117
            self.success.append(_elem54)
5443 mandeep.dh 4118
          iprot.readListEnd()
4119
        else:
4120
          iprot.skip(ftype)
4121
      else:
4122
        iprot.skip(ftype)
4123
      iprot.readFieldEnd()
4124
    iprot.readStructEnd()
4125
 
4126
  def write(self, oprot):
4127
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4128
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4129
      return
4130
    oprot.writeStructBegin('getInvoices_result')
4131
    if self.success is not None:
4132
      oprot.writeFieldBegin('success', TType.LIST, 0)
4133
      oprot.writeListBegin(TType.STRUCT, len(self.success))
21847 amit.gupta 4134
      for iter55 in self.success:
4135
        iter55.write(oprot)
5443 mandeep.dh 4136
      oprot.writeListEnd()
4137
      oprot.writeFieldEnd()
4138
    oprot.writeFieldStop()
4139
    oprot.writeStructEnd()
4140
 
4141
  def validate(self):
4142
    return
4143
 
4144
 
4145
  def __repr__(self):
4146
    L = ['%s=%r' % (key, value)
4147
      for key, value in self.__dict__.iteritems()]
4148
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4149
 
4150
  def __eq__(self, other):
4151
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4152
 
4153
  def __ne__(self, other):
4154
    return not (self == other)
4155
 
7410 amar.kumar 4156
class getInvoicesForWarehouse_args:
4157
  """
4158
  Attributes:
4159
   - warehouseId
4160
   - supplierId
4161
   - date
4162
  """
4163
 
4164
  thrift_spec = (
4165
    None, # 0
4166
    (1, TType.I64, 'warehouseId', None, None, ), # 1
4167
    (2, TType.I64, 'supplierId', None, None, ), # 2
4168
    (3, TType.I64, 'date', None, None, ), # 3
4169
  )
4170
 
4171
  def __init__(self, warehouseId=None, supplierId=None, date=None,):
4172
    self.warehouseId = warehouseId
4173
    self.supplierId = supplierId
4174
    self.date = date
4175
 
4176
  def read(self, iprot):
4177
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4178
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4179
      return
4180
    iprot.readStructBegin()
4181
    while True:
4182
      (fname, ftype, fid) = iprot.readFieldBegin()
4183
      if ftype == TType.STOP:
4184
        break
4185
      if fid == 1:
4186
        if ftype == TType.I64:
4187
          self.warehouseId = iprot.readI64();
4188
        else:
4189
          iprot.skip(ftype)
4190
      elif fid == 2:
4191
        if ftype == TType.I64:
4192
          self.supplierId = iprot.readI64();
4193
        else:
4194
          iprot.skip(ftype)
4195
      elif fid == 3:
4196
        if ftype == TType.I64:
4197
          self.date = iprot.readI64();
4198
        else:
4199
          iprot.skip(ftype)
4200
      else:
4201
        iprot.skip(ftype)
4202
      iprot.readFieldEnd()
4203
    iprot.readStructEnd()
4204
 
4205
  def write(self, oprot):
4206
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4207
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4208
      return
4209
    oprot.writeStructBegin('getInvoicesForWarehouse_args')
4210
    if self.warehouseId is not None:
4211
      oprot.writeFieldBegin('warehouseId', TType.I64, 1)
4212
      oprot.writeI64(self.warehouseId)
4213
      oprot.writeFieldEnd()
4214
    if self.supplierId is not None:
4215
      oprot.writeFieldBegin('supplierId', TType.I64, 2)
4216
      oprot.writeI64(self.supplierId)
4217
      oprot.writeFieldEnd()
4218
    if self.date is not None:
4219
      oprot.writeFieldBegin('date', TType.I64, 3)
4220
      oprot.writeI64(self.date)
4221
      oprot.writeFieldEnd()
4222
    oprot.writeFieldStop()
4223
    oprot.writeStructEnd()
4224
 
4225
  def validate(self):
4226
    return
4227
 
4228
 
4229
  def __repr__(self):
4230
    L = ['%s=%r' % (key, value)
4231
      for key, value in self.__dict__.iteritems()]
4232
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4233
 
4234
  def __eq__(self, other):
4235
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4236
 
4237
  def __ne__(self, other):
4238
    return not (self == other)
4239
 
4240
class getInvoicesForWarehouse_result:
4241
  """
4242
  Attributes:
4243
   - success
4244
  """
4245
 
4246
  thrift_spec = (
4247
    (0, TType.LIST, 'success', (TType.STRUCT,(Invoice, Invoice.thrift_spec)), None, ), # 0
4248
  )
4249
 
4250
  def __init__(self, success=None,):
4251
    self.success = success
4252
 
4253
  def read(self, iprot):
4254
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4255
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4256
      return
4257
    iprot.readStructBegin()
4258
    while True:
4259
      (fname, ftype, fid) = iprot.readFieldBegin()
4260
      if ftype == TType.STOP:
4261
        break
4262
      if fid == 0:
4263
        if ftype == TType.LIST:
4264
          self.success = []
21847 amit.gupta 4265
          (_etype59, _size56) = iprot.readListBegin()
4266
          for _i60 in xrange(_size56):
4267
            _elem61 = Invoice()
4268
            _elem61.read(iprot)
4269
            self.success.append(_elem61)
7410 amar.kumar 4270
          iprot.readListEnd()
4271
        else:
4272
          iprot.skip(ftype)
4273
      else:
4274
        iprot.skip(ftype)
4275
      iprot.readFieldEnd()
4276
    iprot.readStructEnd()
4277
 
4278
  def write(self, oprot):
4279
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4280
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4281
      return
4282
    oprot.writeStructBegin('getInvoicesForWarehouse_result')
4283
    if self.success is not None:
4284
      oprot.writeFieldBegin('success', TType.LIST, 0)
4285
      oprot.writeListBegin(TType.STRUCT, len(self.success))
21847 amit.gupta 4286
      for iter62 in self.success:
4287
        iter62.write(oprot)
7410 amar.kumar 4288
      oprot.writeListEnd()
4289
      oprot.writeFieldEnd()
4290
    oprot.writeFieldStop()
4291
    oprot.writeStructEnd()
4292
 
4293
  def validate(self):
4294
    return
4295
 
4296
 
4297
  def __repr__(self):
4298
    L = ['%s=%r' % (key, value)
4299
      for key, value in self.__dict__.iteritems()]
4300
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4301
 
4302
  def __eq__(self, other):
4303
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4304
 
4305
  def __ne__(self, other):
4306
    return not (self == other)
4307
 
5443 mandeep.dh 4308
class createInvoice_args:
4309
  """
4310
  Attributes:
4311
   - invoice
4312
  """
4313
 
4314
  thrift_spec = (
4315
    None, # 0
4316
    (1, TType.STRUCT, 'invoice', (Invoice, Invoice.thrift_spec), None, ), # 1
4317
  )
4318
 
4319
  def __init__(self, invoice=None,):
4320
    self.invoice = invoice
4321
 
4322
  def read(self, iprot):
4323
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4324
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4325
      return
4326
    iprot.readStructBegin()
4327
    while True:
4328
      (fname, ftype, fid) = iprot.readFieldBegin()
4329
      if ftype == TType.STOP:
4330
        break
4331
      if fid == 1:
4332
        if ftype == TType.STRUCT:
4333
          self.invoice = Invoice()
4334
          self.invoice.read(iprot)
4335
        else:
4336
          iprot.skip(ftype)
4337
      else:
4338
        iprot.skip(ftype)
4339
      iprot.readFieldEnd()
4340
    iprot.readStructEnd()
4341
 
4342
  def write(self, oprot):
4343
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4344
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4345
      return
4346
    oprot.writeStructBegin('createInvoice_args')
4347
    if self.invoice is not None:
4348
      oprot.writeFieldBegin('invoice', TType.STRUCT, 1)
4349
      self.invoice.write(oprot)
4350
      oprot.writeFieldEnd()
4351
    oprot.writeFieldStop()
4352
    oprot.writeStructEnd()
4353
 
4354
  def validate(self):
4355
    return
4356
 
4357
 
4358
  def __repr__(self):
4359
    L = ['%s=%r' % (key, value)
4360
      for key, value in self.__dict__.iteritems()]
4361
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4362
 
4363
  def __eq__(self, other):
4364
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4365
 
4366
  def __ne__(self, other):
4367
    return not (self == other)
4368
 
4369
class createInvoice_result:
4370
  """
4371
  Attributes:
4372
   - e
4373
  """
4374
 
4375
  thrift_spec = (
4376
    None, # 0
4377
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
4378
  )
4379
 
4380
  def __init__(self, e=None,):
4381
    self.e = e
4382
 
4383
  def read(self, iprot):
4384
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4385
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4386
      return
4387
    iprot.readStructBegin()
4388
    while True:
4389
      (fname, ftype, fid) = iprot.readFieldBegin()
4390
      if ftype == TType.STOP:
4391
        break
4392
      if fid == 1:
4393
        if ftype == TType.STRUCT:
4394
          self.e = PurchaseServiceException()
4395
          self.e.read(iprot)
4396
        else:
4397
          iprot.skip(ftype)
4398
      else:
4399
        iprot.skip(ftype)
4400
      iprot.readFieldEnd()
4401
    iprot.readStructEnd()
4402
 
4403
  def write(self, oprot):
4404
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4405
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4406
      return
4407
    oprot.writeStructBegin('createInvoice_result')
4408
    if self.e is not None:
4409
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
4410
      self.e.write(oprot)
4411
      oprot.writeFieldEnd()
4412
    oprot.writeFieldStop()
4413
    oprot.writeStructEnd()
4414
 
4415
  def validate(self):
4416
    return
4417
 
4418
 
4419
  def __repr__(self):
4420
    L = ['%s=%r' % (key, value)
4421
      for key, value in self.__dict__.iteritems()]
4422
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4423
 
4424
  def __eq__(self, other):
4425
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4426
 
4427
  def __ne__(self, other):
4428
    return not (self == other)
5591 mandeep.dh 4429
 
4430
class addSupplier_args:
4431
  """
4432
  Attributes:
4433
   - supplier
4434
  """
4435
 
4436
  thrift_spec = (
4437
    None, # 0
4438
    (1, TType.STRUCT, 'supplier', (Supplier, Supplier.thrift_spec), None, ), # 1
4439
  )
4440
 
4441
  def __init__(self, supplier=None,):
4442
    self.supplier = supplier
4443
 
4444
  def read(self, iprot):
4445
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4446
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4447
      return
4448
    iprot.readStructBegin()
4449
    while True:
4450
      (fname, ftype, fid) = iprot.readFieldBegin()
4451
      if ftype == TType.STOP:
4452
        break
4453
      if fid == 1:
4454
        if ftype == TType.STRUCT:
4455
          self.supplier = Supplier()
4456
          self.supplier.read(iprot)
4457
        else:
4458
          iprot.skip(ftype)
4459
      else:
4460
        iprot.skip(ftype)
4461
      iprot.readFieldEnd()
4462
    iprot.readStructEnd()
4463
 
4464
  def write(self, oprot):
4465
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4466
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4467
      return
4468
    oprot.writeStructBegin('addSupplier_args')
4469
    if self.supplier is not None:
4470
      oprot.writeFieldBegin('supplier', TType.STRUCT, 1)
4471
      self.supplier.write(oprot)
4472
      oprot.writeFieldEnd()
4473
    oprot.writeFieldStop()
4474
    oprot.writeStructEnd()
4475
 
4476
  def validate(self):
4477
    return
4478
 
4479
 
4480
  def __repr__(self):
4481
    L = ['%s=%r' % (key, value)
4482
      for key, value in self.__dict__.iteritems()]
4483
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4484
 
4485
  def __eq__(self, other):
4486
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4487
 
4488
  def __ne__(self, other):
4489
    return not (self == other)
4490
 
4491
class addSupplier_result:
4492
  """
4493
  Attributes:
4494
   - success
4495
  """
4496
 
4497
  thrift_spec = (
4498
    (0, TType.STRUCT, 'success', (Supplier, Supplier.thrift_spec), None, ), # 0
4499
  )
4500
 
4501
  def __init__(self, success=None,):
4502
    self.success = success
4503
 
4504
  def read(self, iprot):
4505
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4506
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4507
      return
4508
    iprot.readStructBegin()
4509
    while True:
4510
      (fname, ftype, fid) = iprot.readFieldBegin()
4511
      if ftype == TType.STOP:
4512
        break
4513
      if fid == 0:
4514
        if ftype == TType.STRUCT:
4515
          self.success = Supplier()
4516
          self.success.read(iprot)
4517
        else:
4518
          iprot.skip(ftype)
4519
      else:
4520
        iprot.skip(ftype)
4521
      iprot.readFieldEnd()
4522
    iprot.readStructEnd()
4523
 
4524
  def write(self, oprot):
4525
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4526
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4527
      return
4528
    oprot.writeStructBegin('addSupplier_result')
4529
    if self.success is not None:
4530
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
4531
      self.success.write(oprot)
4532
      oprot.writeFieldEnd()
4533
    oprot.writeFieldStop()
4534
    oprot.writeStructEnd()
4535
 
4536
  def validate(self):
4537
    return
4538
 
4539
 
4540
  def __repr__(self):
4541
    L = ['%s=%r' % (key, value)
4542
      for key, value in self.__dict__.iteritems()]
4543
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4544
 
4545
  def __eq__(self, other):
4546
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4547
 
4548
  def __ne__(self, other):
4549
    return not (self == other)
4550
 
4551
class updateSupplier_args:
4552
  """
4553
  Attributes:
4554
   - supplier
4555
  """
4556
 
4557
  thrift_spec = (
4558
    None, # 0
4559
    (1, TType.STRUCT, 'supplier', (Supplier, Supplier.thrift_spec), None, ), # 1
4560
  )
4561
 
4562
  def __init__(self, supplier=None,):
4563
    self.supplier = supplier
4564
 
4565
  def read(self, iprot):
4566
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4567
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4568
      return
4569
    iprot.readStructBegin()
4570
    while True:
4571
      (fname, ftype, fid) = iprot.readFieldBegin()
4572
      if ftype == TType.STOP:
4573
        break
4574
      if fid == 1:
4575
        if ftype == TType.STRUCT:
4576
          self.supplier = Supplier()
4577
          self.supplier.read(iprot)
4578
        else:
4579
          iprot.skip(ftype)
4580
      else:
4581
        iprot.skip(ftype)
4582
      iprot.readFieldEnd()
4583
    iprot.readStructEnd()
4584
 
4585
  def write(self, oprot):
4586
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4587
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4588
      return
4589
    oprot.writeStructBegin('updateSupplier_args')
4590
    if self.supplier is not None:
4591
      oprot.writeFieldBegin('supplier', TType.STRUCT, 1)
4592
      self.supplier.write(oprot)
4593
      oprot.writeFieldEnd()
4594
    oprot.writeFieldStop()
4595
    oprot.writeStructEnd()
4596
 
4597
  def validate(self):
4598
    return
4599
 
4600
 
4601
  def __repr__(self):
4602
    L = ['%s=%r' % (key, value)
4603
      for key, value in self.__dict__.iteritems()]
4604
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4605
 
4606
  def __eq__(self, other):
4607
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4608
 
4609
  def __ne__(self, other):
4610
    return not (self == other)
4611
 
4612
class updateSupplier_result:
4613
 
4614
  thrift_spec = (
4615
  )
4616
 
4617
  def read(self, iprot):
4618
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4619
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4620
      return
4621
    iprot.readStructBegin()
4622
    while True:
4623
      (fname, ftype, fid) = iprot.readFieldBegin()
4624
      if ftype == TType.STOP:
4625
        break
4626
      else:
4627
        iprot.skip(ftype)
4628
      iprot.readFieldEnd()
4629
    iprot.readStructEnd()
4630
 
4631
  def write(self, oprot):
4632
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4633
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4634
      return
4635
    oprot.writeStructBegin('updateSupplier_result')
4636
    oprot.writeFieldStop()
4637
    oprot.writeStructEnd()
4638
 
4639
  def validate(self):
4640
    return
4641
 
4642
 
4643
  def __repr__(self):
4644
    L = ['%s=%r' % (key, value)
4645
      for key, value in self.__dict__.iteritems()]
4646
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4647
 
4648
  def __eq__(self, other):
4649
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4650
 
4651
  def __ne__(self, other):
4652
    return not (self == other)
6467 amar.kumar 4653
 
4654
class createPurchaseReturn_args:
4655
  """
4656
  Attributes:
4657
   - purchaseReturn
4658
  """
4659
 
4660
  thrift_spec = (
4661
    None, # 0
4662
    (1, TType.STRUCT, 'purchaseReturn', (PurchaseReturn, PurchaseReturn.thrift_spec), None, ), # 1
4663
  )
4664
 
4665
  def __init__(self, purchaseReturn=None,):
4666
    self.purchaseReturn = purchaseReturn
4667
 
4668
  def read(self, iprot):
4669
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4670
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4671
      return
4672
    iprot.readStructBegin()
4673
    while True:
4674
      (fname, ftype, fid) = iprot.readFieldBegin()
4675
      if ftype == TType.STOP:
4676
        break
4677
      if fid == 1:
4678
        if ftype == TType.STRUCT:
4679
          self.purchaseReturn = PurchaseReturn()
4680
          self.purchaseReturn.read(iprot)
4681
        else:
4682
          iprot.skip(ftype)
4683
      else:
4684
        iprot.skip(ftype)
4685
      iprot.readFieldEnd()
4686
    iprot.readStructEnd()
4687
 
4688
  def write(self, oprot):
4689
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4690
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4691
      return
4692
    oprot.writeStructBegin('createPurchaseReturn_args')
4693
    if self.purchaseReturn is not None:
4694
      oprot.writeFieldBegin('purchaseReturn', TType.STRUCT, 1)
4695
      self.purchaseReturn.write(oprot)
4696
      oprot.writeFieldEnd()
4697
    oprot.writeFieldStop()
4698
    oprot.writeStructEnd()
4699
 
4700
  def validate(self):
4701
    return
4702
 
4703
 
4704
  def __repr__(self):
4705
    L = ['%s=%r' % (key, value)
4706
      for key, value in self.__dict__.iteritems()]
4707
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4708
 
4709
  def __eq__(self, other):
4710
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4711
 
4712
  def __ne__(self, other):
4713
    return not (self == other)
4714
 
4715
class createPurchaseReturn_result:
4716
  """
4717
  Attributes:
4718
   - success
4719
  """
4720
 
4721
  thrift_spec = (
4722
    (0, TType.I64, 'success', None, None, ), # 0
4723
  )
4724
 
4725
  def __init__(self, success=None,):
4726
    self.success = success
4727
 
4728
  def read(self, iprot):
4729
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4730
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4731
      return
4732
    iprot.readStructBegin()
4733
    while True:
4734
      (fname, ftype, fid) = iprot.readFieldBegin()
4735
      if ftype == TType.STOP:
4736
        break
4737
      if fid == 0:
4738
        if ftype == TType.I64:
4739
          self.success = iprot.readI64();
4740
        else:
4741
          iprot.skip(ftype)
4742
      else:
4743
        iprot.skip(ftype)
4744
      iprot.readFieldEnd()
4745
    iprot.readStructEnd()
4746
 
4747
  def write(self, oprot):
4748
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4749
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4750
      return
4751
    oprot.writeStructBegin('createPurchaseReturn_result')
4752
    if self.success is not None:
4753
      oprot.writeFieldBegin('success', TType.I64, 0)
4754
      oprot.writeI64(self.success)
4755
      oprot.writeFieldEnd()
4756
    oprot.writeFieldStop()
4757
    oprot.writeStructEnd()
4758
 
4759
  def validate(self):
4760
    return
4761
 
4762
 
4763
  def __repr__(self):
4764
    L = ['%s=%r' % (key, value)
4765
      for key, value in self.__dict__.iteritems()]
4766
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4767
 
4768
  def __eq__(self, other):
4769
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4770
 
4771
  def __ne__(self, other):
4772
    return not (self == other)
4773
 
4774
class settlePurchaseReturn_args:
4775
  """
4776
  Attributes:
4777
   - id
4778
  """
4779
 
4780
  thrift_spec = (
4781
    None, # 0
4782
    (1, TType.I64, 'id', None, None, ), # 1
4783
  )
4784
 
4785
  def __init__(self, id=None,):
4786
    self.id = id
4787
 
4788
  def read(self, iprot):
4789
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4790
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4791
      return
4792
    iprot.readStructBegin()
4793
    while True:
4794
      (fname, ftype, fid) = iprot.readFieldBegin()
4795
      if ftype == TType.STOP:
4796
        break
4797
      if fid == 1:
4798
        if ftype == TType.I64:
4799
          self.id = iprot.readI64();
4800
        else:
4801
          iprot.skip(ftype)
4802
      else:
4803
        iprot.skip(ftype)
4804
      iprot.readFieldEnd()
4805
    iprot.readStructEnd()
4806
 
4807
  def write(self, oprot):
4808
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4809
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4810
      return
4811
    oprot.writeStructBegin('settlePurchaseReturn_args')
4812
    if self.id is not None:
4813
      oprot.writeFieldBegin('id', TType.I64, 1)
4814
      oprot.writeI64(self.id)
4815
      oprot.writeFieldEnd()
4816
    oprot.writeFieldStop()
4817
    oprot.writeStructEnd()
4818
 
4819
  def validate(self):
4820
    return
4821
 
4822
 
4823
  def __repr__(self):
4824
    L = ['%s=%r' % (key, value)
4825
      for key, value in self.__dict__.iteritems()]
4826
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4827
 
4828
  def __eq__(self, other):
4829
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4830
 
4831
  def __ne__(self, other):
4832
    return not (self == other)
4833
 
4834
class settlePurchaseReturn_result:
4835
 
4836
  thrift_spec = (
4837
  )
4838
 
4839
  def read(self, iprot):
4840
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4841
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4842
      return
4843
    iprot.readStructBegin()
4844
    while True:
4845
      (fname, ftype, fid) = iprot.readFieldBegin()
4846
      if ftype == TType.STOP:
4847
        break
4848
      else:
4849
        iprot.skip(ftype)
4850
      iprot.readFieldEnd()
4851
    iprot.readStructEnd()
4852
 
4853
  def write(self, oprot):
4854
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4855
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4856
      return
4857
    oprot.writeStructBegin('settlePurchaseReturn_result')
4858
    oprot.writeFieldStop()
4859
    oprot.writeStructEnd()
4860
 
4861
  def validate(self):
4862
    return
4863
 
4864
 
4865
  def __repr__(self):
4866
    L = ['%s=%r' % (key, value)
4867
      for key, value in self.__dict__.iteritems()]
4868
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4869
 
4870
  def __eq__(self, other):
4871
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4872
 
4873
  def __ne__(self, other):
4874
    return not (self == other)
4875
 
4876
class getUnsettledPurchaseReturns_args:
4877
 
4878
  thrift_spec = (
4879
  )
4880
 
4881
  def read(self, iprot):
4882
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4883
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4884
      return
4885
    iprot.readStructBegin()
4886
    while True:
4887
      (fname, ftype, fid) = iprot.readFieldBegin()
4888
      if ftype == TType.STOP:
4889
        break
4890
      else:
4891
        iprot.skip(ftype)
4892
      iprot.readFieldEnd()
4893
    iprot.readStructEnd()
4894
 
4895
  def write(self, oprot):
4896
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4897
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4898
      return
4899
    oprot.writeStructBegin('getUnsettledPurchaseReturns_args')
4900
    oprot.writeFieldStop()
4901
    oprot.writeStructEnd()
4902
 
4903
  def validate(self):
4904
    return
4905
 
4906
 
4907
  def __repr__(self):
4908
    L = ['%s=%r' % (key, value)
4909
      for key, value in self.__dict__.iteritems()]
4910
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4911
 
4912
  def __eq__(self, other):
4913
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4914
 
4915
  def __ne__(self, other):
4916
    return not (self == other)
4917
 
4918
class getUnsettledPurchaseReturns_result:
4919
  """
4920
  Attributes:
4921
   - success
4922
  """
4923
 
4924
  thrift_spec = (
4925
    (0, TType.LIST, 'success', (TType.STRUCT,(PurchaseReturn, PurchaseReturn.thrift_spec)), None, ), # 0
4926
  )
4927
 
4928
  def __init__(self, success=None,):
4929
    self.success = success
4930
 
4931
  def read(self, iprot):
4932
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
4933
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
4934
      return
4935
    iprot.readStructBegin()
4936
    while True:
4937
      (fname, ftype, fid) = iprot.readFieldBegin()
4938
      if ftype == TType.STOP:
4939
        break
4940
      if fid == 0:
4941
        if ftype == TType.LIST:
4942
          self.success = []
21847 amit.gupta 4943
          (_etype66, _size63) = iprot.readListBegin()
4944
          for _i67 in xrange(_size63):
4945
            _elem68 = PurchaseReturn()
4946
            _elem68.read(iprot)
4947
            self.success.append(_elem68)
6467 amar.kumar 4948
          iprot.readListEnd()
4949
        else:
4950
          iprot.skip(ftype)
4951
      else:
4952
        iprot.skip(ftype)
4953
      iprot.readFieldEnd()
4954
    iprot.readStructEnd()
4955
 
4956
  def write(self, oprot):
4957
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
4958
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
4959
      return
4960
    oprot.writeStructBegin('getUnsettledPurchaseReturns_result')
4961
    if self.success is not None:
4962
      oprot.writeFieldBegin('success', TType.LIST, 0)
4963
      oprot.writeListBegin(TType.STRUCT, len(self.success))
21847 amit.gupta 4964
      for iter69 in self.success:
4965
        iter69.write(oprot)
6467 amar.kumar 4966
      oprot.writeListEnd()
4967
      oprot.writeFieldEnd()
4968
    oprot.writeFieldStop()
4969
    oprot.writeStructEnd()
4970
 
4971
  def validate(self):
4972
    return
4973
 
4974
 
4975
  def __repr__(self):
4976
    L = ['%s=%r' % (key, value)
4977
      for key, value in self.__dict__.iteritems()]
4978
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
4979
 
4980
  def __eq__(self, other):
4981
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
4982
 
4983
  def __ne__(self, other):
4984
    return not (self == other)
6630 amar.kumar 4985
 
4986
class getInvoice_args:
4987
  """
4988
  Attributes:
4989
   - invoiceNumber
4990
   - supplierId
4991
  """
4992
 
4993
  thrift_spec = (
4994
    None, # 0
4995
    (1, TType.STRING, 'invoiceNumber', None, None, ), # 1
4996
    (2, TType.I64, 'supplierId', None, None, ), # 2
4997
  )
4998
 
4999
  def __init__(self, invoiceNumber=None, supplierId=None,):
5000
    self.invoiceNumber = invoiceNumber
5001
    self.supplierId = supplierId
5002
 
5003
  def read(self, iprot):
5004
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5005
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5006
      return
5007
    iprot.readStructBegin()
5008
    while True:
5009
      (fname, ftype, fid) = iprot.readFieldBegin()
5010
      if ftype == TType.STOP:
5011
        break
5012
      if fid == 1:
5013
        if ftype == TType.STRING:
5014
          self.invoiceNumber = iprot.readString();
5015
        else:
5016
          iprot.skip(ftype)
5017
      elif fid == 2:
5018
        if ftype == TType.I64:
5019
          self.supplierId = iprot.readI64();
5020
        else:
5021
          iprot.skip(ftype)
5022
      else:
5023
        iprot.skip(ftype)
5024
      iprot.readFieldEnd()
5025
    iprot.readStructEnd()
5026
 
5027
  def write(self, oprot):
5028
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5029
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5030
      return
5031
    oprot.writeStructBegin('getInvoice_args')
5032
    if self.invoiceNumber is not None:
5033
      oprot.writeFieldBegin('invoiceNumber', TType.STRING, 1)
5034
      oprot.writeString(self.invoiceNumber)
5035
      oprot.writeFieldEnd()
5036
    if self.supplierId is not None:
5037
      oprot.writeFieldBegin('supplierId', TType.I64, 2)
5038
      oprot.writeI64(self.supplierId)
5039
      oprot.writeFieldEnd()
5040
    oprot.writeFieldStop()
5041
    oprot.writeStructEnd()
5042
 
5043
  def validate(self):
5044
    return
5045
 
5046
 
5047
  def __repr__(self):
5048
    L = ['%s=%r' % (key, value)
5049
      for key, value in self.__dict__.iteritems()]
5050
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5051
 
5052
  def __eq__(self, other):
5053
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5054
 
5055
  def __ne__(self, other):
5056
    return not (self == other)
5057
 
5058
class getInvoice_result:
5059
  """
5060
  Attributes:
5061
   - success
5062
  """
5063
 
5064
  thrift_spec = (
5065
    (0, TType.LIST, 'success', (TType.STRUCT,(PurchaseReturn, PurchaseReturn.thrift_spec)), None, ), # 0
5066
  )
5067
 
5068
  def __init__(self, success=None,):
5069
    self.success = success
5070
 
5071
  def read(self, iprot):
5072
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5073
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5074
      return
5075
    iprot.readStructBegin()
5076
    while True:
5077
      (fname, ftype, fid) = iprot.readFieldBegin()
5078
      if ftype == TType.STOP:
5079
        break
5080
      if fid == 0:
5081
        if ftype == TType.LIST:
5082
          self.success = []
21847 amit.gupta 5083
          (_etype73, _size70) = iprot.readListBegin()
5084
          for _i74 in xrange(_size70):
5085
            _elem75 = PurchaseReturn()
5086
            _elem75.read(iprot)
5087
            self.success.append(_elem75)
6630 amar.kumar 5088
          iprot.readListEnd()
5089
        else:
5090
          iprot.skip(ftype)
5091
      else:
5092
        iprot.skip(ftype)
5093
      iprot.readFieldEnd()
5094
    iprot.readStructEnd()
5095
 
5096
  def write(self, oprot):
5097
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5098
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5099
      return
5100
    oprot.writeStructBegin('getInvoice_result')
5101
    if self.success is not None:
5102
      oprot.writeFieldBegin('success', TType.LIST, 0)
5103
      oprot.writeListBegin(TType.STRUCT, len(self.success))
21847 amit.gupta 5104
      for iter76 in self.success:
5105
        iter76.write(oprot)
6630 amar.kumar 5106
      oprot.writeListEnd()
5107
      oprot.writeFieldEnd()
5108
    oprot.writeFieldStop()
5109
    oprot.writeStructEnd()
5110
 
5111
  def validate(self):
5112
    return
5113
 
5114
 
5115
  def __repr__(self):
5116
    L = ['%s=%r' % (key, value)
5117
      for key, value in self.__dict__.iteritems()]
5118
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5119
 
5120
  def __eq__(self, other):
5121
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5122
 
5123
  def __ne__(self, other):
5124
    return not (self == other)
6762 amar.kumar 5125
 
5126
class createPurchaseForOurExtBilling_args:
5127
  """
5128
  Attributes:
5129
   - invoiceNumber
5130
   - unitPrice
7672 rajveer 5131
   - nlc
6762 amar.kumar 5132
   - itemId
5133
  """
5134
 
5135
  thrift_spec = (
5136
    None, # 0
5137
    (1, TType.STRING, 'invoiceNumber', None, None, ), # 1
5138
    (2, TType.DOUBLE, 'unitPrice', None, None, ), # 2
7672 rajveer 5139
    (3, TType.DOUBLE, 'nlc', None, None, ), # 3
5140
    (4, TType.I64, 'itemId', None, None, ), # 4
6762 amar.kumar 5141
  )
5142
 
7672 rajveer 5143
  def __init__(self, invoiceNumber=None, unitPrice=None, nlc=None, itemId=None,):
6762 amar.kumar 5144
    self.invoiceNumber = invoiceNumber
5145
    self.unitPrice = unitPrice
7672 rajveer 5146
    self.nlc = nlc
6762 amar.kumar 5147
    self.itemId = itemId
5148
 
5149
  def read(self, iprot):
5150
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5151
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5152
      return
5153
    iprot.readStructBegin()
5154
    while True:
5155
      (fname, ftype, fid) = iprot.readFieldBegin()
5156
      if ftype == TType.STOP:
5157
        break
5158
      if fid == 1:
5159
        if ftype == TType.STRING:
5160
          self.invoiceNumber = iprot.readString();
5161
        else:
5162
          iprot.skip(ftype)
5163
      elif fid == 2:
5164
        if ftype == TType.DOUBLE:
5165
          self.unitPrice = iprot.readDouble();
5166
        else:
5167
          iprot.skip(ftype)
5168
      elif fid == 3:
7672 rajveer 5169
        if ftype == TType.DOUBLE:
5170
          self.nlc = iprot.readDouble();
5171
        else:
5172
          iprot.skip(ftype)
5173
      elif fid == 4:
6762 amar.kumar 5174
        if ftype == TType.I64:
5175
          self.itemId = iprot.readI64();
5176
        else:
5177
          iprot.skip(ftype)
5178
      else:
5179
        iprot.skip(ftype)
5180
      iprot.readFieldEnd()
5181
    iprot.readStructEnd()
5182
 
5183
  def write(self, oprot):
5184
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5185
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5186
      return
5187
    oprot.writeStructBegin('createPurchaseForOurExtBilling_args')
5188
    if self.invoiceNumber is not None:
5189
      oprot.writeFieldBegin('invoiceNumber', TType.STRING, 1)
5190
      oprot.writeString(self.invoiceNumber)
5191
      oprot.writeFieldEnd()
5192
    if self.unitPrice is not None:
5193
      oprot.writeFieldBegin('unitPrice', TType.DOUBLE, 2)
5194
      oprot.writeDouble(self.unitPrice)
5195
      oprot.writeFieldEnd()
7672 rajveer 5196
    if self.nlc is not None:
5197
      oprot.writeFieldBegin('nlc', TType.DOUBLE, 3)
5198
      oprot.writeDouble(self.nlc)
5199
      oprot.writeFieldEnd()
6762 amar.kumar 5200
    if self.itemId is not None:
7672 rajveer 5201
      oprot.writeFieldBegin('itemId', TType.I64, 4)
6762 amar.kumar 5202
      oprot.writeI64(self.itemId)
5203
      oprot.writeFieldEnd()
5204
    oprot.writeFieldStop()
5205
    oprot.writeStructEnd()
5206
 
5207
  def validate(self):
5208
    return
5209
 
5210
 
5211
  def __repr__(self):
5212
    L = ['%s=%r' % (key, value)
5213
      for key, value in self.__dict__.iteritems()]
5214
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5215
 
5216
  def __eq__(self, other):
5217
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5218
 
5219
  def __ne__(self, other):
5220
    return not (self == other)
5221
 
5222
class createPurchaseForOurExtBilling_result:
5223
  """
5224
  Attributes:
5225
   - success
5226
  """
5227
 
5228
  thrift_spec = (
5229
    (0, TType.I64, 'success', None, None, ), # 0
5230
  )
5231
 
5232
  def __init__(self, success=None,):
5233
    self.success = success
5234
 
5235
  def read(self, iprot):
5236
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5237
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5238
      return
5239
    iprot.readStructBegin()
5240
    while True:
5241
      (fname, ftype, fid) = iprot.readFieldBegin()
5242
      if ftype == TType.STOP:
5243
        break
5244
      if fid == 0:
5245
        if ftype == TType.I64:
5246
          self.success = iprot.readI64();
5247
        else:
5248
          iprot.skip(ftype)
5249
      else:
5250
        iprot.skip(ftype)
5251
      iprot.readFieldEnd()
5252
    iprot.readStructEnd()
5253
 
5254
  def write(self, oprot):
5255
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5256
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5257
      return
5258
    oprot.writeStructBegin('createPurchaseForOurExtBilling_result')
5259
    if self.success is not None:
5260
      oprot.writeFieldBegin('success', TType.I64, 0)
5261
      oprot.writeI64(self.success)
5262
      oprot.writeFieldEnd()
5263
    oprot.writeFieldStop()
5264
    oprot.writeStructEnd()
5265
 
5266
  def validate(self):
5267
    return
5268
 
5269
 
5270
  def __repr__(self):
5271
    L = ['%s=%r' % (key, value)
5272
      for key, value in self.__dict__.iteritems()]
5273
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5274
 
5275
  def __eq__(self, other):
5276
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5277
 
5278
  def __ne__(self, other):
5279
    return not (self == other)
5280
 
5281
class fulfillPOForExtBilling_args:
5282
  """
5283
  Attributes:
5284
   - itemId
5285
   - quantity
5286
  """
5287
 
5288
  thrift_spec = (
5289
    None, # 0
5290
    (1, TType.I64, 'itemId', None, None, ), # 1
5291
    (2, TType.I64, 'quantity', None, None, ), # 2
5292
  )
5293
 
5294
  def __init__(self, itemId=None, quantity=None,):
5295
    self.itemId = itemId
5296
    self.quantity = quantity
5297
 
5298
  def read(self, iprot):
5299
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5300
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5301
      return
5302
    iprot.readStructBegin()
5303
    while True:
5304
      (fname, ftype, fid) = iprot.readFieldBegin()
5305
      if ftype == TType.STOP:
5306
        break
5307
      if fid == 1:
5308
        if ftype == TType.I64:
5309
          self.itemId = iprot.readI64();
5310
        else:
5311
          iprot.skip(ftype)
5312
      elif fid == 2:
5313
        if ftype == TType.I64:
5314
          self.quantity = iprot.readI64();
5315
        else:
5316
          iprot.skip(ftype)
5317
      else:
5318
        iprot.skip(ftype)
5319
      iprot.readFieldEnd()
5320
    iprot.readStructEnd()
5321
 
5322
  def write(self, oprot):
5323
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5324
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5325
      return
5326
    oprot.writeStructBegin('fulfillPOForExtBilling_args')
5327
    if self.itemId is not None:
5328
      oprot.writeFieldBegin('itemId', TType.I64, 1)
5329
      oprot.writeI64(self.itemId)
5330
      oprot.writeFieldEnd()
5331
    if self.quantity is not None:
5332
      oprot.writeFieldBegin('quantity', TType.I64, 2)
5333
      oprot.writeI64(self.quantity)
5334
      oprot.writeFieldEnd()
5335
    oprot.writeFieldStop()
5336
    oprot.writeStructEnd()
5337
 
5338
  def validate(self):
5339
    return
5340
 
5341
 
5342
  def __repr__(self):
5343
    L = ['%s=%r' % (key, value)
5344
      for key, value in self.__dict__.iteritems()]
5345
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5346
 
5347
  def __eq__(self, other):
5348
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5349
 
5350
  def __ne__(self, other):
5351
    return not (self == other)
5352
 
5353
class fulfillPOForExtBilling_result:
5354
 
5355
  thrift_spec = (
5356
  )
5357
 
5358
  def read(self, iprot):
5359
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5360
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5361
      return
5362
    iprot.readStructBegin()
5363
    while True:
5364
      (fname, ftype, fid) = iprot.readFieldBegin()
5365
      if ftype == TType.STOP:
5366
        break
5367
      else:
5368
        iprot.skip(ftype)
5369
      iprot.readFieldEnd()
5370
    iprot.readStructEnd()
5371
 
5372
  def write(self, oprot):
5373
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5374
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5375
      return
5376
    oprot.writeStructBegin('fulfillPOForExtBilling_result')
5377
    oprot.writeFieldStop()
5378
    oprot.writeStructEnd()
5379
 
5380
  def validate(self):
5381
    return
5382
 
5383
 
5384
  def __repr__(self):
5385
    L = ['%s=%r' % (key, value)
5386
      for key, value in self.__dict__.iteritems()]
5387
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5388
 
5389
  def __eq__(self, other):
5390
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5391
 
5392
  def __ne__(self, other):
5393
    return not (self == other)
7410 amar.kumar 5394
 
5395
class closePO_args:
5396
  """
5397
  Attributes:
5398
   - poId
5399
  """
5400
 
5401
  thrift_spec = (
5402
    None, # 0
5403
    (1, TType.I64, 'poId', None, None, ), # 1
5404
  )
5405
 
5406
  def __init__(self, poId=None,):
5407
    self.poId = poId
5408
 
5409
  def read(self, iprot):
5410
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5411
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5412
      return
5413
    iprot.readStructBegin()
5414
    while True:
5415
      (fname, ftype, fid) = iprot.readFieldBegin()
5416
      if ftype == TType.STOP:
5417
        break
5418
      if fid == 1:
5419
        if ftype == TType.I64:
5420
          self.poId = iprot.readI64();
5421
        else:
5422
          iprot.skip(ftype)
5423
      else:
5424
        iprot.skip(ftype)
5425
      iprot.readFieldEnd()
5426
    iprot.readStructEnd()
5427
 
5428
  def write(self, oprot):
5429
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5430
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5431
      return
5432
    oprot.writeStructBegin('closePO_args')
5433
    if self.poId is not None:
5434
      oprot.writeFieldBegin('poId', TType.I64, 1)
5435
      oprot.writeI64(self.poId)
5436
      oprot.writeFieldEnd()
5437
    oprot.writeFieldStop()
5438
    oprot.writeStructEnd()
5439
 
5440
  def validate(self):
5441
    return
5442
 
5443
 
5444
  def __repr__(self):
5445
    L = ['%s=%r' % (key, value)
5446
      for key, value in self.__dict__.iteritems()]
5447
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5448
 
5449
  def __eq__(self, other):
5450
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5451
 
5452
  def __ne__(self, other):
5453
    return not (self == other)
5454
 
5455
class closePO_result:
5456
  """
5457
  Attributes:
5458
   - e
5459
  """
5460
 
5461
  thrift_spec = (
5462
    None, # 0
5463
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
5464
  )
5465
 
5466
  def __init__(self, e=None,):
5467
    self.e = e
5468
 
5469
  def read(self, iprot):
5470
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5471
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5472
      return
5473
    iprot.readStructBegin()
5474
    while True:
5475
      (fname, ftype, fid) = iprot.readFieldBegin()
5476
      if ftype == TType.STOP:
5477
        break
5478
      if fid == 1:
5479
        if ftype == TType.STRUCT:
5480
          self.e = PurchaseServiceException()
5481
          self.e.read(iprot)
5482
        else:
5483
          iprot.skip(ftype)
5484
      else:
5485
        iprot.skip(ftype)
5486
      iprot.readFieldEnd()
5487
    iprot.readStructEnd()
5488
 
5489
  def write(self, oprot):
5490
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5491
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5492
      return
5493
    oprot.writeStructBegin('closePO_result')
5494
    if self.e is not None:
5495
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
5496
      self.e.write(oprot)
5497
      oprot.writeFieldEnd()
5498
    oprot.writeFieldStop()
5499
    oprot.writeStructEnd()
5500
 
5501
  def validate(self):
5502
    return
5503
 
5504
 
5505
  def __repr__(self):
5506
    L = ['%s=%r' % (key, value)
5507
      for key, value in self.__dict__.iteritems()]
5508
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5509
 
5510
  def __eq__(self, other):
5511
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5512
 
5513
  def __ne__(self, other):
5514
    return not (self == other)
5515
 
5516
class isInvoiceReceived_args:
5517
  """
5518
  Attributes:
5519
   - invoiceNumber
5520
   - supplierId
5521
  """
5522
 
5523
  thrift_spec = (
5524
    None, # 0
5525
    (1, TType.STRING, 'invoiceNumber', None, None, ), # 1
5526
    (2, TType.I64, 'supplierId', None, None, ), # 2
5527
  )
5528
 
5529
  def __init__(self, invoiceNumber=None, supplierId=None,):
5530
    self.invoiceNumber = invoiceNumber
5531
    self.supplierId = supplierId
5532
 
5533
  def read(self, iprot):
5534
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5535
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5536
      return
5537
    iprot.readStructBegin()
5538
    while True:
5539
      (fname, ftype, fid) = iprot.readFieldBegin()
5540
      if ftype == TType.STOP:
5541
        break
5542
      if fid == 1:
5543
        if ftype == TType.STRING:
5544
          self.invoiceNumber = iprot.readString();
5545
        else:
5546
          iprot.skip(ftype)
5547
      elif fid == 2:
5548
        if ftype == TType.I64:
5549
          self.supplierId = iprot.readI64();
5550
        else:
5551
          iprot.skip(ftype)
5552
      else:
5553
        iprot.skip(ftype)
5554
      iprot.readFieldEnd()
5555
    iprot.readStructEnd()
5556
 
5557
  def write(self, oprot):
5558
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5559
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5560
      return
5561
    oprot.writeStructBegin('isInvoiceReceived_args')
5562
    if self.invoiceNumber is not None:
5563
      oprot.writeFieldBegin('invoiceNumber', TType.STRING, 1)
5564
      oprot.writeString(self.invoiceNumber)
5565
      oprot.writeFieldEnd()
5566
    if self.supplierId is not None:
5567
      oprot.writeFieldBegin('supplierId', TType.I64, 2)
5568
      oprot.writeI64(self.supplierId)
5569
      oprot.writeFieldEnd()
5570
    oprot.writeFieldStop()
5571
    oprot.writeStructEnd()
5572
 
5573
  def validate(self):
5574
    return
5575
 
5576
 
5577
  def __repr__(self):
5578
    L = ['%s=%r' % (key, value)
5579
      for key, value in self.__dict__.iteritems()]
5580
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5581
 
5582
  def __eq__(self, other):
5583
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5584
 
5585
  def __ne__(self, other):
5586
    return not (self == other)
5587
 
5588
class isInvoiceReceived_result:
5589
  """
5590
  Attributes:
5591
   - success
5592
  """
5593
 
5594
  thrift_spec = (
5595
    (0, TType.BOOL, 'success', None, None, ), # 0
5596
  )
5597
 
5598
  def __init__(self, success=None,):
5599
    self.success = success
5600
 
5601
  def read(self, iprot):
5602
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5603
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5604
      return
5605
    iprot.readStructBegin()
5606
    while True:
5607
      (fname, ftype, fid) = iprot.readFieldBegin()
5608
      if ftype == TType.STOP:
5609
        break
5610
      if fid == 0:
5611
        if ftype == TType.BOOL:
5612
          self.success = iprot.readBool();
5613
        else:
5614
          iprot.skip(ftype)
5615
      else:
5616
        iprot.skip(ftype)
5617
      iprot.readFieldEnd()
5618
    iprot.readStructEnd()
5619
 
5620
  def write(self, oprot):
5621
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5622
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5623
      return
5624
    oprot.writeStructBegin('isInvoiceReceived_result')
5625
    if self.success is not None:
5626
      oprot.writeFieldBegin('success', TType.BOOL, 0)
5627
      oprot.writeBool(self.success)
5628
      oprot.writeFieldEnd()
5629
    oprot.writeFieldStop()
5630
    oprot.writeStructEnd()
5631
 
5632
  def validate(self):
5633
    return
5634
 
5635
 
5636
  def __repr__(self):
5637
    L = ['%s=%r' % (key, value)
5638
      for key, value in self.__dict__.iteritems()]
5639
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5640
 
5641
  def __eq__(self, other):
5642
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5643
 
5644
  def __ne__(self, other):
5645
    return not (self == other)
9829 amar.kumar 5646
 
5647
class changeWarehouseForPO_args:
5648
  """
5649
  Attributes:
5650
   - id
5651
   - warehouseId
5652
  """
5653
 
5654
  thrift_spec = (
5655
    None, # 0
5656
    (1, TType.I64, 'id', None, None, ), # 1
5657
    (2, TType.I64, 'warehouseId', None, None, ), # 2
5658
  )
5659
 
5660
  def __init__(self, id=None, warehouseId=None,):
5661
    self.id = id
5662
    self.warehouseId = warehouseId
5663
 
5664
  def read(self, iprot):
5665
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5666
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5667
      return
5668
    iprot.readStructBegin()
5669
    while True:
5670
      (fname, ftype, fid) = iprot.readFieldBegin()
5671
      if ftype == TType.STOP:
5672
        break
5673
      if fid == 1:
5674
        if ftype == TType.I64:
5675
          self.id = iprot.readI64();
5676
        else:
5677
          iprot.skip(ftype)
5678
      elif fid == 2:
5679
        if ftype == TType.I64:
5680
          self.warehouseId = iprot.readI64();
5681
        else:
5682
          iprot.skip(ftype)
5683
      else:
5684
        iprot.skip(ftype)
5685
      iprot.readFieldEnd()
5686
    iprot.readStructEnd()
5687
 
5688
  def write(self, oprot):
5689
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5690
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5691
      return
5692
    oprot.writeStructBegin('changeWarehouseForPO_args')
5693
    if self.id is not None:
5694
      oprot.writeFieldBegin('id', TType.I64, 1)
5695
      oprot.writeI64(self.id)
5696
      oprot.writeFieldEnd()
5697
    if self.warehouseId is not None:
5698
      oprot.writeFieldBegin('warehouseId', TType.I64, 2)
5699
      oprot.writeI64(self.warehouseId)
5700
      oprot.writeFieldEnd()
5701
    oprot.writeFieldStop()
5702
    oprot.writeStructEnd()
5703
 
5704
  def validate(self):
5705
    return
5706
 
5707
 
5708
  def __repr__(self):
5709
    L = ['%s=%r' % (key, value)
5710
      for key, value in self.__dict__.iteritems()]
5711
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5712
 
5713
  def __eq__(self, other):
5714
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5715
 
5716
  def __ne__(self, other):
5717
    return not (self == other)
5718
 
5719
class changeWarehouseForPO_result:
5720
  """
5721
  Attributes:
5722
   - e
5723
  """
5724
 
5725
  thrift_spec = (
5726
    None, # 0
5727
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
5728
  )
5729
 
5730
  def __init__(self, e=None,):
5731
    self.e = e
5732
 
5733
  def read(self, iprot):
5734
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5735
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5736
      return
5737
    iprot.readStructBegin()
5738
    while True:
5739
      (fname, ftype, fid) = iprot.readFieldBegin()
5740
      if ftype == TType.STOP:
5741
        break
5742
      if fid == 1:
5743
        if ftype == TType.STRUCT:
5744
          self.e = PurchaseServiceException()
5745
          self.e.read(iprot)
5746
        else:
5747
          iprot.skip(ftype)
5748
      else:
5749
        iprot.skip(ftype)
5750
      iprot.readFieldEnd()
5751
    iprot.readStructEnd()
5752
 
5753
  def write(self, oprot):
5754
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5755
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5756
      return
5757
    oprot.writeStructBegin('changeWarehouseForPO_result')
5758
    if self.e is not None:
5759
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
5760
      self.e.write(oprot)
5761
      oprot.writeFieldEnd()
5762
    oprot.writeFieldStop()
5763
    oprot.writeStructEnd()
5764
 
5765
  def validate(self):
5766
    return
5767
 
5768
 
5769
  def __repr__(self):
5770
    L = ['%s=%r' % (key, value)
5771
      for key, value in self.__dict__.iteritems()]
5772
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5773
 
5774
  def __eq__(self, other):
5775
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5776
 
5777
  def __ne__(self, other):
5778
    return not (self == other)
9925 amar.kumar 5779
 
5780
class changePOStatus_args:
5781
  """
5782
  Attributes:
5783
   - id
5784
   - poStatus
5785
  """
5786
 
5787
  thrift_spec = (
5788
    None, # 0
5789
    (1, TType.I64, 'id', None, None, ), # 1
5790
    (2, TType.I32, 'poStatus', None, None, ), # 2
5791
  )
5792
 
5793
  def __init__(self, id=None, poStatus=None,):
5794
    self.id = id
5795
    self.poStatus = poStatus
5796
 
5797
  def read(self, iprot):
5798
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5799
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5800
      return
5801
    iprot.readStructBegin()
5802
    while True:
5803
      (fname, ftype, fid) = iprot.readFieldBegin()
5804
      if ftype == TType.STOP:
5805
        break
5806
      if fid == 1:
5807
        if ftype == TType.I64:
5808
          self.id = iprot.readI64();
5809
        else:
5810
          iprot.skip(ftype)
5811
      elif fid == 2:
5812
        if ftype == TType.I32:
5813
          self.poStatus = iprot.readI32();
5814
        else:
5815
          iprot.skip(ftype)
5816
      else:
5817
        iprot.skip(ftype)
5818
      iprot.readFieldEnd()
5819
    iprot.readStructEnd()
5820
 
5821
  def write(self, oprot):
5822
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5823
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5824
      return
5825
    oprot.writeStructBegin('changePOStatus_args')
5826
    if self.id is not None:
5827
      oprot.writeFieldBegin('id', TType.I64, 1)
5828
      oprot.writeI64(self.id)
5829
      oprot.writeFieldEnd()
5830
    if self.poStatus is not None:
5831
      oprot.writeFieldBegin('poStatus', TType.I32, 2)
5832
      oprot.writeI32(self.poStatus)
5833
      oprot.writeFieldEnd()
5834
    oprot.writeFieldStop()
5835
    oprot.writeStructEnd()
5836
 
5837
  def validate(self):
5838
    return
5839
 
5840
 
5841
  def __repr__(self):
5842
    L = ['%s=%r' % (key, value)
5843
      for key, value in self.__dict__.iteritems()]
5844
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5845
 
5846
  def __eq__(self, other):
5847
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5848
 
5849
  def __ne__(self, other):
5850
    return not (self == other)
5851
 
5852
class changePOStatus_result:
5853
  """
5854
  Attributes:
5855
   - e
5856
  """
5857
 
5858
  thrift_spec = (
5859
    None, # 0
5860
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
5861
  )
5862
 
5863
  def __init__(self, e=None,):
5864
    self.e = e
5865
 
5866
  def read(self, iprot):
5867
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5868
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5869
      return
5870
    iprot.readStructBegin()
5871
    while True:
5872
      (fname, ftype, fid) = iprot.readFieldBegin()
5873
      if ftype == TType.STOP:
5874
        break
5875
      if fid == 1:
5876
        if ftype == TType.STRUCT:
5877
          self.e = PurchaseServiceException()
5878
          self.e.read(iprot)
5879
        else:
5880
          iprot.skip(ftype)
5881
      else:
5882
        iprot.skip(ftype)
5883
      iprot.readFieldEnd()
5884
    iprot.readStructEnd()
5885
 
5886
  def write(self, oprot):
5887
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5888
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5889
      return
5890
    oprot.writeStructBegin('changePOStatus_result')
5891
    if self.e is not None:
5892
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
5893
      self.e.write(oprot)
5894
      oprot.writeFieldEnd()
5895
    oprot.writeFieldStop()
5896
    oprot.writeStructEnd()
5897
 
5898
  def validate(self):
5899
    return
5900
 
5901
 
5902
  def __repr__(self):
5903
    L = ['%s=%r' % (key, value)
5904
      for key, value in self.__dict__.iteritems()]
5905
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5906
 
5907
  def __eq__(self, other):
5908
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5909
 
5910
  def __ne__(self, other):
5911
    return not (self == other)
11751 manish.sha 5912
 
5913
class getPurchaseReturn_args:
5914
  """
5915
  Attributes:
5916
   - id
5917
  """
5918
 
5919
  thrift_spec = (
5920
    None, # 0
5921
    (1, TType.I64, 'id', None, None, ), # 1
5922
  )
5923
 
5924
  def __init__(self, id=None,):
5925
    self.id = id
5926
 
5927
  def read(self, iprot):
5928
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5929
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5930
      return
5931
    iprot.readStructBegin()
5932
    while True:
5933
      (fname, ftype, fid) = iprot.readFieldBegin()
5934
      if ftype == TType.STOP:
5935
        break
5936
      if fid == 1:
5937
        if ftype == TType.I64:
5938
          self.id = iprot.readI64();
5939
        else:
5940
          iprot.skip(ftype)
5941
      else:
5942
        iprot.skip(ftype)
5943
      iprot.readFieldEnd()
5944
    iprot.readStructEnd()
5945
 
5946
  def write(self, oprot):
5947
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
5948
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
5949
      return
5950
    oprot.writeStructBegin('getPurchaseReturn_args')
5951
    if self.id is not None:
5952
      oprot.writeFieldBegin('id', TType.I64, 1)
5953
      oprot.writeI64(self.id)
5954
      oprot.writeFieldEnd()
5955
    oprot.writeFieldStop()
5956
    oprot.writeStructEnd()
5957
 
5958
  def validate(self):
5959
    return
5960
 
5961
 
5962
  def __repr__(self):
5963
    L = ['%s=%r' % (key, value)
5964
      for key, value in self.__dict__.iteritems()]
5965
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
5966
 
5967
  def __eq__(self, other):
5968
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
5969
 
5970
  def __ne__(self, other):
5971
    return not (self == other)
5972
 
5973
class getPurchaseReturn_result:
5974
  """
5975
  Attributes:
5976
   - success
5977
   - e
5978
  """
5979
 
5980
  thrift_spec = (
5981
    (0, TType.STRUCT, 'success', (PurchaseReturn, PurchaseReturn.thrift_spec), None, ), # 0
5982
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
5983
  )
5984
 
5985
  def __init__(self, success=None, e=None,):
5986
    self.success = success
5987
    self.e = e
5988
 
5989
  def read(self, iprot):
5990
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
5991
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
5992
      return
5993
    iprot.readStructBegin()
5994
    while True:
5995
      (fname, ftype, fid) = iprot.readFieldBegin()
5996
      if ftype == TType.STOP:
5997
        break
5998
      if fid == 0:
5999
        if ftype == TType.STRUCT:
6000
          self.success = PurchaseReturn()
6001
          self.success.read(iprot)
6002
        else:
6003
          iprot.skip(ftype)
6004
      elif fid == 1:
6005
        if ftype == TType.STRUCT:
6006
          self.e = PurchaseServiceException()
6007
          self.e.read(iprot)
6008
        else:
6009
          iprot.skip(ftype)
6010
      else:
6011
        iprot.skip(ftype)
6012
      iprot.readFieldEnd()
6013
    iprot.readStructEnd()
6014
 
6015
  def write(self, oprot):
6016
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6017
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6018
      return
6019
    oprot.writeStructBegin('getPurchaseReturn_result')
6020
    if self.success is not None:
6021
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
6022
      self.success.write(oprot)
6023
      oprot.writeFieldEnd()
6024
    if self.e is not None:
6025
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
6026
      self.e.write(oprot)
6027
      oprot.writeFieldEnd()
6028
    oprot.writeFieldStop()
6029
    oprot.writeStructEnd()
6030
 
6031
  def validate(self):
6032
    return
6033
 
6034
 
6035
  def __repr__(self):
6036
    L = ['%s=%r' % (key, value)
6037
      for key, value in self.__dict__.iteritems()]
6038
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6039
 
6040
  def __eq__(self, other):
6041
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6042
 
6043
  def __ne__(self, other):
6044
    return not (self == other)
13600 manish.sha 6045
 
6046
class markPurchasereturnSettled_args:
6047
  """
6048
  Attributes:
6049
   - id
6050
   - settlementType
6051
   - documentNumber
6052
   - settlementBy
6053
   - settledAmount
6054
  """
6055
 
6056
  thrift_spec = (
6057
    None, # 0
6058
    (1, TType.I64, 'id', None, None, ), # 1
6059
    (2, TType.I32, 'settlementType', None, None, ), # 2
6060
    (3, TType.STRING, 'documentNumber', None, None, ), # 3
6061
    (4, TType.STRING, 'settlementBy', None, None, ), # 4
6062
    (5, TType.I64, 'settledAmount', None, None, ), # 5
6063
  )
6064
 
6065
  def __init__(self, id=None, settlementType=None, documentNumber=None, settlementBy=None, settledAmount=None,):
6066
    self.id = id
6067
    self.settlementType = settlementType
6068
    self.documentNumber = documentNumber
6069
    self.settlementBy = settlementBy
6070
    self.settledAmount = settledAmount
6071
 
6072
  def read(self, iprot):
6073
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6074
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6075
      return
6076
    iprot.readStructBegin()
6077
    while True:
6078
      (fname, ftype, fid) = iprot.readFieldBegin()
6079
      if ftype == TType.STOP:
6080
        break
6081
      if fid == 1:
6082
        if ftype == TType.I64:
6083
          self.id = iprot.readI64();
6084
        else:
6085
          iprot.skip(ftype)
6086
      elif fid == 2:
6087
        if ftype == TType.I32:
6088
          self.settlementType = iprot.readI32();
6089
        else:
6090
          iprot.skip(ftype)
6091
      elif fid == 3:
6092
        if ftype == TType.STRING:
6093
          self.documentNumber = iprot.readString();
6094
        else:
6095
          iprot.skip(ftype)
6096
      elif fid == 4:
6097
        if ftype == TType.STRING:
6098
          self.settlementBy = iprot.readString();
6099
        else:
6100
          iprot.skip(ftype)
6101
      elif fid == 5:
6102
        if ftype == TType.I64:
6103
          self.settledAmount = iprot.readI64();
6104
        else:
6105
          iprot.skip(ftype)
6106
      else:
6107
        iprot.skip(ftype)
6108
      iprot.readFieldEnd()
6109
    iprot.readStructEnd()
6110
 
6111
  def write(self, oprot):
6112
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6113
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6114
      return
6115
    oprot.writeStructBegin('markPurchasereturnSettled_args')
6116
    if self.id is not None:
6117
      oprot.writeFieldBegin('id', TType.I64, 1)
6118
      oprot.writeI64(self.id)
6119
      oprot.writeFieldEnd()
6120
    if self.settlementType is not None:
6121
      oprot.writeFieldBegin('settlementType', TType.I32, 2)
6122
      oprot.writeI32(self.settlementType)
6123
      oprot.writeFieldEnd()
6124
    if self.documentNumber is not None:
6125
      oprot.writeFieldBegin('documentNumber', TType.STRING, 3)
6126
      oprot.writeString(self.documentNumber)
6127
      oprot.writeFieldEnd()
6128
    if self.settlementBy is not None:
6129
      oprot.writeFieldBegin('settlementBy', TType.STRING, 4)
6130
      oprot.writeString(self.settlementBy)
6131
      oprot.writeFieldEnd()
6132
    if self.settledAmount is not None:
6133
      oprot.writeFieldBegin('settledAmount', TType.I64, 5)
6134
      oprot.writeI64(self.settledAmount)
6135
      oprot.writeFieldEnd()
6136
    oprot.writeFieldStop()
6137
    oprot.writeStructEnd()
6138
 
6139
  def validate(self):
6140
    return
6141
 
6142
 
6143
  def __repr__(self):
6144
    L = ['%s=%r' % (key, value)
6145
      for key, value in self.__dict__.iteritems()]
6146
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6147
 
6148
  def __eq__(self, other):
6149
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6150
 
6151
  def __ne__(self, other):
6152
    return not (self == other)
6153
 
6154
class markPurchasereturnSettled_result:
6155
  """
6156
  Attributes:
6157
   - success
6158
   - e
6159
  """
6160
 
6161
  thrift_spec = (
6162
    (0, TType.BOOL, 'success', None, None, ), # 0
6163
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
6164
  )
6165
 
6166
  def __init__(self, success=None, e=None,):
6167
    self.success = success
6168
    self.e = e
6169
 
6170
  def read(self, iprot):
6171
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6172
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6173
      return
6174
    iprot.readStructBegin()
6175
    while True:
6176
      (fname, ftype, fid) = iprot.readFieldBegin()
6177
      if ftype == TType.STOP:
6178
        break
6179
      if fid == 0:
6180
        if ftype == TType.BOOL:
6181
          self.success = iprot.readBool();
6182
        else:
6183
          iprot.skip(ftype)
6184
      elif fid == 1:
6185
        if ftype == TType.STRUCT:
6186
          self.e = PurchaseServiceException()
6187
          self.e.read(iprot)
6188
        else:
6189
          iprot.skip(ftype)
6190
      else:
6191
        iprot.skip(ftype)
6192
      iprot.readFieldEnd()
6193
    iprot.readStructEnd()
6194
 
6195
  def write(self, oprot):
6196
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6197
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6198
      return
6199
    oprot.writeStructBegin('markPurchasereturnSettled_result')
6200
    if self.success is not None:
6201
      oprot.writeFieldBegin('success', TType.BOOL, 0)
6202
      oprot.writeBool(self.success)
6203
      oprot.writeFieldEnd()
6204
    if self.e is not None:
6205
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
6206
      self.e.write(oprot)
6207
      oprot.writeFieldEnd()
6208
    oprot.writeFieldStop()
6209
    oprot.writeStructEnd()
6210
 
6211
  def validate(self):
6212
    return
6213
 
6214
 
6215
  def __repr__(self):
6216
    L = ['%s=%r' % (key, value)
6217
      for key, value in self.__dict__.iteritems()]
6218
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6219
 
6220
  def __eq__(self, other):
6221
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6222
 
6223
  def __ne__(self, other):
6224
    return not (self == other)
6225
 
6226
class getPrSettlementsForPurchaseReturn_args:
6227
  """
6228
  Attributes:
6229
   - purchaseReturnId
6230
  """
6231
 
6232
  thrift_spec = (
6233
    None, # 0
6234
    (1, TType.I64, 'purchaseReturnId', None, None, ), # 1
6235
  )
6236
 
6237
  def __init__(self, purchaseReturnId=None,):
6238
    self.purchaseReturnId = purchaseReturnId
6239
 
6240
  def read(self, iprot):
6241
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6242
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6243
      return
6244
    iprot.readStructBegin()
6245
    while True:
6246
      (fname, ftype, fid) = iprot.readFieldBegin()
6247
      if ftype == TType.STOP:
6248
        break
6249
      if fid == 1:
6250
        if ftype == TType.I64:
6251
          self.purchaseReturnId = iprot.readI64();
6252
        else:
6253
          iprot.skip(ftype)
6254
      else:
6255
        iprot.skip(ftype)
6256
      iprot.readFieldEnd()
6257
    iprot.readStructEnd()
6258
 
6259
  def write(self, oprot):
6260
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6261
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6262
      return
6263
    oprot.writeStructBegin('getPrSettlementsForPurchaseReturn_args')
6264
    if self.purchaseReturnId is not None:
6265
      oprot.writeFieldBegin('purchaseReturnId', TType.I64, 1)
6266
      oprot.writeI64(self.purchaseReturnId)
6267
      oprot.writeFieldEnd()
6268
    oprot.writeFieldStop()
6269
    oprot.writeStructEnd()
6270
 
6271
  def validate(self):
6272
    return
6273
 
6274
 
6275
  def __repr__(self):
6276
    L = ['%s=%r' % (key, value)
6277
      for key, value in self.__dict__.iteritems()]
6278
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6279
 
6280
  def __eq__(self, other):
6281
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6282
 
6283
  def __ne__(self, other):
6284
    return not (self == other)
6285
 
6286
class getPrSettlementsForPurchaseReturn_result:
6287
  """
6288
  Attributes:
6289
   - success
6290
   - e
6291
  """
6292
 
6293
  thrift_spec = (
6294
    (0, TType.LIST, 'success', (TType.STRUCT,(PurchaseReturnSettlement, PurchaseReturnSettlement.thrift_spec)), None, ), # 0
6295
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
6296
  )
6297
 
6298
  def __init__(self, success=None, e=None,):
6299
    self.success = success
6300
    self.e = e
6301
 
6302
  def read(self, iprot):
6303
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6304
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6305
      return
6306
    iprot.readStructBegin()
6307
    while True:
6308
      (fname, ftype, fid) = iprot.readFieldBegin()
6309
      if ftype == TType.STOP:
6310
        break
6311
      if fid == 0:
6312
        if ftype == TType.LIST:
6313
          self.success = []
21847 amit.gupta 6314
          (_etype80, _size77) = iprot.readListBegin()
6315
          for _i81 in xrange(_size77):
6316
            _elem82 = PurchaseReturnSettlement()
6317
            _elem82.read(iprot)
6318
            self.success.append(_elem82)
13600 manish.sha 6319
          iprot.readListEnd()
6320
        else:
6321
          iprot.skip(ftype)
6322
      elif fid == 1:
6323
        if ftype == TType.STRUCT:
6324
          self.e = PurchaseServiceException()
6325
          self.e.read(iprot)
6326
        else:
6327
          iprot.skip(ftype)
6328
      else:
6329
        iprot.skip(ftype)
6330
      iprot.readFieldEnd()
6331
    iprot.readStructEnd()
6332
 
6333
  def write(self, oprot):
6334
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6335
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6336
      return
6337
    oprot.writeStructBegin('getPrSettlementsForPurchaseReturn_result')
6338
    if self.success is not None:
6339
      oprot.writeFieldBegin('success', TType.LIST, 0)
6340
      oprot.writeListBegin(TType.STRUCT, len(self.success))
21847 amit.gupta 6341
      for iter83 in self.success:
6342
        iter83.write(oprot)
13600 manish.sha 6343
      oprot.writeListEnd()
6344
      oprot.writeFieldEnd()
6345
    if self.e is not None:
6346
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
6347
      self.e.write(oprot)
6348
      oprot.writeFieldEnd()
6349
    oprot.writeFieldStop()
6350
    oprot.writeStructEnd()
6351
 
6352
  def validate(self):
6353
    return
6354
 
6355
 
6356
  def __repr__(self):
6357
    L = ['%s=%r' % (key, value)
6358
      for key, value in self.__dict__.iteritems()]
6359
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6360
 
6361
  def __eq__(self, other):
6362
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6363
 
6364
  def __ne__(self, other):
6365
    return not (self == other)
6366
 
6367
class updatePurchaseReturn_args:
6368
  """
6369
  Attributes:
6370
   - purchaseReturn
6371
  """
6372
 
6373
  thrift_spec = (
6374
    None, # 0
6375
    (1, TType.STRUCT, 'purchaseReturn', (PurchaseReturn, PurchaseReturn.thrift_spec), None, ), # 1
6376
  )
6377
 
6378
  def __init__(self, purchaseReturn=None,):
6379
    self.purchaseReturn = purchaseReturn
6380
 
6381
  def read(self, iprot):
6382
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6383
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6384
      return
6385
    iprot.readStructBegin()
6386
    while True:
6387
      (fname, ftype, fid) = iprot.readFieldBegin()
6388
      if ftype == TType.STOP:
6389
        break
6390
      if fid == 1:
6391
        if ftype == TType.STRUCT:
6392
          self.purchaseReturn = PurchaseReturn()
6393
          self.purchaseReturn.read(iprot)
6394
        else:
6395
          iprot.skip(ftype)
6396
      else:
6397
        iprot.skip(ftype)
6398
      iprot.readFieldEnd()
6399
    iprot.readStructEnd()
6400
 
6401
  def write(self, oprot):
6402
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6403
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6404
      return
6405
    oprot.writeStructBegin('updatePurchaseReturn_args')
6406
    if self.purchaseReturn is not None:
6407
      oprot.writeFieldBegin('purchaseReturn', TType.STRUCT, 1)
6408
      self.purchaseReturn.write(oprot)
6409
      oprot.writeFieldEnd()
6410
    oprot.writeFieldStop()
6411
    oprot.writeStructEnd()
6412
 
6413
  def validate(self):
6414
    return
6415
 
6416
 
6417
  def __repr__(self):
6418
    L = ['%s=%r' % (key, value)
6419
      for key, value in self.__dict__.iteritems()]
6420
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6421
 
6422
  def __eq__(self, other):
6423
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6424
 
6425
  def __ne__(self, other):
6426
    return not (self == other)
6427
 
6428
class updatePurchaseReturn_result:
6429
  """
6430
  Attributes:
6431
   - e
6432
  """
6433
 
6434
  thrift_spec = (
6435
    None, # 0
6436
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
6437
  )
6438
 
6439
  def __init__(self, e=None,):
6440
    self.e = e
6441
 
6442
  def read(self, iprot):
6443
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
6444
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
6445
      return
6446
    iprot.readStructBegin()
6447
    while True:
6448
      (fname, ftype, fid) = iprot.readFieldBegin()
6449
      if ftype == TType.STOP:
6450
        break
6451
      if fid == 1:
6452
        if ftype == TType.STRUCT:
6453
          self.e = PurchaseServiceException()
6454
          self.e.read(iprot)
6455
        else:
6456
          iprot.skip(ftype)
6457
      else:
6458
        iprot.skip(ftype)
6459
      iprot.readFieldEnd()
6460
    iprot.readStructEnd()
6461
 
6462
  def write(self, oprot):
6463
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
6464
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
6465
      return
6466
    oprot.writeStructBegin('updatePurchaseReturn_result')
6467
    if self.e is not None:
6468
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
6469
      self.e.write(oprot)
6470
      oprot.writeFieldEnd()
6471
    oprot.writeFieldStop()
6472
    oprot.writeStructEnd()
6473
 
6474
  def validate(self):
6475
    return
6476
 
6477
 
6478
  def __repr__(self):
6479
    L = ['%s=%r' % (key, value)
6480
      for key, value in self.__dict__.iteritems()]
6481
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
6482
 
6483
  def __eq__(self, other):
6484
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
6485
 
6486
  def __ne__(self, other):
6487
    return not (self == other)