Rev 5496 | Rev 5620 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
## Autogenerated by Thrift Compiler (0.7.0)## DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING#from thrift.Thrift import *import shop2020.thriftpy.generic.GenericServicefrom ttypes import *from thrift.Thrift import TProcessorfrom thrift.transport import TTransportfrom thrift.protocol import TBinaryProtocol, TProtocoltry:from thrift.protocol import fastbinaryexcept:fastbinary = Noneclass Iface(shop2020.thriftpy.generic.GenericService.Iface):def getInventoryItem(self, serialNumber):"""Retrieves serialized inventory item given a serial numberParameters:- serialNumber"""passdef getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId):"""Retrieves non-serialized inventory item from a given supplierParameters:- itemNumber- itemId- fulfilmentWarehouseId"""passdef scan(self, inventoryItem, type, quantity, billingWarehouseId):"""Scan non-serialized items.Parameters:- inventoryItem- type- quantity- billingWarehouseId"""passdef scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):"""Scan serialized items linked with an order. Returns its price.Parameters:- serialNumber- type- orderId- fulfilmentWarehouseId- quantity- billingWarehouseId"""passdef scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):"""Scan non-serialized items linked with an order.Parameters:- inventoryItem- type- quantity- orderId- fulfilmentWarehouseId- billingWarehouseId"""passdef createItemNumberMapping(self, itemNumber, itemId):"""Created item number to item id mappingParameters:- itemNumber- itemId"""passdef getItemNumbers(self, itemId):"""Get itemNumber mappings for itemIdParameters:- itemId"""passdef getItemIds(self, itemNumber):"""Gets item ids for a given item numberParameters:- itemNumber"""passdef getInventoryItemsFromLastScanType(self, lastScanType):"""Retrieves all inventory items given a last scan typeParameters:- lastScanType"""passdef getInventoryItemFromId(self, inventoryItemId):"""Retrieves inventory item given a inventoryItem idParameters:- inventoryItemId"""passdef getPurchaseScans(self, startDate, endDate):"""Returns the purchase scans grouped by items for Purchase register reconciliationParameters:- startDate- endDate"""passdef fetchScansPerInvoiceNumber(self, date):"""Returns the invoices and the count of scans against on a given day.Parameters:- date"""passclass Client(shop2020.thriftpy.generic.GenericService.Client, Iface):def __init__(self, iprot, oprot=None):shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)def getInventoryItem(self, serialNumber):"""Retrieves serialized inventory item given a serial numberParameters:- serialNumber"""self.send_getInventoryItem(serialNumber)return self.recv_getInventoryItem()def send_getInventoryItem(self, serialNumber):self._oprot.writeMessageBegin('getInventoryItem', TMessageType.CALL, self._seqid)args = getInventoryItem_args()args.serialNumber = serialNumberargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getInventoryItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getInventoryItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.wex is not None:raise result.wexraise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItem failed: unknown result");def getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId):"""Retrieves non-serialized inventory item from a given supplierParameters:- itemNumber- itemId- fulfilmentWarehouseId"""self.send_getNonSeralizedInventoryItem(itemNumber, itemId, fulfilmentWarehouseId)return self.recv_getNonSeralizedInventoryItem()def send_getNonSeralizedInventoryItem(self, itemNumber, itemId, fulfilmentWarehouseId):self._oprot.writeMessageBegin('getNonSeralizedInventoryItem', TMessageType.CALL, self._seqid)args = getNonSeralizedInventoryItem_args()args.itemNumber = itemNumberargs.itemId = itemIdargs.fulfilmentWarehouseId = fulfilmentWarehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getNonSeralizedInventoryItem(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getNonSeralizedInventoryItem_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.wex is not None:raise result.wexraise TApplicationException(TApplicationException.MISSING_RESULT, "getNonSeralizedInventoryItem failed: unknown result");def scan(self, inventoryItem, type, quantity, billingWarehouseId):"""Scan non-serialized items.Parameters:- inventoryItem- type- quantity- billingWarehouseId"""self.send_scan(inventoryItem, type, quantity, billingWarehouseId)self.recv_scan()def send_scan(self, inventoryItem, type, quantity, billingWarehouseId):self._oprot.writeMessageBegin('scan', TMessageType.CALL, self._seqid)args = scan_args()args.inventoryItem = inventoryItemargs.type = typeargs.quantity = quantityargs.billingWarehouseId = billingWarehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_scan(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = scan_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.wex is not None:raise result.wexreturndef scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):"""Scan serialized items linked with an order. Returns its price.Parameters:- serialNumber- type- orderId- fulfilmentWarehouseId- quantity- billingWarehouseId"""self.send_scanSerializedItemForOrder(serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId)return self.recv_scanSerializedItemForOrder()def send_scanSerializedItemForOrder(self, serialNumber, type, orderId, fulfilmentWarehouseId, quantity, billingWarehouseId):self._oprot.writeMessageBegin('scanSerializedItemForOrder', TMessageType.CALL, self._seqid)args = scanSerializedItemForOrder_args()args.serialNumber = serialNumberargs.type = typeargs.orderId = orderIdargs.fulfilmentWarehouseId = fulfilmentWarehouseIdargs.quantity = quantityargs.billingWarehouseId = billingWarehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_scanSerializedItemForOrder(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = scanSerializedItemForOrder_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.wex is not None:raise result.wexraise TApplicationException(TApplicationException.MISSING_RESULT, "scanSerializedItemForOrder failed: unknown result");def scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):"""Scan non-serialized items linked with an order.Parameters:- inventoryItem- type- quantity- orderId- fulfilmentWarehouseId- billingWarehouseId"""self.send_scanForOrder(inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId)return self.recv_scanForOrder()def send_scanForOrder(self, inventoryItem, type, quantity, orderId, fulfilmentWarehouseId, billingWarehouseId):self._oprot.writeMessageBegin('scanForOrder', TMessageType.CALL, self._seqid)args = scanForOrder_args()args.inventoryItem = inventoryItemargs.type = typeargs.quantity = quantityargs.orderId = orderIdargs.fulfilmentWarehouseId = fulfilmentWarehouseIdargs.billingWarehouseId = billingWarehouseIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_scanForOrder(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = scanForOrder_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.wex is not None:raise result.wexraise TApplicationException(TApplicationException.MISSING_RESULT, "scanForOrder failed: unknown result");def createItemNumberMapping(self, itemNumber, itemId):"""Created item number to item id mappingParameters:- itemNumber- itemId"""self.send_createItemNumberMapping(itemNumber, itemId)self.recv_createItemNumberMapping()def send_createItemNumberMapping(self, itemNumber, itemId):self._oprot.writeMessageBegin('createItemNumberMapping', TMessageType.CALL, self._seqid)args = createItemNumberMapping_args()args.itemNumber = itemNumberargs.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_createItemNumberMapping(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = createItemNumberMapping_result()result.read(self._iprot)self._iprot.readMessageEnd()returndef getItemNumbers(self, itemId):"""Get itemNumber mappings for itemIdParameters:- itemId"""self.send_getItemNumbers(itemId)return self.recv_getItemNumbers()def send_getItemNumbers(self, itemId):self._oprot.writeMessageBegin('getItemNumbers', TMessageType.CALL, self._seqid)args = getItemNumbers_args()args.itemId = itemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getItemNumbers(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getItemNumbers_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getItemNumbers failed: unknown result");def getItemIds(self, itemNumber):"""Gets item ids for a given item numberParameters:- itemNumber"""self.send_getItemIds(itemNumber)return self.recv_getItemIds()def send_getItemIds(self, itemNumber):self._oprot.writeMessageBegin('getItemIds', TMessageType.CALL, self._seqid)args = getItemIds_args()args.itemNumber = itemNumberargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getItemIds(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getItemIds_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getItemIds failed: unknown result");def getInventoryItemsFromLastScanType(self, lastScanType):"""Retrieves all inventory items given a last scan typeParameters:- lastScanType"""self.send_getInventoryItemsFromLastScanType(lastScanType)return self.recv_getInventoryItemsFromLastScanType()def send_getInventoryItemsFromLastScanType(self, lastScanType):self._oprot.writeMessageBegin('getInventoryItemsFromLastScanType', TMessageType.CALL, self._seqid)args = getInventoryItemsFromLastScanType_args()args.lastScanType = lastScanTypeargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getInventoryItemsFromLastScanType(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getInventoryItemsFromLastScanType_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.wex is not None:raise result.wexraise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemsFromLastScanType failed: unknown result");def getInventoryItemFromId(self, inventoryItemId):"""Retrieves inventory item given a inventoryItem idParameters:- inventoryItemId"""self.send_getInventoryItemFromId(inventoryItemId)return self.recv_getInventoryItemFromId()def send_getInventoryItemFromId(self, inventoryItemId):self._oprot.writeMessageBegin('getInventoryItemFromId', TMessageType.CALL, self._seqid)args = getInventoryItemFromId_args()args.inventoryItemId = inventoryItemIdargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getInventoryItemFromId(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getInventoryItemFromId_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successif result.wex is not None:raise result.wexraise TApplicationException(TApplicationException.MISSING_RESULT, "getInventoryItemFromId failed: unknown result");def getPurchaseScans(self, startDate, endDate):"""Returns the purchase scans grouped by items for Purchase register reconciliationParameters:- startDate- endDate"""self.send_getPurchaseScans(startDate, endDate)return self.recv_getPurchaseScans()def send_getPurchaseScans(self, startDate, endDate):self._oprot.writeMessageBegin('getPurchaseScans', TMessageType.CALL, self._seqid)args = getPurchaseScans_args()args.startDate = startDateargs.endDate = endDateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_getPurchaseScans(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = getPurchaseScans_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "getPurchaseScans failed: unknown result");def fetchScansPerInvoiceNumber(self, date):"""Returns the invoices and the count of scans against on a given day.Parameters:- date"""self.send_fetchScansPerInvoiceNumber(date)return self.recv_fetchScansPerInvoiceNumber()def send_fetchScansPerInvoiceNumber(self, date):self._oprot.writeMessageBegin('fetchScansPerInvoiceNumber', TMessageType.CALL, self._seqid)args = fetchScansPerInvoiceNumber_args()args.date = dateargs.write(self._oprot)self._oprot.writeMessageEnd()self._oprot.trans.flush()def recv_fetchScansPerInvoiceNumber(self, ):(fname, mtype, rseqid) = self._iprot.readMessageBegin()if mtype == TMessageType.EXCEPTION:x = TApplicationException()x.read(self._iprot)self._iprot.readMessageEnd()raise xresult = fetchScansPerInvoiceNumber_result()result.read(self._iprot)self._iprot.readMessageEnd()if result.success is not None:return result.successraise TApplicationException(TApplicationException.MISSING_RESULT, "fetchScansPerInvoiceNumber failed: unknown result");class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):def __init__(self, handler):shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)self._processMap["getInventoryItem"] = Processor.process_getInventoryItemself._processMap["getNonSeralizedInventoryItem"] = Processor.process_getNonSeralizedInventoryItemself._processMap["scan"] = Processor.process_scanself._processMap["scanSerializedItemForOrder"] = Processor.process_scanSerializedItemForOrderself._processMap["scanForOrder"] = Processor.process_scanForOrderself._processMap["createItemNumberMapping"] = Processor.process_createItemNumberMappingself._processMap["getItemNumbers"] = Processor.process_getItemNumbersself._processMap["getItemIds"] = Processor.process_getItemIdsself._processMap["getInventoryItemsFromLastScanType"] = Processor.process_getInventoryItemsFromLastScanTypeself._processMap["getInventoryItemFromId"] = Processor.process_getInventoryItemFromIdself._processMap["getPurchaseScans"] = Processor.process_getPurchaseScansself._processMap["fetchScansPerInvoiceNumber"] = Processor.process_fetchScansPerInvoiceNumberdef process(self, iprot, oprot):(name, type, seqid) = iprot.readMessageBegin()if name not in self._processMap:iprot.skip(TType.STRUCT)iprot.readMessageEnd()x = TApplicationException(TApplicationException.UNKNOWN_METHOD, 'Unknown function %s' % (name))oprot.writeMessageBegin(name, TMessageType.EXCEPTION, seqid)x.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()returnelse:self._processMap[name](self, seqid, iprot, oprot)return Truedef process_getInventoryItem(self, seqid, iprot, oprot):args = getInventoryItem_args()args.read(iprot)iprot.readMessageEnd()result = getInventoryItem_result()try:result.success = self._handler.getInventoryItem(args.serialNumber)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("getInventoryItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getNonSeralizedInventoryItem(self, seqid, iprot, oprot):args = getNonSeralizedInventoryItem_args()args.read(iprot)iprot.readMessageEnd()result = getNonSeralizedInventoryItem_result()try:result.success = self._handler.getNonSeralizedInventoryItem(args.itemNumber, args.itemId, args.fulfilmentWarehouseId)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("getNonSeralizedInventoryItem", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_scan(self, seqid, iprot, oprot):args = scan_args()args.read(iprot)iprot.readMessageEnd()result = scan_result()try:self._handler.scan(args.inventoryItem, args.type, args.quantity, args.billingWarehouseId)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("scan", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_scanSerializedItemForOrder(self, seqid, iprot, oprot):args = scanSerializedItemForOrder_args()args.read(iprot)iprot.readMessageEnd()result = scanSerializedItemForOrder_result()try:result.success = self._handler.scanSerializedItemForOrder(args.serialNumber, args.type, args.orderId, args.fulfilmentWarehouseId, args.quantity, args.billingWarehouseId)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("scanSerializedItemForOrder", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_scanForOrder(self, seqid, iprot, oprot):args = scanForOrder_args()args.read(iprot)iprot.readMessageEnd()result = scanForOrder_result()try:result.success = self._handler.scanForOrder(args.inventoryItem, args.type, args.quantity, args.orderId, args.fulfilmentWarehouseId, args.billingWarehouseId)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("scanForOrder", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_createItemNumberMapping(self, seqid, iprot, oprot):args = createItemNumberMapping_args()args.read(iprot)iprot.readMessageEnd()result = createItemNumberMapping_result()self._handler.createItemNumberMapping(args.itemNumber, args.itemId)oprot.writeMessageBegin("createItemNumberMapping", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getItemNumbers(self, seqid, iprot, oprot):args = getItemNumbers_args()args.read(iprot)iprot.readMessageEnd()result = getItemNumbers_result()result.success = self._handler.getItemNumbers(args.itemId)oprot.writeMessageBegin("getItemNumbers", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getItemIds(self, seqid, iprot, oprot):args = getItemIds_args()args.read(iprot)iprot.readMessageEnd()result = getItemIds_result()result.success = self._handler.getItemIds(args.itemNumber)oprot.writeMessageBegin("getItemIds", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getInventoryItemsFromLastScanType(self, seqid, iprot, oprot):args = getInventoryItemsFromLastScanType_args()args.read(iprot)iprot.readMessageEnd()result = getInventoryItemsFromLastScanType_result()try:result.success = self._handler.getInventoryItemsFromLastScanType(args.lastScanType)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("getInventoryItemsFromLastScanType", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getInventoryItemFromId(self, seqid, iprot, oprot):args = getInventoryItemFromId_args()args.read(iprot)iprot.readMessageEnd()result = getInventoryItemFromId_result()try:result.success = self._handler.getInventoryItemFromId(args.inventoryItemId)except WarehouseServiceException, wex:result.wex = wexoprot.writeMessageBegin("getInventoryItemFromId", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_getPurchaseScans(self, seqid, iprot, oprot):args = getPurchaseScans_args()args.read(iprot)iprot.readMessageEnd()result = getPurchaseScans_result()result.success = self._handler.getPurchaseScans(args.startDate, args.endDate)oprot.writeMessageBegin("getPurchaseScans", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()def process_fetchScansPerInvoiceNumber(self, seqid, iprot, oprot):args = fetchScansPerInvoiceNumber_args()args.read(iprot)iprot.readMessageEnd()result = fetchScansPerInvoiceNumber_result()result.success = self._handler.fetchScansPerInvoiceNumber(args.date)oprot.writeMessageBegin("fetchScansPerInvoiceNumber", TMessageType.REPLY, seqid)result.write(oprot)oprot.writeMessageEnd()oprot.trans.flush()# HELPER FUNCTIONS AND STRUCTURESclass getInventoryItem_args:"""Attributes:- serialNumber"""thrift_spec = (None, # 0(1, TType.STRING, 'serialNumber', None, None, ), # 1)def __init__(self, serialNumber=None,):self.serialNumber = serialNumberdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.serialNumber = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getInventoryItem_args')if self.serialNumber is not None:oprot.writeFieldBegin('serialNumber', TType.STRING, 1)oprot.writeString(self.serialNumber)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getInventoryItem_result:"""Attributes:- success- wex"""thrift_spec = ((0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, wex=None,):self.success = successself.wex = wexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = InventoryItem()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.wex = WarehouseServiceException()self.wex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getInventoryItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.wex is not None:oprot.writeFieldBegin('wex', TType.STRUCT, 1)self.wex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getNonSeralizedInventoryItem_args:"""Attributes:- itemNumber- itemId- fulfilmentWarehouseId"""thrift_spec = (None, # 0(1, TType.STRING, 'itemNumber', None, None, ), # 1(2, TType.I64, 'itemId', None, None, ), # 2(3, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 3)def __init__(self, itemNumber=None, itemId=None, fulfilmentWarehouseId=None,):self.itemNumber = itemNumberself.itemId = itemIdself.fulfilmentWarehouseId = fulfilmentWarehouseIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.itemNumber = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.fulfilmentWarehouseId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getNonSeralizedInventoryItem_args')if self.itemNumber is not None:oprot.writeFieldBegin('itemNumber', TType.STRING, 1)oprot.writeString(self.itemNumber)oprot.writeFieldEnd()if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 2)oprot.writeI64(self.itemId)oprot.writeFieldEnd()if self.fulfilmentWarehouseId is not None:oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 3)oprot.writeI64(self.fulfilmentWarehouseId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getNonSeralizedInventoryItem_result:"""Attributes:- success- wex"""thrift_spec = ((0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, wex=None,):self.success = successself.wex = wexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = InventoryItem()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.wex = WarehouseServiceException()self.wex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getNonSeralizedInventoryItem_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.wex is not None:oprot.writeFieldBegin('wex', TType.STRUCT, 1)self.wex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class scan_args:"""Attributes:- inventoryItem- type- quantity- billingWarehouseId"""thrift_spec = (None, # 0(1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1(2, TType.I32, 'type', None, None, ), # 2(3, TType.I64, 'quantity', None, None, ), # 3(4, TType.I64, 'billingWarehouseId', None, None, ), # 4)def __init__(self, inventoryItem=None, type=None, quantity=None, billingWarehouseId=None,):self.inventoryItem = inventoryItemself.type = typeself.quantity = quantityself.billingWarehouseId = billingWarehouseIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRUCT:self.inventoryItem = InventoryItem()self.inventoryItem.read(iprot)else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I32:self.type = iprot.readI32();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.quantity = iprot.readI64();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I64:self.billingWarehouseId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('scan_args')if self.inventoryItem is not None:oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)self.inventoryItem.write(oprot)oprot.writeFieldEnd()if self.type is not None:oprot.writeFieldBegin('type', TType.I32, 2)oprot.writeI32(self.type)oprot.writeFieldEnd()if self.quantity is not None:oprot.writeFieldBegin('quantity', TType.I64, 3)oprot.writeI64(self.quantity)oprot.writeFieldEnd()if self.billingWarehouseId is not None:oprot.writeFieldBegin('billingWarehouseId', TType.I64, 4)oprot.writeI64(self.billingWarehouseId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class scan_result:"""Attributes:- wex"""thrift_spec = (None, # 0(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1)def __init__(self, wex=None,):self.wex = wexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRUCT:self.wex = WarehouseServiceException()self.wex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('scan_result')if self.wex is not None:oprot.writeFieldBegin('wex', TType.STRUCT, 1)self.wex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class scanSerializedItemForOrder_args:"""Attributes:- serialNumber- type- orderId- fulfilmentWarehouseId- quantity- billingWarehouseId"""thrift_spec = (None, # 0(1, TType.STRING, 'serialNumber', None, None, ), # 1(2, TType.I32, 'type', None, None, ), # 2(3, TType.I64, 'orderId', None, None, ), # 3(4, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 4(5, TType.DOUBLE, 'quantity', None, None, ), # 5(6, TType.I64, 'billingWarehouseId', None, None, ), # 6)def __init__(self, serialNumber=None, type=None, orderId=None, fulfilmentWarehouseId=None, quantity=None, billingWarehouseId=None,):self.serialNumber = serialNumberself.type = typeself.orderId = orderIdself.fulfilmentWarehouseId = fulfilmentWarehouseIdself.quantity = quantityself.billingWarehouseId = billingWarehouseIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.serialNumber = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I32:self.type = iprot.readI32();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.orderId = iprot.readI64();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I64:self.fulfilmentWarehouseId = iprot.readI64();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.DOUBLE:self.quantity = iprot.readDouble();else:iprot.skip(ftype)elif fid == 6:if ftype == TType.I64:self.billingWarehouseId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('scanSerializedItemForOrder_args')if self.serialNumber is not None:oprot.writeFieldBegin('serialNumber', TType.STRING, 1)oprot.writeString(self.serialNumber)oprot.writeFieldEnd()if self.type is not None:oprot.writeFieldBegin('type', TType.I32, 2)oprot.writeI32(self.type)oprot.writeFieldEnd()if self.orderId is not None:oprot.writeFieldBegin('orderId', TType.I64, 3)oprot.writeI64(self.orderId)oprot.writeFieldEnd()if self.fulfilmentWarehouseId is not None:oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 4)oprot.writeI64(self.fulfilmentWarehouseId)oprot.writeFieldEnd()if self.quantity is not None:oprot.writeFieldBegin('quantity', TType.DOUBLE, 5)oprot.writeDouble(self.quantity)oprot.writeFieldEnd()if self.billingWarehouseId is not None:oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)oprot.writeI64(self.billingWarehouseId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class scanSerializedItemForOrder_result:"""Attributes:- success- wex"""thrift_spec = ((0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, wex=None,):self.success = successself.wex = wexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = InventoryItem()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.wex = WarehouseServiceException()self.wex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('scanSerializedItemForOrder_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.wex is not None:oprot.writeFieldBegin('wex', TType.STRUCT, 1)self.wex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class scanForOrder_args:"""Attributes:- inventoryItem- type- quantity- orderId- fulfilmentWarehouseId- billingWarehouseId"""thrift_spec = (None, # 0(1, TType.STRUCT, 'inventoryItem', (InventoryItem, InventoryItem.thrift_spec), None, ), # 1(2, TType.I32, 'type', None, None, ), # 2(3, TType.I64, 'quantity', None, None, ), # 3(4, TType.I64, 'orderId', None, None, ), # 4(5, TType.I64, 'fulfilmentWarehouseId', None, None, ), # 5(6, TType.I64, 'billingWarehouseId', None, None, ), # 6)def __init__(self, inventoryItem=None, type=None, quantity=None, orderId=None, fulfilmentWarehouseId=None, billingWarehouseId=None,):self.inventoryItem = inventoryItemself.type = typeself.quantity = quantityself.orderId = orderIdself.fulfilmentWarehouseId = fulfilmentWarehouseIdself.billingWarehouseId = billingWarehouseIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRUCT:self.inventoryItem = InventoryItem()self.inventoryItem.read(iprot)else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I32:self.type = iprot.readI32();else:iprot.skip(ftype)elif fid == 3:if ftype == TType.I64:self.quantity = iprot.readI64();else:iprot.skip(ftype)elif fid == 4:if ftype == TType.I64:self.orderId = iprot.readI64();else:iprot.skip(ftype)elif fid == 5:if ftype == TType.I64:self.fulfilmentWarehouseId = iprot.readI64();else:iprot.skip(ftype)elif fid == 6:if ftype == TType.I64:self.billingWarehouseId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('scanForOrder_args')if self.inventoryItem is not None:oprot.writeFieldBegin('inventoryItem', TType.STRUCT, 1)self.inventoryItem.write(oprot)oprot.writeFieldEnd()if self.type is not None:oprot.writeFieldBegin('type', TType.I32, 2)oprot.writeI32(self.type)oprot.writeFieldEnd()if self.quantity is not None:oprot.writeFieldBegin('quantity', TType.I64, 3)oprot.writeI64(self.quantity)oprot.writeFieldEnd()if self.orderId is not None:oprot.writeFieldBegin('orderId', TType.I64, 4)oprot.writeI64(self.orderId)oprot.writeFieldEnd()if self.fulfilmentWarehouseId is not None:oprot.writeFieldBegin('fulfilmentWarehouseId', TType.I64, 5)oprot.writeI64(self.fulfilmentWarehouseId)oprot.writeFieldEnd()if self.billingWarehouseId is not None:oprot.writeFieldBegin('billingWarehouseId', TType.I64, 6)oprot.writeI64(self.billingWarehouseId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class scanForOrder_result:"""Attributes:- success- wex"""thrift_spec = ((0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, wex=None,):self.success = successself.wex = wexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = InventoryItem()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.wex = WarehouseServiceException()self.wex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('scanForOrder_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.wex is not None:oprot.writeFieldBegin('wex', TType.STRUCT, 1)self.wex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class createItemNumberMapping_args:"""Attributes:- itemNumber- itemId"""thrift_spec = (None, # 0(1, TType.STRING, 'itemNumber', None, None, ), # 1(2, TType.I64, 'itemId', None, None, ), # 2)def __init__(self, itemNumber=None, itemId=None,):self.itemNumber = itemNumberself.itemId = itemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.itemNumber = iprot.readString();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('createItemNumberMapping_args')if self.itemNumber is not None:oprot.writeFieldBegin('itemNumber', TType.STRING, 1)oprot.writeString(self.itemNumber)oprot.writeFieldEnd()if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 2)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class createItemNumberMapping_result:thrift_spec = ()def read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakelse:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('createItemNumberMapping_result')oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemNumbers_args:"""Attributes:- itemId"""thrift_spec = (None, # 0(1, TType.I64, 'itemId', None, None, ), # 1)def __init__(self, itemId=None,):self.itemId = itemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.itemId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemNumbers_args')if self.itemId is not None:oprot.writeFieldBegin('itemId', TType.I64, 1)oprot.writeI64(self.itemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemNumbers_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype3, _size0) = iprot.readListBegin()for _i4 in xrange(_size0):_elem5 = iprot.readString();self.success.append(_elem5)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemNumbers_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRING, len(self.success))for iter6 in self.success:oprot.writeString(iter6)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemIds_args:"""Attributes:- itemNumber"""thrift_spec = (None, # 0(1, TType.STRING, 'itemNumber', None, None, ), # 1)def __init__(self, itemNumber=None,):self.itemNumber = itemNumberdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.STRING:self.itemNumber = iprot.readString();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemIds_args')if self.itemNumber is not None:oprot.writeFieldBegin('itemNumber', TType.STRING, 1)oprot.writeString(self.itemNumber)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getItemIds_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.I64,None), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype10, _size7) = iprot.readListBegin()for _i11 in xrange(_size7):_elem12 = iprot.readI64();self.success.append(_elem12)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getItemIds_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.I64, len(self.success))for iter13 in self.success:oprot.writeI64(iter13)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getInventoryItemsFromLastScanType_args:"""Attributes:- lastScanType"""thrift_spec = (None, # 0(1, TType.I32, 'lastScanType', None, None, ), # 1)def __init__(self, lastScanType=None,):self.lastScanType = lastScanTypedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I32:self.lastScanType = iprot.readI32();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getInventoryItemsFromLastScanType_args')if self.lastScanType is not None:oprot.writeFieldBegin('lastScanType', TType.I32, 1)oprot.writeI32(self.lastScanType)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getInventoryItemsFromLastScanType_result:"""Attributes:- success- wex"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(InventoryItem, InventoryItem.thrift_spec)), None, ), # 0(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, wex=None,):self.success = successself.wex = wexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype17, _size14) = iprot.readListBegin()for _i18 in xrange(_size14):_elem19 = InventoryItem()_elem19.read(iprot)self.success.append(_elem19)iprot.readListEnd()else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.wex = WarehouseServiceException()self.wex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getInventoryItemsFromLastScanType_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter20 in self.success:iter20.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()if self.wex is not None:oprot.writeFieldBegin('wex', TType.STRUCT, 1)self.wex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getInventoryItemFromId_args:"""Attributes:- inventoryItemId"""thrift_spec = (None, # 0(1, TType.I64, 'inventoryItemId', None, None, ), # 1)def __init__(self, inventoryItemId=None,):self.inventoryItemId = inventoryItemIddef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.inventoryItemId = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getInventoryItemFromId_args')if self.inventoryItemId is not None:oprot.writeFieldBegin('inventoryItemId', TType.I64, 1)oprot.writeI64(self.inventoryItemId)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getInventoryItemFromId_result:"""Attributes:- success- wex"""thrift_spec = ((0, TType.STRUCT, 'success', (InventoryItem, InventoryItem.thrift_spec), None, ), # 0(1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1)def __init__(self, success=None, wex=None,):self.success = successself.wex = wexdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.STRUCT:self.success = InventoryItem()self.success.read(iprot)else:iprot.skip(ftype)elif fid == 1:if ftype == TType.STRUCT:self.wex = WarehouseServiceException()self.wex.read(iprot)else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getInventoryItemFromId_result')if self.success is not None:oprot.writeFieldBegin('success', TType.STRUCT, 0)self.success.write(oprot)oprot.writeFieldEnd()if self.wex is not None:oprot.writeFieldBegin('wex', TType.STRUCT, 1)self.wex.write(oprot)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getPurchaseScans_args:"""Attributes:- startDate- endDate"""thrift_spec = (None, # 0(1, TType.I64, 'startDate', None, None, ), # 1(2, TType.I64, 'endDate', None, None, ), # 2)def __init__(self, startDate=None, endDate=None,):self.startDate = startDateself.endDate = endDatedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.startDate = iprot.readI64();else:iprot.skip(ftype)elif fid == 2:if ftype == TType.I64:self.endDate = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getPurchaseScans_args')if self.startDate is not None:oprot.writeFieldBegin('startDate', TType.I64, 1)oprot.writeI64(self.startDate)oprot.writeFieldEnd()if self.endDate is not None:oprot.writeFieldBegin('endDate', TType.I64, 2)oprot.writeI64(self.endDate)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class getPurchaseScans_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(DetailedPurchaseScan, DetailedPurchaseScan.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype24, _size21) = iprot.readListBegin()for _i25 in xrange(_size21):_elem26 = DetailedPurchaseScan()_elem26.read(iprot)self.success.append(_elem26)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('getPurchaseScans_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter27 in self.success:iter27.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class fetchScansPerInvoiceNumber_args:"""Attributes:- date"""thrift_spec = (None, # 0(1, TType.I64, 'date', None, None, ), # 1)def __init__(self, date=None,):self.date = datedef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 1:if ftype == TType.I64:self.date = iprot.readI64();else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('fetchScansPerInvoiceNumber_args')if self.date is not None:oprot.writeFieldBegin('date', TType.I64, 1)oprot.writeI64(self.date)oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)class fetchScansPerInvoiceNumber_result:"""Attributes:- success"""thrift_spec = ((0, TType.LIST, 'success', (TType.STRUCT,(InvoiceScan, InvoiceScan.thrift_spec)), None, ), # 0)def __init__(self, success=None,):self.success = successdef read(self, iprot):if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))returniprot.readStructBegin()while True:(fname, ftype, fid) = iprot.readFieldBegin()if ftype == TType.STOP:breakif fid == 0:if ftype == TType.LIST:self.success = [](_etype31, _size28) = iprot.readListBegin()for _i32 in xrange(_size28):_elem33 = InvoiceScan()_elem33.read(iprot)self.success.append(_elem33)iprot.readListEnd()else:iprot.skip(ftype)else:iprot.skip(ftype)iprot.readFieldEnd()iprot.readStructEnd()def write(self, oprot):if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))returnoprot.writeStructBegin('fetchScansPerInvoiceNumber_result')if self.success is not None:oprot.writeFieldBegin('success', TType.LIST, 0)oprot.writeListBegin(TType.STRUCT, len(self.success))for iter34 in self.success:iter34.write(oprot)oprot.writeListEnd()oprot.writeFieldEnd()oprot.writeFieldStop()oprot.writeStructEnd()def validate(self):returndef __repr__(self):L = ['%s=%r' % (key, value)for key, value in self.__dict__.iteritems()]return '%s(%s)' % (self.__class__.__name__, ', '.join(L))def __eq__(self, other):return isinstance(other, self.__class__) and self.__dict__ == other.__dict__def __ne__(self, other):return not (self == other)